Commit Graph

5325 Commits

Author SHA1 Message Date
Brian Curtin 24af0e9656 Merged revisions 83763 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83763 | brian.curtin | 2010-08-06 14:27:32 -0500 (Fri, 06 Aug 2010) | 3 lines

  Fix #9324: Add parameter validation to signal.signal on Windows in order
  to prevent crashes.
........
2010-08-06 19:41:01 +00:00
Mark Dickinson 5e684339c2 Merged revisions 83751-83752 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83751 | mark.dickinson | 2010-08-06 10:36:57 +0100 (Fri, 06 Aug 2010) | 1 line

  Issue #9526:  Remove outdated casts to int that were preventing the array module from working correctly with arrays > 2GB.
........
  r83752 | mark.dickinson | 2010-08-06 10:38:58 +0100 (Fri, 06 Aug 2010) | 1 line

  Misc/NEWS entry for r83751.
........
2010-08-06 09:44:48 +00:00
Mark Dickinson 793c71ce52 Merged revisions 83677 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83677 | mark.dickinson | 2010-08-03 19:31:54 +0100 (Tue, 03 Aug 2010) | 1 line

  Fix memory leak in ssl module.
........
2010-08-03 18:34:53 +00:00
Mark Dickinson 0f98128d6e Merged revisions 83670 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83670 | mark.dickinson | 2010-08-03 17:49:49 +0100 (Tue, 03 Aug 2010) | 3 lines

  Issue #8065:  Fix another memory leak in readline module, from failure to free
  the result of a call to history_get_history_state.
........
2010-08-03 16:54:19 +00:00
Mark Dickinson 4ee9853028 Merged revisions 83667 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83667 | mark.dickinson | 2010-08-03 17:08:16 +0100 (Tue, 03 Aug 2010) | 2 lines

  Issue #9450:  Fix memory leaks in readline.remove/replace_history_entry.
........
2010-08-03 16:18:39 +00:00
Georg Brandl 7d4bfb338d Merged revisions 83536,83546-83548,83550,83554-83555,83558,83563,83565,83571,83574-83575 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83536 | georg.brandl | 2010-08-02 19:49:25 +0200 (Mo, 02 Aug 2010) | 1 line

  #8578: mention danger of not incref'ing weak referenced object.
........
  r83546 | georg.brandl | 2010-08-02 21:16:34 +0200 (Mo, 02 Aug 2010) | 1 line

  #7973: Fix distutils options spelling.
........
  r83547 | georg.brandl | 2010-08-02 21:19:26 +0200 (Mo, 02 Aug 2010) | 1 line

  #7386: add example that shows that trailing path separators are stripped.
........
  r83548 | georg.brandl | 2010-08-02 21:23:34 +0200 (Mo, 02 Aug 2010) | 1 line

  #8172: how does one use a property?
........
  r83550 | georg.brandl | 2010-08-02 21:32:43 +0200 (Mo, 02 Aug 2010) | 1 line

  #9451: strengthen warning about __*__ special name usage.
........
  r83554 | georg.brandl | 2010-08-02 21:43:05 +0200 (Mo, 02 Aug 2010) | 1 line

  #7280: note about nasmw.exe.
........
  r83555 | georg.brandl | 2010-08-02 21:44:48 +0200 (Mo, 02 Aug 2010) | 1 line

  #8861: remove unused variable.
........
  r83558 | georg.brandl | 2010-08-02 22:05:19 +0200 (Mo, 02 Aug 2010) | 1 line

  #8648: document UTF-7 codec functions.
........
  r83563 | georg.brandl | 2010-08-02 22:21:21 +0200 (Mo, 02 Aug 2010) | 1 line

  #9037: add example how to raise custom exceptions from C code.
........
  r83565 | georg.brandl | 2010-08-02 22:27:20 +0200 (Mo, 02 Aug 2010) | 1 line

  #9111: document that do_help() looks at docstrings.
