call by reference howto????

Terry Reedy tjreedy at udel.edu
Sun Mar 16 04:01:05 EDT 2008


"Steven D'Aprano" <steve at REMOVE-THIS-cybersource.com.au> wrote in message 
news:13tpa4999krk6cd at corp.supernews.com...
| On Sat, 15 Mar 2008 11:50:17 -0700, Dennis Lee Bieber wrote:
|
| > Small integers are cached in Python, so they always have a fixed ID
| > (address).
|
| Small integers are cached in CPython, making it an implementation-
| dependent feature.

Indeed, the set cached has changed from version to version.

| I don't believe that caching is promised by the
| language definition,

No, could even disappear from cPython. 






More information about the Python-list mailing list