]> granicus.if.org Git - python/log
python
19 years agoFix SF bug #1167751, Argument genexp corner case
Neal Norwitz [Fri, 21 Oct 2005 06:24:02 +0000 (06:24 +0000)]
Fix SF bug #1167751, Argument genexp corner case

Incorrect code was generated for:

  foo(a = i for i in range(10))

This should have generated a SyntaxError.  Fix the Grammar so
it raises a SyntaxError and test it.

I'm uncertain whether this should be backported.  It makes
something that was Syntactically valid invalid.  However,
the code would either be completely broken or do the wrong thing.

19 years agoFree coding spec (cs) if there was an error to prevent mem leak. Maybe backport...
Neal Norwitz [Fri, 21 Oct 2005 06:05:33 +0000 (06:05 +0000)]
Free coding spec (cs) if there was an error to prevent mem leak.  Maybe backport candidate

19 years agoDon't use a string exception since it's deprecated
Neal Norwitz [Fri, 21 Oct 2005 06:00:24 +0000 (06:00 +0000)]
Don't use a string exception since it's deprecated

19 years agoOops, "=" is not a comparison operator
Neal Norwitz [Fri, 21 Oct 2005 05:15:07 +0000 (05:15 +0000)]
Oops, "=" is not a comparison operator

19 years agoAdd comment lost from AST merge
Neal Norwitz [Fri, 21 Oct 2005 04:34:18 +0000 (04:34 +0000)]
Add comment lost from AST merge

19 years agoRemove INT_MIN that came from the AST merge.
Neal Norwitz [Fri, 21 Oct 2005 04:33:02 +0000 (04:33 +0000)]
Remove INT_MIN that came from the AST merge.
INT_MIN is used in Python/compile.c, but it was also used
in Objects/abstract.c Python/getargs.c.  If we need it for compile.c,
we can get it from the same place as the other files.

19 years agoFix some mods that got dropped from the AST merge
Neal Norwitz [Fri, 21 Oct 2005 04:28:38 +0000 (04:28 +0000)]
Fix some mods that got dropped from the AST merge

19 years agoUse the newer names for APIs after the AST merge
Neal Norwitz [Fri, 21 Oct 2005 04:23:36 +0000 (04:23 +0000)]
Use the newer names for APIs after the AST merge

19 years agoRemove dup declarations after AST merge
Neal Norwitz [Fri, 21 Oct 2005 04:19:49 +0000 (04:19 +0000)]
Remove dup declarations after AST merge

19 years agoMerge ast-branch to head
Jeremy Hylton [Thu, 20 Oct 2005 19:59:25 +0000 (19:59 +0000)]
Merge ast-branch to head

This change implements a new bytecode compiler, based on a
transformation of the parse tree to an abstract syntax defined in
Parser/Python.asdl.

The compiler implementation is not complete, but it is in stable
enough shape to run the entire test suite excepting two disabled
tests.

19 years agoEnhance the performance of two important Unicode character
Marc-André Lemburg [Thu, 20 Oct 2005 19:06:35 +0000 (19:06 +0000)]
Enhance the performance of two important Unicode character
type lookups: whitespace and linebreak.

These lookup tables are from the Python 1.6 version with the addition
of the 205F code point which was added as whitespace code point to Unicode
since then.

19 years agoadd missing word
Fred Drake [Thu, 20 Oct 2005 17:52:05 +0000 (17:52 +0000)]
add missing word

19 years agoDisable some tests in anticipation of merging ast-branch to the head
Jeremy Hylton [Thu, 20 Oct 2005 14:27:21 +0000 (14:27 +0000)]
Disable some tests in anticipation of merging ast-branch to the head

19 years agoFind bsd db v4 on gentoo (2005 i think)
Neal Norwitz [Thu, 20 Oct 2005 05:28:29 +0000 (05:28 +0000)]
Find bsd db v4 on gentoo (2005 i think)

