lib/rubypython/operators.rb in rubypython-0.6.2 vs lib/rubypython/operators.rb in rubypython-0.6.3

- old
+ new

@@ -7,13 +7,11 @@ # Provides access to the \Python _operator_ module. def self.operator_ @@operator ||= RubyPython.import('operator') end - # Creates a method to delegate a binary operation. The result of the - # operation will follow the conversion rules appropriate to the current - # mode of operation as set by {RubyPython.legacy_mode}. + # Creates a method to delegate a binary operation. # [rname] The name of the Ruby method for this operation. Can be either a # Symbol or a String. # [pname] The name of the \Python magic method to which this method should # be delegated. def self.bin_op(rname, pname) @@ -35,13 +33,11 @@ define_method rname.to_sym do |other| RubyPython::Operators.operator_.__send__(pname, self, other).rubify end end - # Creates a method to delegate a relational operator. The result of the - # operation will follow the conversion rules appropriate to the current - # mode of operation as set by {RubyPython.legacy_mode}. These methods are - # implemented with calls the _operator_ module. + # Creates a method to delegate a relational operator. + # These methods are implemented with calls the _operator_ module. # [rname] The name of the Ruby method for this operation. Can be a Symbol # or a String. # [pname] The name of the \Python magic method to which this method should # be delegated. def self.unary_op(rname, pname)