Warning when new attributes are added to classes at run time
Jean-Paul Calderone
exarkun at divmod.com
Wed Jul 19 17:10:35 EDT 2006
On Wed, 19 Jul 2006 20:42:40 GMT, Matthew Wilson <matt at overlook.homelinux.net> wrote:
>
>I sometimes inadvertently create a new attribute on an object rather
>update a value bound to an existing attribute. For example:
>
> [snip]
Write more unit tests. If you have mistakes like this, they will fail
and you will know you need to fix your code.
Jean-Paul
More information about the Python-list
mailing list