Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.python

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-03-2012, 10:20 PM
Dave Angel
Guest
 
Posts: n/a
Default Re: attribute is accessed from Nonetype

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

Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 12:46 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.