19 years agoFix SF bug # 1330039, patch # 1331635 from Lars Gustaebel (tarfile maintainer)
Neal Norwitz [Thu, 20 Oct 2005 04:50:13 +0000 (04:50 +0000)]
Fix SF bug # 1330039, patch # 1331635 from Lars Gustaebel (tarfile maintainer)

Problem: if two files are assigned the same inode
number by the filesystem, the second one will be added
as a hardlink to the first, which means that the
content will be lost.

The patched code checks if the file's st_nlink is
greater 1. So only for files that actually have several
links pointing to them hardlinks will be created, which
is what GNU tar does.

Will backport.

19 years agoGet BSD DB working most for version 3.2
Neal Norwitz [Thu, 20 Oct 2005 04:36:08 +0000 (04:36 +0000)]
Get BSD DB working most for version 3.2

19 years agoGet bsddb module to compile with version 3.2 of BSD DB.
Neal Norwitz [Thu, 20 Oct 2005 04:30:15 +0000 (04:30 +0000)]
Get bsddb module to compile with version 3.2 of BSD DB.

19 years agoSF bug #1331563 ] string_subscript doesn't check for failed PyMem_Malloc. Will backport
Neal Norwitz [Thu, 20 Oct 2005 04:15:52 +0000 (04:15 +0000)]
SF bug #1331563 ] string_subscript doesn't check for failed PyMem_Malloc.  Will backport

19 years agoWhitespace corrections.
Marc-André Lemburg [Wed, 19 Oct 2005 22:39:02 +0000 (22:39 +0000)]
Whitespace corrections.

19 years agoBug fix for [ 1331062 ] utf 7 codec broken.
Marc-André Lemburg [Wed, 19 Oct 2005 22:33:31 +0000 (22:33 +0000)]
Bug fix for [ 1331062 ] utf 7 codec broken.

Backport candidate.

19 years agoSF bug #1328915, try to word kill a bit more generically. Backport candidate.
Neal Norwitz [Tue, 18 Oct 2005 05:07:49 +0000 (05:07 +0000)]
SF bug #1328915, try to word kill a bit more generically.  Backport candidate.

19 years agoDrop permissions for Gregory K Johnson.
Raymond Hettinger [Mon, 17 Oct 2005 03:37:26 +0000 (03:37 +0000)]
Drop permissions for Gregory K Johnson.

19 years agoAdd Nick Coghlan
Raymond Hettinger [Sun, 16 Oct 2005 11:17:30 +0000 (11:17 +0000)]
Add Nick Coghlan

19 years agoTeach unquote() to handle unicode inputs
Raymond Hettinger [Sat, 15 Oct 2005 16:41:53 +0000 (16:41 +0000)]
Teach unquote() to handle unicode inputs

19 years agoOptimised Placeholders handling of child loggers by using a dict rather than a list...
Vinay Sajip [Fri, 14 Oct 2005 09:36:35 +0000 (09:36 +0000)]
Optimised Placeholders handling of child loggers by using a dict rather than a list (much slower in the pathological case of hundreds of child Loggers to a Placeholder - problem reported by Ryan Blazecka).

19 years agoSF bug #1323739, C API doc for PySequence_Tuple duplicated
Neal Norwitz [Wed, 12 Oct 2005 03:58:14 +0000 (03:58 +0000)]
SF bug #1323739, C API doc for PySequence_Tuple duplicated

19 years agofix stupid typo
Fred Drake [Tue, 11 Oct 2005 20:26:05 +0000 (20:26 +0000)]
fix stupid typo

