problems creating and adding class instances to a list:

Xavier Ho contact at
Mon Apr 19 18:41:23 EDT 2010

On Tue, Apr 20, 2010 at 7:38 AM, Chris Rebert <clp2 at> wrote:

> Additionally, `self.x = int` might not do what you thought it does. It
> does *not* create a new instance variable of type 'int'. Instead, it
> literally assigns to a new instance variable x the *function*† that
> converts values into integers.

Thanks, Chris. I'm well aware of that. =]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list