[Patches] [Patch #101233] PyModule_AddObject() and friends

noreply@sourceforge.net noreply@sourceforge.net
Sat, 19 Aug 2000 21:31:42 -0700


Patch #101233 has been updated. 

Project: 
Category: core (C code)
Status: Open
Summary: PyModule_AddObject() and friends

Follow-Ups:

Date: 2000-Aug-19 13:17
By: marangoz

Comment:
Looks good. BDFL need to Pronounce on API issues.
What amount of changes would this imply in the distrib? Have patch?
(the names could be tuned later directly in the patch <wink>)
-------------------------------------------------------

Date: 2000-Aug-20 00:31
By: tim_one

Comment:
Assigned to Guido because, as Vlad says, he needs to Prounounce on the idea.  Guido, the point here is to provide a single implementation to replace all the repeated and inconsistent functions and macros that modules are defining today for use in their init functions.  Was discussed on Python-Dev and was well-received there.

Andrew, I dislike the name PyModule_AddConstantLong, because that Python ints *happen* to be C longs should be an implementation detail.  Since the function is actually adding a Python int, I'm afraid I like PyModule_AddConstantInt better.  Oh, yuck.  Ah!  PyModule_AddConstantPyInt.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101233&group_id=5470