........
  r83571 | georg.brandl | 2010-08-02 22:44:34 +0200 (Mo, 02 Aug 2010) | 1 line

  Clarify that abs() is not a namespace.
........
  r83574 | georg.brandl | 2010-08-02 22:47:56 +0200 (Mo, 02 Aug 2010) | 1 line

  #6867: epoll.register() returns None.
........
  r83575 | georg.brandl | 2010-08-02 22:52:10 +0200 (Mo, 02 Aug 2010) | 1 line

  #9238: zipfile does handle archive comments.
........
2010-08-02 21:44:25 +00:00
Antoine Pitrou 3970301e93 Merged revisions 83440 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83440 | antoine.pitrou | 2010-08-01 22:08:46 +0200 (dim., 01 août 2010) | 4 lines

  Issue #8397: Raise an error when attempting to mix iteration and regular
  reads on a BZ2File object, rather than returning incorrect results.
........
2010-08-01 20:13:11 +00:00
Antoine Pitrou 607951d405 Merged revisions 83411 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83411 | antoine.pitrou | 2010-08-01 18:53:42 +0200 (dim., 01 août 2010) | 4 lines

  Issue #9448: Fix a leak of OS resources (mutexes or semaphores) when
  re-initializing a buffered IO object by calling its `__init__` method.
........
2010-08-01 16:57:17 +00:00
Brian Curtin ba6c08e670 Merged revisions 83407 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83407 | brian.curtin | 2010-08-01 10:26:26 -0500 (Sun, 01 Aug 2010) | 3 lines

  Fix #8105. Add validation to mmap.mmap so invalid file descriptors
  don't cause a crash on Windows.
........
2010-08-01 15:47:53 +00:00
Matthias Klose 6e86bf72ac - Issue #7567: Don't call `setupterm' twice. 2010-07-30 21:27:18 +00:00
Mark Dickinson 96527c3b59 Merged revisions 83239 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83239 | mark.dickinson | 2010-07-29 22:41:59 +0100 (Thu, 29 Jul 2010) | 2 lines

  Issue #9422:  Fix memory leak when re-initializing a struct.Struct object.
........
2010-07-29 21:44:47 +00:00
Ronald Oussoren 9e7ffae537 Merged revisions 83088 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83088 | ronald.oussoren | 2010-07-23 14:53:51 +0100 (Fri, 23 Jul 2010) | 8 lines

  This fixes issue7900 by adding code that deals
  with the fact that getgroups(2) might return
  more that MAX_GROUPS on OSX.

  See the issue (and python-dev archives) for the
  gory details. Summarized: OSX behaves rather oddly
  and Apple says this is intentional.
........
2010-07-24 09:46:41 +00:00
Ronald Oussoren c22b718b1a Merged revisions 83096 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83096 | ronald.oussoren | 2010-07-23 17:05:35 +0100 (Fri, 23 Jul 2010) | 13 lines

  Ensure that sys.prefix can reliably be found
  on OSX. This fixes a small issue that was exposed
  by running test_subprocess through regrtest (and
  hence in a subdirectory).

  Without this patch running python.exe from the
  build tree will fail when these tree conditions
  are true:
  1) the CWD is not the root of build tree
  2) python.exe is found through $PATH
  3) the framework is not yet installed
........
2010-07-23 16:12:28 +00:00
Antoine Pitrou 7a7013e830 Merged revisions 83030 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83030 | antoine.pitrou | 2010-07-21 18:41:31 +0200 (mer., 21 juil. 2010) | 5 lines

  Issue #5395: check that array.fromfile() re-raises an IOError instead of replacing it
  with EOFError.
  (this is only an added test, but 2.x will get a fix too)
........
2010-07-21 16:47:28 +00:00
Doug Hellmann f31db93fc1 Apply patch from Ray Allen for issue 9296 2010-07-21 12:36:33 +00:00
Brian Curtin 13b43e70e2 Fix #9316. if/is grammar corrections. 2010-07-21 01:35:46 +00:00
Mark Dickinson cac0b83b35 Merged revisions 82941,82943 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r82941 | mark.dickinson | 2010-07-18 08:29:02 +0100 (Sun, 18 Jul 2010) | 3 lines

  Issue #9277: Struct module: standard bool packing was incorrect if
  char is unsigned.  Thanks Stefan Krah for the patch.
