Commit Graph

65436 Commits

Author SHA1 Message Date
Ezio Melotti 8221f86513 #16206: Improve examples about dict construction. 2012-10-26 19:14:16 +03:00
Chris Jerdonek 32473e73f4 Backport from 3.2: fix formatting of syntax description of function definition. 2012-10-25 17:26:10 -07:00
Ezio Melotti b74e02e6c2 #16303: remove extra quotes from exception and add (). Initial patch by Vladimir Rutsky. 2012-10-24 23:43:02 +03:00
Ezio Melotti b8fbff889f #16210: combine the two type() docs. Patch by Pete Sevander. 2012-10-24 23:01:30 +03:00
Petri Lehtinen 9ad6a563a7 #15040: Close files in mailbox tests for PyPy compatibility
Original patch by Matti Picus.
2012-10-23 14:42:13 +03:00
Ned Deily e3d47128c5 Issue #15853: Prevent IDLE crash on OS X when opening Preferences menu
with certain versions of Tk 8.5.  Initial patch by Kevin Walzer.
2012-10-22 15:13:01 -07:00
Jesus Cea 3dd8cbea9b Closes #16294: 8 space indent in tutorial 2012-10-22 13:14:20 +02:00
Nadeem Vawda 45dba1da32 Issue #14398: Fix size truncation and overflow bugs in bz2 module. 2012-10-21 23:09:08 +02:00
Nadeem Vawda dd72b3f6b7 Issue #5148: Ignore 'U' in mode given to gzip.open() and gzip.GzipFile(). 2012-10-21 18:15:05 +02:00
Antoine Pitrou c30848344c Fix whacky spacing in test_wsgiref 2012-10-21 14:10:29 +02:00
Antoine Pitrou e97a24d06a Issue #16220: wsgiref now always calls close() on an iterable response.
Patch by Brent Tubbs.
2012-10-21 14:09:05 +02:00
Ned Deily c859bd2b28 Issue #10405: Document IDLE context menus in Standard Library document
and IDLE Help file.  (Thanks to Nick ODell and Todd Rovito for suggestions.)
Update Debug menu options in docs to match current code plus various other
minor IDLE doc and help edits.
2012-10-20 13:23:25 -07:00
Nick Coghlan 33b0fc2304 No reason to use a generator here 2012-10-19 23:59:35 +10:00
Nick Coghlan 097708aef6 Issue #6074: Actually delete the source file in the test as intended 2012-10-19 23:17:48 +10:00
Nick Coghlan b48c028ca7 Issue #6074: Restore the long-broken support for running with read-only source files on Windows 2012-10-19 21:58:18 +10:00
Trent Nelson 02f69f6965 Issue #16274: revert r79813:90a46f8943d0 changes to asyncore/test_asyncore.
The backport from 3.2 included a few things not appropriate for 2.7.
2012-10-18 07:44:43 -04:00
Trent Nelson 0622f6c14c Issue #16274: backport of 3.2's asyncore/test_asyncore to 2.7.
This fixes failing tests on Solaris 10.
2012-10-18 06:08:01 -04:00
Trent Nelson 6a7f8670dd Issue #16257: make test_create_connection() handle ENETUNREACH. 2012-10-18 01:35:32 -04:00
Trent Nelson 34562e115b Don't add -OPT:Olimit to CFLAGS on AIX, SunOS, HP-UX or IRIX. It breaks them. 2012-10-17 18:01:12 -04:00
Andrew Svetlov f892597eb5 Issue #9583: Document startup option/environment interaction.
Patch by Todd Rovito.
2012-10-17 17:14:28 +03:00
Trent Nelson abf205149c Issue #15819: use standard autoconf preset output variables.
Reported by: Roumen Petrov
2012-10-17 04:32:49 -04:00
Antoine Pitrou eadca1defa Also add tests for TextIOWrapper.writelines() (issue #15744). 2012-10-16 23:02:27 +02:00
Antoine Pitrou 78e761eafe Add tests for the writelines() method of file objects.
Original patch by Felipe Cruz.
2012-10-16 22:57:11 +02:00
Trent Nelson ce5a56e985 Merge heads. 2012-10-16 11:10:40 -04:00
Trent Nelson fcb009c9d6 Issue #15819: tweak logic in previous commit (e0a2b14a3cf9). 2012-10-16 10:52:35 -04:00
Benjamin Peterson ba6a6cfbbc merge heads 2012-10-16 09:52:02 -04:00
Benjamin Peterson bf67ba8f84 only run doctests when __doc__ is around 2012-10-16 09:51:46 -04:00
Trent Nelson d86ceecf21 Issue #15819: additional fixes for out-of-tree builds from read-only src.
Unlike 3.2, 3.3 and 3.x, which add "-IObjects -IPython -IInclude" to
BASECPPFLAGS when building out-of-tree, 2.7 only needs to add -IInclude
(for Python-ast.h and graminit.h).
2012-10-16 09:42:45 -04:00
Andrew Svetlov ae1d185750 Issue #15936: Reformat text for os.random to follow Larry Hastings suggestion 2012-10-16 13:51:26 +03:00
Andrew Svetlov 8a9d370a2b Issue #15936: Add link from os.urandom to random.SystemRandom 2012-10-16 13:23:15 +03:00
Vinay Sajip 94540d4031 Issue #16244: Remove file mode overrides. 2012-10-16 10:27:00 +01:00
Chris Jerdonek 0cffd6be56 Issue #16225: Backport from 3.2: Add additional note to tutorial about looping. 2012-10-15 20:01:38 -07:00
Benjamin Peterson fd6d3b149f fix typo 2012-10-15 22:29:02 -04:00
Benjamin Peterson ca01a76878 don't expect warnings from doctests if they can't run 2012-10-15 20:38:21 -04:00
Chris Jerdonek d7d9a44226 Issue #16227: Add to 2.x Unicode HOWTO a link to the Python 3 version. 2012-10-15 17:12:17 -07:00
Chris Jerdonek def5df6c53 Issue #16206: Backport dict documentation improvements from 3.2.
Improve the documentation of the dict constructor.  This change includes
replacing the single-line signature documentation with a more complete
multiple-line signature.
2012-10-13 03:49:30 -07:00
Raymond Hettinger d9edd82b7f String exceptions aren't just deprecated, they are gone. 2012-10-12 19:44:35 -07:00
Gregory P. Smith 99716166b1 Fixes Issue #12268 for the io module - File readline, readlines and
read or readall methods no longer lose data when an underlying read
system call is interrupted within an io module object.  IOError is no
longer raised due to a read system call returning EINTR from within
these methods.

This is a backport of changeset 781b95159954 from 3.2.
The earlier 2.7 changeset 67dc99a989cd already fixed this for the
builtin python 2.x file object.
2012-10-12 13:02:06 -07:00
Chris Jerdonek 2aa5afab4e Issue #16199: Backport 2to3 typo fix from 3.2. 2012-10-11 16:15:46 -07:00
Brian Curtin c1924ab729 Fix #16176. Properly identify Windows 8 via platform.platform()
Add handling of the 6.2 release line, aka Windows 8 and Windows 2012 Server.
2012-10-11 16:16:50 -05:00
Chris Jerdonek 1e65159b34 Backport from 3.2: Fix placement of shell=True warning in subprocess.Popen() docs. 2012-10-10 22:58:57 -07:00
Chris Jerdonek 2a6672b100 Issue #16115: Backport subprocess.Popen() documentation improvements from 3.2. 2012-10-10 17:55:41 -07:00
Chris Jerdonek cfb01a5ad0 Issue #12947: Backport doctest documentation change from 3.3. 2012-10-10 08:39:34 -07:00
Georg Brandl a11c1fcd20 Missed one instance of code-block:: text highlighting to revert. 2012-10-10 16:56:15 +02:00
Georg Brandl 7495456ffc Issue #12947: revert earlier workaround and use a monkey-patch to enable showing doctest directives only in the doctest docs. 2012-10-10 16:45:11 +02:00
Chris Jerdonek d469c400ed Issue #12947: Backport doctest documentation improvements from 3.3. 2012-10-10 07:13:56 -07:00
Senthil Kumaran 7c06801638 Fix Issue 15922: make howto/urllib2.rst doctests pass.
Patch by Chris Jerdonek. Address Ezio's review comment.
2012-10-09 01:03:35 -07:00
Vinay Sajip 6ecdb58154 Issue #16168: Use specified socket type for domain sockets in SysLogHandler. 2012-10-09 08:17:41 +01:00
Chris Jerdonek 1906c0c992 Issue #16115: Backport subprocess.Popen() documentation improvements from 3.2. 2012-10-08 23:18:17 -07:00
Chris Jerdonek ad4b000179 Issue #14783: Backport changes from 3.2. 2012-10-07 20:37:54 -07:00