Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12264 > unrolled thread

Re: typing question

Started byChris Angelico <rosuav@gmail.com>
First post2011-08-27 23:46 +1000
Last post2011-08-27 23:46 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: typing question Chris Angelico <rosuav@gmail.com> - 2011-08-27 23:46 +1000

#12264 — Re: typing question

FromChris Angelico <rosuav@gmail.com>
Date2011-08-27 23:46 +1000
SubjectRe: typing question
Message-ID<mailman.462.1314452782.27778.python-list@python.org>
On Sat, Aug 27, 2011 at 11:42 PM, Jason Swails <jason.swails@gmail.com> 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 example
works perfectly in version 3.2. Be explicit about deriving from object
and your code should work fine in both versions.

Chris Angelico

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web