Seymour wrote:
> I just made some typos and was wondering if there was an easier
> way to clear the Python namespace at the interactive prompt rather than
> shutting Komodo down and restarting (really brute force).
most IDE's have a "reset interactive mode" command (it's ctrl-F6 in
IDLE, for ex
John,
Thanks for the reply. Just as a little further background, I am using
Windows XP and Komodo and just trying to learn about classes - how they
work, what they are used for, etc. I have been studying "Learning
Python (2nd Ed)" by Mark Lutz and Davis Ascher and have been typing in
some of the
Seymour wrote:
> I created a module with the DictAdder subclass as follows:
>
> class DictAdder(Adder):
> def add(self, x, y):
> new={}
> for k in x.keys(): new[k]=x[k]
> for k in y.keys(): new[k]=y[k]
> return new
>
> At the interactive prompt I then said: from
I created a module with the DictAdder subclass as follows:
class DictAdder(Adder):
def add(self, x, y):
new={}
for k in x.keys(): new[k]=x[k]
for k in y.keys(): new[k]=y[k]
return new
At the interactive prompt I then said: from Adder import *
After defining an