[Tutor] Subclassing object

Robert webtourist at gmail.com
Sun Jan 17 19:04:49 CET 2010


On Sun, Jan 17, 2010 at 12:47 PM, Robert <webtourist at gmail.com> wrote:
> On Sun, Jan 17, 2010 at 11:25 AM, Alan Gauld <alan.gauld at btinternet.com> wrote:
>> In older versions of Python it made a difference whether you used object
>> or not. Using object gave you a "new style" class which has several extra
>> features, without you got an "old style class" without the features.


I have been wondering about this "New-style Class" subject along this line:

so, *theoretically speaking*, in EXISTING, pre-P3K code,
if one changes everywhere where it's coded "class someClass()" to
"class someClass(object)",
it should not break the programs, right ?


More information about the Tutor mailing list