Commit Graph

80589 Commits

Author SHA1 Message Date
Charles-François Natali 9437d7a7fe Issue #18963: Fix test_selectors.test_above_fd_setsize on OS X, where the
default RLIMIT_NOFILE hard limit can be RLIMIT_INFINITY.
2013-09-08 11:34:42 +02:00
Charles-François Natali 45e255167e Issue #18934: Use poll/select-based selectors for multiprocessing.Connection,
to avoid one extra FD per Connection.
2013-09-08 11:30:53 +02:00
Raymond Hettinger 742d8716ff Put the defines in the logical section and fix indentation. 2013-09-08 00:25:57 -07:00
Senthil Kumaran f367962d86 merge from 3.3
Fix the dead link of IEEE_854-1987 standard with the Wikipedia entry.
Addresses issue #18438
2013-09-07 23:20:06 -07:00
Senthil Kumaran 4fec47e5ed Fix the dead link of IEEE_854-1987 standard with the Wikipedia entry.
Addresses issue #18438
2013-09-07 23:19:29 -07:00
Raymond Hettinger 583cd03fd1 Minor code beautification. 2013-09-07 22:06:35 -07:00
Raymond Hettinger 4ea9080da9 Improve code clarity by removing two unattractive macros. 2013-09-07 21:01:29 -07:00
Raymond Hettinger 8f8839e10a Remove the freelist scheme for setobjects.
The setobject freelist was consuming memory but not providing much value.
Even when a freelisted setobject was available, most of the setobject
fields still needed to be initialized and the small table still required
a memset().  This meant that the custom freelisting scheme for sets was
providing almost no incremental benefit over the default Python freelist
scheme used by _PyObject_Malloc() in Objects/obmalloc.c.
2013-09-07 20:26:50 -07:00
Nick Coghlan ff6382b40d Merge #18952 fix from 3.3 2013-09-08 12:49:53 +10:00
Tim Peters 68d7f78703 Issue 18808: blind attempt to repair some buildbot failures.
test_is_alive_after_fork is failing on some old Linux kernels, but
passing on all newer ones.  Since virtually anything can go wrong
with locks when mixing threads with fork, replace the most likely
cause with a redundant simple data member.
2013-09-07 21:23:03 -05:00
Nick Coghlan 0494c2ae7f Close #18952: correctly download test support data
When test.support was converted to a package, it started silently
skipping the tests which needed to download support data to run.

This change refactors the affected code, and also tidies up
test.support.findfile to remove the unused *here* parameter, document
the *subdir* parameter and rename the *filename* parameter to avoid
shadowing the file builtin and be consistent with the documentation.

The unexpected skips were noticed and reported by Zachary Ware
2013-09-08 11:40:34 +10:00
Senthil Kumaran b1424a2908 merge from 3.3
Correct Profile class usage example. Addresses issue #18033.
Patch contributed by Olivier Hervieu and Dmi Baranov.
2013-09-07 17:52:38 -07:00
Senthil Kumaran 21101f7038 Correct Profile class usage example. Addresses issue #18033.
Patch contributed by Olivier Hervieu and Dmi Baranov.
2013-09-07 17:51:58 -07:00
Raymond Hettinger 04fd9dd52b Small rearrangement to bring together the three functions for probing the hash table. 2013-09-07 17:41:01 -07:00
Raymond Hettinger ae7b00e2d3 Move the overview comment to the top of the file. 2013-09-07 15:05:00 -07:00
Antoine Pitrou 7b4769937f Issue #18808: Thread.join() now waits for the underlying thread state to be destroyed before returning.
This prevents unpredictable aborts in Py_EndInterpreter() when some non-daemon threads are still running.
2013-09-07 23:38:37 +02:00
Senthil Kumaran eda7c64151 Fix the merge conflict 2013-09-07 14:12:55 -07:00
Senthil Kumaran 2f2ae39037 merge from 3.3
Fix License URL display and add test to check for license url presence.
Fixes issue #18206 Patch contributed by  Berker Peksag and py.user
2013-09-07 14:09:48 -07:00
Senthil Kumaran 8ef519b24f Fix License URL display and add test to check for license url presence.
Fixes issue #18206 Patch contributed by  Berker Peksag and py.user
2013-09-07 13:59:17 -07:00
Senthil Kumaran 59b74ec5e3 merge from 3.3
Removing the mention of os.isatty mention as Unix only
Correct the wrong documentation.
2013-09-07 11:30:04 -07:00
Senthil Kumaran 1b90227c0d Removing the mention of os.isatty mention as Unix only
Correct the wrong documentation.
2013-09-07 11:28:58 -07:00
Richard Oudkerk b988ee0632 Fix conversion from Py_ssize_t to int. 2013-09-07 17:40:45 +01:00
Ezio Melotti 84eadd8651 #18895: merge with 3.3. 2013-09-07 15:24:01 +03:00
Ezio Melotti e64a91a890 #18895: split a sentence in unittest docs. 2013-09-07 15:23:36 +03:00
Ezio Melotti 0cd94428ad #18894: merge with 3.3. 2013-09-07 15:20:03 +03:00
Ezio Melotti e2202365ed #18894: remove mention of deprecated fail* methods. 2013-09-07 15:19:30 +03:00
Victor Stinner b034eee711 Close #18954: Fix some typo in fileutils.c comments
Patch written by Vajrasky Kok.
2013-09-07 10:36:04 +02:00
Ethan Furman 9143b0e087 Added Elazar to Misc/ACKS. 2013-09-06 19:58:01 -07:00
Ethan Furman ed0bf8a729 Close #18908: Keep Enum docs in their own section. Patch by Elazar Gershuni. 2013-09-06 19:53:30 -07:00
Ned Deily f70f4a63b6 Issue #18458: Prevent crashes with newer versions of libedit. Its readline
emulation has changed from 0-based indexing to 1-based like gnu readline.
Original patch by Ronald Oussoren.
2013-09-06 15:16:19 -07:00
Tim Peters f4ecfae75f Merge 3.3 into default.
Issue 18944:  fix a 1-character typo in test_set.py.

