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@375 | 1 | import locale |
paul@375 | 2 | |
paul@375 | 3 | print locale.getlocale() |
paul@375 | 4 | print locale.initlocale() |
paul@375 | 5 | print locale.getlocale() |
paul@375 | 6 | print locale.setlocale(locale.LC_CTYPE, "en_GB.UTF-8") |
paul@375 | 7 | print locale.getlocale() |