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


Groups > comp.lang.python > #26457 > unrolled thread

Re: attribute is accessed from Nonetype

Started byDave Angel <d@davea.name>
First post2012-08-03 18:20 -0400
Last post2012-08-03 18:20 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#26457 — Re: attribute is accessed from Nonetype

FromDave Angel <d@davea.name>
Date2012-08-03 18:20 -0400
SubjectRe: attribute is accessed from Nonetype
Message-ID<mailman.2918.1344032464.4697.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web