2018-07-03 | Paul Boddie | file changeset files shortlog | Take advantage of context testing when acquiring functions for invocation. Since a context whose nature has been determined will have been tested, either as a consequence of deduction or at run-time, use of __get_function (which tests the context again) is unnecessary. |
paul@435 | 1 | s = raw_input("Reading...") |
paul@435 | 2 | print s |
paul@435 | 3 | print s.__class__ |
paul@435 | 4 | print s.encoding |