Commit Graph

41235 Commits

Author SHA1 Message Date
Larry Hastings f0f3795068 - Issue #8235: _socket: Add the constant ``SO_SETFIB``. SO_SETFIB is
a socket option available on FreeBSD 7.1 and newer.
2010-04-02 11:47:10 +00:00
Larry Hastings b5c2e6a33e Blocked revisions 79592 via svnmerge
........
  r79592 | larry.hastings | 2010-04-02 04:18:17 -0700 (Fri, 02 Apr 2010) | 3 lines

  Issue #8235: _socket: Add the constant ``SO_SETFIB``.  SO_SETFIB is
  a socket option available on FreeBSD 7.1 and newer.
........
2010-04-02 11:20:07 +00:00
Larry Hastings d6f57f19c2 Blocked revisions 79590 via svnmerge
........
  r79590 | larry.hastings | 2010-04-02 04:01:35 -0700 (Fri, 02 Apr 2010) | 10 lines

  Capsule-related changes:
  * PyCObject_AsVoidPtr() can now open capsules.  This addresses
    most of the remaining backwards-compatibility concerns about
    the conversion of Python 2.7 from CObjects to capsules.
  * CObjects were marked Pending Deprecation.
  * Documentation about this pending deprecation was added to
    cobject.h.
  * The capsule source files were added to the legacy PC build
    processes.
........
2010-04-02 11:03:37 +00:00
Georg Brandl 379299cecc #8213: document behavior of -u on py3k better. 2010-04-02 08:47:07 +00:00
Raymond Hettinger 0f3ec6dd62 Fix nits in itertools recipes. 2010-04-02 04:50:35 +00:00
Raymond Hettinger 063a4b6880 Add and update itertools recipes. 2010-04-02 04:18:18 +00:00
Raymond Hettinger 46fca0773d Document sorting HowTo 2010-04-02 00:25:45 +00:00
Antoine Pitrou 8689a10f07 Merged revisions 79555 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79555 | antoine.pitrou | 2010-04-01 18:42:11 +0200 (jeu., 01 avril 2010) | 5 lines

  Issue #8276: PyEval_CallObject() is now only available in macro form.  The
  function declaration, which was kept for backwards compatibility reasons,
  is now removed (the macro was introduced in 1997!).
........
2010-04-01 16:53:15 +00:00
Stefan Krah c8bdc01d82 Fix typo in definition of 'in' keyword. 2010-04-01 10:34:09 +00:00
Brian Curtin edef05b0a3 Merged revisions 79543 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79543 | brian.curtin | 2010-03-31 23:02:00 -0500 (Wed, 31 Mar 2010) | 2 lines

  Fix a test_pydoc failure on Neal Norwitz's buildbot.
........
2010-04-01 04:05:25 +00:00
Antoine Pitrou 3af01a1579 NOTE: only ported the test for new-style classes.
Merged revisions 79535 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79535 | antoine.pitrou | 2010-03-31 23:32:15 +0200 (mer., 31 mars 2010) | 5 lines

  Issue #8268: Old-style classes (not just instances) now support weak
  references.
........
2010-03-31 21:40:47 +00:00
Barry Warsaw d5f9bf5ecf - Issue #8233: When run as a script, py_compile.py optionally takes a single
argument `-` which tells it to read files to compile from stdin.  Each line
  is read on demand and the named file is compiled immediately.  (Original
  patch by Piotr Ożarowski).
2010-03-31 21:36:22 +00:00
Brian Curtin fd2bfb02db Merged revisions 79529 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
2010-03-31 17:46:38 +00:00
Ezio Melotti 8f8db14bb0 Merged revisions 79522 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79522 | ezio.melotti | 2010-03-31 10:26:24 +0300 (Wed, 31 Mar 2010) | 1 line

  Revert r79179 and merge r75584 to explain how to implement a queue using collection.deque instead of a list.
........
2010-03-31 07:45:32 +00:00
Brian Curtin 49c284c174 Merged revisions 79518 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79518 | brian.curtin | 2010-03-30 22:10:21 -0500 (Tue, 30 Mar 2010) | 2 lines

  Fix #8225. xml.etree was displaying an incorrect link when viewed in help.
........
2010-03-31 03:19:28 +00:00
Florent Xicluna d6995eb582 Merged revisions 79497 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79497 | florent.xicluna | 2010-03-30 18:31:14 +0200 (mar, 30 mar 2010) | 2 lines

  #8263: Now regrtest.py will report a failure if it receives a KeyboardInterrupt (SIGINT).
