Sha256: 0fb0cc03ed47a7e5167a765f82d32ef0d1b8d87ea5b8881fc62d675700097d8f

Contents?: true

Size: 683 Bytes

Versions: 2

Compression:

Stored size: 683 Bytes

Contents

require "rubypython_bridge"
p RubyPythonBridge.func_with_module("cPickle","loads","(dp1\nS'a'\nS'n'\ns(I1\nS'2'\ntp2\nI4\ns.")
RubyPythonBridge.start
CPickle=RubyPythonBridge.import("cPickle")
p CPickle
p CPickle.loads("(dp1\nS'a'\nS'n'\ns(I1\nS'2'\ntp2\nI4\ns.")
p dumped_array=CPickle.dumps([1,2,3,4])
p CPickle.loads(dumped_array)
begin
  p CPickle.splack
rescue
  p $!
end
p CPickle.PicklingError
# p CPickle.instance_variable_get("@pdict")
# CPickle.free_pobj
ObjectSpace.each_object(RubyPythonBridge::RubyPyModule) do |o|
  o.free_pobj
end
p RubyPythonBridge.stop

RubyPythonBridge.start
RubyPythonBridge.import "urllib"
RubyPythonBridge.import "cPickle"
RubyPythonBridge.stop

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubypython-0.2.0 ext/rubypython_bridge/test.rb
rubypython-0.2.1 ext/rubypython_bridge/test.rb