- 11 Nis, 2003 12 kayıt (commit)
-
-
Skip Montanaro yazdı
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
to iso-8859-1. GNUTranslations._parse(): Back out the addition of a test for Project-ID-Version in the metadata. This was deliberately removed in response to SF patch #700839. Also, re-organize the code in _parse() so we parse the metadata header containing the charset parameter before we try to decode any strings using charset.
-
Skip Montanaro yazdı
-
Neal Norwitz yazdı
-
Guido van Rossum yazdı
- range() now works even if the arguments are longs with magnitude larger than sys.maxint, as long as the total length of the sequence fits. E.g., range(2**100, 2**101, 2**100) is the following list: [1267650600228229401496703205376L]. (SF patch #707427.)
-
http://mail.python.org/pipermail/i18n-sig/2003-April/001557.htmlBarry Warsaw yazdı
- 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.
-
Jack Jansen yazdı
-
Neal Norwitz yazdı
Update configure and test to use proper timezone specifications
-
Jack Jansen yazdı
missing bits (well, all the bits I could think of) and updated the rest.
-
Fred Drake yazdı
-
Neal Norwitz yazdı
The module would exist, but be empty if already imported. This change ensures we have gzip available.
-
- 10 Nis, 2003 6 kayıt (commit)
-
-
Neal Norwitz yazdı
* Doc - add doc for when functions were added * UserString * string object methods * string module functions 'chars' is used for the last parameter everywhere. These changes will be backported, since part of the changes have already been made, but they were inconsistent.
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
-
Guido van Rossum yazdı
return. Setting an exception can mess with the exception state, and continuing is definitely wrong (since type is dereferenced later on). Some code that calls this seems to be prepared for a NULL exception type, so let's be safe rather than sorry and simply assume there's nothing to normalize in this case.
-
Skip Montanaro yazdı
-
Raymond Hettinger yazdı
(contributed by Brett Cannon)
-
- 09 Nis, 2003 22 kayıt (commit)
-
-
Jeremy Hylton yazdı
Bugfix candidate.
-
Jeremy Hylton yazdı
Bug fix candidate.
-
Jeremy Hylton yazdı
-
Jason Tishler yazdı
The cygwinccompiler.get_versions() function only handles versions numbers of the form "x.y.z". The attached patch enhances get_versions() to handle "x.y" too (i.e., the ".z" is optional). This change causes the unnecessary "--entry _DllMain@12" link option to be suppressed for recent Cygwin and Mingw toolchains. Additionally, it directs recent Mingw toolchains to use gcc instead of dllwrap during linking.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
MessageBeep().
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
Removed dead code.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
- CHECK_VALID() was checking the wrong value for a closed fd - fseek(&_iob[fileno], ...) doesn't work for fileno >= 20
-
Guido van Rossum yazdı
exceptionally large totals etc.
-
Guido van Rossum yazdı
recursively. - pdb has a new command, "debug", which lets you step through arbitrary code from the debugger's (pdb) prompt.
-
Fred Drake yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
of saying x->ob_type.
-
Andrew M. Kuchling yazdı
-
Guido van Rossum yazdı
typecheck that guarantees it's a string, and BTW string subclasses could hide references.
-
Jason Tishler yazdı
Currently, the cygwinccompiler.py compiler handling in distutils is invoking the cygwin and mingw compilers with the -static option. Logically, this means that the linker should choose to link to static libraries instead of shared/dynamically linked libraries. Current win32 binutils expect import libraries to have a .dll.a suffix and static libraries to have .a suffix. If -static is passed, it will skip the .dll.a libraries. This is pain if one has a tree with both static and dynamic libraries using this naming convention, and wish to use the dynamic libraries. The -static option being passed in distutils is to get around a bug in old versions of binutils where it would get confused when it found the DLLs themselves. The decision to use static or shared libraries is site or package specific, and should be left to the setup script or to command line options.
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Andrew M. Kuchling yazdı
-