[Patches] [ python-Patches-1699259 ] replacing char* with const char* in sysmodule.c/.h

SourceForge.net noreply at sourceforge.net
Thu Apr 12 15:55:10 CEST 2007


Patches item #1699259, was opened at 2007-04-12 15:55
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1699259&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: sebastinas (sebastinas)
Assigned to: Nobody/Anonymous (nobody)
Summary: replacing char* with const char* in sysmodule.c/.h

Initial Comment:
I'm embedding Python in a C++ application and found myself casting const char* to char* quite often when using functions like PySys_SetObject and PySys_GetObject.

I attached a patch replacing the char* arguments of the above mentioned functions, PySys_GetFile and PySys_AddWarnOption with const char*.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1699259&group_id=5470


More information about the Patches mailing list