Author gvanrossum
Recipients
Date 2002-11-14.23:13:29
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=6380

Hm, but should this also be done for functions inside
classes?  E.g.

class C:
 def foo(self): pass

assert C.foo.__name__ == "C.foo"
assert C.__dict__["foo"].__name__ == "C.foo"

And what about classes inside functions?

def f():
  class C: pass
  return C

assert f().__name__ == "f.C"

???
History
Date User Action Args
2007-08-23 14:07:55adminlinkissue633930 messages
2007-08-23 14:07:55admincreate