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
In reply to Re^2: Python 'is' command
by LanX
in thread Python 'is' command
by betmatt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |