Method returning new instance of class?
Paul Rubin
http
Sat Sep 4 07:52:48 EDT 2004
More information about the Python-list mailing list
Sat Sep 4 07:52:48 EDT 2004
- Previous message (by thread): Method returning new instance of class?
- Next message (by thread): Method returning new instance of class?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Arthur" <ajsiegel at optonline.com> writes: > The way I am currently conceptualizing a solution, what I need is a method > of the class that returns a new instance of the class. class foo: def bar(self): return foo() What's the problem?
- Previous message (by thread): Method returning new instance of class?
- Next message (by thread): Method returning new instance of class?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list