mrkn / pycall.rb

Calling Python functions from the Ruby language
MIT License
1.05k stars 72 forks source link

Test failures on Ruby >= 3.3 #180

Closed mrkn closed 3 months ago

mrkn commented 3 months ago
  1) PyCall::PyObjectWrapper#[]= when the given index is an Enumerable that is created by Range#step 
     Failure/Error: LibPython::Helpers.setitem(__pyptr__, key, value)

     PyCall::PyError:
       <class 'TypeError'>: list indices must be integers or slices, not PyCall.ruby_object
     # ./lib/pycall/pyobject_wrapper.rb:89:in `setitem'
     # ./lib/pycall/pyobject_wrapper.rb:89:in `[]='
     # ./spec/pycall/pyobject_wrapper_spec.rb:189:in `block (4 levels) in <module:PyCall>'

  2) PyCall::PyObjectWrapper#[] when the given index is an Enumerable that is created by Range#step 
     Failure/Error: LibPython::Helpers.getitem(__pyptr__, key)

     PyCall::PyError:
       <class 'TypeError'>: list indices must be integers or slices, not PyCall.ruby_object
     # ./lib/pycall/pyobject_wrapper.rb:85:in `getitem'
     # ./lib/pycall/pyobject_wrapper.rb:85:in `[]'
     # ./spec/pycall/pyobject_wrapper_spec.rb:162:in `block (4 levels) in <module:PyCall>'