tclkw.swg and phpkw.swg to the right ones tcl8kw.swg and php8kw.swg. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5546 626c5289-ae23-0410-ae9c-e8d60b6d4f22
68 lines
1.1 KiB
Text
68 lines
1.1 KiB
Text
#ifndef __python_pythonkw_swg__
|
|
#define __python_pythonkw_swg__
|
|
|
|
/* Warnings for Python keywords */
|
|
#define PYTHONKW(x) %namewarn("314:" #x " is a python keyword") #x
|
|
|
|
PYTHONKW(and);
|
|
PYTHONKW(assert);
|
|
PYTHONKW(break);
|
|
PYTHONKW(class);
|
|
PYTHONKW(continue);
|
|
PYTHONKW(def);
|
|
PYTHONKW(del);
|
|
PYTHONKW(elif);
|
|
PYTHONKW(else);
|
|
PYTHONKW(except);
|
|
PYTHONKW(exec);
|
|
PYTHONKW(finally);
|
|
PYTHONKW(for);
|
|
PYTHONKW(from);
|
|
PYTHONKW(global);
|
|
PYTHONKW(if);
|
|
PYTHONKW(import);
|
|
PYTHONKW(in);
|
|
PYTHONKW(is);
|
|
PYTHONKW(lambda);
|
|
PYTHONKW(not);
|
|
PYTHONKW(or);
|
|
PYTHONKW(pass);
|
|
PYTHONKW(print);
|
|
PYTHONKW(raise);
|
|
PYTHONKW(return);
|
|
PYTHONKW(try);
|
|
PYTHONKW(while);
|
|
PYTHONKW(yield);
|
|
|
|
#undef PYTHONKW
|
|
|
|
/*
|
|
bad names
|
|
http://users.ox.ac.uk/~sann1276/python/handbook/node52.html
|
|
*/
|
|
|
|
#define PYTHONBN(x) %namewarn("314:" #x " is a bad name in python") #x
|
|
|
|
PYTHONBN(Data);
|
|
PYTHONBN(Float);
|
|
PYTHONBN(Int);
|
|
PYTHONBN(Numeric);
|
|
PYTHONBN(Oxphys);
|
|
PYTHONBN(array);
|
|
PYTHONBN(close);
|
|
PYTHONBN(float);
|
|
PYTHONBN(int);
|
|
PYTHONBN(input);
|
|
PYTHONBN(open);
|
|
PYTHONBN(range);
|
|
PYTHONBN(type);
|
|
PYTHONBN(write);
|
|
PYTHONBN(zeros);
|
|
|
|
|
|
PYTHONBN(True);
|
|
PYTHONBN(False);
|
|
|
|
#undef PYTHONBN
|
|
|
|
#endif //__python_pythonkw_swg__
|