lib/rubypython/operators.rb in rubypython-0.3.1 vs lib/rubypython/operators.rb in rubypython-0.3.2
- old
+ new
@@ -105,7 +105,14 @@
#Delegates Comparison to Python.
def <=>(other)
PyMain.cmp(self, other)
end
+ #For internal use only. Called by {RubyPython} when the
+ #interpreter is started or stopped so that the neccesary
+ #preperation or cleanup can be done.
+ def self.update(status)
+ @@operator = nil if status.equal? :stop
+ end
+
end
end