Commit Graph

35885 Commits

Author SHA1 Message Date
Martin v. Löwis 3f63454e22 Patch #838546: Make terminal become controlling in pty.fork(). 2006-11-09 11:06:30 +00:00
Georg Brandl 3ed5c2a277 Bug #1592533: rename variable in heapq doc example, to avoid shadowing
"sorted".
 (backport from rev. 52668)
2006-11-08 10:04:32 +00:00
Georg Brandl 082f14b61c Patch #1592072: fix docs for return value of PyErr_CheckSignals.
(backport from rev. 52666)
2006-11-08 07:46:01 +00:00
Martin v. Löwis a1e3422205 Correctly forward exception in instance_contains().
Fixes #1591996. Patch contributed by Neal Norwitz.
2006-11-08 06:46:49 +00:00
Andrew M. Kuchling cf1e760d3e Add missing word 2006-11-07 20:39:58 +00:00
Thomas Heller 27021f1cb8 Fix markup and grammatical errors. Backport from trunk 2006-11-07 18:23:14 +00:00
Ronald Oussoren 72e405b769 backport of revision 52644 2006-11-07 15:54:38 +00:00
Skip Montanaro da65c6496d backport: note that user can control directory location even if default dir is used 2006-11-06 14:35:34 +00:00
Neal Norwitz a3ce6aa8b7 Backport 52621:
Bug #1588287: fix invalid assertion for `1,2` in debug builds.
2006-11-04 19:32:54 +00:00
Martin v. Löwis 56602a14e6 Patch #1060577: Extract list of RPM files from spec file in
bdist_rpm
2006-11-04 18:14:22 +00:00
Thomas Heller 5aafe92822 Fix code example by adding a missing import.
Fixes #1557890.

Backported from trunk.
2006-11-02 20:24:26 +00:00
Thomas Heller 906681b4d6 Replace the XXX marker in the 'Arrays and pointers' reference manual
section with a link to the tutorial sections.

Backported from trunk.
2006-11-02 19:52:43 +00:00
Neal Norwitz ae6b84184b Fix refleak 2006-10-29 23:42:59 +00:00
Georg Brandl 5e9f94ac7a 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)
2006-10-29 18:31:45 +00:00
Georg Brandl 6dc39987c9 Bug #1586773: extend hashlib docstring.
(backport from rev. 52532)
2006-10-29 18:01:12 +00:00
Georg Brandl f96b162b68 I thought I had already fixed this error in the test. 2006-10-29 15:22:43 +00:00
Georg Brandl c68d2cc3f2 Bug #1586613: fix zlib and bz2 codecs' incremental en/decoders.
(backport from rev. 52529)
2006-10-29 14:39:13 +00:00
Georg Brandl b8205a1188 Fix the new EncodedFile test to work with big endian platforms.
(backport from rev. 52527)
2006-10-29 09:32:19 +00:00
Georg Brandl 2527f7fee0 Patch #1583880: fix tarfile's problems with long names and posix/
GNU modes.
 (backport from rev. 52524)
2006-10-29 09:16:15 +00:00
Georg Brandl 0d3de7612c Bug #1357915: allow all sequence types for shell arguments in
subprocess.
 (backport from rev. 52522)
2006-10-29 09:05:08 +00:00
Georg Brandl 2a5a3027f2 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)
2006-10-29 08:39:27 +00:00
Neal Norwitz 7f2075a490 From SF 1557890, fix problem of using wrong type in example. 2006-10-28 22:13:22 +00:00
Neal Norwitz ca63121553 Backport 52506:
Don't inline Py_ADDRESS_IN_RANGE with gcc 4+ either.
2006-10-28 21:39:31 +00:00
Neal Norwitz e0cf624747 Backport 52505:
Prevent crash if alloc of garbage fails.  Found by Typo.pl.
2006-10-28 21:39:10 +00:00
Neal Norwitz 2f0940b6ca 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.
2006-10-28 21:38:43 +00:00
Neal Norwitz c975b9477b 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).
2006-10-28 21:37:42 +00:00
Neal Norwitz 7e3ec048f9 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.
2006-10-28 21:37:16 +00:00
Neal Norwitz b5fdf0da21 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.
2006-10-28 21:36:37 +00:00
Georg Brandl aabdd5480c Fix nth() itertool recipe.
(backport from rev. 52497)
2006-10-28 16:04:07 +00:00
Georg Brandl a35f8e0538 Patch #1552024: add decorator support to unparse.py demo script.
(backport from rev. 52488)
2006-10-27 20:39:47 +00:00
Thomas Heller a0a50feea8 WindowsError.str should display the windows error code,
not the posix error code; with test.
Fixes #1576174.

Backported from trunk, revision 52485.
2006-10-27 18:47:29 +00:00
Andrew M. Kuchling ff9e7abac8 [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.
2006-10-27 17:13:33 +00:00
Andrew M. Kuchling 7d1d540cc3 [Bug #1575506] The _singlefileMailbox class was using the wrong file object in its flush() method, causing an error 2006-10-27 16:57:44 +00:00
Andrew M. Kuchling 3d6a834e29 [Bug #1576241] Let functools.wraps work with built-in functions 2006-10-27 16:42:19 +00:00
Andrew M. Kuchling d2ee30b485 Point users to the subprocess module in the docs for os.system, os.spawn*, os.popen2, and the popen2 and commands modules 2006-10-27 14:54:43 +00:00
Andrew M. Kuchling 5f95870868 [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.
2006-10-27 13:29:41 +00:00
Andrew M. Kuchling 935add1d30 [Bug #1562583] Mention the set_reuse_addr() method 2006-10-27 13:06:41 +00:00
Andrew M. Kuchling 35094a6962 [Bug #1583946] Reword description of server and issuer 2006-10-27 12:50:55 +00:00
Andrew M. Kuchling 11b69e5c52 [Bug #1585690] Note that line_num was added in Python 2.5 2006-10-27 12:18:58 +00:00
Martin v. Löwis 64cd9efd80 Get DBL_MAX from float.h not values.h. 2006-10-27 07:06:59 +00:00
Martin v. Löwis 2ec1df2785 Check for values.h. 2006-10-27 06:43:00 +00:00
Martin v. Löwis 62e58040c1 [Backport of r52452]
Patch #1549049: Rewrite type conversion in structmember.
Fixes #1545696 and #1566140.

The new warnings have been omitted in the backport.
2006-10-27 06:17:21 +00:00
Andrew M. Kuchling 1121e73536 [Bug #1579796] Wrong syntax for PyDateTime_IMPORT in documentation. Reported by David Faure. 2006-10-26 19:11:06 +00:00
Georg Brandl ee23f4bba7 Patch [ 1583506 ] tarfile.py: 100-char filenames are truncated
(backport from rev. 52431)
2006-10-24 16:54:23 +00:00
Martin v. Löwis 920fa6a102 Remove passwd.adjunct.byname from list of maps
for test_nis.
2006-10-22 13:46:23 +00:00
Martin v. Löwis 63a9b8b067 - Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that
ctypes isn't considered as requiring executable stacks.
2006-10-22 10:55:25 +00:00
Martin v. Löwis e67b3497c9 Patch #1580872: Remove duplicate declaration of PyCallable_Check. 2006-10-22 10:47:28 +00:00
Thomas Heller b1a11c54ea 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.
........
2006-10-20 19:59:33 +00:00
Thomas Heller b2ab729700 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.)
2006-10-20 07:21:26 +00:00
Andrew M. Kuchling 51c4105617 [Bug #1576348] Fix typo in example 2006-10-19 21:56:14 +00:00