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 tim.peters
Recipients
Date 2004-07-01.04:37:05
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=31435

"const char *" is best C practice, so the docs should 
encourage it, and that should be the officially documented 
signature.  All the standard C library functions to which it's 
safe to pass a string gotten via PyArg_ParseTuple already 
have const char* prototypes, so the danger of const 
poisoning (needing to supply a cascading number of casts) is 
minimal here.  Most of the likely Python C API functions to 
which we'd pass one of these things are already prototyped 
with const char* too (e.g., PyDict_GetItemString and 
PyString_InternFromString).  Some others should be.  Fighting 
a hopeless rear-guard reactionary battle isn't like Raymond -- 
don't listen to old farts, Brett, our youth is our future <wink>.
History
Date User Action Args
2007-08-23 14:23:02adminlinkissue980925 messages
2007-08-23 14:23:02admincreate