Module/Package-Class Unification
18 Sep
2008
18 Sep
'08
8:51 p.m.
Is there a good reason why I can't do something like: import mypackage import mymodule x = mypackage(arg, kwarg) y = mymodule + 3 and other methods, etc. using the __special__ methods. Also, wouldn't it be cool if modules/packages could have metaclass- like handlers… I'm sure there's a good reason why this is just crazy talk implementation-wise, but I'd like to hear what it is. Python has merged types and classes, why not merging in packages and modules, too? -- Carl Johnson
5670
Age (days ago)
5670
Last active (days ago)
2 comments
3 participants
participants (3)
-
Carl Johnson
-
Josiah Carlson
-
Ron Adam