problems creating and adding class instances to a list:

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


On Tue, Apr 20, 2010 at 7:38 AM, Chris Rebert <clp2 at rebertia.com> 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. =]

Cheers,
Xav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100420/4a024b7a/attachment.html>


More information about the Python-list mailing list