Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.064 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'python': 0.09; 'typeerror:': 0.09; 'cc:addr:python-list': 0.10; 'one)': 0.16; 'wrote:': 0.17; 'object.': 0.22; 'sorry,': 0.22; 'cc:2**0': 0.23; 'to:2**1': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; '2.6': 0.27; '>>>>': 0.29; "i'm": 0.29; 'clear': 0.35; 'there': 0.35; 'correctly': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'received:192': 0.39; 'called': 0.39; 'received:192.168': 0.40; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; '(yes,': 0.84; 'received:74.208.4.194': 0.84 Date: Fri, 03 Aug 2012 18:20:33 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: "Prasad, Ramit" Subject: Re: attribute is accessed from Nonetype References: <501A5EAF.9090501@davea.name> <5B80DD153D7D744689F57F4FB69AF4741659DDF5@SCACMX008.exchad.jpmchase.net> In-Reply-To: <5B80DD153D7D744689F57F4FB69AF4741659DDF5@SCACMX008.exchad.jpmchase.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:X4mtM+S3CgR0SS7goJfiHekaGGJeufMaY1ACMR7NE6C j4oun+7oR3cPdrZt6cz6BaA9A0yMFrN4uTcZ07LRFSniLS7svJ IAe+isLBHP710DZHxe9fIigdwE5gW4e+zQrNzHiZDBSRHCfV+E Wf9sp8R5avIuQFmfbEZyrAVMHAZonXjI+/SRyi1jfVfT/FBjRI xKY24Ng26K5rG9r1+6/QNn6HzZ+d9CRc9AiTEclbAh8khlsQAF v0RpobzNbXlNyV8gZzxLxauadAg0psmkjTfwDogTmdOemjVeIp qapdoMdLRcukrsbCx3/jy0XyF9RCNzA8/NiHExV4oX5/5Kd6Q= = Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: d@davea.name List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1344032464 news.xs4all.nl 6875 [2001:888:2000:d::a6]:59375 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26457 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