Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12264 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2011-08-27 23:46 +1000 |
| Last post | 2011-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.
Re: typing question Chris Angelico <rosuav@gmail.com> - 2011-08-27 23:46 +1000
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2011-08-27 23:46 +1000 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web