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
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
JavaScript).
Thanks.
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 your time.