All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
py3Compat.h File Reference

Compatibility code for supporting python 2 and 3. More...

+ Include dependency graph for py3Compat.h:

Go to the source code of this file.

Macros

#define TfPy_TPFLAGS_HAVE_NEWBUFFER   Py_TPFLAGS_HAVE_NEWBUFFER
 
#define TfPy_TPFLAGS_HAVE_GETCHARBUFFER   Py_TPFLAGS_HAVE_GETCHARBUFFER
 
#define TfPyBytes_Check   PyString_Check
 
#define TfPyString_Check   PyString_Check
 
#define TfPyString_AsString   PyString_AsString
 
#define TfPyInt_Check   PyInt_Check
 
#define TfPyInt_AS_LONG   PyInt_AS_LONG
 
#define TfPyIteratorNextMethodName   "next"
 
#define TfPyClassMethodFuncName   "im_func"
 
#define TfPyBoolBuiltinFuncName   "__nonzero__"
 
#define TfPyBuiltinModuleName   "__builtin__"
 

Detailed Description

Compatibility code for supporting python 2 and 3.

Definition in file py3Compat.h.

Macro Definition Documentation

◆ TfPy_TPFLAGS_HAVE_GETCHARBUFFER

#define TfPy_TPFLAGS_HAVE_GETCHARBUFFER   Py_TPFLAGS_HAVE_GETCHARBUFFER

Definition at line 45 of file py3Compat.h.

◆ TfPy_TPFLAGS_HAVE_NEWBUFFER

#define TfPy_TPFLAGS_HAVE_NEWBUFFER   Py_TPFLAGS_HAVE_NEWBUFFER

Definition at line 44 of file py3Compat.h.

◆ TfPyBoolBuiltinFuncName

#define TfPyBoolBuiltinFuncName   "__nonzero__"

Definition at line 56 of file py3Compat.h.

◆ TfPyBuiltinModuleName

#define TfPyBuiltinModuleName   "__builtin__"

Definition at line 57 of file py3Compat.h.

◆ TfPyBytes_Check

#define TfPyBytes_Check   PyString_Check

Definition at line 47 of file py3Compat.h.

◆ TfPyClassMethodFuncName

#define TfPyClassMethodFuncName   "im_func"

Definition at line 55 of file py3Compat.h.

◆ TfPyInt_AS_LONG

#define TfPyInt_AS_LONG   PyInt_AS_LONG

Definition at line 52 of file py3Compat.h.

◆ TfPyInt_Check

#define TfPyInt_Check   PyInt_Check

Definition at line 51 of file py3Compat.h.

◆ TfPyIteratorNextMethodName

#define TfPyIteratorNextMethodName   "next"

Definition at line 54 of file py3Compat.h.

◆ TfPyString_AsString

#define TfPyString_AsString   PyString_AsString

Definition at line 49 of file py3Compat.h.

◆ TfPyString_Check

#define TfPyString_Check   PyString_Check

Definition at line 48 of file py3Compat.h.