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 benjamin.peterson
Recipients amaury.forgeotdarc, arigo, benjamin.peterson, pitrou
Date 2010-09-23.18:06:32
SpamBayes Score 3.0233298e-09
Marked as misclassified No
Message-id <AANLkTike76mp-LRCm1nCmhEaZOGtG_nUOdM9cZfpjdx3@mail.gmail.com>
In-reply-to <1285264578.38.0.857461575797.issue9928@psf.upfronthosting.co.za>
Content
2010/9/23 Antoine Pitrou <report@bugs.python.org>:
>
> Antoine Pitrou <pitrou@free.fr> added the comment:
>
> Actually, it is because bz2 doesn't call PyType_Ready() but instead sets some field manually. Perhaps we could have a guard somewhere that raises a fatal error when a C extension type hasn't been properly readied?

The problem is that there's no one entry point for types to get into
the C-API. I suppose we could iterate through a c-module's dictionary
after it's initialized...

>
> In the meantime, this patch seems to solve the issue:

Please apply.
History
Date User Action Args
2010-09-23 18:06:33benjamin.petersonsetrecipients: + benjamin.peterson, arigo, amaury.forgeotdarc, pitrou
2010-09-23 18:06:32benjamin.petersonlinkissue9928 messages
2010-09-23 18:06:32benjamin.petersoncreate