>>>>> "Humufr" == Humufr <hu...@ya...> writes:
Humufr> Hi John, I saw that you add in the load function
Humufr> the possibility to have some line comment with the
Humufr> character '%'. I would like to change this function and
Humufr> generalize a little bit this. Not everyone is using the
Humufr> character '%' but some other like '#' or '!'. So I add
Humufr> this possibilty to the function. I don't know if you are
Humufr> agree with it but in case I join the change below.
OK, that's a good idea. I added it to pylab.py. In the future,
please add changes to the docstring as well when you change the
function, so that folks who do help(load) will get some information on
what the comments kwarg does. Thanks...
Humufr> Another things, I think there are a small bug for the
Humufr> Tkagg backend. When I close the windows instead to come
Humufr> back to my shell I'm arriving in a python shell. I tried
Humufr> (when I had my laptop) with the Gtkagg backend and I
Humufr> didn't notice this problem.
Not technically a bug, as it was intentional, but perhaps an
annoyance. In order for python to work with idle, we need this line
os.environ['PYTHONINSPECT'] = '1'
in the show function of backends/backend_tkagg.py. If you comment out
this line the shell will not be raised.
Todd, any objection to making this an rc parameter, so that people can
optionally have this feature? Something like
tk.window_focus : False # Maintain shell focus for TkAgg
tk.pythoninspect : False # True for interactive idle
JSH
|