........
2010-03-30 19:43:09 +00:00
Florent Xicluna 704ed93efb Merged revisions 79498 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79498 | florent.xicluna | 2010-03-30 18:42:47 +0200 (mar, 30 mar 2010) | 2 lines

  fix ACKS: alphabetic order and UTF-8
........
2010-03-30 19:37:07 +00:00
Florent Xicluna 806d8cf0e8 Merged revisions 79494,79496 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79494 | florent.xicluna | 2010-03-30 10:24:06 +0200 (mar, 30 mar 2010) | 2 lines

  #7643: Unicode codepoints VT (0x0B) and FF (0x0C) are linebreaks according to Unicode Standard Annex #14.
........
  r79496 | florent.xicluna | 2010-03-30 18:29:03 +0200 (mar, 30 mar 2010) | 2 lines

  Highlight the change of behavior related to r79494.  Now VT and FF are linebreaks.
........
2010-03-30 19:34:18 +00:00
Antoine Pitrou 364129ef5a Blocked revisions 79504 via svnmerge
........
  r79504 | antoine.pitrou | 2010-03-30 20:58:22 +0200 (mar., 30 mars 2010) | 3 lines

  Fix small error in r79502
........
2010-03-30 18:59:21 +00:00
Antoine Pitrou 503ab33e54 Merged revisions 79502 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79502 | antoine.pitrou | 2010-03-30 20:49:45 +0200 (mar., 30 mars 2010) | 4 lines

  Issue #8248: Add some tests for the bool type.  Patch by Gregory Nofi.
........
2010-03-30 18:56:19 +00:00
Benjamin Peterson 25cd7eb9a1 Merged revisions 79500 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79500 | benjamin.peterson | 2010-03-30 12:58:13 -0500 (Tue, 30 Mar 2010) | 4 lines

  add inspect.getcallargs, which binds function arguments like a normal call #3135

  Patch by George Sakkis
........
2010-03-30 18:42:32 +00:00
Benjamin Peterson e6c9d24562 build without -fno-strict-aliasing when gcc isn't buggy #3326
Patch from Daniel Stutzbach
2010-03-30 17:34:47 +00:00
Raymond Hettinger fc91aa28fd Update itertools recipes. 2010-03-28 18:27:13 +00:00
Florent Xicluna fd1b0930ce Merged revisions 79297,79310,79382,79425-79427,79450 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79297 | florent.xicluna | 2010-03-22 18:18:18 +0100 (lun, 22 mar 2010) | 2 lines

  #7668: Fix test_httpservers failure when sys.executable contains non-ASCII bytes.
........
  r79310 | florent.xicluna | 2010-03-22 23:52:11 +0100 (lun, 22 mar 2010) | 2 lines

  Issue #8205: Remove the "Modules" directory from sys.path when Python is running from the build directory (POSIX only).
........
  r79382 | florent.xicluna | 2010-03-24 20:33:25 +0100 (mer, 24 mar 2010) | 2 lines

  Skip tests which depend on multiprocessing.sharedctypes, if _ctypes is not available.
........
  r79425 | florent.xicluna | 2010-03-25 21:32:07 +0100 (jeu, 25 mar 2010) | 2 lines

  Syntax cleanup `== None` -> `is None`
........
  r79426 | florent.xicluna | 2010-03-25 21:33:49 +0100 (jeu, 25 mar 2010) | 2 lines

  #8207: Fix test_pep277 on OS X
........
  r79427 | florent.xicluna | 2010-03-25 21:39:10 +0100 (jeu, 25 mar 2010) | 2 lines

  Fix test_unittest and test_warnings when running "python -Werror -m test.regrtest"
........
  r79450 | florent.xicluna | 2010-03-26 20:32:44 +0100 (ven, 26 mar 2010) | 2 lines

  Ensure that the failed or unexpected tests are sorted before printing.
........
2010-03-28 00:25:02 +00:00
Florent Xicluna c049d870b5 Merged revisions 79344,79346,79350 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79344 | florent.xicluna | 2010-03-23 15:36:45 +0100 (mar, 23 mar 2010) | 2 lines

  Silence test_subprocess.
........
  r79346 | florent.xicluna | 2010-03-23 16:05:30 +0100 (mar, 23 mar 2010) | 2 lines

  The standard error should be empty when the signal is killed, except on SIGINT.
........
  r79350 | florent.xicluna | 2010-03-23 20:19:16 +0100 (mar, 23 mar 2010) | 2 lines

  The SIGINT signal may happen earlier, during site.py initialization.
