language design question

vdrab stijndesaeger at gmail.com
Tue Jul 11 09:24:49 EDT 2006


>   >>> isinstance(1, object)
> True
>
> What's 1 . len() ?

That's easy!
since 1 is actually syntactic sugar for set([set([])]), clearly 1.len()
== 1.

;-)
v.
(actually, make that frozenset([frozenset([])])...)




More information about the Python-list mailing list