in reply to Re: Python 'is' command
in thread Python 'is' command

> see FAQ in Object::ID

Interesting but not relevant here.

The OP wants to compare two existing objects with an is operator.

References can't be reused if the objects haven't been garbage collected yet.

On a side note: why should one want to keep track of numeric or string representations of ref-adresses?

Keeping the original ref in a hash value would keep it protected from destruction.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice