attribute is accessed from Nonetype

Prasad, Ramit ramit.prasad at jpmorgan.com
Fri Aug 3 03:01:29 EDT 2012


> Also, please use the names correctly and consistently.  The None object
> (yes, there is only one) is not the same as a none object.  And there is
> no standard type called Nonetype.

To be fair, this is not very clear to a beginner. 

>>> len(None) # Python 2.6
TypeError: object of type 'NoneType' has no len()


Ramit
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  



More information about the Python-list mailing list