]> granicus.if.org Git - python/commit
- merged setlocale and set_locale. the internal setlocale
authorFredrik Lundh <fredrik@pythonware.com>
Sun, 9 Jul 2000 17:12:58 +0000 (17:12 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Sun, 9 Jul 2000 17:12:58 +0000 (17:12 +0000)
commit6c86b99dc1e2d02cb4631df65f0726416a783087
tree97ade424c0b4c0d33715d968d14260da2e531cc5
parentc70b4483d2c5042c68198dc7c4945ef3cfc95b27
- merged setlocale and set_locale.  the internal setlocale
  function is overridden by a python version which accepts
  *either* a string (old behaviour) or a locale tuple.

- renamed a few methods (for consistency):

        get_locale => getlocale
        get_default_locale => getdefaultlocale
        set_to_default => resetlocale (!)

- the _locale implementation module can now implement
  an optional _getdefaultlocale function.  if that function
  isn't available, a POSIX-based approach is used (checking
  LANG and other environment variables, as usual).

(patch #100765)
Lib/locale.py