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

John Roth newsgroups at jhrothjr.com
Sat Sep 6 15:47:07 EDT 2003


"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