Sublassing tuple works, subclassing list does not
Frank Millman
frank at chagford.com
Wed Mar 31 04:29:17 EDT 2010
"lbolla" <lbolla at gmail.com> wrote in message
news:f8011c0b-0b1b-4a4f-94ff-304c16ef9a5b at q16g2000yqq.googlegroups.com...
On Mar 31, 7:49 am, "Frank Millman" <fr... at chagford.com> wrote:
>> Hi all
>>
> When subclassing immutable types, you need to override __new__;
> otherwise you need to override __init__.
Perfect. Thanks very much.
Frank
More information about the Python-list
mailing list