homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients Alexander.Belopolsky, Arfrever, Robin.Schreiber, amaury.forgeotdarc, belopolsky, loewis, pitrou
Date 2012年09月07日.07:02:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347001137.3323.0.camel@localhost.localdomain>
In-reply-to <1346996856.15.0.708679934947.issue15870@psf.upfronthosting.co.za>
Content
> If filling out a type with all slots one-by-one is considered too
> tedious, and patching ob_type too hacky - here is another approach:
> Use FromSpec to create a type with all slots filled out, then call the
> metatype to create a subtype of that. I.e. the type which is based on
> a metatype would actually be a derived class of the type which has the
> slots defined.
As a matter of fact, this is what the io module is doing (except that
the derived type is written in Python). It does feel like pointless
complication, though.
History
Date User Action Args
2012年09月07日 07:02:52pitrousetrecipients: + pitrou, loewis, amaury.forgeotdarc, belopolsky, Arfrever, Alexander.Belopolsky, Robin.Schreiber
2012年09月07日 07:02:51pitroulinkissue15870 messages
2012年09月07日 07:02:51pitroucreate

AltStyle によって変換されたページ (->オリジナル) /