[issue32325] C API should use 'const char *' instead of 'char *'

2017-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This already was done in issue28761. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue32325] C API should use 'const char *' instead of 'char *'

2017-12-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue32325] C API should use 'const char *' instead of 'char *'

2017-12-14 Thread Stephen Kelly
New submission from Stephen Kelly : When using C++ to extend python, one may use PyGetSetDef for example: static PyGetSetDef Noddy_getseters[] = { {"first", (getter)Noddy_getfirst, (setter)Noddy_setfirst, "first name", NULL}, {"last", (getter)Noddy_getlast, (setter)N