Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5826 > unrolled thread
| Started by | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| First post | 2011-05-20 00:53 -0600 |
| Last post | 2011-05-20 00:53 -0600 |
| 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: Inheriting Object Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-20 00:53 -0600
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2011-05-20 00:53 -0600 |
| Subject | Re: Inheriting Object |
| Message-ID | <mailman.1827.1305874469.9059.python-list@python.org> |
On Thu, May 19, 2011 at 10:11 PM, Navkirat Singh <n4vpython@gmail.com> wrote: > Thanks Guys...I will look deeper into this. I thought I read somewhere that > it was required in older python releases, but in newer releases it is not. I > might be wrong though. In Python 3.x all classes inherit from object by default, so "class Foo(object):" and "class Foo:" are equivalent. In Python 2.x they are not equivalent, and you should use "class Foo(object):" unless you have a specific reason not to. Cheers, Ian
Back to top | Article view | comp.lang.python
csiph-web