]> granicus.if.org Git - python/log
python
18 years agoFix markup and grammatical errors. Backport from trunk
Thomas Heller [Tue, 7 Nov 2006 18:23:14 +0000 (18:23 +0000)]
Fix markup and grammatical errors. Backport from trunk

18 years agobackport of revision 52644
Ronald Oussoren [Tue, 7 Nov 2006 15:54:38 +0000 (15:54 +0000)]
backport of revision 52644

18 years agobackport: note that user can control directory location even if default dir is used
Skip Montanaro [Mon, 6 Nov 2006 14:35:34 +0000 (14:35 +0000)]
backport: note that user can control directory location even if default dir is used

18 years agoBackport 52621:
Neal Norwitz [Sat, 4 Nov 2006 19:32:54 +0000 (19:32 +0000)]
Backport 52621:
Bug #1588287: fix invalid assertion for `1,2` in debug builds.

18 years agoPatch #1060577: Extract list of RPM files from spec file in
Martin v. Löwis [Sat, 4 Nov 2006 18:14:22 +0000 (18:14 +0000)]
Patch #1060577: Extract list of RPM files from spec file in
bdist_rpm

18 years agoFix code example by adding a missing import.
Thomas Heller [Thu, 2 Nov 2006 20:24:26 +0000 (20:24 +0000)]
Fix code example by adding a missing import.

Fixes #1557890.

Backported from trunk.

18 years agoReplace the XXX marker in the 'Arrays and pointers' reference manual
Thomas Heller [Thu, 2 Nov 2006 19:52:43 +0000 (19:52 +0000)]
Replace the XXX marker in the 'Arrays and pointers' reference manual
section with a link to the tutorial sections.

Backported from trunk.

18 years agoFix refleak
Neal Norwitz [Sun, 29 Oct 2006 23:42:59 +0000 (23:42 +0000)]
Fix refleak

18 years agoBug #1576657: when setting a KeyError for a tuple key, make sure that
Georg Brandl [Sun, 29 Oct 2006 18:31:45 +0000 (18:31 +0000)]
Bug #1576657: when setting a KeyError for a tuple key, make sure that
the tuple isn't used as the "exception arguments tuple".
 (backport from rev. 52535)

18 years agoBug #1586773: extend hashlib docstring.
Georg Brandl [Sun, 29 Oct 2006 18:01:12 +0000 (18:01 +0000)]
Bug #1586773: extend hashlib docstring.
 (backport from rev. 52532)

18 years agoI thought I had already fixed this error in the test.
Georg Brandl [Sun, 29 Oct 2006 15:22:43 +0000 (15:22 +0000)]
I thought I had already fixed this error in the test.

18 years agoBug #1586613: fix zlib and bz2 codecs' incremental en/decoders.
Georg Brandl [Sun, 29 Oct 2006 14:39:13 +0000 (14:39 +0000)]
Bug #1586613: fix zlib and bz2 codecs' incremental en/decoders.
 (backport from rev. 52529)

18 years agoFix the new EncodedFile test to work with big endian platforms.
Georg Brandl [Sun, 29 Oct 2006 09:32:19 +0000 (09:32 +0000)]
Fix the new EncodedFile test to work with big endian platforms.
 (backport from rev. 52527)

18 years agoPatch #1583880: fix tarfile's problems with long names and posix/
Georg Brandl [Sun, 29 Oct 2006 09:16:15 +0000 (09:16 +0000)]
Patch #1583880: fix tarfile's problems with long names and posix/
GNU modes.
 (backport from rev. 52524)

18 years agoBug #1357915: allow all sequence types for shell arguments in
Georg Brandl [Sun, 29 Oct 2006 09:05:08 +0000 (09:05 +0000)]
Bug #1357915: allow all sequence types for shell arguments in
subprocess.
 (backport from rev. 52522)

