Re: attribute is accessed from Nonetype

2012-08-03 Thread Dave Angel
On 08/03/2012 09:35 PM, Steven D'Aprano wrote: > On Fri, 03 Aug 2012 19:03:20 -0400, Dave Angel wrote: > >> On 08/03/2012 06:41 PM, Chris Angelico wrote: >>> On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel wrote: I'm sorry, what's not clear? Nonetype is not the same as NoneType. Python is ca

Re: attribute is accessed from Nonetype

2012-08-03 Thread Steven D'Aprano
On Fri, 03 Aug 2012 19:03:20 -0400, Dave Angel wrote: > On 08/03/2012 06:41 PM, Chris Angelico wrote: >> On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel wrote: >>> I'm sorry, what's not clear? Nonetype is not the same as NoneType. >>> Python is case sensitive. >> There isn't a NoneType either. I get

Re: attribute is accessed from Nonetype

2012-08-03 Thread Steven D'Aprano
On Sat, 04 Aug 2012 08:41:20 +1000, Chris Angelico wrote: > On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel wrote: >> I'm sorry, what's not clear? Nonetype is not the same as NoneType. >> Python is case sensitive. > > There isn't a NoneType either. I get a NameError. Shame on you :-P Ramit Prasad

Re: attribute is accessed from Nonetype

2012-08-03 Thread Dave Angel
On 08/03/2012 06:41 PM, Chris Angelico wrote: > On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel wrote: >> I'm sorry, what's not clear? Nonetype is not the same as NoneType. >> Python is case sensitive. > There isn't a NoneType either. I get a NameError. > > ChrisA NoneType isn't in the builtin namesp

Re: attribute is accessed from Nonetype

2012-08-03 Thread Chris Angelico
On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel wrote: > I'm sorry, what's not clear? Nonetype is not the same as NoneType. > Python is case sensitive. There isn't a NoneType either. I get a NameError. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: attribute is accessed from Nonetype

2012-08-03 Thread Dave Angel
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(No

RE: attribute is accessed from Nonetype

2012-08-03 Thread Prasad, Ramit
> 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 'NoneTyp

Re: attribute is accessed from Nonetype

2012-08-02 Thread Dave Angel
On 08/02/2012 06:28 AM, Shanth Kumar wrote: > Hi ,All, > I am Shanthkumar. Good to see the mailing list for python programmers. Welcome to the list. > Please find my query below, > > In my source code in a python file e.g xyz.py couple of classes are defined > also there is a wrapper class, a non

attribute is accessed from Nonetype

2012-08-02 Thread Shanth Kumar
Hi ,All, I am Shanthkumar. Good to see the mailing list for python programmers. Please find my query below, In my source code in a python file e.g xyz.py couple of classes are defined also there is a wrapper class, a none object is declared in the file e.g temp=None from temp some attributes are b