diff --git a/CXX/Python3/Objects.hxx b/CXX/Python3/Objects.hxx index 96f824c8ffc4..2847512f065a 100644 --- a/CXX/Python3/Objects.hxx +++ b/CXX/Python3/Objects.hxx @@ -413,7 +413,7 @@ namespace Py { } - bool accepts( PyObject *pyob ) + virtual bool accepts( PyObject *pyob ) const { return pyob == NULL; } @@ -1520,7 +1520,7 @@ namespace Py int operator-( const iterator &other ) const { - if( seq.ptr() != other.seq.ptr() ) + if( seq->ptr() != other.seq->ptr() ) throw RuntimeError( "SeqBase::iterator comparison error" ); return count - other.count;