Skip to content
Permalink
Browse files

Little fixes to allow pycxx to compile with python3

  • Loading branch information...
yorikvanhavre committed Oct 5, 2014
1 parent 3c091ac commit 8d2e08ffa05486bfa42b4d9e5e4fd0aab92c222e
Showing with 7 additions and 5 deletions.
  1. +2 −2 src/CXX/Python3/Objects.hxx
  2. +5 −3 src/CXX/Python3/cxx_extensions.cxx
@@ -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 )
{

0 comments on commit 8d2e08f

Please sign in to comment.
You can’t perform that action at this time.