Lichen

Annotated lib/native/locale.py

901:a616c0c86058
2019-05-20 Paul Boddie Demonstrate undesirable side-effects caused by escaping temporary objects. temporary-object-experiment
paul@375 1
#!/usr/bin/env python
paul@375 2
paul@375 3
"""
paul@375 4
Native library functions for locales.
paul@375 5
paul@375 6
None of these are actually defined here. Instead, native implementations are
paul@375 7
substituted when each program is built. It is, however, important to declare
paul@375 8
non-core exceptions used by the native functions because they need to be
paul@375 9
identified as being needed by the program.
paul@375 10
paul@795 11
Copyright (C) 2016, 2017 Paul Boddie <paul@boddie.org.uk>
paul@375 12
paul@375 13
This program is free software; you can redistribute it and/or modify it under
paul@375 14
the terms of the GNU General Public License as published by the Free Software
paul@375 15
Foundation; either version 3 of the License, or (at your option) any later
paul@375 16
version.
paul@375 17
paul@375 18
This program is distributed in the hope that it will be useful, but WITHOUT
paul@375 19
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
paul@375 20
FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
paul@375 21
details.
paul@375 22
paul@375 23
You should have received a copy of the GNU General Public License along with
paul@375 24
this program.  If not, see <http://www.gnu.org/licenses/>.
paul@375 25
"""
paul@375 26
paul@795 27
# NOTE: Example values used to provide type information.
paul@795 28
paul@795 29
def getlocale(category): return "" or None
paul@795 30
def setlocale(category, value): return "" or None
paul@375 31
paul@375 32
# vim: tabstop=4 expandtab shiftwidth=4