![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: Overloading __init__ & Function overloading
From: John J. Lee <jjl@pobox.com>
Date: Fri Sep 30 2005 - 22:01:27 CEST
Paul Rubin <"http://phr.cx"@NOSPAM.invalid> writes:
> "Iyer, Prasad C" <prasad.c.iyer@capgemini.com> writes:
Weeellll... more readably, you can use:
1. Named arguments (aka "keywords arguments" -- though a keyword arg
2. Factory (class methods) (I'm using those parentheses around "class
3. Plain old factory methods
4. Factory "functions" implemented as classes with a __call__ method
5. Factory classes with named factory methods (perhaps even class
6. Plain old factory functions
It's all terribly restrictive, as you can see <wink>
(Yes, I know the OP used the same name to call all the constructors in
John
|