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


Groups > comp.lang.python > #26457

Re: attribute is accessed from Nonetype

Date 2012-08-03 18:20 -0400
From Dave Angel <d@davea.name>
Subject Re: attribute is accessed from Nonetype
References <CAMLC9n6ES9CwCE_OqEsnvQJ1gG_2MJEmrkjzQaM7tPQ4-4k0nA@mail.gmail.com> <501A5EAF.9090501@davea.name> <5B80DD153D7D744689F57F4FB69AF4741659DDF5@SCACMX008.exchad.jpmchase.net>
Newsgroups comp.lang.python
Message-ID <mailman.2918.1344032464.4697.python-list@python.org> (permalink)

Show all headers | View raw


On 08/03/2012 03:01 AM, Prasad, Ramit wrote:
>> 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()
>

I'm sorry, what's not clear?  Nonetype is not the same as NoneType. 
Python is case sensitive.


-- 

DaveA

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


Thread

Re: attribute is accessed from Nonetype Dave Angel <d@davea.name> - 2012-08-03 18:20 -0400

csiph-web