lib/pycall/pyobject.rb in pycall-0.1.0.alpha.20170302 vs lib/pycall/pyobject.rb in pycall-0.1.0.alpha.20170307
- old
+ new
@@ -32,11 +32,11 @@
RICH_COMPARISON_OPCODES.keys.each do |op|
define_method(op) {|other| rich_compare(other, op) }
end
def py_none?
- to_ptr == LibPython.Py_None.to_ptr
+ to_ptr == PyCall.None.to_ptr
end
def kind_of?(klass)
case klass
when PyObject, PyTypeObject
@@ -105,10 +105,10 @@
raise PyError.fetch
end
def **(other)
other = Conversions.from_ruby(other)
- value = LibPython.PyNumber_Power(self, other, LibPython.Py_None)
+ value = LibPython.PyNumber_Power(self, other, PyCall.None)
return value.to_ruby unless value.null?
raise PyError.fetch
end
def coerce(other)