Little fixes to allow pycxx to compile with python3
This commit is contained in:
parent
3c091ac69a
commit
8d2e08ffa0
|
@ -2221,7 +2221,7 @@ namespace Py
|
|||
{
|
||||
public:
|
||||
TupleN()
|
||||
: Tuple( (sequence_index_type)0 )
|
||||
: Tuple( 0 )
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -3198,7 +3198,7 @@ namespace Py
|
|||
inline Object Object::callMemberFunction( const std::string &function_name ) const
|
||||
{
|
||||
Callable target( getAttr( function_name ) );
|
||||
Tuple args( (sequence_index_type)0 );
|
||||
Tuple args( 0 );
|
||||
return target.apply( args );
|
||||
}
|
||||
|
||||
|
|
|
@ -1518,6 +1518,7 @@ extern "C" PyObject *method_noargs_call_handler( PyObject *_self_and_name_tuple,
|
|||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
extern "C" PyObject *method_noargs_call_handler( PyObject *_self_and_name_tuple, PyObject * )
|
||||
{
|
||||
try
|
||||
|
@ -1545,7 +1546,7 @@ extern "C" PyObject *method_noargs_call_handler( PyObject *_self_and_name_tuple,
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
#if 0
|
||||
// #if 0
|
||||
try
|
||||
{
|
||||
Tuple self_and_name_tuple( _self_and_name_tuple );
|
||||
|
@ -1568,10 +1569,11 @@ extern "C" PyObject *method_noargs_call_handler( PyObject *_self_and_name_tuple,
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
// #else
|
||||
return 0;
|
||||
#endif
|
||||
// #endif
|
||||
}
|
||||
#endif
|
||||
|
||||
extern "C" PyObject *method_varargs_call_handler( PyObject *_self_and_name_tuple, PyObject *_args )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user