Something or Nothing^H^H^H^H^H^H^HEmpty
Boris Borcic
borcis at geneva-link.ch
Thu Apr 11 09:10:39 EDT 2002
>>
>>>
>>>> [] and {} are objects,
>>>>
>>> Yes, as are None and 0.
>>>
> IOW you forgot the empty sequence () and the empty string "".
Raises the interesting question of a locus of functionality of immutable
objects that would be to dictionaries much like tuples are to lists.
Mmmm...
Maybe "name munching rules" could grow to first-class values, and unify
with both function parameter binding "action objects" and with (compiled
code for ?) destructuring-restructuring assignment statements (such as
a,b = b,a). Some kind of algebra is clearly possible, and would justify
these being values.
Guess it means knowing the VM is part of a complete python education :(
Boris
--
"Art is a trigram"
More information about the Python-list
mailing list