We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5f4275 commit df21b83Copy full SHA for df21b83
README.md
@@ -53,9 +53,8 @@ Or install it yourself as:
53
Here is a simple example to call Python's `math.sin` function and compare it to
54
the `Math.sin` in Ruby:
55
56
- require 'pycall/import'
57
- include PyCall::Import
58
- pyimport :math
+ require 'pycall'
+ math = PyCall.import_module("math")
59
math.sin(math.pi / 4) - Math.sin(Math::PI / 4) # => 0.0
60
61
Type conversions from Ruby to Python are automatically performed for numeric,
0 commit comments