Tuples cf. Expanded objects??

William Tanksley wtanksle at dolphin.openprojects.net
Sun Jul 4 17:35:43 EDT 1999


On Sun, 04 Jul 1999 22:11:55 +1000, Gary Stephenson wrote:
>William Tanksley wrote:

>> On Fri, 02 Jul 1999 22:10:46 +1000, Gary Stephenson wrote:

>> An instance of an immutable type may be created in expanded form.

>Yes, but can they also  be created in an non-expanded form?  If not, then
>there is more of a relationship that your message implies - yes?

Of course they can -- that's how Eiffel works by default and how Python
works no matter what.

I wonder whether you know what "expanded" form means, though.  It means
that the object itself is stored in local storage, rather than a reference
to the object.  Of course, it's obvious that location of storage has
little to do with immutability of type (although it can take a lot of work
to store certain mutable types in local storage).

>gary

-- 
-William "Billy" Tanksley




More information about the Python-list mailing list