Re: typing question

2011-08-27 Thread Terry Reedy
On 8/27/2011 9:42 AM, Jason Swails wrote: P.S. I'll note that my "preferred" behavior is how python3.2 actually operates Python core developers agree. This is one of the reasons for breaking a bit from 2.x to make Python 3. -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/py

Re: typing question

2011-08-27 Thread Chris Rebert
On Sat, Aug 27, 2011 at 6:42 AM, Jason Swails wrote: > Hello everyone, > > This is probably a basic question with an obvious answer, but I don't quite > get why the type(foo).__name__ works differently for some class instances > and not for others.  If I have an "underived" class, any instance of

Re: typing question

2011-08-27 Thread Chris Angelico
On Sat, Aug 27, 2011 at 11:42 PM, Jason Swails wrote: > I can't explain this behavior (since doesn't every class inherit from object > by default? And if so, there should be no difference between any of my class > definitions). That is true in Python 3, but not in Python 2. That's why your exampl