The error caused test_inline_methods() to test much less than intended.
Caught (& fixed) by Armin Rigo.
2013-09-06 15:42:47 -05:00
Tim Peters 23d7d4e85c Issue 18944: fix a 1-character typo in test_set.py.
The error caused test_inline_methods() to test much less than intended.
Caught (& fixed) by Armin Rigo.
2013-09-06 15:41:30 -05:00
Antoine Pitrou 66ff01fede Remove old-school inheritance 2013-09-06 21:18:25 +02:00
Charles-François Natali 6703bb4984 Issue #18934: Relax test_multiprocessing.test_invalid_handles a bit: we just
want to check that Connection.poll() doesn't crash.
2013-09-06 21:12:22 +02:00
Antoine Pitrou b0478b3f5f Issue #18623: Factor out the _SuppressCoreFiles context manager into test.support.
Patch by Valerie Lambert.
2013-09-06 20:50:00 +02:00
R David Murray 4a0430166b #18852: Handle readline.__doc__ being None in site.py readline activation.
Patch by Berker Peksag.
2013-09-06 13:08:08 -04:00
Ethan Furman f203f2d51d Close #18924: Block naive attempts to change an Enum member. 2013-09-06 07:16:48 -07:00
Eli Bendersky 96d848ace4 Update whatsnew/3.4 wrt. --version going to stdout. #18338, #18920, #18922 2013-09-06 06:55:58 -07:00
Eli Bendersky cdac551675 Issue #18920: argparse's default version action (for -v, --version) should
output to stdout, matching the 'python -v'

Reported by Wolfgang Maier
2013-09-06 06:49:15 -07:00
Eli Bendersky 309836c5c8 Issue #18849: Fixed a Windows-specific tempfile bug where collision with an
existing directory caused mkstemp and related APIs to fail instead of
retrying. Report and fix by Vlad Shcherbina.
2013-09-06 06:14:16 -07:00
Eli Bendersky f315df31bd Issue #18849: Fixed a Windows-specific tempfile bug where collision with an
existing directory caused mkstemp and related APIs to fail instead of
retrying. Report and fix by Vlad Shcherbina.
2013-09-06 06:11:19 -07:00
Vinay Sajip f7b436ce8d Closes #18941: Merged fix from 3.3. 2013-09-06 10:26:48 +01:00
Vinay Sajip 43c6ef1899 Issue #18941: Respected delay when doing rollover. 2013-09-06 10:25:31 +01:00
Vinay Sajip a92a3564a9 Closes #18940: Merged fix from 3.3. 2013-09-06 10:11:37 +01:00
Vinay Sajip d859926b29 Issue #18940: Handled low-volume logging when delay is True. 2013-09-06 10:10:22 +01:00
Vinay Sajip e2549df82e Closes #18939: Merged documentation update from 3.3. 2013-09-06 09:51:27 +01:00
Vinay Sajip a704582002 Issue #18939: Updated venv documentation with some clarifications. 2013-09-06 09:50:43 +01:00
Ned Deily 981b69318d Issue #15663: Tcl/Tk 8.5.14 is now included with the OS X 10.6+
64-bit/32-bit installer for 10.6+.  It is no longer necessary
to install a third-party version of Tcl/Tk 8.5 to work around the
problems in the Apple-supplied Tcl/Tk 8.5 shipped in OS X 10.6
and later releases.
2013-09-06 01:18:36 -07:00
Ned Deily d819b931f3 Issue #1584: Provide options to override default search paths for Tcl and Tk
when building _tkinter.  configure has two new options; if used, both must
be specified:

  ./configure \
      --with-tcltk-includes="-I/opt/local/include" \
      --with-tcltk-libs="-L/opt/local/lib -ltcl8.5 -ltk8.5"

In addition, the options can be overridden with make:

   make \
       TCLTK_INCLUDES="-I/opt/local/include" \
       TCLTK_LIBS="-L/opt/local/lib -ltcl8.6 -ltk8.6"
2013-09-06 01:07:05 -07:00
Senthil Kumaran d80f7be580 merge from 3.3
Improve urlencode docstring. Patch by Brian Brazil.
Closes issue #15350
2013-09-05 21:43:53 -07:00