As discussed in python-dev, documentation strings are responsible for 10% of python's executable footprint. This patch tries to merge everyone's idea about how documentation strings should be optional. Please note that, for now, only sysmodule.c is using the new macros. When this patch get in, I (and others, maybe) will gradually implement these macros in all documentation strings available in python's code. Reference: http://mail.python.org/pipermail/python-dev/2002-January/019392.html
Logged In: YES user_id=21627 Can you please update the patch to the current code base? Notice that pyconfig.h.in is a generated file, generated by autoheader; you need to split this change into configure.in and Include/something changes (something probably being Python.h)
Logged In: YES user_id=7887 Here's the new patch updated to CVS. Just like before, I've introduced the new macros only in sysmodule.c. I chose this file given it's specific (unusual) requirements about doc strings. Once these macros are checked in, I'll promptly implement this functionality in everything else. Thanks!
Logged In: YES user_id=21627 Thanks for the patch. Committed as configure 1.312 configure.in 1.322 pyconfig.h.in 1.39 Python.h 2.51 NEWS 1.420 sysmodule.c 2.104 I have also updated the various manually-maintained pyconfig.h files to enable doc strings. Feel free to submit further patches (perhaps on a per-directory basis).