Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #26420

RE: attribute is accessed from Nonetype

From "Prasad, Ramit" <ramit.prasad@jpmorgan.com>
Subject RE: attribute is accessed from Nonetype
Date 2012-08-03 07:01 +0000
References <CAMLC9n6ES9CwCE_OqEsnvQJ1gG_2MJEmrkjzQaM7tPQ4-4k0nA@mail.gmail.com> <501A5EAF.9090501@davea.name>
Newsgroups comp.lang.python
Message-ID <mailman.2893.1343977330.4697.python-list@python.org> (permalink)

Show all headers | View raw


> 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.  

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

RE: attribute is accessed from Nonetype "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-08-03 07:01 +0000

csiph-web