........
  r82943 | mark.dickinson | 2010-07-18 08:48:20 +0100 (Sun, 18 Jul 2010) | 1 line

  Misc/NEWS entry for r82941.
........
2010-07-18 07:55:55 +00:00
Stefan Krah 8cb9f03ecb Remove PYOS_OS2 special cases from the Solaris/OpenBSD section. 2010-07-13 19:40:00 +00:00
Stefan Krah 182ae64235 Issue #9185: On Solaris and OpenBSD, posix_getcwd() could loop indefinitely
if the path length exceeded PATH_MAX.
2010-07-13 19:17:08 +00:00
Benjamin Peterson 489113fd5f Merged revisions 82628,82630 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r82628 | benjamin.peterson | 2010-07-07 13:44:05 -0500 (Wed, 07 Jul 2010) | 1 line

  this needn't be in the loop
........
  r82630 | benjamin.peterson | 2010-07-07 13:54:59 -0500 (Wed, 07 Jul 2010) | 1 line

  don't ignore exceptions from PyObject_IsTrue
........
2010-07-07 19:03:36 +00:00
Mark Dickinson dab089632f Merged revisions 82607 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r82607 | mark.dickinson | 2010-07-06 16:00:40 +0100 (Tue, 06 Jul 2010) | 1 line

  Indentation and PEP 7 fixes.
........
2010-07-06 15:03:42 +00:00
Mark Dickinson d2d23784c9 Merged revisions 82595 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r82595 | mark.dickinson | 2010-07-05 21:14:26 +0100 (Mon, 05 Jul 2010) | 1 line

  Post-detabification cleanup.
