Re: What is class method?

2008-08-24 Thread MeTheGameMakingGuy
On Aug 24, 6:32 pm, Hussein B <[EMAIL PROTECTED]> wrote: > Hi, > I'm familiar with static method concept, but what is the class method? > how it does differ from static method? when to use it? > -- > class M: >  def method(cls, x): >     pass > >  method = classmethod(method) > -- > Thank you for y

Re: No method overloading

2008-08-24 Thread MeTheGameMakingGuy
On Aug 24, 6:15 pm, Hussein B <[EMAIL PROTECTED]> wrote: > Hey, > Please correct me if I'm wrong but Python doesn't support method > overload, right? > -- > def method(self): >  #code > def method(self, data): >  #code > -- > The last declaration of method() erase the previous one (like > JavaScrip

Cross Platform, Curses-Style Text Editor?

2008-08-24 Thread MeTheGameMakingGuy
I'm writing a little 'command line simulator' in Python. It runs completely within regular command lines, using simple prints and raw_inputs. I need to code a text editor for editing the virtual files in the simulation. It needs to function somewhat like pywarrior (ubuntuforums.org/showthread.php?t