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 coder_5
Recipients
Date 2006-02-19.17:42:02
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=1440178

I see 3 sollutions.

1) (bad)
leave as is but document it. (user may free pointer to name
AFTER PyFinalize() only)

2) (ok)
let AppendInittab() malloc a buffer to store the name for
later use there. (dont know about pythons mem alloc policy
though)

3) (good)
make it: int PyImport_AppendInittab(const char *name, void
(*initfunc)(void)) AND realize 2) (malloc buffer).
i would prefer to have the interface cleaned in a way that
pointers to const* are declared as const. using const is
good codingstyle and might even help the compiler on
optimization.
History
Date User Action Args
2007-08-23 14:37:33adminlinkissue1419652 messages
2007-08-23 14:37:33admincreate