tt = a, b = t

Steven Majewski sdm7g at Virginia.EDU
Sun Jan 13 14:58:57 EST 2002


On Sun, 13 Jan 2002, rihad wrote:

> >>>> None
> >2
> >>>>
> Huh? This works! What are the reasons behind allowing to assign to a
> language construct???


If by 'language construct', you mean a reserved word that is
part of a statement, rather than a name used in a expression,
the it's not a language construct.  (see previous post for the
list of reserved words. )

None  the name of a type: <type 'NoneType'>,
it's the name of the single value/object of that type,
and it's the name that that object it bound to in the __builtin__
module. [ 'sin' is the name in the math module bound to the
trig function sin, but there's no reason you can't assign:
	sin = ( 'mortal', 'venial' ) ]


See Python Reference Manual:
<http://www.python.org/doc/current/ref/types.html#l2h-59>

3.2 The standard type hierarchy

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.


-- Steve Majewski






More information about the Python-list mailing list