Commit Graph

49896 Commits

Author SHA1 Message Date
R David Murray f1138bb1b6 #11700: proxy object close methods can now be called multiple times
This makes them work like the close provided by regular file objects.  This
patch also backports the close-the-underlying-file code for _ProxyFile objects
that was introduced along with context manager support in the 3.x branch.
2011-06-17 22:23:04 -04:00
Victor Stinner c74a6ba2d6 Issue #12133: AbstractHTTPHandler.do_open() of urllib.request closes the HTTP
connection if its getresponse() method fails with a socket error. Patch written
by Ezio Melotti.
2011-06-17 14:06:27 +02:00
Benjamin Peterson 898d43c7af update link to pycrypto (closes #12351) 2011-06-16 18:49:46 -05:00
Vinay Sajip ad52cb2613 Closes #12206: documentation update for LogRecord constructor and Formatter.formatTime. 2011-06-13 14:59:36 +01:00
Benjamin Peterson 0eb4ac4c62 allow "fake" filenames in findsource (closes #9284)
This allows findsource() to work in doctests.

A patch from Dirkjan Ochtman.
2011-06-11 15:53:11 -05:00
Benjamin Peterson 6abd97e3b2 onto 2.7.3 2011-06-11 11:33:54 -05:00
Benjamin Peterson a573e0df36 merge 2.7.2 release branch 2011-06-11 09:51:21 -05:00
Benjamin Peterson 04085d7455 Added tag v2.7.2 for changeset 8527427914a2 2011-06-11 09:50:36 -05:00
Benjamin Peterson 377510d2d9 update pydoc-topics 2011-06-11 09:50:21 -05:00
Benjamin Peterson 9843ba5e54 bump to 2.7.2 final 2011-06-11 09:42:44 -05:00
Benjamin Peterson b30d5c711e merge heads 2011-06-10 11:33:58 -05:00
Benjamin Peterson 8b8162d868 merge 2.7.2 release branch with fix for #12009 2011-06-10 11:33:41 -05:00
Benjamin Peterson 43ee1a5d90 fix regression in netrc comment handling (closes #12009) 2011-06-10 11:32:52 -05:00
Eli Bendersky 761473f28a Issue #12223: Typo fix in datamodel docs 2011-06-10 10:36:34 +03:00
R David Murray 873c583244 #10694: zipfile now ignores garbage at the end of a zipfile.
Original fix by 'rep', final patch (with tests) by Xuanji Li.
2011-06-09 16:01:09 -04:00
Brian Curtin 5446f08c60 Correction to f1509fc75435 - Issue #11583
Rather than wrapping the C _isdir function in a Python function,
just import the C _isdir function directly. Additionally, add in the
docstring which was left out.
2011-06-09 10:00:42 -05:00
Éric Araujo 5cf8660f0b Fix a few misuses of :option: I missed in r86521.
Extract of the commit message:

  Fix usage of :option: in the docs (#9312).

  :option: is used to create a link to an option of python, not to mark
  up any instance of any arbitrary command-line option.  These were
  changed to ````.
2011-06-09 14:26:10 +02:00
Éric Araujo d476a89e46 Branch merge 2011-06-09 13:14:12 +02:00
Brian Curtin caea7e8d23 Merge 2011-06-08 19:29:53 -05:00
Éric Araujo a65a880cd2 Add examples that work on Windows to distutils docs (#1626300) 2011-06-08 01:11:36 +02:00
Éric Araujo ce5493f33d Branch merge 2011-06-06 17:11:31 +02:00
Benjamin Peterson 1dc4a828e9 merge 2.7.2 release branch 2011-06-05 12:51:18 -05:00
Martin v. Löwis 2231e1a01f Stop adding txt files twice. 2011-06-05 10:44:18 +02:00
Martin v. Löwis ebebd1c56f Add 2.7.2 UUIDs 2011-06-05 10:43:45 +02:00
Éric Araujo 865b573c04 Remove unnecessary executable bit on one distutils file 2011-06-04 20:45:33 +02:00
Mark Dickinson a493ca3fae Issue #12080: Fix a performance issue in Decimal._power_exact that caused some corner-case Decimal.__pow__ calls to take an unreasonably long time. 2011-06-04 18:24:15 +01:00
Éric Araujo 3322a25532 Remove outdated bit of advice (c882b5ff92d9 follow-up) 2011-06-04 18:35:04 +02:00
Barry Warsaw 7d21401811 Null merge from 2.6. 2011-06-03 20:07:41 -04:00
Barry Warsaw d0366e862a Replay svn r88852. 2011-06-03 20:05:48 -04:00
Barry Warsaw 16ec24a192 Replay svn r88850. 2011-06-03 20:02:47 -04:00
Victor Stinner e3826c7774 Issue #12016: Add test_errorhandle() to TestBase_Mapping of
test_multibytecodec_support. Improve also error message of the
test_errorhandle() of TestBase.
2011-06-03 23:56:43 +02:00
Victor Stinner 9a1662c2f0 Issue #12016: Reindent decoders of HK and JP codecs 2011-06-03 23:35:27 +02:00
Benjamin Peterson d571cf5ab0 merge 2.7.2 release branch 2011-06-03 16:17:48 -05:00
Benjamin Peterson ef1122cbd6 another benefit of this change 2011-06-03 16:17:22 -05:00
Éric Araujo d66d95cdd0 Document working dir for “make html” (#12249). Patch by Tshepang Lekhonkhobe. 2011-06-03 19:25:58 +02:00
Raymond Hettinger 45b082935d Fix named tuples to work with vars(). 2011-06-02 20:40:35 -07:00
Raymond Hettinger 19b851d11b sys.checkinterval() now refreshes the current countdown ticker. 2011-06-01 18:21:42 -07:00
Raymond Hettinger 88fc66179b Cleanup example 2011-06-01 16:01:21 -07:00
Raymond Hettinger 690d4ae8bf Multiple clean-ups to the docs for builtin functions.
* Use concrete example for dir() and eliminate the distracting doctest directives.
* Add a pure python equivalent for enumerate()
* Modify the enumerate() example to demonstrate the start argument
* Remove incorrect reference the *iterable* in the enumerate() docs.
* Downgrade the comments on input() from a warning to a note.
* Fix the iter() example to use the empty string as the terminating
  condition for file.readline().  Also, the old example was broken
  because readline() results include a newline, so 'STOP\n' would have
  been the correct terminating condition.  Even with that fix, the
  STOP example was fragile and would have lead to infinite loops with
  malformed inputs.
* Do not refer to classmethod as being "more advanced" than staticmethod.
2011-06-01 15:50:34 -07:00
Raymond Hettinger 783a30f38e Link to suggestions for how to use super(). 2011-06-01 14:57:13 -07:00
Éric Araujo 2845365bf2 Branch merge 2011-06-01 19:28:26 +02:00
Benjamin Peterson 115a143fa7 merge release tag 2011-05-31 19:12:11 -05:00
Benjamin Peterson bdc21fbaf9 merge heads 2011-05-31 19:08:12 -05:00
Benjamin Peterson 35a9b1ca13 merge 2.7.2 release branch 2011-05-31 19:01:23 -05:00
Benjamin Peterson 4ba009d8dc simply use the Python version for pyexpat.__version__ #12221 2011-05-31 18:59:49 -05:00
Victor Stinner e9b185f263 Issue #12085: Fix test_subprocess for my previous commit
Replace support by test_support, and add captured_stderr() function.
2011-06-01 01:57:48 +02:00
Benjamin Peterson f14e42077c add 2.7.2 header 2011-05-31 18:44:55 -05:00
Victor Stinner 776e69b5b3 Close #12085: Fix an attribute error in subprocess.Popen destructor if the
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
2011-06-01 01:03:00 +02:00
Éric Araujo 346d8609a1 Fix markup: arguments in a class directive are __init__ arguments, not base classes 2011-05-31 21:50:22 +02:00
Éric Araujo f2f8503b65 Fix error message to use the Python name instead of the C name 2011-05-31 14:08:40 +02:00