tt = a, b = t
Joshua Muskovitz
joshm at taconic.net
Mon Jan 14 02:49:16 EST 2002
> None
> This type has a single value. There is a single object with this value.
> This object is accessed through the built-in name None. It is used to
> signify the absence of a value in many situations, e.g., it is returned
> from functions that don't explicitly return anything. Its truth value is
> false.
Ahh, but...
Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>> None
>>> if None: print 1
>>> None = 2
>>> None
2
>>> if None: print 1
1
>>>
So, the truth value of None does not *have* to be false! Evil, but true.
:-)
This-could-be-part-of-an-evil-obfuscated-code-submission-ly y'rs,
-- josh
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
More information about the Python-list
mailing list