19 years agoAdded Host and Content-type headers to requests sent by HTTPHandler (suggested by...
Vinay Sajip [Tue, 11 Oct 2005 13:15:31 +0000 (13:15 +0000)]
Added Host and Content-type headers to requests sent by HTTPHandler (suggested by Steven Vereecken)

19 years agoSF bug #1323294, Minor error in the Library Reference doc. Will backport
Neal Norwitz [Tue, 11 Oct 2005 03:23:45 +0000 (03:23 +0000)]
SF bug #1323294, Minor error in the Library Reference doc.  Will backport

19 years agoClarify the docs for Py_UNICODE.
Marc-André Lemburg [Mon, 10 Oct 2005 19:08:41 +0000 (19:08 +0000)]
Clarify the docs for Py_UNICODE.

19 years agoBug #1245379: Add "unicode-1-1-utf-7" as an alias for "utf-7" as specified
Walter Dörwald [Sun, 9 Oct 2005 19:42:27 +0000 (19:42 +0000)]
Bug #1245379: Add "unicode-1-1-utf-7" as an alias for "utf-7" as specified
by RFC 1642.

19 years agoRemove trailing spaces.
Walter Dörwald [Sun, 9 Oct 2005 19:38:21 +0000 (19:38 +0000)]
Remove trailing spaces.

19 years agoFix indentation.
Walter Dörwald [Sun, 9 Oct 2005 19:28:35 +0000 (19:28 +0000)]
Fix indentation.

19 years agoFix errors in _synthesize because of missing basename attribute of
Georg Brandl [Sat, 8 Oct 2005 20:47:38 +0000 (20:47 +0000)]
Fix errors in _synthesize because of missing basename attribute of
browser controller classes.

19 years agoFix unit test failure -- the output received from Python can be empty,
Guido van Rossum [Sat, 8 Oct 2005 20:04:35 +0000 (20:04 +0000)]
Fix unit test failure -- the output received from Python can be empty,
but verify_valid_flag() wasn't expecting that.  Will backport.

19 years agoFixed bug where the logging message was wrongly being demoted from Unicode to string...
Vinay Sajip [Fri, 7 Oct 2005 08:35:36 +0000 (08:35 +0000)]
Fixed bug where the logging message was wrongly being demoted from Unicode to string (SF #1314107)

19 years agoPart of SF patch #1313939: Speedup charmap decoding by extending
Walter Dörwald [Thu, 6 Oct 2005 20:29:57 +0000 (20:29 +0000)]
Part of SF patch #1313939: Speedup charmap decoding by extending
PyUnicode_DecodeCharmap() the accept a unicode string as the mapping
argument which is used as a mapping table.

This code isn't used by any of the codecs yet.

19 years agoChange the internal "undefined codepoint" mark for CJKCodecs decoders
Hye-Shik Chang [Thu, 6 Oct 2005 15:51:59 +0000 (15:51 +0000)]
Change the internal "undefined codepoint" mark for CJKCodecs decoders
from U+FFFD to U+FFFE which is considered more appropriate.  (from
MAL's comment)

19 years agoSF #1313496: bisect C replacement doesn't accept named args
Raymond Hettinger [Wed, 5 Oct 2005 11:39:12 +0000 (11:39 +0000)]
SF #1313496:  bisect C replacement doesn't accept named args

19 years agoGet "make install" working again after adding Lib/test/bad_coding.py
Neal Norwitz [Tue, 4 Oct 2005 04:32:42 +0000 (04:32 +0000)]
Get "make install" working again after adding Lib/test/bad_coding.py
which can't be compiled.  Thanks to Mat Martineau for spotting the problem.

19 years agoMake close brace a paren to match open.
Neal Norwitz [Tue, 4 Oct 2005 03:43:43 +0000 (03:43 +0000)]
Make close brace a paren to match open.

19 years agoArmin caught this mistake in bug #973103.
Neal Norwitz [Tue, 4 Oct 2005 03:37:29 +0000 (03:37 +0000)]
Armin caught this mistake in bug #973103.

19 years agoopen_new_win does not exist. use UNIX consistently, add autoraise parameter to open...
Neal Norwitz [Tue, 4 Oct 2005 03:31:01 +0000 (03:31 +0000)]
open_new_win does not exist.  use UNIX consistently, add autoraise parameter to open().  add versionadded tags to open_new_tab

19 years agoFix pychecker warnings
Neal Norwitz [Tue, 4 Oct 2005 03:17:49 +0000 (03:17 +0000)]
Fix pychecker warnings

19 years agoIncorporate Tal Einat's comment on Patch 936169: Fixes alignment problem.
Kurt B. Kaiser [Mon, 3 Oct 2005 20:08:25 +0000 (20:08 +0000)]
Incorporate Tal Einat's comment on Patch 936169: Fixes alignment problem.

19 years agoTweak CodeContext.py docstrings, comments, and names.
Kurt B. Kaiser [Mon, 3 Oct 2005 19:26:03 +0000 (19:26 +0000)]
Tweak CodeContext.py docstrings, comments, and names.

19 years agoCorrect docs for empty raise when no exception is active.
Raymond Hettinger [Mon, 3 Oct 2005 16:39:51 +0000 (16:39 +0000)]
Correct docs for empty raise when no exception is active.

19 years agofix link to subsection (SF bug #1311674)
Fred Drake [Mon, 3 Oct 2005 14:25:40 +0000 (14:25 +0000)]
fix link to subsection (SF bug #1311674)

19 years agoPatch #754022: Greatly enhanced webbrowser.py.
Georg Brandl [Mon, 3 Oct 2005 14:16:44 +0000 (14:16 +0000)]
Patch #754022: Greatly enhanced webbrowser.py.

19 years agosuppress more errors on my box, most are gentoo specific. Py_ADDRESS_IN_RANGE is...
Neal Norwitz [Mon, 3 Oct 2005 07:46:34 +0000 (07:46 +0000)]
suppress more errors on my box, most are gentoo specific.  Py_ADDRESS_IN_RANGE is x86_64 specific and the readline memory leaks should be generally applicable

19 years agoSF Bug #1008310, os.major() os.minor() example and description change. Will backport.
Neal Norwitz [Mon, 3 Oct 2005 05:47:38 +0000 (05:47 +0000)]
SF Bug #1008310, os.major() os.minor() example and description change.  Will backport.

19 years agoFix SF bug #991735, os.access reports true for read-only directories. Will backport
Neal Norwitz [Mon, 3 Oct 2005 05:13:46 +0000 (05:13 +0000)]
Fix SF bug #991735, os.access reports true for read-only directories.  Will backport

19 years agoFix SF bug #976608, Unhelpful error message when mtime of a module is -1
Neal Norwitz [Mon, 3 Oct 2005 04:48:15 +0000 (04:48 +0000)]
Fix SF bug #976608, Unhelpful error message when mtime of a module is -1

Will backport.

19 years agoSF Bug # 941346, AIX shared library fix
Neal Norwitz [Mon, 3 Oct 2005 03:57:09 +0000 (03:57 +0000)]
SF Bug # 941346, AIX shared library fix

Since I can't test this, I'm just adding a comment.  If we get access
to AIX boxes, we can test this and really resolve.  Anyone from IBM
want to offer help?

Backport candidate I suppose.

19 years agoSF bug #887946, segfault if redirecting directory
Neal Norwitz [Mon, 3 Oct 2005 00:54:56 +0000 (00:54 +0000)]
SF bug #887946, segfault if redirecting directory
Also provide a warning if a directory is passed on the command line.
Add minimal command line test.

Will backport.

19 years agoSF Bug #1308042, platform dependent behaviour (Windoze of course) in UDP sockets...
Neal Norwitz [Mon, 3 Oct 2005 00:44:06 +0000 (00:44 +0000)]
SF Bug #1308042, platform dependent behaviour (Windoze of course) in UDP sockets.  Will backport

19 years agoSF patch #1227568, Expression AST node not documented.
Neal Norwitz [Mon, 3 Oct 2005 00:38:46 +0000 (00:38 +0000)]
SF patch #1227568, Expression AST node not documented.

19 years agoSF patch #1227568, bug #1219273, Expression AST node not documented. Backport candid...
Neal Norwitz [Mon, 3 Oct 2005 00:36:16 +0000 (00:36 +0000)]
SF patch #1227568, bug #1219273, Expression AST node not documented.  Backport candidate if anyone cares.

19 years agoIncreased performance in CodeContext extension Patch 936169 Noam Raphael
Kurt B. Kaiser [Sun, 2 Oct 2005 23:36:46 +0000 (23:36 +0000)]
Increased performance in CodeContext extension  Patch 936169 Noam Raphael

19 years ago- Fix segfault with invalid coding.
Neal Norwitz [Sun, 2 Oct 2005 01:48:49 +0000 (01:48 +0000)]
- Fix segfault with invalid coding.
- SF Bug #772896, unknown encoding results in MemoryError, which is not helpful

I will only backport the segfault fix.  I'll let Anthony decide if he wants
the other changes backported.  I will do the backport if asked.

19 years agoFix PyString_Format so that the "%s" format works again when Unicode is not
Georg Brandl [Sat, 1 Oct 2005 17:06:00 +0000 (17:06 +0000)]
Fix PyString_Format so that the "%s" format works again when Unicode is not
enabled.

19 years agobug [ 729103 ] Cannot retrieve name of super object
Georg Brandl [Sat, 1 Oct 2005 16:32:31 +0000 (16:32 +0000)]
bug [ 729103 ] Cannot retrieve name of super object

19 years agoForward port bugfix:
Michael W. Hudson [Fri, 30 Sep 2005 08:20:24 +0000 (08:20 +0000)]
Forward port bugfix:

1307978 ] Unsatisfied symbols: _PyGILState_NoteThreadState (code)

(note that this only happens in a threads-disabled build).

19 years agoPatch #1309009, Fix segfault in pyexpat when the XML document is
Neal Norwitz [Fri, 30 Sep 2005 04:46:49 +0000 (04:46 +0000)]
Patch #1309009, Fix segfault in pyexpat when the XML document is
in latin_1, but Python incorrectly assumes it is in UTF-8 format

Will backport.

19 years agopatch [ 1300515 ] xdrlib.py: pack_fstring() did not use null bytes for padding
Georg Brandl [Thu, 29 Sep 2005 20:49:16 +0000 (20:49 +0000)]
patch [ 1300515 ] xdrlib.py: pack_fstring() did not use null bytes for padding

19 years agobug [ 1298120 ] shlex does not support unicode
Georg Brandl [Thu, 29 Sep 2005 20:24:06 +0000 (20:24 +0000)]
bug [ 1298120 ] shlex does not support unicode

19 years agobug [ 1296004 ] MemoryError in httplib
Georg Brandl [Thu, 29 Sep 2005 20:16:07 +0000 (20:16 +0000)]
bug [ 1296004 ] MemoryError in httplib

19 years agoFix parse errors in readline module when compiling without threads.
Georg Brandl [Thu, 29 Sep 2005 13:40:49 +0000 (13:40 +0000)]
Fix parse errors in readline module when compiling without threads.

19 years agobug [ 1306449 ] PyString_AsStringAndSize() return value documented wrong
Georg Brandl [Wed, 28 Sep 2005 12:53:12 +0000 (12:53 +0000)]
bug [ 1306449 ] PyString_AsStringAndSize() return value documented wrong

19 years agoUse lzx:21 for compression. Backported to 2.4
Martin v. Löwis [Tue, 27 Sep 2005 19:17:03 +0000 (19:17 +0000)]
Use lzx:21 for compression. Backported to 2.4

19 years agoMinor clarification of effective level calculation
Vinay Sajip [Mon, 26 Sep 2005 00:14:46 +0000 (00:14 +0000)]
Minor clarification of effective level calculation

19 years agosome more fixes and tests for inspect.getsource(), triggered by crashes
Armin Rigo [Sun, 25 Sep 2005 11:45:45 +0000 (11:45 +0000)]
some more fixes and tests for inspect.getsource(), triggered by crashes
from the PyPy project as well as the SF bug #1295909.

19 years agoCommit memory leaking fix.
Georg Brandl [Sun, 25 Sep 2005 06:16:40 +0000 (06:16 +0000)]
Commit memory leaking fix.

19 years ago(pedronis, arigo)
Armin Rigo [Sat, 24 Sep 2005 22:58:41 +0000 (22:58 +0000)]
(pedronis, arigo)
segfault when a class contain a non-list value in the (undocumented)
special attribute __slotnames__.

19 years agoConvert iterator __len__() methods to a private API.
Raymond Hettinger [Sat, 24 Sep 2005 21:23:05 +0000 (21:23 +0000)]
Convert iterator __len__() methods to a private API.

19 years agoPatch #1288833: Removed thread lock from socket.getaddrinfo on
Hye-Shik Chang [Sat, 24 Sep 2005 14:58:47 +0000 (14:58 +0000)]
Patch #1288833: Removed thread lock from socket.getaddrinfo on
FreeBSD 5.3 and later versions which got thread-safe getaddrinfo(3).
(Reported by Maxim Sobolev)

19 years agoChanged license header: Now simply referring to PSF. This closes bug
Peter Astrand [Fri, 23 Sep 2005 17:37:29 +0000 (17:37 +0000)]
Changed license header: Now simply referring to PSF. This closes bug
1138653.

19 years agoThe key to the various sort columns got lost. Pulled from
Skip Montanaro [Fri, 23 Sep 2005 17:14:22 +0000 (17:14 +0000)]
The key to the various sort columns got lost.  Pulled from

    http://mail.python.org/pipermail/python-dev/2002-July/026876.html

19 years agoSF #1297059, doc incorrect return type for search() method. (There is a description...
Neal Norwitz [Fri, 23 Sep 2005 04:26:24 +0000 (04:26 +0000)]
SF #1297059, doc incorrect return type for search() method.  (There is a description of returned values at the top, so just remove the sentance and correct an example.)

19 years agoupdate URL into the Python wiki
Fred Drake [Thu, 22 Sep 2005 19:37:52 +0000 (19:37 +0000)]
update URL into the Python wiki
(forward port revision 1.10.4.1)

19 years agoPatches #1298449 and #1298499: Add some missing checks for error
Michael W. Hudson [Thu, 22 Sep 2005 09:19:01 +0000 (09:19 +0000)]
Patches #1298449 and #1298499: Add some missing checks for error
returns in cStringIO.c.  Thanks to Andrew Bennetts.

This must be a backport candidate.

19 years agoMacOSX 10.4 apparently does not allow the creation time to be set to later
Jack Jansen [Wed, 21 Sep 2005 20:52:11 +0000 (20:52 +0000)]
MacOSX 10.4 apparently does not allow the creation time to be set to later
than the modification time. Changed the SetDates test to accomodate.

Backport candidate.

19 years agoSF Patch #1297028, cjkcodecs does not initialize type pointer
Neal Norwitz [Wed, 21 Sep 2005 06:44:25 +0000 (06:44 +0000)]
SF Patch #1297028, cjkcodecs does not initialize type pointer

Fix segfault.  I tried to write a test, but it wouldn't crash
when running regrtest.  This really should have some sort of test.

Should definitely be backported.

19 years agoAdded a class MallocHeapOutputBufferType for types that are passed
Jack Jansen [Tue, 20 Sep 2005 21:11:19 +0000 (21:11 +0000)]
Added a class MallocHeapOutputBufferType for types that are passed
as &buffer, &size and allocated by the called function.

19 years agoUpdate 64-bit AIX and HP-UX build instructions (forward port).
Guido van Rossum [Tue, 20 Sep 2005 19:06:23 +0000 (19:06 +0000)]
Update 64-bit AIX and HP-UX build instructions (forward port).

19 years agoC89 compliance.
Armin Rigo [Tue, 20 Sep 2005 19:04:02 +0000 (19:04 +0000)]
C89 compliance.

19 years agotest and fix for buggy handling of exceptions raised by C functions,
Armin Rigo [Tue, 20 Sep 2005 18:50:13 +0000 (18:50 +0000)]
test and fix for buggy handling of exceptions raised by C functions,
causing the profiler to crash on an AssertionError if the same Python
function catches multiple exceptions from C functions.

19 years ago- On 64-bit platforms, when __len__() returns a value that cannot be
Guido van Rossum [Tue, 20 Sep 2005 18:49:54 +0000 (18:49 +0000)]
- On 64-bit platforms, when __len__() returns a value that cannot be
  represented as a C int, raise OverflowError.

(Forward port from 2.4.2; the patch to classobject.c was already in
but needed a correction in the error message text.)

19 years agoclean-up tracing of C functions. In particular, don't call the trace func
Armin Rigo [Tue, 20 Sep 2005 18:34:01 +0000 (18:34 +0000)]
clean-up tracing of C functions.  In particular, don't call the trace func
with an exception currently set!

19 years agoRemoved a check "if (args != NULL)" which is always True and makes no sense.
Armin Rigo [Tue, 20 Sep 2005 18:13:03 +0000 (18:13 +0000)]
Removed a check "if (args != NULL)" which is always True and makes no sense.

19 years agoDon't call memset() before checking that the ptr is not NULL.
Armin Rigo [Tue, 20 Sep 2005 18:07:47 +0000 (18:07 +0000)]
Don't call memset() before checking that the ptr is not NULL.

19 years agoAdded support for (optionally) bracketing calls with
Jack Jansen [Tue, 20 Sep 2005 15:13:53 +0000 (15:13 +0000)]
Added support for (optionally) bracketing calls with
Py_{BEGIN,END}_ALLOW_THREADS.

19 years ago- Patch #1166948: locale.py: Prefer LC_ALL, LC_CTYPE and LANG over LANGUAGE
Matthias Klose [Tue, 20 Sep 2005 07:02:49 +0000 (07:02 +0000)]
- Patch #1166948: locale.py: Prefer LC_ALL, LC_CTYPE and LANG over LANGUAGE
  to get the correct encoding.

- Patch #1166938: locale.py: Parse LANGUAGE as a colon separated list of
  languages.

19 years agoA minor fix for 64-bit platforms: when __len__() returns Python int
Guido van Rossum [Mon, 19 Sep 2005 22:42:41 +0000 (22:42 +0000)]
A minor fix for 64-bit platforms: when __len__() returns Python int
containing a value that doesn't fit in a C int, raise OverflowError
rather than truncating silently (and having 50% chance of hitting the
"it should be >= 0" error).

19 years agoReverted revision 1.83, which introduced a bug and subtle incompatibility
Armin Rigo [Mon, 19 Sep 2005 09:11:04 +0000 (09:11 +0000)]
Reverted revision 1.83, which introduced a bug and subtle incompatibility
issues.  See bug #1112856.

19 years agoNote fix of memory leak.
Neal Norwitz [Mon, 19 Sep 2005 06:49:27 +0000 (06:49 +0000)]
Note fix of memory leak.

19 years agoRemove unnecessary/extra parens when returning a value.
Neal Norwitz [Mon, 19 Sep 2005 06:45:53 +0000 (06:45 +0000)]
Remove unnecessary/extra parens when returning a value.

19 years agoForward port fixes for problems reported by valgrind
Neal Norwitz [Mon, 19 Sep 2005 06:43:44 +0000 (06:43 +0000)]
Forward port fixes for problems reported by valgrind

19 years agoskip _locale test if OS X < 10.4
Skip Montanaro [Mon, 19 Sep 2005 03:54:46 +0000 (03:54 +0000)]
skip _locale test if OS X < 10.4

19 years agoPatch #1268314: Cache lines in StreamReader.readlines for performance.
Martin v. Löwis [Sun, 18 Sep 2005 08:34:39 +0000 (08:34 +0000)]
Patch #1268314: Cache lines in StreamReader.readlines for performance.
Will backport to Python 2.4.