What is a class?

castironpi at gmail.com castironpi at gmail.com
Thu Mar 6 06:35:51 CET 2008


On Mar 5, 8:06 pm, castiro... at gmail.com wrote:
> On Mar 5, 4:25 pm, Steven D'Aprano <st... at REMOVE-THIS-
>
> cybersource.com.au> wrote:
> > On Wed, 05 Mar 2008 13:49:20 -0800, castironpi wrote:
> > > Classes and modules are really similar.  In Python they're really
> > > *really* similar.
>
> > Yes they are.
>
> > Both are namespaces. The very last line of the Zen of Python says:
> > Namespaces are one honking great idea -- let's do more of those!
>
> Where to begin?

And white to play.  What does exec( open( 'modA.py' ).read() ) do?



More information about the Python-list mailing list