........
2010-07-05 20:16:40 +00:00
Mark Dickinson 75b44b3437 Issue #9130: Fix validation of relative imports in parser module. 2010-07-04 16:47:56 +00:00
Mark Dickinson a7ee59b3d3 Issue #9128: Validate class decorator syntax correctly in parser module. 2010-07-04 16:23:54 +00:00
Victor Stinner 15e5b1bf0b Issue #7673: Fix security vulnerability (CVE-2010-2089) in the audioop module,
ensure that the input string length is a multiple of the frame size
2010-07-03 13:36:19 +00:00
Alexander Belopolsky 1f6e2257dc Revert r81681 (issue 8810). 2010-07-03 03:27:12 +00:00
Mark Dickinson 070f0abc19 Issue #9125: Update parser module for "except ... as ..." syntax. 2010-06-30 16:27:57 +00:00
Mark Dickinson 32a16cac70 Fix indentation of Python code example in C comment. 2010-06-25 20:19:48 +00:00
Antoine Pitrou 0dddf600d4 Issue #9075: In the ssl module, remove the setting of a `debug` flag
on an OpenSSL structure.
2010-06-25 00:03:21 +00:00
Thomas Heller f180099ec6 Fix #8959 by reverting revision 80761. 2010-06-21 14:00:24 +00:00
Senthil Kumaran 0d6908b030 Fix Issue4452 - Incorrect docstring of os.setpgrp 2010-06-17 16:38:34 +00:00
Mark Dickinson e979ec8fbf Issue #8986: erfc was raising OverflowError on Linux for arguments in
the (approximate) range (-27.3, 30.0), as a result of an escaped errno
value.
2010-06-13 10:50:29 +00:00
Nick Coghlan 8842c356aa Revert r80580 due to some unintended side effects. See issue #8202 for details. 2010-06-13 06:50:39 +00:00
Mark Dickinson 40228912c8 Fix possible undefined behaviour from signed overflow in struct module.
Backport of revisions 81897, 81898 and 81902 from py3k.
2010-06-11 20:27:05 +00:00
Ezio Melotti fdc1e0d013 Remove extra ] from itertools.count docstring. 2010-06-11 02:21:25 +00:00
Antoine Pitrou 619f16e194 Issue #8930: fix some C code indentation 2010-06-09 16:24:00 +00:00
Alexander Belopolsky 3b818bfbfa Issue #8899: time.struct_time now has class and atribute docstrings. 2010-06-05 14:54:26 +00:00
Martin v. Löwis 26eec58770 Issue #8864: Define _XOPEN_SOURCE on Solaris for the
multiprocessing module.
2010-06-04 17:18:42 +00:00
Sean Reifscheider 5e2b27b5e5 Issue8810: Clearing up docstring for tzinfo.utcoffset. 2010-06-04 01:51:26 +00:00
Mark Dickinson ddac33882b Untabify Modules/config.c.in. 2010-05-29 21:00:52 +00:00
Alexander Belopolsky 9292ee0667 Issue #7150: Raise OverflowError if the result of adding or subtracting
timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.
2010-05-27 20:55:27 +00:00
Victor Stinner d6703b5e38 Issue #5640: Fix Shift-JIS incremental encoder for error handlers different
than strict
2010-05-21 22:50:28 +00:00
Antoine Pitrou 508a237c97 Clear the OpenSSL error queue each time an error is signalled.
When the error queue is not emptied, strange things can happen on the next SSL call, depending on the OpenSSL version.
2010-05-16 23:11:46 +00:00
Victor Stinner fd2103e68d reindent _cursesmodule.c
Use untabify.py + emacs (python3 mode) + manual editions for
Py_BEGIN_ALLOW_THREADS / Py_END_ALLOW_THREADS
2010-05-15 22:19:27 +00:00
Amaury Forgeot d'Arc 03acec2256 Remove unused variable, and fix a compilation warning on Windows 2010-05-15 21:45:30 +00:00
Antoine Pitrou 2e136abd16 Improve _ssl.c formatting 2010-05-12 14:02:34 +00:00
Antoine Pitrou fc3bfad2e0 Issue #8681: Make the zlib module's error messages more informative when
the zlib itself doesn't give any detailed explanation.
2010-05-11 23:42:28 +00:00
Mark Dickinson 11bb2cdc6a Issue #8674: fix another bogus overflow check in audioop module. 2010-05-11 13:05:30 +00:00
Andrew M. Kuchling 035fbba859 Use ';' after initialization macros to avoid confusing re-indenters 2010-05-10 23:27:01 +00:00
Andrew M. Kuchling 3eee7af1f2 Break long line in macros 2010-05-10 23:24:09 +00:00
Andrew M. Kuchling 40f09c07a2 Move { out of #if...#else block; this confuses Emacs' C-mode 2010-05-10 17:18:25 +00:00
Mark Dickinson 932e162a96 Issue #8674: Fix incorrect and UB-inducing overflow checks in audioop
module.  Thanks Tomas Hoger for the patch.
2010-05-10 16:07:42 +00:00
Antoine Pitrou c83ea137d7 Untabify C files. Will watch buildbots. 2010-05-09 14:46:46 +00:00
Mark Dickinson 7000e9e01b Issue #8644: Improve accuracy of timedelta.total_seconds method.
(Backport of r80979 to py3k.)  Thanks Alexander Belopolsky.
2010-05-09 09:30:06 +00:00
Jean-Paul Calderone e54ddf1ed2 Skip signal handler re-installation if it is not necessary. Issue 8354. 2010-05-08 20:06:02 +00:00
Antoine Pitrou 3843cd8e86 Issue #8571: Fix an internal error when compressing or decompressing a
chunk larger than 1GB with the zlib module's compressor and decompressor
objects.
2010-05-07 16:50:34 +00:00
Victor Stinner 862490a546 Untabify Modules/posixmodule.c (2)
Fix some more functions by hand
2010-05-06 00:03:44 +00:00
Victor Stinner d6f8542307 Untabify Modules/posixmodule.c
Run Antoine Pitrou "untabify" script + manual editions (OS/2 and some
continuation lines).
2010-05-05 23:33:33 +00:00
Brett Cannon 7a4cd7e1e2 Remove extraneous whitespace. 2010-05-05 20:15:14 +00:00
Brett Cannon a1b562943b Remove an unnecessary variable.
Found using Clang's static analyzer.
2010-05-05 20:14:27 +00:00
Antoine Pitrou b26dc46576 Untabify Modules/_io/fileio.c 2010-05-05 16:27:30 +00:00
Antoine Pitrou a4c2a5c9a0 Untabify Modules/_ssl.c 2010-05-05 15:53:45 +00:00
Thomas Heller 06a7e2069a On Windows, ctypes does no longer check the stack before and after
calling a foreign function.  This allows to use the unmodified libffi
library.

Remove most files from _ctypes/libffi_msvc, only two include files
stay (updated from _ctypes/libffi/...).  Other files are used in the
cross-platform _ctypes/libffi directory.
2010-05-04 18:44:42 +00:00
Brett Cannon d0d2d31589 Fix some whitespace. 2010-05-04 01:01:00 +00:00
Brett Cannon 6d7b7be990 Remove an unneeded variable assignment.
Found using Clang's static analyzer.
2010-05-04 00:57:44 +00:00
Brett Cannon 23b581a6f4 Strip out extraneous whitespace, cast a some `const char *` to `void *` when
passed to free() and make a `char *` to a `const char *` as found by Clang's
static analyzer.
2010-05-04 00:52:41 +00:00
Brett Cannon 33e5dd8466 Fix a Py_DECREF to a Py_XDECREF.
Found using Clang's static analyzer.
2010-05-04 00:48:11 +00:00
Brett Cannon 87ab6ad4d6 Prevent a possible NULL de-reference and an unneeded variable assignment.
Found using Clang's static analyzer.
2010-05-04 00:36:00 +00:00
Brett Cannon e894e93f4c Remove a redundant string length check and variable assignment.
Found with Clang's static analyzer.
2010-05-04 00:30:17 +00:00
Brett Cannon 7983284472 Fix two potential uninitialization errors and an unneeded assignment.
Found using Clang's static analyzer.
2010-05-03 23:57:15 +00:00
Brett Cannon 8ffe7bbb72 Remove unused variables and a variable initialization.
Found using Clang's static analyzer.
2010-05-03 23:51:28 +00:00
Brett Cannon 5d947cb324 Remove unneeded variable assignment.
Found using Clang's static analyzer.
2010-05-03 23:44:54 +00:00
Brett Cannon 8e9757e432 Remove unneeded variable mutation and initializations.
Found using Clang's static analyzer.
2010-05-03 23:43:49 +00:00
Brett Cannon 9824e7f57c Clean up whitespace and remove unneeded variable initialization as found by
Clang.
2010-05-03 23:42:40 +00:00
Brett Cannon 99ac9147cb Remove an unused variable.
Found using Clang's static analyzer.
2010-05-03 23:41:51 +00:00
Brett Cannon 949476ee58 Remove unneeded variable initialization.
Found using Clang's static analyzer.
2010-05-03 23:41:23 +00:00
Antoine Pitrou f7fd8e4c94 Issue #7865: The close() method of :mod:`io` objects should not swallow
exceptions raised by the implicit flush().  Also ensure that calling
close() several times is supported.  Patch by Pascal Chambon.
2010-05-03 16:25:33 +00:00
Antoine Pitrou 951919f558 Issue #4687: Fix accuracy of garbage collection runtimes displayed with
gc.DEBUG_STATS.
2010-05-02 19:51:14 +00:00
Antoine Pitrou f56a288b1e Issue #7834: Fix connect() of Bluetooth L2CAP sockets with recent versions
of the Linux kernel.  Patch by Yaniv Aknin.
2010-04-29 10:05:40 +00:00
Nick Coghlan c5e4485248 Issue 8202: when using the -m command line switch, sys.argv[0] is now '-m' instead of '-c' while searching for the module to be executed 2010-04-28 14:51:08 +00:00
Antoine Pitrou 1dc6b08f9e Issue #8549: Fix compiling the _ssl extension under AIX. Patch by
Sridhar Ratnakumar.
2010-04-27 19:09:59 +00:00
Sean Reifscheider ca2e61276e Fixing obscure syslog corner-case when sys.argv = None, syslog() would call
openlog() for every logged message.
2010-04-25 06:31:23 +00:00
Antoine Pitrou 4d3e372ff3 The do_handshake() method of SSL objects now adjusts the blocking mode of
the SSL structure if necessary (as other methods already do).
2010-04-24 19:57:01 +00:00
Sean Reifscheider 04f4347de0 Small comment documentation change to clarify "ident" selection. 2010-04-23 08:38:24 +00:00
Sean Reifscheider f6ce3cb84e issue8451: Making syslog module use sys.argv[0] for "ident". 2010-04-23 08:31:55 +00:00
Antoine Pitrou a5c4b5515f Issue #8108: Fix the unwrap() method of SSL objects when the socket has
a non-infinite timeout.  Also make that method friendlier with applications
wanting to continue using the socket in clear-text mode, by disabling
OpenSSL's internal readahead.  Thanks to Darryl Miles for guidance.

Issue #8108: test_ftplib's non-blocking SSL server now has proper handling
of SSL shutdowns.
2010-04-22 23:33:02 +00:00
Antoine Pitrou c715a9ed08 Issue #8484: Load all ciphers and digest algorithms when initializing
the _ssl extension, such that verification of some SSL certificates
doesn't fail because of an "unknown algorithm".
2010-04-21 19:28:03 +00:00
Antoine Pitrou 7c587bf53d Issue #8438: Remove reference to the missing "surrogateescape" encoding
error handler from the new IO library.
2010-04-19 18:52:43 +00:00
Antoine Pitrou 0a6373c1a9 Issue #8322: Add a *ciphers* argument to SSL sockets, so as to change the
available cipher list.  Helps fix test_ssl with OpenSSL 1.0.0.
2010-04-17 17:10:38 +00:00
Benjamin Peterson b7b7c77eb3 add space 2010-04-15 21:42:16 +00:00
Antoine Pitrou bba8f2d10a Revert temporary commit in r79937 2010-04-10 23:32:12 +00:00
Antoine Pitrou 16e026cc94 Temporary commit of fix to issue #5380 (in order to watch buildbot response) 2010-04-10 22:43:05 +00:00
Philip Jenvey cdd98fb463 fix PYTHONWARNINGS handling to not modify the original env value and improve
its tests
2010-04-10 20:27:15 +00:00
Antoine Pitrou 343314a11c Revert r79915 (temporary commit to check for buildbots -> the fix was successful) 2010-04-09 22:41:31 +00:00
Antoine Pitrou 9c6cd56e91 Temporarily commit fix to issue #8108, to check for buildbot response 2010-04-09 21:00:36 +00:00
Antoine Pitrou 92719c546f SSL_MODE_AUTO_RETRY has been added in OpenSSL 0.9.6. Fix compilation
with earlier versions.
2010-04-09 20:38:39 +00:00
Jeroen Ruigrok van der Werven 422c7423b8 FreeBSD is not a sysv platform, so use freebsd.S instead of sysv.S (as is
also the case in FreeBSD's port of libffi).

Reviewed by: dickinsm
2010-04-07 14:33:37 +00:00
Martin v. Löwis 16ea548f69 Issue #8314: Fix unsigned long long bug in libffi on Sparc v8. 2010-04-07 11:01:46 +00:00
Philip Jenvey aebbaeb962 #7301: add the environment variable $PYTHONWARNINGS to supplement the -W
command line option
patch from Brian Curtin
2010-04-06 23:24:45 +00:00
Benjamin Peterson 3a1dfa21c2 remove a optimization that resulted in unexpected behavior #8929 2010-04-06 21:50:00 +00:00