Re: [Pythonmac-SIG] Newbie environment questions

2006-01-17 Thread Louis Pecora
Ken, Chris gave some good advice there on reload and iPython. You can also run python from inside some code editors. I use BBEdit (a full featured code editor for $), but plenty of people use TextWrangler (free little brother of BBEdit). You edit the code, select run from a menu (I usually

Re: [Pythonmac-SIG] Newbie environment questions

2006-01-17 Thread Christopher Barker
Ken Brooks wrote: > Still nothing changes! So how does the debug loop work? How can I > reload a module short of relaunching the environment?? ^^ You've just inadvertently answered your own question. That's what we mean when we say "Python fits your brain": >>> reload(foo) Python cach

[Pythonmac-SIG] Newbie environment questions

2006-01-17 Thread Ken Brooks
1. I create a window, define my little function in it, save it as "foo.py", then: I>>> import foo fine. I now find a bug, or want to add more functions to foo.py. I edit, save, and: I>>> import foo nothing changes! New functions not recognized. I>>> del foo I>