18 years agoFix codecs.EncodedFile which did not use file_encoding in 2.5.0, and
Georg Brandl [Sun, 29 Oct 2006 08:39:27 +0000 (08:39 +0000)]
Fix codecs.EncodedFile which did not use file_encoding in 2.5.0, and
fix all codecs file wrappers to work correctly with the "with"
statement (bug #1586513).
 (backport from rev. 52517)

18 years agoFrom SF 1557890, fix problem of using wrong type in example.
Neal Norwitz [Sat, 28 Oct 2006 22:13:22 +0000 (22:13 +0000)]
From SF 1557890, fix problem of using wrong type in example.

18 years agoBackport 52506:
Neal Norwitz [Sat, 28 Oct 2006 21:39:31 +0000 (21:39 +0000)]
Backport 52506:
Don't inline Py_ADDRESS_IN_RANGE with gcc 4+ either.

18 years agoBackport 52505:
Neal Norwitz [Sat, 28 Oct 2006 21:39:10 +0000 (21:39 +0000)]
Backport 52505:
Prevent crash if alloc of garbage fails.  Found by Typo.pl.

18 years agoBackport 52504:
Neal Norwitz [Sat, 28 Oct 2006 21:38:43 +0000 (21:38 +0000)]
Backport 52504:
Fix bug #1565514, SystemError not raised on too many nested blocks.
It seems like this should be a different error than SystemError, but
I don't have any great ideas and SystemError was raised in 2.4 and earlier.

18 years agoBackport 52503:
Neal Norwitz [Sat, 28 Oct 2006 21:37:42 +0000 (21:37 +0000)]
Backport 52503:
Fix crash in test on HP-UX.  Apparently, it's not possible to delete a lock if
it's held (even by the current thread).

18 years agoBackport 52502:
Neal Norwitz [Sat, 28 Oct 2006 21:37:16 +0000 (21:37 +0000)]
Backport 52502:
Fix warnings with HP's C compiler.  It doesn't recognize that infinite
loops are, um, infinite.  These conditions should not be able to happen.

18 years agoBackport 52501:
Neal Norwitz [Sat, 28 Oct 2006 21:36:37 +0000 (21:36 +0000)]
Backport 52501:
Add some asserts.  In sysmodule, I think these were to try to silence
some warnings from Klokwork.  They verify the assumptions of the format
of svn version output.

The assert in the thread module helped debug a problem on HP-UX.

18 years agoFix nth() itertool recipe.
Georg Brandl [Sat, 28 Oct 2006 16:04:07 +0000 (16:04 +0000)]
Fix nth() itertool recipe.
 (backport from rev. 52497)

18 years agoPatch #1552024: add decorator support to unparse.py demo script.
Georg Brandl [Fri, 27 Oct 2006 20:39:47 +0000 (20:39 +0000)]
Patch #1552024: add decorator support to unparse.py demo script.
 (backport from rev. 52488)

18 years agoWindowsError.str should display the windows error code,
Thomas Heller [Fri, 27 Oct 2006 18:47:29 +0000 (18:47 +0000)]
WindowsError.str should display the windows error code,
not the posix error code; with test.
Fixes #1576174.

Backported from trunk, revision 52485.

18 years ago[Patch #1574068 by Scott Dial] urllib and urllib2 were using
Andrew M. Kuchling [Fri, 27 Oct 2006 17:13:33 +0000 (17:13 +0000)]
[Patch #1574068 by Scott Dial] urllib and urllib2 were using
base64.encodestring() for encoding authentication data.
encodestring() can include newlines for very long input, which
produced broken HTTP headers.

2.4 backport candidate, probably.

18 years ago[Bug #1575506] The _singlefileMailbox class was using the wrong file object in its...
Andrew M. Kuchling [Fri, 27 Oct 2006 16:57:44 +0000 (16:57 +0000)]
[Bug #1575506] The _singlefileMailbox class was using the wrong file object in its flush() method, causing an error

18 years ago[Bug #1576241] Let functools.wraps work with built-in functions
Andrew M. Kuchling [Fri, 27 Oct 2006 16:42:19 +0000 (16:42 +0000)]
[Bug #1576241] Let functools.wraps work with built-in functions

18 years agoPoint users to the subprocess module in the docs for os.system, os.spawn*, os.popen2...
Andrew M. Kuchling [Fri, 27 Oct 2006 14:54:43 +0000 (14:54 +0000)]
Point users to the subprocess module in the docs for os.system, os.spawn*, os.popen2, and the popen2 and commands modules

18 years ago[Bug #1542016] Report PCALL_POP value. This makes the return value of sys.callstats...
Andrew M. Kuchling [Fri, 27 Oct 2006 13:29:41 +0000 (13:29 +0000)]
[Bug #1542016] Report PCALL_POP value.  This makes the return value of sys.callstats() match its docstring.

Backport candidate.  Though it's an API change, this is a pretty obscure
portion of the API.

18 years ago[Bug #1562583] Mention the set_reuse_addr() method
Andrew M. Kuchling [Fri, 27 Oct 2006 13:06:41 +0000 (13:06 +0000)]
[Bug #1562583] Mention the set_reuse_addr() method

18 years ago[Bug #1583946] Reword description of server and issuer
Andrew M. Kuchling [Fri, 27 Oct 2006 12:50:55 +0000 (12:50 +0000)]
[Bug #1583946] Reword description of server and issuer

18 years ago[Bug #1585690] Note that line_num was added in Python 2.5
Andrew M. Kuchling [Fri, 27 Oct 2006 12:18:58 +0000 (12:18 +0000)]
[Bug #1585690] Note that line_num was added in Python 2.5

18 years agoGet DBL_MAX from float.h not values.h.
Martin v. Löwis [Fri, 27 Oct 2006 07:06:59 +0000 (07:06 +0000)]
Get DBL_MAX from float.h not values.h.

18 years agoCheck for values.h.
Martin v. Löwis [Fri, 27 Oct 2006 06:43:00 +0000 (06:43 +0000)]
Check for values.h.

18 years ago[Backport of r52452]
Martin v. Löwis [Fri, 27 Oct 2006 06:17:21 +0000 (06:17 +0000)]
[Backport of r52452]
Patch #1549049: Rewrite type conversion in structmember.
Fixes #1545696 and #1566140.

The new warnings have been omitted in the backport.

18 years ago[Bug #1579796] Wrong syntax for PyDateTime_IMPORT in documentation. Reported by...
Andrew M. Kuchling [Thu, 26 Oct 2006 19:11:06 +0000 (19:11 +0000)]
[Bug #1579796] Wrong syntax for PyDateTime_IMPORT in documentation.  Reported by David Faure.

18 years agoPatch [ 1583506 ] tarfile.py: 100-char filenames are truncated
Georg Brandl [Tue, 24 Oct 2006 16:54:23 +0000 (16:54 +0000)]
Patch [ 1583506 ] tarfile.py: 100-char filenames are truncated
 (backport from rev. 52431)

18 years agoRemove passwd.adjunct.byname from list of maps
Martin v. Löwis [Sun, 22 Oct 2006 13:46:23 +0000 (13:46 +0000)]
Remove passwd.adjunct.byname from list of maps
for test_nis.

18 years ago- Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that
Martin v. Löwis [Sun, 22 Oct 2006 10:55:25 +0000 (10:55 +0000)]
- Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that
  ctypes isn't considered as requiring executable stacks.

18 years agoPatch #1580872: Remove duplicate declaration of PyCallable_Check.
Martin v. Löwis [Sun, 22 Oct 2006 10:47:28 +0000 (10:47 +0000)]
Patch #1580872: Remove duplicate declaration of PyCallable_Check.

18 years agoRecorded merge of revisions 51379-51603,51606-52365 via svnmerge from
Thomas Heller [Fri, 20 Oct 2006 19:59:33 +0000 (19:59 +0000)]
Recorded merge of revisions 51379-51603,51606-52365 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk/Modules/_ctypes

........
  r51379 | thomas.heller | 2006-08-18 16:38:46 +0200 (Fr, 18 Aug 2006) | 6 lines

  Add asserts to check for 'impossible' NULL values, with comments.
  In one place where I'n not 1000% sure about the non-NULL, raise
  a RuntimeError for safety.

  This should fix the klocwork issues that Neal sent me.  If so,
  it should be applied to the release25-maint branch also.
........
  r51401 | neal.norwitz | 2006-08-19 06:23:04 +0200 (Sa, 19 Aug 2006) | 4 lines

  Move assert to after NULL check, otherwise we deref NULL in the assert.

  Klocwork #307
........
  r51819 | thomas.heller | 2006-09-07 20:56:28 +0200 (Do, 07 Sep 2006) | 5 lines

  Anonymous structure fields that have a bit-width specified did not work,
  and they gave a strange error message from PyArg_ParseTuple:
      function takes exactly 2 arguments (3 given).

  With tests.
........
  r51820 | thomas.heller | 2006-09-07 21:09:54 +0200 (Do, 07 Sep 2006) | 4 lines

  The cast function did not accept c_char_p or c_wchar_p instances
  as first argument, and failed with a 'bad argument to internal function'
  error message.
........
  r52365 | thomas.heller | 2006-10-17 21:30:48 +0200 (Di, 17 Okt 2006) | 6 lines

  ctypes callback functions only support 'fundamental' result types.
  Check this and raise an error when something else is used - before
  this change ctypes would hang or crash when such a callback was
  called.  This is a partial fix for #1574584.

  Will backport to release25-maint.
........

18 years agoInitialized merge tracking via "svnmerge" with revisions "1-51333" from
Thomas Heller [Fri, 20 Oct 2006 07:21:26 +0000 (07:21 +0000)]
Initialized merge tracking via "svnmerge" with revisions "1-51333" from
svn+ssh://pythondev@svn.python.org/python/trunk/Modules/_ctypes

(This had to be done with the command line:

  svnmerge init -r 1:51333 -F c:\svn\trunk\Modules\_ctypes

because svnmerge isn't able to deduce the branch point r51333 and the
HEAD URL automatically in a subdirectory.)

18 years ago[Bug #1576348] Fix typo in example
Andrew M. Kuchling [Thu, 19 Oct 2006 21:56:14 +0000 (21:56 +0000)]
[Bug #1576348] Fix typo in example

18 years agoC:\Code\python>type c.txt
Tim Peters [Wed, 18 Oct 2006 05:30:25 +0000 (05:30 +0000)]
C:\Code\python>type c.txt
Merge rev 52377 from trunk:

newIobject():  repaired incorrect cast to quiet MSVC warning.

18 years agoctypes callback functions only support 'fundamental' result types.
Thomas Heller [Tue, 17 Oct 2006 19:41:10 +0000 (19:41 +0000)]
ctypes callback functions only support 'fundamental' result types.
Check this and raise an error when something else is used - before
this change ctypes would hang or crash when such a callback was
called.  This is a partial fix for #1574584.

Backported from trunk.

18 years agoForward-port r52358:
Martin v. Löwis [Tue, 17 Oct 2006 18:59:06 +0000 (18:59 +0000)]
Forward-port r52358:
- Bug #1578513: Cross compilation was broken by a change to configure.
Repair so that it's back to how it was in 2.4.3.

18 years agoRemove obsolete file.
Martin v. Löwis [Tue, 17 Oct 2006 18:10:09 +0000 (18:10 +0000)]
Remove obsolete file.

18 years agoPatch #1457736: Update VC6 to use current PCbuild settings.
Martin v. Löwis [Tue, 17 Oct 2006 15:22:20 +0000 (15:22 +0000)]
Patch #1457736: Update VC6 to use current PCbuild settings.

18 years agoMention the bdist_msi module.
Martin v. Löwis [Sun, 15 Oct 2006 14:30:49 +0000 (14:30 +0000)]
Mention the bdist_msi module.

18 years agoRemove binary property on project files, set eol-style
Martin v. Löwis [Sun, 15 Oct 2006 12:04:07 +0000 (12:04 +0000)]
Remove binary property on project files, set eol-style
to CRLF instead.

18 years agoBug #1567666: Emulate GetFileAttributesExA for Win95.
Martin v. Löwis [Sun, 15 Oct 2006 09:44:02 +0000 (09:44 +0000)]
Bug #1567666: Emulate GetFileAttributesExA for Win95.

18 years agoPatch #1577551: Add ctypes and ET build support for VC6.
Martin v. Löwis [Sun, 15 Oct 2006 08:51:47 +0000 (08:51 +0000)]
Patch #1577551: Add ctypes and ET build support for VC6.

18 years agoPatch #1576954: Update VC6 build directory; remove redundant
Martin v. Löwis [Sun, 15 Oct 2006 07:55:42 +0000 (07:55 +0000)]
Patch #1576954: Update VC6 build directory; remove redundant
files in VC7.1 pythoncore.vcproj.

18 years agoFix tarfile depending on buggy int('1\0', base) behavior.
Georg Brandl [Thu, 12 Oct 2006 12:03:11 +0000 (12:03 +0000)]
Fix tarfile depending on buggy int('1\0', base) behavior.
 (backport from rev. 52313)

18 years agoSmall grammar fix, thanks Sjoerd.
Georg Brandl [Thu, 12 Oct 2006 11:59:29 +0000 (11:59 +0000)]
Small grammar fix, thanks Sjoerd.
 (backport from rev. 52311)

18 years agoBug #1560114: the Mac filesystem does have accurate information
Georg Brandl [Thu, 12 Oct 2006 11:47:00 +0000 (11:47 +0000)]
Bug #1560114: the Mac filesystem does have accurate information
about the case of filenames.
 (backport from rev. 52309)

18 years agoAdd a note to fpectl docs that it's not built by default
Georg Brandl [Thu, 12 Oct 2006 11:41:15 +0000 (11:41 +0000)]
Add a note to fpectl docs that it's not built by default
(bug #1556261).
 (backport from rev. 52307)

18 years agoBug #1545497: when given an explicit base, int() did ignore NULs
Georg Brandl [Thu, 12 Oct 2006 11:28:04 +0000 (11:28 +0000)]
Bug #1545497: when given an explicit base, int() did ignore NULs
embedded in the string to convert.
 (backport from rev. 52305)

18 years agoBug #1546628: add a note about urlparse.urljoin() and absolute paths.
Georg Brandl [Thu, 12 Oct 2006 11:14:44 +0000 (11:14 +0000)]
Bug #1546628: add a note about urlparse.urljoin() and absolute paths.
 (backport from rev. 52303)

18 years agoBug #1548891: The cStringIO.StringIO() constructor now encodes unicode
Georg Brandl [Thu, 12 Oct 2006 09:47:17 +0000 (09:47 +0000)]
Bug #1548891: The cStringIO.StringIO() constructor now encodes unicode
arguments with the system default encoding just like the write()
method does, instead of converting it to a raw buffer.
 (backport from rev. 52301)

18 years agoBug #1550524: better heuristics to find correct class definition
Georg Brandl [Thu, 12 Oct 2006 09:20:36 +0000 (09:20 +0000)]
Bug #1550524: better heuristics to find correct class definition
in inspect.findsource().
 (backport from rev. 52299)

18 years agoBug #1565919: document set types in the Language Reference.
Georg Brandl [Thu, 12 Oct 2006 08:22:57 +0000 (08:22 +0000)]
Bug #1565919: document set types in the Language Reference.
 (backport from rev. 52297)

18 years agoBug #813342: Start the IDLE subprocess with -Qnew if the parent
Georg Brandl [Thu, 12 Oct 2006 07:57:24 +0000 (07:57 +0000)]
Bug #813342: Start the IDLE subprocess with -Qnew if the parent
is started with that option.
 (backport from rev. 52295)

18 years agoBug #1575746: fix typo in property() docs.
Georg Brandl [Thu, 12 Oct 2006 07:38:08 +0000 (07:38 +0000)]
Bug #1575746: fix typo in property() docs.
 (backport from rev. 52293)

18 years agoMacosx: fix permission problem in generated installer
Ronald Oussoren [Tue, 10 Oct 2006 07:54:24 +0000 (07:54 +0000)]
Macosx: fix permission problem in generated installer

18 years agoBug #1565150: Fix subsecond processing for os.utime on Windows.
Martin v. Löwis [Mon, 9 Oct 2006 20:44:50 +0000 (20:44 +0000)]
Bug #1565150: Fix subsecond processing for os.utime on Windows.

18 years agoList gc.get_count() in the module docstring.
Barry Warsaw [Mon, 9 Oct 2006 19:42:33 +0000 (19:42 +0000)]
List gc.get_count() in the module docstring.

18 years agoPatch #1572724: fix typo ('=' instead of '==') in _msi.c.
Georg Brandl [Mon, 9 Oct 2006 19:03:12 +0000 (19:03 +0000)]
Patch #1572724: fix typo ('=' instead of '==') in _msi.c.
 (backport from rev. 52251)

18 years ago[Bug #1545341] Let the 'classifiers' parameter be a tuple as well as a list.
Andrew M. Kuchling [Mon, 9 Oct 2006 17:13:26 +0000 (17:13 +0000)]
[Bug #1545341] Let the 'classifiers' parameter be a tuple as well as a list.

18 years agoBackport of r52238
Ronald Oussoren [Sun, 8 Oct 2006 18:19:28 +0000 (18:19 +0000)]
Backport of r52238

18 years agoBackport of r52236
Ronald Oussoren [Sun, 8 Oct 2006 17:52:37 +0000 (17:52 +0000)]
Backport of r52236

18 years agoBackport libcsv.tex bugfix from rev 52218. (SF ticket 1572471)
Skip Montanaro [Sun, 8 Oct 2006 17:51:24 +0000 (17:51 +0000)]
Backport libcsv.tex bugfix from rev 52218. (SF ticket 1572471)

18 years agoBackport of r52233
Ronald Oussoren [Sun, 8 Oct 2006 17:50:26 +0000 (17:50 +0000)]
Backport of r52233

18 years agoBackport of r52229
Ronald Oussoren [Sun, 8 Oct 2006 17:40:52 +0000 (17:40 +0000)]
Backport of r52229

18 years agoBackport of r52227.
Ronald Oussoren [Sun, 8 Oct 2006 17:38:48 +0000 (17:38 +0000)]
Backport of r52227.

18 years agoBackport from trunk r52223:
Hye-Shik Chang [Sun, 8 Oct 2006 14:01:45 +0000 (14:01 +0000)]
Backport from trunk r52223:

Bug #1572832: fix a bug in ISO-2022 codecs which may cause segfault
when encoding non-BMP unicode characters.  (Submitted by Ray Chason)

18 years agoFix #1569998: no break inside try statement (outside loop) allowed.
Georg Brandl [Sun, 8 Oct 2006 07:12:23 +0000 (07:12 +0000)]
Fix #1569998: no break inside try statement (outside loop) allowed.
  (backport from rev. 52129)

18 years agoPatch #1542451: fix crash with continue in nested try/finally
Georg Brandl [Sun, 8 Oct 2006 07:06:29 +0000 (07:06 +0000)]
Patch #1542451: fix crash with continue in nested try/finally
  (backport from rev. 51439)

18 years agoBackport the .sln and .vcproj files for PCBuild8 from the python trunk to the 2.5...
Kristján Valur Jónsson [Sat, 7 Oct 2006 14:56:30 +0000 (14:56 +0000)]
Backport the .sln and .vcproj files for PCBuild8 from the python trunk to the 2.5 maintainance branch.  This fixes build problems with visual studio 2005, and cleans up profile guided optimization.

18 years agoFix name.
Georg Brandl [Fri, 6 Oct 2006 12:46:33 +0000 (12:46 +0000)]
Fix name.

18 years agoCase fixes
Andrew M. Kuchling [Fri, 6 Oct 2006 10:39:51 +0000 (10:39 +0000)]
Case fixes

18 years ago- update links
Fred Drake [Fri, 6 Oct 2006 00:03:17 +0000 (00:03 +0000)]
- update links
- remove Sleepycat name now that they have been bought

18 years ago[Backport to 2-5maint of r52147 | andrew.kuchling ; the buildbots seem OK
Andrew M. Kuchling [Thu, 5 Oct 2006 17:26:33 +0000 (17:26 +0000)]
[Backport to 2-5maint of r52147 | andrew.kuchling ; the buildbots seem OK
 with this change.]

Cause a PyObject_Malloc() failure to trigger a MemoryError, and then
add 'if (PyErr_Occurred())' checks to various places so that NULL is
returned properly.

18 years agoForward-port of r52136: a review of overflow-detecting code.
Armin Rigo [Wed, 4 Oct 2006 11:44:06 +0000 (11:44 +0000)]
Forward-port of r52136: a review of overflow-detecting code.

* unified the way intobject, longobject and mystrtoul handle
  values around -sys.maxint-1.

* in general, trying to entierely avoid overflows in any computation
  involving signed ints or longs is extremely involved.  Fixed a few
  simple cases where a compiler might be too clever (but that's all
  guesswork).

* more overflow checks against bad data in marshal.c.

* 2.5 specific: fixed a number of places that were still confusing int
  and Py_ssize_t.  Some of them could potentially have caused
  "real-world" breakage.

* list.pop(x): fixing overflow issues on x was messy.  I just reverted
  to PyArg_ParseTuple("n"), which does the right thing.  (An obscure
  test was trying to give a Decimal to list.pop()... doesn't make
  sense any more IMHO)

* trying to write a few tests...

18 years agoCompilation problem caused by conflicting typedefs for uint32_t
Armin Rigo [Wed, 4 Oct 2006 10:23:57 +0000 (10:23 +0000)]
Compilation problem caused by conflicting typedefs for uint32_t
(unsigned long vs. unsigned int).

18 years agoFix integer negation and absolute value to not rely
Martin v. Löwis [Wed, 4 Oct 2006 05:47:47 +0000 (05:47 +0000)]
Fix integer negation and absolute value to not rely
on undefined behaviour of the C compiler anymore.

18 years agodecode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to
Barry Warsaw [Wed, 4 Oct 2006 01:28:43 +0000 (01:28 +0000)]
decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to
test for parts > 3 when we use .split(..., 2).

18 years agoGuard uintptr_t test with HAVE_STDINT_H, test for
Martin v. Löwis [Mon, 2 Oct 2006 15:24:01 +0000 (15:24 +0000)]
Guard uintptr_t test with HAVE_STDINT_H, test for
stdint.h.

18 years agoFix test for uintptr_t. Fixes #1568842.
Martin v. Löwis [Mon, 2 Oct 2006 14:56:15 +0000 (14:56 +0000)]
Fix test for uintptr_t. Fixes #1568842.

18 years agoBug #1546052: clarify that PyString_FromString(AndSize) copies the
Georg Brandl [Sat, 30 Sep 2006 12:03:02 +0000 (12:03 +0000)]
Bug #1546052: clarify that PyString_FromString(AndSize) copies the
string pointed to by its parameter.
 (backport from rev. 52078)

18 years agoBug #1446043: correctly raise a LookupError if an encoding name given
Georg Brandl [Sat, 30 Sep 2006 11:22:35 +0000 (11:22 +0000)]
Bug #1446043: correctly raise a LookupError if an encoding name given
to encodings.search_function() contains a dot.
 (backport from rev. 52075)

18 years agoBug #1556784: allow format strings longer than 127 characters in
Georg Brandl [Sat, 30 Sep 2006 11:17:43 +0000 (11:17 +0000)]
Bug #1556784: allow format strings longer than 127 characters in
datetime's strftime function.
 (backport from rev. 52072)

18 years agoBug #1560617: in pyclbr, return full module name not only for classes,
Georg Brandl [Sat, 30 Sep 2006 11:06:55 +0000 (11:06 +0000)]
Bug #1560617: in pyclbr, return full module name not only for classes,
but also for functions.
 (backport from rev. 52069)

18 years agoBug #1566602: correct failure of posixpath unittest when $HOME ends
Georg Brandl [Sat, 30 Sep 2006 09:13:29 +0000 (09:13 +0000)]
Bug #1566602: correct failure of posixpath unittest when $HOME ends
with a slash.
 (backport from rev. 52065)

18 years agoBug #1566663: remove obsolete example from datetime docs.
Georg Brandl [Sat, 30 Sep 2006 09:06:49 +0000 (09:06 +0000)]
Bug #1566663: remove obsolete example from datetime docs.
 (backport from rev. 52063)

18 years agoBug #1566800: make sure that EnvironmentError can be called with any
Georg Brandl [Sat, 30 Sep 2006 09:03:45 +0000 (09:03 +0000)]
Bug #1566800: make sure that EnvironmentError can be called with any
number of arguments, as was the case in Python 2.4.
 (backport from rev. 52061)

18 years agoPatch #1567691: super() and new.instancemethod() now don't accept
Georg Brandl [Sat, 30 Sep 2006 08:43:50 +0000 (08:43 +0000)]
Patch #1567691: super() and new.instancemethod() now don't accept
keyword arguments any more (previously they accepted them, but didn't
use them).
 (backport from rev. 52058)

18 years agoBug #1565661: in webbrowser, split() the command for the default
Georg Brandl [Sat, 30 Sep 2006 07:32:00 +0000 (07:32 +0000)]
Bug #1565661: in webbrowser, split() the command for the default
GNOME browser in case it is a command with args.
 (backport from rev. 52056)