Question about None

Terry Reedy tjreedy at udel.edu
Fri Jun 12 12:32:25 EDT 2009


Paul LaFollette wrote:

> since type(Node) responds with <class, 'NoneType'> but the assertion
> above gives "name 'NoneType' is not defined" suggesting that NoneType
> is some sort of quasi-class.

add NoneType = type(None) before using Nonetype




More information about the Python-list mailing list