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 amaury.forgeotdarc
Recipients alexandre.vassalotti, amaury.forgeotdarc, bhy
Date 2008-07-23.07:13:57
SpamBayes Score 0.006269006
Marked as misclassified No
Message-id <1216797240.22.0.475085412819.issue3208@psf.upfronthosting.co.za>
In-reply-to
Content
- A immmutable object may contain mutable members. Try with a tuple
containing a list.
Then, I don't think that something says that CFunctionObjects are
immutable. They don't have any modifiable attribute, until today!

- (Did I say "string"?) The new PyMethodDef::ml_annotations would not be
a char*, but a PyObject* member. If it is not possible to set it in the
static array, one could update the array in the module init function.

Anyway, for a SWIG module I think the best is to set the __annotations__
in the shadow python file. It seems more practical to build the dict there.
History
Date User Action Args
2008-07-23 07:14:01amaury.forgeotdarcsetspambayes_score: 0.00626901 -> 0.006269006
recipients: + amaury.forgeotdarc, alexandre.vassalotti, bhy
2008-07-23 07:14:00amaury.forgeotdarcsetspambayes_score: 0.00626901 -> 0.00626901
messageid: <1216797240.22.0.475085412819.issue3208@psf.upfronthosting.co.za>
2008-07-23 07:13:58amaury.forgeotdarclinkissue3208 messages
2008-07-23 07:13:57amaury.forgeotdarccreate