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
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
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