Message169977
> 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. |
|
Date |
User |
Action |
Args |
2012-09-07 07:02:52 | pitrou | set | recipients:
+ pitrou, loewis, amaury.forgeotdarc, belopolsky, Arfrever, Alexander.Belopolsky, Robin.Schreiber |
2012-09-07 07:02:51 | pitrou | link | issue15870 messages |
2012-09-07 07:02:51 | pitrou | create | |
|