On Mar 5, 3:58 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Wed, 05 Mar 2008 10:50:12 -0800, castironpi wrote:
> > What is a class that is not a module?
>
> Er, all of them?
>
> I'm curious what classes you think are modules.
>
> --
> Steven

Thank you for your time in entertaining my questions so far.

Functions are first-class objects.
Modules are first-class objects.
Classes are first-class objects.

There's even a ModuleType in 'types'.

>>> set( dir(type('None',(),{})) )- set( dir( ModuleType ) )
{'__module__', '__weakref__'}

How superficial are the differences?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to