lokeshh_rubypython 0.7 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubypython/operators.rb +7 -7
- data/lib/rubypython/rubypyproxy.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ad98ebd8085ef58bef5d9039455b6122cc1f93b
|
4
|
+
data.tar.gz: 006cd084ae419fb00d5cfe5bf86f36ef32501f28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6d204b5ffe1c18b6c32d9b01a1cd5e8a51708d51eb258d408b53682033469a055bafceef07206f917d16eb1dcca3cd7d03578064a62853889d2d41e927159a8
|
7
|
+
data.tar.gz: d1ac4e5be49ba604e8bf9fa2641d2f95c9a75e7f76a2d31b546c24ef122028e96f72714c6cd81e9569639b1b254de523454d2a98873a4b01793a029779daa041
|
data/lib/rubypython/operators.rb
CHANGED
@@ -31,11 +31,11 @@ module RubyPython::Operators
|
|
31
31
|
# be delegated.
|
32
32
|
def self.rel_op(rname, pname)
|
33
33
|
define_method rname.to_sym do |other|
|
34
|
-
RubyPython::Operators.operator_.__send__(pname, self, other)
|
34
|
+
RubyPython::Operators.operator_.__send__(pname, self, other)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
# Creates a method to delegate a relational operator.
|
38
|
+
# Creates a method to delegate a relational operator.
|
39
39
|
# These methods are implemented with calls the _operator_ module.
|
40
40
|
# [rname] The name of the Ruby method for this operation. Can be a Symbol
|
41
41
|
# or a String.
|
@@ -72,11 +72,11 @@ module RubyPython::Operators
|
|
72
72
|
end
|
73
73
|
|
74
74
|
[
|
75
|
-
[:==, '
|
76
|
-
[:<, '
|
77
|
-
[:<=, '
|
78
|
-
[:>, '
|
79
|
-
[:>=, '
|
75
|
+
[:==, '__eq__'],
|
76
|
+
[:<, '__lt__'],
|
77
|
+
[:<=, '__le__'],
|
78
|
+
[:>, '__gt__'],
|
79
|
+
[:>=, '__ge__'],
|
80
80
|
[:equal?, 'is_']
|
81
81
|
].each do |args|
|
82
82
|
rel_op *args
|
@@ -28,7 +28,7 @@ module RubyPython
|
|
28
28
|
# sys.version { |v| v.rubify.split(' ') }
|
29
29
|
# end
|
30
30
|
# # => [ "2.6.1", … ]
|
31
|
-
#
|
31
|
+
#
|
32
32
|
# == Passing Procs and Methods to \Python Methods
|
33
33
|
# RubyPython supports passing Proc and Method objects to \Python methods.
|
34
34
|
# The Proc or Method object must be passed explicitly. As seen above,
|