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 64db7bf commit e06ebd3Copy full SHA for e06ebd3
README.md
@@ -47,9 +47,11 @@ $ env PYTHON_CONFIGURE_OPTS='--enable-shared' pyenv install 3.7.2
47
Here is a simple example to call Python's `math.sin` function and compare it to
48
the `Math.sin` in Ruby:
49
50
- require 'pycall'
51
- math = PyCall.import_module("math")
52
- math.sin(math.pi / 4) - Math.sin(Math::PI / 4) # => 0.0
+```ruby
+require 'pycall'
+math = PyCall.import_module("math")
53
+math.sin(math.pi / 4) - Math.sin(Math::PI / 4) # => 0.0
54
+```
55
56
Type conversions from Ruby to Python are automatically performed for numeric,
57
boolean, string, arrays, and hashes.
0 commit comments