[Python-Dev] subclassing builtin data structures
Ethan Furman
ethan at stoneleaf.us
Fri Feb 13 05:58:33 CET 2015
On 02/12/2015 08:01 PM, Guido van Rossum wrote:
> On Thu, Feb 12, 2015 at 7:41 PM, Ethan Furman wrote:
>>
>> 2) always use the type of self when creating new instances
>>
>> cons:
>> - if constructor signatures change, must override all methods which
>> create new objects
>
> Con for #2 is a showstopper. Forget about it.
Happy to, but can you explain why requiring the programmer to override the necessary methods, or get tracebacks, is a
showstopper? Is there a previous email thread I can read that discusses it?
--
~Ethan~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150212/10cbaa1c/attachment.sig>
More information about the Python-Dev
mailing list