4 ms·
True, but it's fairly easy to write: def self.open File.open(...) { |f| yield f } end Unless they need custom destructor actions, in which case
by RX14 9y ago
True, but it's fairly easy to write:
def self.open
File.open(...) { |f| yield f }
end
Unless they need custom destructor actions, in which case presumably they'd have to implement that manually in python too.
- masklinn 9y agoYup and yup.