cpython/Lib
Barry Warsaw a1ce93f87c From http://mail.python.org/pipermail/i18n-sig/2003-April/001557.html
- Expose NullTranslations and GNUTranslations to __all__

- Set the default charset to iso-8859-1.  It used to be None, which
would cause problems with .ugettext() if the file had no charset
parameter.  Arguably, the po/mo file would be broken, but I still think
iso-8859-1 is a reasonable default.

- Add a "coerce" default argument to GNUTranslations's constructor.  The
reason for this is that in Zope, we want all msgids and msgstrs to be
Unicode.  For the latter, we could use .ugettext() but there isn't
currently a mechanism for Unicode-ifying msgids.

The plan then is that the charset parameter specifies the encoding for
both the msgids and msgstrs, and both are decoded to Unicode when read.
For example, we might encode po files with utf-8. I think the GNU
gettext tools don't care.

Since this could potentially break code [*] that wants to use the
encoded interface .gettext(), the constructor flag is added, defaulting
to False.  Most code I suspect will want to set this to True and use
.ugettext().

- A few other minor changes from the Zope project, including asserting
that a zero-length msgid must have a Project-ID-Version header for it to
be counted as the metadata record.
2003-04-11 18:36:43 +00:00
..
bsddb Adds support for the DBEnv->set_timeout() method. 2003-03-27 17:23:29 +00:00
compiler SF patch #701494: more apply removals 2003-04-06 09:01:11 +00:00
csv hoist contents of csv submodule up to the package level 2003-04-10 17:16:15 +00:00
curses SF patch #701494: more apply removals 2003-04-06 09:01:11 +00:00
distutils Patch #718551: cygwinccompiler.get_versions() patch 2003-04-09 20:13:59 +00:00
email Fix a comment 2003-04-02 04:51:33 +00:00
encodings Revert Patch #670715: iconv support. 2003-04-03 04:49:12 +00:00
hotshot Move testing code into "if __name__ == '__main__'" so it's not run on import. 2003-03-28 16:28:48 +00:00
idlelib Correct error in last checkin noticed by Neal Norwitz. And some more. 2003-03-22 20:11:14 +00:00
lib-old
lib-tk SF patch #701494: more apply removals 2003-04-06 09:01:11 +00:00
logging Undo the apply() removals; this code needs to run under Python 1.5.2. 2003-03-02 20:47:29 +00:00
plat-aix3
plat-aix4
plat-atheos
plat-beos5
plat-darwin These were somehow never added to CVS. 2002-12-30 22:14:35 +00:00
plat-freebsd2
plat-freebsd3
plat-freebsd4
plat-freebsd5
plat-generic
plat-irix5
plat-irix6
plat-linux1
plat-linux2 Regenerate. Fixes #618012. 2002-11-23 12:09:28 +00:00
plat-mac Detabbed. 2003-04-09 13:25:43 +00:00
plat-netbsd1
plat-next3
plat-os2emx
plat-riscos Migrate definitions of several platform-dependent path-related variables 2003-02-14 19:35:31 +00:00
plat-sunos4
plat-sunos5
plat-unixware7
site-packages
test From http://mail.python.org/pipermail/i18n-sig/2003-April/001557.html 2003-04-11 18:36:43 +00:00
xml SF patch #701494: more apply removals 2003-04-06 09:01:11 +00:00
__future__.py
__phello__.foo.py
_strptime.py SF patch #691928: Use datetime in _strptime 2003-03-09 07:44:42 +00:00
aifc.py
anydbm.py
asynchat.py [Patch #649762] Fix for asynchat endless loop 2003-03-10 15:16:54 +00:00
asyncore.py Fix comment typo 2003-02-14 01:13:01 +00:00
atexit.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
audiodev.py
base64.py
BaseHTTPServer.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
Bastion.py Sabotage rexec.py. It is not safe since the new-style classes. 2003-01-06 15:43:34 +00:00
bdb.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
binhex.py
bisect.py
calendar.py SF 685011: calendar module overflow handling 2003-02-13 22:58:02 +00:00
cgi.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
CGIHTTPServer.py Fix bug 427345 [related to IE's additional input on POST request]. 2003-01-08 18:53:18 +00:00
cgitb.py Fix name error, found by pychecker. 2002-12-31 01:08:35 +00:00
chunk.py
cmd.py Whitespace normalization. 2003-02-19 02:35:07 +00:00
code.py - Finally fixed the bug in compile() and exec where a string ending 2003-02-13 22:07:59 +00:00
codecs.py Fix typos. 2003-02-02 23:08:27 +00:00
codeop.py - Finally fixed the bug in compile() and exec where a string ending 2003-02-13 22:07:59 +00:00
colorsys.py
commands.py
compileall.py Catch IOErrors. 2003-01-16 11:02:43 +00:00
ConfigParser.py Further cleanup of exceptions. All interpolation-related exceptions 2002-12-31 17:23:27 +00:00
Cookie.py Patch #655760: add warnings when the unsafe *Cookie classes are instantiated 2002-12-29 16:44:31 +00:00
copy.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
copy_reg.py Remove _reduce_2, it's now implemented in C. 2003-02-21 22:20:31 +00:00
dbhash.py
difflib.py Added missing names to __all__. 2002-10-30 06:09:58 +00:00
dircache.py
dis.py Whitespace normalization. 2003-03-07 17:30:48 +00:00
doctest.py Patch #486438: Make module argument to testmod optional. 2002-11-22 08:23:09 +00:00
dumbdbm.py Fix comment, mode really is used 2003-03-01 22:58:00 +00:00
dummy_thread.py Whitespace normalization. 2003-01-29 03:49:43 +00:00
dummy_threading.py Brett Cannon's dummy_thread and dummy_threading modules (SF patch 2002-12-30 22:30:22 +00:00
FCNTL.py
filecmp.py Module review: 2003-02-27 00:05:31 +00:00
fileinput.py Test that chmod() actually exists before calling it (it doesn't on MacOS9). 2003-01-08 16:33:16 +00:00
fnmatch.py
formatter.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
fpformat.py
ftplib.py
getopt.py A few naughty external scripts do 'raise getopt.error, "blah"', and 2003-02-06 19:52:56 +00:00
getpass.py Fix SF #640094, on win32 getpass runs into unix_getpass 2002-11-20 23:15:54 +00:00
gettext.py From http://mail.python.org/pipermail/i18n-sig/2003-April/001557.html 2003-04-11 18:36:43 +00:00
glob.py
gopherlib.py
gzip.py [Patch #654421 from Matthew Mueller] 2003-02-05 21:35:07 +00:00
heapq.py Fix typo in comment. 2002-11-13 14:38:17 +00:00
hmac.py
htmlentitydefs.py
htmllib.py
HTMLParser.py Accept commas in unquoted attribute values. 2003-03-14 16:21:57 +00:00
httplib.py Reverted the previous change to read() and readline(). 2003-03-06 16:31:48 +00:00
ihooks.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
imaplib.py Replace criterium with criterion. Fixes #705120. 2003-03-27 16:59:38 +00:00
imghdr.py
imputil.py
inspect.py Make module lookup a little more robust (certain kinds of fiddling to 2003-03-28 16:29:50 +00:00
keyword.py Patrick K. O'Brien notices that kwlist was missing from __all__. 2002-10-30 05:17:22 +00:00
linecache.py
locale.py Support '' as the argument for the setlocale emulation. Fixes #678259. 2003-03-30 15:42:13 +00:00
macpath.py Getting rid of macfs. 2003-02-27 23:18:46 +00:00
macurl2path.py
mailbox.py Undocumented feature: MHMailbox sets the msg object's _mh_msgno 2002-09-12 05:08:00 +00:00
mailcap.py
markupbase.py Patch #545300: Support marked sections. 2003-03-30 14:25:40 +00:00
mhlib.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
mimetools.py
mimetypes.py Add Shockwave Flash. 2003-01-04 14:11:38 +00:00
MimeWriter.py
mimify.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
modulefinder.py Patch #698082 from Thomas Heller: Modulefinder didn't exclude modules 2003-03-05 17:23:48 +00:00
multifile.py Back out multifile.py 1.19 and 1.20. Fixes #514676. 2002-09-22 09:01:08 +00:00
mutex.py
netrc.py
new.py
nntplib.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
ntpath.py make nt altsep forward slash - closes bug 709428 2003-03-28 22:23:24 +00:00
nturl2path.py
opcode.py new opcode module - extract opcode definitions from dis.py - eventually 2003-02-27 21:27:52 +00:00
optparse.py Tweak __version__ -- the current code is between Optik 1.4 and 1.4.1. 2003-01-04 21:54:26 +00:00
os.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
os2emxpath.py Migrate definitions of several platform-dependent path-related variables 2003-02-14 19:35:31 +00:00
pdb.doc
pdb.py Detabified. 2003-04-09 19:36:34 +00:00
pickle.py Remove unused _better_reduce (which will disappear soon) and 2003-02-18 22:49:10 +00:00
pickletools.py dis(): Added an optional memo argument, so that multiple pickles in a 2003-02-05 19:55:53 +00:00
pipes.py
pkgutil.py Last week we discussed adding this module to the standard library. 2002-12-23 16:30:00 +00:00
popen2.py
poplib.py
posixfile.py
posixpath.py Migrate definitions of several platform-dependent path-related variables 2003-02-14 19:35:31 +00:00
pprint.py - PrettyPrinter.isreadable(), .isrecursive(): 2002-12-31 07:14:18 +00:00
pre.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
profile.doc
profile.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
pstats.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
pty.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
py_compile.py Getting rid of macfs. 2003-02-27 23:18:46 +00:00
pyclbr.py Another big update, fixing all known bugs related to nesting functions 2002-12-03 08:14:35 +00:00
pydoc.py SF patch #706338, Fix a few broken links in pydoc by Greg Chapman 2003-03-30 20:31:34 +00:00
Queue.py Use the dummy_thread module in Queue.py and tempfile.py. 2002-12-30 22:36:09 +00:00
quopri.py
random.py * Migrate sample distribution test from random.py to test_random.py. 2003-01-17 17:23:23 +00:00
re.py Give people who run "pydoc re" a clue. 2003-01-31 00:35:58 +00:00
reconvert.py
regex_syntax.py
regsub.py
repr.py [680789] Debug with long array takes forever 2003-02-05 18:29:34 +00:00
rexec.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
rfc822.py unquote(): Didn't properly de-backslash-ify. This patch (adapted from 2002-09-11 02:32:14 +00:00
rlcompleter.py
robotparser.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
sched.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
sets.py SF bug 693121: Set == non-Set is a TypeError. 2003-03-02 00:19:49 +00:00
sgmllib.py Patch #545300: Support marked sections. 2003-03-30 14:25:40 +00:00
shelve.py flesh out open() docstring 2003-01-21 01:53:09 +00:00
shlex.py
shutil.py Fix SF bug #691276, shutil.copytree documentation bug 2003-02-23 21:36:32 +00:00
SimpleHTTPServer.py
SimpleXMLRPCServer.py Whitespace normalization. 2003-01-29 03:49:43 +00:00
site.py Patch #671666: Alias ANSI code page to "mbcs". 2003-03-03 09:34:01 +00:00
smtpd.py
smtplib.py Patch #572031: AUTH method LOGIN for smtplib 2002-10-06 17:55:08 +00:00
sndhdr.py
socket.py The socket module now always uses the _socketobject wrapper class, even on 2003-03-30 04:54:24 +00:00
SocketServer.py Clearing out old patch queue. Patch #558547, make SocketServer more 2003-01-02 03:07:48 +00:00
sre.py Add finditer to __all__ (when defining it at all). 2002-10-14 12:22:17 +00:00
sre_compile.py Fix from SF patch #633359 by Greg Chapman for SF bug #610299: 2003-02-24 01:18:35 +00:00
sre_constants.py
sre_parse.py
stat.py
statcache.py
statvfs.py
string.py Attempt to make all the various string *strip methods the same. 2003-04-10 22:35:32 +00:00
StringIO.py Make StringIO its own iterator, similar to real files. 2003-01-31 16:04:15 +00:00
stringold.py
sunau.py
sunaudio.py
symbol.py Updates to track Grammar changes. The patch to token.py loosens the regexp to 2002-10-03 09:42:01 +00:00
symtable.py
tabnanny.py
tarfile.py Fix test_tarfile failure when gzip is not available 2003-04-11 03:05:56 +00:00
telnetlib.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
tempfile.py Getting rid of macfs. 2003-03-21 12:55:38 +00:00
TERMIOS.py
textwrap.py Fix docstring typo 2003-02-14 01:14:15 +00:00
this.py
threading.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
timeit.py add a #! line for unix weenies 2003-04-08 19:49:40 +00:00
toaiff.py
token.py Updates to track Grammar changes. The patch to token.py loosens the regexp to 2002-10-03 09:42:01 +00:00
tokenize.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
trace.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
traceback.py
tty.py
types.py [ 683376 ] Adding NotImplementedType to types.py 2003-02-10 19:38:33 +00:00
tzparse.py
unittest.py SF bug #715145: unittest.py still uses != in failUnlessEqual 2003-04-04 22:56:42 +00:00
urllib.py SF 698520: Iterator for urllib.URLOpener 2003-03-09 05:33:33 +00:00
urllib2.py Fix NameError exception ('name' undefined) 2002-11-06 15:40:05 +00:00
urlparse.py Patch #712124: Remove obsolete comment. 2003-03-30 16:28:26 +00:00
user.py SF # 555779, import user doesn't work with CGIs 2002-09-05 21:08:25 +00:00
UserDict.py SF patch #693753: fix for bug 639806: default for dict.pop 2003-03-06 23:54:28 +00:00
UserList.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
UserString.py Attempt to make all the various string *strip methods the same. 2003-04-10 22:35:32 +00:00
uu.py
warnings.py Fix bug 683658 - PyErr_Warn may cause import deadlock. 2003-02-19 00:33:33 +00:00
wave.py
weakref.py SF patch #667730: More DictMixin 2003-03-09 07:05:43 +00:00
webbrowser.py Fixed bug 2002-11-25 17:25:04 +00:00
whichdb.py
whrandom.py
xdrlib.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
xmllib.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
xmlrpclib.py Get rid of many apply() calls. 2003-02-27 20:14:51 +00:00
zipfile.py Patch #661719: Expose compilation errors as exceptions on request. 2003-01-15 11:51:06 +00:00