[2.3] object does not appear to be a reserved word

Daniel Klein danielk at aracnet.com
Sun Sep 7 03:49:41 CEST 2003

Thanks John., that's what I suspected.

This particular module uses the variable 'object' as an argument to
several methods and functions. I'll probably change it anyway, but I
was just curious as to why it seemed to run ok.

Thanks again for the confirmation.


On Sat, 6 Sep 2003 15:47:07 -0400, "John Roth"
<newsgroups at jhrothjr.com> wrote:

>"Daniel Klein" <danielk at aracnet.com> wrote in message
>news:v89klvsupdoe39e6trqbbqvmhfgecnoum8 at 4ax.com...
>> Is it potentially dangerous to use the variable 'object' in code?
>"object" is, I believe, a built-in type in the builtins namespace.
>As such,  you can shadow it so it's inacessable. However,
>the only place were that could cause problems is if you
>use it as an identifier at the module level. I think.
>John Roth
>> Thanks,
>> Daniel Klein

More information about the Python-list mailing list