........
2010-03-27 22:47:23 +00:00
Florent Xicluna d35f117192 Blocked revisions 79288,79295-79296,79334,79378 via svnmerge
........
  r79288 | florent.xicluna | 2010-03-22 16:02:46 +0100 (lun, 22 mar 2010) | 2 lines

  Get rid of buffer() in test_ctypes:  backport the 3.x tests.
........
  r79295 | florent.xicluna | 2010-03-22 17:07:38 +0100 (lun, 22 mar 2010) | 3 lines

  Issue #7703: ctypes supports both buffer() and memoryview().  The former is deprecated.
  Complement of r79288.
........
  r79296 | florent.xicluna | 2010-03-22 17:36:51 +0100 (lun, 22 mar 2010) | 3 lines

  Preserve backward compatibility of the ctypes module.
  "This file should be kept compatible with Python 2.3, see PEP 291."
........
  r79334 | florent.xicluna | 2010-03-23 12:07:54 +0100 (mar, 23 mar 2010) | 2 lines

  Skip test_format_deprecation if _ctypes is not available.  Add a filter to the warning check.
........
  r79378 | florent.xicluna | 2010-03-24 18:32:58 +0100 (mer, 24 mar 2010) | 3 lines

  Skip test_ascii_formatd if _ctypes is not available (BSD, ...).
  Previous change was incomplete (r79334).
........
2010-03-27 22:18:04 +00:00
Michael Foord bf1fab4aa0 Merged revisions 79468 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79468 | michael.foord | 2010-03-27 13:42:34 +0000 (Sat, 27 Mar 2010) | 1 line

  Rename the unittest test_suite function to not clash with a test module name (unittest.test.test_suite is now unambiguous).
........
2010-03-27 13:45:04 +00:00
Michael Foord ff5366d2be Blocked revisions 79443 via svnmerge
........
  r79443 | benjamin.peterson | 2010-03-26 13:53:32 +0000 (Fri, 26 Mar 2010) | 1 line

  reorder imports
........
2010-03-27 13:29:35 +00:00
Michael Foord e65d8487bc Merged revisions 79442 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79442 | michael.foord | 2010-03-26 13:07:38 +0000 (Fri, 26 Mar 2010) | 1 line

  Makefile.pre.in for the unittest/test directory
........
2010-03-27 13:28:27 +00:00
Michael Foord 65b69a1093 Merged revisions 79437 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79437 | michael.foord | 2010-03-26 03:18:31 +0000 (Fri, 26 Mar 2010) | 1 line

  Addition of -c command line option to unittest, to handle ctrl-c during a test run more elegantly
........
2010-03-27 13:25:41 +00:00
Michael Foord 8777f01d71 Blocked revisions 79436 via svnmerge
........
  r79436 | michael.foord | 2010-03-26 02:53:56 +0000 (Fri, 26 Mar 2010) | 1 line

  Move a support TestCase out of the main namespace in unittest.test.test_suite
........
2010-03-27 12:49:01 +00:00
Michael Foord a20220723d Blocked revisions 79433 via svnmerge
........
  r79433 | michael.foord | 2010-03-26 00:03:38 +0000 (Fri, 26 Mar 2010) | 1 line

  Remove incorrect docstring in unittest.test
........
2010-03-27 12:41:09 +00:00
Michael Foord 2560e5cf53 Breaking test_unittest.py into a package. Manual merge of revision 79432. 2010-03-27 12:34:21 +00:00
Mark Dickinson ab4d63b7f7 Merged revisions 79457 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79457 | mark.dickinson | 2010-03-27 11:14:37 +0000 (Sat, 27 Mar 2010) | 1 line

  Add Misc/NEWS entry for r79455.
........
2010-03-27 11:16:00 +00:00
Mark Dickinson 327f02c60c Merged revisions 79455 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79455 | mark.dickinson | 2010-03-27 11:09:29 +0000 (Sat, 27 Mar 2010) | 2 lines

  Make Fraction to complex comparisons with <=, <, >= or > raise TypeError.
........
2010-03-27 11:11:13 +00:00
Michael Foord e6be10990d Blocked revisions 79432 via svnmerge
........
  r79432 | michael.foord | 2010-03-25 23:56:33 +0000 (Thu, 25 Mar 2010) | 1 line

  Turn unittest tests into a package
