Usefulness of subclassing builtin number types

Martin v. Löwis martin at v.loewis.de
Mon Dec 16 15:57:07 EST 2002


> Couldn't the builtin types's methods use 
> 
>     self.__class__(...)
> 
> to construct new objects?  

As I've said in <atiev5$sfe$07$1 at news.t-online.com>: No, unless 
someone resolves all semantic issues with such an approach.

Regards,
Martin





More information about the Python-list mailing list