[Python-Dev] Opinions on const-correctness? (original) (raw)
Juergen Hermann Juergen Hermann" <j.her@t-online.de
Tue, 12 Mar 2002 21:10:24 +0100
- Previous message: [Python-Dev] I'm an idiot...
- Next message: [Python-Dev] Opinions on const-correctness?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi!
When you interface const-correct C or C++ code with Python, you currently need to jump through hoops like this:
somefunc(const char* modulename, const char* key) { ... PyImport_ImportModule(const_cast<char*>(modulename)) ...
I'd be willing to invest some time to change this, the question is:
someone opposed to such a change?
any technical reasons against it (const is ANSI, do we have a portability problem that cannot be solved by a #define)?
The largest negative effect I can see is that it'll add some turbulence to the CVS log (many little changes).
Ciao, J=FCrgen
- Previous message: [Python-Dev] I'm an idiot...
- Next message: [Python-Dev] Opinions on const-correctness?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]