........
2010-03-27 01:41:24 +00:00
Antoine Pitrou 3c0fac2f1c Add NEWS entry for r79449. 2010-03-26 19:36:14 +00:00
Antoine Pitrou 5f1c38f06b Merged revisions 79448 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79448 | antoine.pitrou | 2010-03-26 20:27:16 +0100 (ven., 26 mars 2010) | 6 lines

  Issue #8222: Enable the SSL_MODE_AUTO_RETRY flag on SSL sockets, so that blocking
  reads and writes are always retried by OpenSSL itself.

  (this is a followup to issue #3890)
........
2010-03-26 19:32:24 +00:00
Brian Curtin 027e478f3f Merged revisions 79430 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79430 | brian.curtin | 2010-03-25 18:48:54 -0500 (Thu, 25 Mar 2010) | 2 lines

  Fix #6538. Markup RegexObject and MatchObject as classes. Patch by Ryan Arana.
........
2010-03-26 00:39:56 +00:00
Benjamin Peterson fa0aebacd9 Merged revisions 79428 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79428 | benjamin.peterson | 2010-03-25 18:27:16 -0500 (Thu, 25 Mar 2010) | 1 line

  make naming convention consistent
........
2010-03-25 23:30:20 +00:00
Victor Stinner 4ce881e928 Fix my test introduced in test_sys by r79394:
Restore the orginal filesystem encoding before testing
assertRaises(LookupError, sys.setfilesystemencoding, "xxx"). Unittest formats
the exception, but the formatting failed because the file system was invalid
(set to iso-8859-1 by the previous test).

Anyway, ensure to restore the original filesystem encoding when exiting
test_setfilesystemencoding() to avoid error propagation to the other tests.
2010-03-25 12:24:38 +00:00
Benjamin Peterson e777a68682 Blocked revisions 79413 via svnmerge
........
  r79413 | benjamin.peterson | 2010-03-24 22:44:24 -0500 (Wed, 24 Mar 2010) | 1 line

  make an attempt to add capsule to the Windows build
........
2010-03-25 03:46:05 +00:00
Larry Hastings 048bb6e212 Blocked revisions 79410 via svnmerge
........
  r79410 | larry.hastings | 2010-03-24 18:23:27 -0700 (Wed, 24 Mar 2010) | 2 lines

  Remove extraneous experimental code checked in by accident.
........
2010-03-25 01:25:31 +00:00
Benjamin Peterson af257f6967 Merged revisions 79403 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79403 | benjamin.peterson | 2010-03-24 20:04:58 -0500 (Wed, 24 Mar 2010) | 1 line

  set eol on email example
........
2010-03-25 01:21:09 +00:00
Benjamin Peterson 98579c62c5 Blocked revisions 79402,79406 via svnmerge
........
  r79402 | benjamin.peterson | 2010-03-24 20:03:51 -0500 (Wed, 24 Mar 2010) | 1 line

  set bsddb eol style
........
  r79406 | benjamin.peterson | 2010-03-24 20:05:57 -0500 (Wed, 24 Mar 2010) | 1 line

  fix eol properties on capsule files
........
2010-03-25 01:11:10 +00:00
Victor Stinner 00d6a1d5d5 Merged revisions 79392 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79392 | victor.stinner | 2010-03-25 01:21:53 +0100 (jeu., 25 mars 2010) | 3 lines

  Issue #8211: Save/restore CFLAGS around AC_PROG_CC in configure.in, compiler
  optimizations are disabled when --with-pydebug is used.
........
2010-03-25 01:02:29 +00:00
Larry Hastings 1d85bf49c3 Blocked revisions 79397 via svnmerge
........
  r79397 | larry.hastings | 2010-03-24 17:54:54 -0700 (Wed, 24 Mar 2010) | 4 lines

  Backported PyCapsule from 3.1, and converted most uses of
  CObject to PyCapsule.
........
2010-03-25 00:57:10 +00:00
Victor Stinner 41ff399486 Merged revisions 79395 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79395 | victor.stinner | 2010-03-25 01:51:58 +0100 (jeu., 25 mars 2010) | 5 lines

  Fix _curses.tiget*() functions: deny None to avoid a crash.

  Fix the following calls: _curses.tigetflag(None), _curses.tigetnum(None),
  _curses.tigetstr(None).
........
2010-03-25 00:55:12 +00:00
Victor Stinner 120c21227a Issue #8226: sys.setfilesystemencoding() raises a LookupError if the encoding
is unknown.
2010-03-25 00:30:28 +00:00
Steven Bethard cd4ec0e273 Merged revisions 79388 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79388 | steven.bethard | 2010-03-24 16:03:24 -0700 (Wed, 24 Mar 2010) | 1 line

  Replace license with simple attribution.
........
2010-03-24 23:07:31 +00:00