Sylvain Ferriol wrote:
> hello
> can you explain why python does not see difference between instance
> method and class method, having the same name
Because class namespaces are dicts, and you can't have duplicate keys in
dicts. It's totally unrelated to class/instance method distinction (try
with
Sylvain Ferriol wrote:
> can you explain why python does not see difference between instance
> method and class method, having the same name
You're trying to put two objects with the same name in the same namespace.
> example
> >>> class toto(object):
> ... def f(self):
> ... p