lib/pycall/libpython.rb in pycall-0.1.0.alpha.20170403 vs lib/pycall/libpython.rb in pycall-0.1.0.alpha.20170419a
- old
+ new
@@ -189,11 +189,10 @@
attach_function :PyObject_GetAttrString, [PyObjectStruct.by_ref, :string], PyObjectStruct.by_ref
attach_function :PyObject_SetAttrString, [PyObjectStruct.by_ref, :string, PyObjectStruct.by_ref], :int
attach_function :PyObject_HasAttrString, [PyObjectStruct.by_ref, :string], :int
attach_function :PyObject_GetItem, [PyObjectStruct.by_ref, PyObjectStruct.by_ref], PyObjectStruct.by_ref
attach_function :PyObject_SetItem, [PyObjectStruct.by_ref, PyObjectStruct.by_ref, PyObjectStruct.by_ref], :int
- attach_function :PyObject_DelItem, [PyObjectStruct.by_ref, PyObjectStruct.by_ref], :int
attach_function :PyObject_Call, [PyObjectStruct.by_ref, PyObjectStruct.by_ref, PyObjectStruct.by_ref], PyObjectStruct.by_ref
attach_function :PyObject_IsInstance, [PyObjectStruct.by_ref, PyObjectStruct.by_ref], :int
attach_function :PyObject_Dir, [PyObjectStruct.by_ref], PyObjectStruct.by_ref
attach_function :PyObject_Repr, [PyObjectStruct.by_ref], PyObjectStruct.by_ref
attach_function :PyObject_Str, [PyObjectStruct.by_ref], PyObjectStruct.by_ref
@@ -278,12 +277,10 @@
# List
attach_function :PyList_New, [:ssize_t], PyObjectStruct.by_ref
attach_function :PyList_Size, [PyObjectStruct.by_ref], :ssize_t
- attach_function :PyList_GetItem, [PyObjectStruct.by_ref, :ssize_t], PyObjectStruct.by_ref
- attach_function :PyList_SetItem, [PyObjectStruct.by_ref, :ssize_t, PyObjectStruct.by_ref], :int
attach_function :PyList_Append, [PyObjectStruct.by_ref, PyObjectStruct.by_ref], :int
# Sequence
attach_function :PySequence_Size, [PyObjectStruct.by_ref], :ssize_t
@@ -307,11 +304,9 @@
# Set
attach_function :PySet_Size, [PyObjectStruct.by_ref], :ssize_t
attach_function :PySet_Contains, [PyObjectStruct.by_ref, PyObjectStruct.by_ref], :int
- attach_function :PySet_Add, [PyObjectStruct.by_ref, PyObjectStruct.by_ref], :int
- attach_function :PySet_Discard, [PyObjectStruct.by_ref, PyObjectStruct.by_ref], :int
# Module
attach_function :PyModule_GetDict, [PyObjectStruct.by_ref], PyObjectStruct.by_ref