using code 315 for bad names only
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5548 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c32f1d93d1
commit
720993e41f
3 changed files with 11 additions and 18 deletions
|
|
@ -36,19 +36,9 @@ PYTHONKW(yield);
|
|||
|
||||
#undef PYTHONKW
|
||||
|
||||
/*
|
||||
bad names
|
||||
http://users.ox.ac.uk/~sann1276/python/handbook/node52.html
|
||||
*/
|
||||
#define PYTHONBN(x) %namewarn("315:" #x " is a bad name in python") #x
|
||||
|
||||
#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);
|
||||
/* recurrent built-in functions */
|
||||
PYTHONBN(close);
|
||||
PYTHONBN(float);
|
||||
PYTHONBN(int);
|
||||
|
|
@ -56,10 +46,8 @@ PYTHONBN(input);
|
|||
PYTHONBN(open);
|
||||
PYTHONBN(range);
|
||||
PYTHONBN(type);
|
||||
PYTHONBN(write);
|
||||
PYTHONBN(zeros);
|
||||
|
||||
|
||||
/* Boolean type */
|
||||
PYTHONBN(True);
|
||||
PYTHONBN(False);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue