Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #30111
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: new-style class or old-style class? |
| Date | 2012-09-25 12:33 -0400 |
| Organization | > Bestiaria Support Staff < |
| References | <2e8a9e88-9e7e-43f7-a070-ea9054e625f2@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1358.1348590903.27098.python-list@python.org> (permalink) |
On Tue, 25 Sep 2012 07:44:04 -0700 (PDT), Jayden <jayden.shui@gmail.com>
declaimed the following in gmane.comp.python.general:
> In learning Python, I found there are two types of classes? Which one are widely used in new Python code? Is the new-style much better than old-style? Thanks!!
In Python 3.x, you only have "new-style".
In Python 2.x, it is preferable to use "new-style" as there are more
capabilities with them, but there is still code inherited from prior
versions using "old-style"
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
new-style class or old-style class? Jayden <jayden.shui@gmail.com> - 2012-09-25 07:44 -0700
Re: new-style class or old-style class? "Littlefield, Tyler" <tyler@tysdomain.com> - 2012-09-25 09:02 -0600
Re: new-style class or old-style class? Chris Angelico <rosuav@gmail.com> - 2012-09-26 01:05 +1000
Re: new-style class or old-style class? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-25 16:20 +0000
Re: new-style class or old-style class? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-25 19:45 +0100
Re: new-style class or old-style class? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-25 12:33 -0400
Re: new-style class or old-style class? Ramchandra Apte <maniandram01@gmail.com> - 2012-09-26 05:59 -0700
Re: new-style class or old-style class? Roy Smith <roy@panix.com> - 2012-09-26 09:12 -0400
Re: new-style class or old-style class? wxjmfauth@gmail.com - 2012-09-26 13:15 -0700
Re: new-style class or old-style class? alex23 <wuwei23@gmail.com> - 2012-09-26 17:30 -0700
csiph-web