]>
granicus.if.org Git - python/log
Éric Araujo [Thu, 3 Nov 2011 04:08:28 +0000 (05:08 +0100)]
Improve byte-compilation in packaging to be independent of -O or -B.
The code I fixed to comply with PEP 3147 still had one bug: When run
under python -O, some paths for pyc files would be pyo, because I called
imp.cache_from_source without explicit debug_override argument in some
places, and under -O that would return .pyo (this is well explained in
the imp docs). Now all code (util.byte_compile, build_py, install_lib)
can create .pyo files according to options given by users,
without interference from the calling Python’s own optimize mode.
On a related topic, I also removed the code that prevented byte
compilation under python -B. The rationale is that packaging gives
control over the creation of pyc files to the user with its own explicit
option, and the behavior should not be changed if the calling Python
happens to run with -B for whatever reason. I will argue that this is a
bug fix and ask to be allowed to backport this change to distutils.
Finally, I moved one nugget of information about the --compile and
--optimize options from the source into the doc. It clears up a
misunderstanding that I (and maybe other people) had.
Éric Araujo [Wed, 2 Nov 2011 23:20:03 +0000 (00:20 +0100)]
Minor code reorganization in one packaging test file
Éric Araujo [Wed, 2 Nov 2011 23:13:05 +0000 (00:13 +0100)]
Fix typo “seperate”
Éric Araujo [Wed, 2 Nov 2011 23:12:39 +0000 (00:12 +0100)]
Fix typos in recent NEWS entries
Martin v. Löwis [Wed, 2 Nov 2011 11:45:42 +0000 (12:45 +0100)]
Introduce PyObject* API for raising encode errors.
Florent Xicluna [Wed, 2 Nov 2011 07:13:43 +0000 (08:13 +0100)]
Issue #13312: skip the failing negative years for now.
Florent Xicluna [Wed, 2 Nov 2011 02:22:15 +0000 (03:22 +0100)]
Actually, there's more than one failing value. (changeset
9cb1b85237a9 , issue #13312).
Florent Xicluna [Wed, 2 Nov 2011 00:28:17 +0000 (01:28 +0100)]
Issue #13312: skip the single failing value for now.
Martin v. Löwis [Tue, 1 Nov 2011 17:42:23 +0000 (18:42 +0100)]
Replace Py_UNICODE_strchr with PyUnicode_FindChar.
Florent Xicluna [Tue, 1 Nov 2011 22:42:05 +0000 (23:42 +0100)]
Additional tests for negative years.
Florent Xicluna [Tue, 1 Nov 2011 22:33:14 +0000 (23:33 +0100)]
Merge 3.2: issue #2892
Florent Xicluna [Tue, 1 Nov 2011 22:31:09 +0000 (23:31 +0100)]
Closes #2892: preserve iterparse events in case of SyntaxError.
Ezio Melotti [Tue, 1 Nov 2011 16:58:19 +0000 (18:58 +0200)]
Merge test improvements from 3.2.
Ezio Melotti [Tue, 1 Nov 2011 16:57:15 +0000 (18:57 +0200)]
Make sure that the tolerant parser still parses valid HTML correctly.
Florent Xicluna [Tue, 1 Nov 2011 16:42:24 +0000 (17:42 +0100)]
Lowercase the test name, to run last.
Florent Xicluna [Tue, 1 Nov 2011 15:58:54 +0000 (16:58 +0100)]
Replace temporary tests with the real test case for issue #13309 on Gentoo.
Senthil Kumaran [Tue, 1 Nov 2011 15:57:57 +0000 (23:57 +0800)]
'HTTPSHandler' and not the type.
Senthil Kumaran [Tue, 1 Nov 2011 15:49:46 +0000 (23:49 +0800)]
Append HTTPSHandler to __all__ when it is available.
Senthil Kumaran [Tue, 1 Nov 2011 15:20:31 +0000 (23:20 +0800)]
issue13287 - Define __all__ for urllib.request and urllib.error and expose only
the relevant module. Other cleanup improvements. Patch by flox.
Florent Xicluna [Tue, 1 Nov 2011 15:07:23 +0000 (16:07 +0100)]
Troubleshoot issue #13309 on Gentoo buildbot.
Florent Xicluna [Tue, 1 Nov 2011 14:12:34 +0000 (15:12 +0100)]
Add temporary tests to troubleshoot issue #13309 on Gentoo buildbot.
Florent Xicluna [Tue, 1 Nov 2011 13:11:34 +0000 (14:11 +0100)]
Test the year range supported by time.strftime() and time.asctime().
Ezio Melotti [Tue, 1 Nov 2011 13:02:16 +0000 (15:02 +0200)]
Merge test fixes from 3.2.
Ezio Melotti [Tue, 1 Nov 2011 13:00:59 +0000 (15:00 +0200)]
Avoid reusing the same collector in the tests.
Ezio Melotti [Tue, 1 Nov 2011 12:43:51 +0000 (14:43 +0200)]
#12008: merge with 3.2.
Ezio Melotti [Tue, 1 Nov 2011 12:42:54 +0000 (14:42 +0200)]
#12008: add a test.
Ezio Melotti [Tue, 1 Nov 2011 12:12:22 +0000 (14:12 +0200)]
#670664: Fix HTMLParser to correctly handle the content of ``<script>...</script>`` and ``<style>...</style>``.
Sandro Tosi [Tue, 1 Nov 2011 09:32:05 +0000 (10:32 +0100)]
correct signature for tzinfo.dst() in examples; thanks to Daniil Shved from docs@
Ned Deily [Mon, 31 Oct 2011 23:16:35 +0000 (16:16 -0700)]
Issue #13304: Skip test case if user site-packages disabled (-s or
PYTHONNOUSERSITE). (Patch by Carl Meyer)
Senthil Kumaran [Mon, 31 Oct 2011 17:35:17 +0000 (01:35 +0800)]
Fix issue 10817 - Fix urlretrieve function to raise ContentTooShortError
even when reporthook is None. Patch by Jyrki Pulliainen.
Sandro Tosi [Mon, 31 Oct 2011 16:46:04 +0000 (17:46 +0100)]
use diveintopython.net now that DIP.org returns 410; thanks to Josh Gachnang from docs@
Sandro Tosi [Mon, 31 Oct 2011 16:15:39 +0000 (17:15 +0100)]
remove confusing paragraph (as part of r87523); thanks to AJ Hill from docs@
Jesus Cea [Mon, 31 Oct 2011 15:03:34 +0000 (16:03 +0100)]
Closes #13283: removal of two unused variable in locale.py
Sandro Tosi [Mon, 31 Oct 2011 09:12:43 +0000 (10:12 +0100)]
document turtle done() function; thanks to Csaba Szepesvari from docs@
Ned Deily [Mon, 31 Oct 2011 03:01:35 +0000 (20:01 -0700)]
Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
(Patch by Roger Serwy)
Sandro Tosi [Mon, 31 Oct 2011 01:41:06 +0000 (02:41 +0100)]
caught is the right pp of catch; thanks to Don Bennett from docs@
Raymond Hettinger [Sun, 30 Oct 2011 22:06:14 +0000 (15:06 -0700)]
Improve itertools docs with clearer examples of pure python equivalent code.
Raymond Hettinger [Sun, 30 Oct 2011 21:32:54 +0000 (14:32 -0700)]
Issue 13274: Make the pure python code for heapq more closely match the C implementation for an undefined corner case.
Florent Xicluna [Sun, 30 Oct 2011 19:26:28 +0000 (20:26 +0100)]
Merge heads
Florent Xicluna [Sun, 30 Oct 2011 19:22:25 +0000 (20:22 +0100)]
Issue #13293: Better error message when trying to marshal bytes using xmlrpc.client.
Florent Xicluna [Sun, 30 Oct 2011 19:19:32 +0000 (20:19 +0100)]
Cleanup xmlrpc: remove obsolete comments, unused imports. Add test for bytes marshalling.
Florent Xicluna [Sun, 30 Oct 2011 19:18:50 +0000 (20:18 +0100)]
Closes #13291: NameError in xmlrpc package.
Petri Lehtinen [Sun, 30 Oct 2011 18:59:10 +0000 (20:59 +0200)]
Add Misc/NEWS entry for issue #10519
Benjamin Peterson [Sun, 30 Oct 2011 18:24:44 +0000 (14:24 -0400)]
remove unused variable
Antoine Pitrou [Sun, 30 Oct 2011 18:13:55 +0000 (19:13 +0100)]
Issue #10363: Deallocate global locks in Py_Finalize().
Petri Lehtinen [Sun, 30 Oct 2011 12:31:27 +0000 (14:31 +0200)]
Fix the return value of set_discard (issue #10519)
Petri Lehtinen [Sun, 30 Oct 2011 11:56:41 +0000 (13:56 +0200)]
Avoid unnecessary recursive function calls (closes #10519)
Ezio Melotti [Sun, 30 Oct 2011 07:20:19 +0000 (09:20 +0200)]
Add a button to the code examples in the doc to show/hide the prompts and output.
Ezio Melotti [Sat, 29 Oct 2011 07:41:51 +0000 (10:41 +0300)]
#13289: fix typo.
Benjamin Peterson [Fri, 28 Oct 2011 23:42:48 +0000 (19:42 -0400)]
bring is_integer into tested existence
Barry Warsaw [Fri, 28 Oct 2011 21:02:27 +0000 (17:02 -0400)]
- Issue #13218: Fix test_ssl failures on Debian/Ubuntu.
Barry Warsaw [Fri, 28 Oct 2011 20:52:17 +0000 (16:52 -0400)]
- Issue #13218: Fix test_ssl failures on Debian/Ubuntu.
Florent Xicluna [Fri, 28 Oct 2011 20:14:41 +0000 (22:14 +0200)]
Documentation typo
Florent Xicluna [Fri, 28 Oct 2011 20:03:55 +0000 (22:03 +0200)]
I should be someone
Florent Xicluna [Fri, 28 Oct 2011 13:00:50 +0000 (15:00 +0200)]
Remove unused variable.
Florent Xicluna [Fri, 28 Oct 2011 12:45:05 +0000 (14:45 +0200)]
Closes #13258: Use callable() built-in in the standard library.
Ezio Melotti [Fri, 28 Oct 2011 11:34:56 +0000 (14:34 +0300)]
Improve HTMLParser example in the doc and fix a couple minor things.
Ezio Melotti [Fri, 28 Oct 2011 10:21:09 +0000 (13:21 +0300)]
#13273: fix a bug that prevented HTMLParser to properly detect some tags when strict=False.
Ezio Melotti [Fri, 28 Oct 2011 09:32:53 +0000 (12:32 +0300)]
Merge heads.
Ezio Melotti [Fri, 28 Oct 2011 09:22:25 +0000 (12:22 +0300)]
#13278: fix typo.
Florent Xicluna [Fri, 28 Oct 2011 09:21:19 +0000 (11:21 +0200)]
Fixes #13270: obsolete reference to old-style/new-style classes.
Vinay Sajip [Thu, 27 Oct 2011 16:50:55 +0000 (17:50 +0100)]
Added lost documentation cross-reference.
Petri Lehtinen [Wed, 26 Oct 2011 18:29:15 +0000 (21:29 +0300)]
Issue #10860: Skip the new test if HTTPS is not available
Ezio Melotti [Tue, 25 Oct 2011 07:40:38 +0000 (10:40 +0300)]
Refactor a bit the codecs doc.
Ezio Melotti [Tue, 25 Oct 2011 06:41:13 +0000 (09:41 +0300)]
Fix typo.
Benjamin Peterson [Tue, 25 Oct 2011 04:04:37 +0000 (00:04 -0400)]
merge heads
Benjamin Peterson [Tue, 25 Oct 2011 04:03:51 +0000 (00:03 -0400)]
document __bytes__ special method (closes #13259)
Petri Lehtinen [Mon, 24 Oct 2011 18:24:58 +0000 (21:24 +0300)]
merge heads
Petri Lehtinen [Mon, 24 Oct 2011 18:12:58 +0000 (21:12 +0300)]
Issue #13018: Fix reference leaks in error paths in dictobject.c.
Patch by Suman Saha.
Charles-François Natali [Mon, 24 Oct 2011 16:45:29 +0000 (18:45 +0200)]
Issue #10332: multiprocessing: fix a race condition when a Pool is closed
before all tasks have completed.
Benjamin Peterson [Mon, 24 Oct 2011 12:51:15 +0000 (08:51 -0400)]
note callable is back in 3.2
Florent Xicluna [Mon, 24 Oct 2011 11:14:55 +0000 (13:14 +0200)]
Issue #13255: wrong docstrings in array module.
Florent Xicluna [Sun, 23 Oct 2011 20:40:37 +0000 (22:40 +0200)]
Issue 13141: Demonstrate recommended style for socketserver examples.
Petri Lehtinen [Sun, 23 Oct 2011 18:03:33 +0000 (21:03 +0300)]
Add the green "New reference" note to the doc of PyException_GetTraceback()
Nick Coghlan [Sun, 23 Oct 2011 12:04:16 +0000 (22:04 +1000)]
Issue
1294232 : Fix errors in metaclass calculation affecting some cases of metaclass inheritance. Patch by Daniel Urban.
Florent Xicluna [Thu, 20 Oct 2011 21:03:43 +0000 (23:03 +0200)]
Issue #9168: now smtpd is able to bind privileged port.
Ezio Melotti [Thu, 20 Oct 2011 16:51:18 +0000 (19:51 +0300)]
#13233: fix typo.
Ezio Melotti [Thu, 20 Oct 2011 16:38:04 +0000 (19:38 +0300)]
#13219: clarify section about character sets in the re documentation.
Senthil Kumaran [Thu, 20 Oct 2011 16:29:47 +0000 (00:29 +0800)]
News entry for Issue12529 and Issue12604
Raymond Hettinger [Wed, 19 Oct 2011 21:16:18 +0000 (14:16 -0700)]
Issue 12668: Fix wording in Whatsnew3.2
Raymond Hettinger [Wed, 19 Oct 2011 21:10:07 +0000 (14:10 -0700)]
Issue 11931: Minor punctuation/grammar/wording fixups to the regex docs
Benjamin Peterson [Wed, 19 Oct 2011 20:57:40 +0000 (16:57 -0400)]
adjust braces a bit
Senthil Kumaran [Wed, 19 Oct 2011 18:48:01 +0000 (02:48 +0800)]
urllib.request - syntax changes enhancing readability. By Éric Araujo
Senthil Kumaran [Wed, 19 Oct 2011 18:15:36 +0000 (02:15 +0800)]
3.2 - Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c
Senthil Kumaran [Wed, 19 Oct 2011 17:46:00 +0000 (01:46 +0800)]
3.2 - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
Senthil Kumaran [Wed, 19 Oct 2011 17:05:44 +0000 (01:05 +0800)]
3.2 - Fix closes Issue12529 - cgi.parse_header failure on double quotes and
semicolons. Patch by Ben Darnell and Petri Lehtinen.
Ezio Melotti [Wed, 19 Oct 2011 07:58:56 +0000 (10:58 +0300)]
Remove duplication.
Łukasz Langa [Tue, 18 Oct 2011 19:17:39 +0000 (21:17 +0200)]
Fixes #10860: Handle empty port after port delimiter in httplib
Antoine Pitrou [Tue, 18 Oct 2011 14:40:50 +0000 (16:40 +0200)]
Issue #13188: When called without an explicit traceback argument,
generator.throw() now gets the traceback from the passed exception's
`__traceback__` attribute. Patch by Petri Lehtinen.
Ezio Melotti [Tue, 18 Oct 2011 10:20:07 +0000 (13:20 +0300)]
#12448: smtplib now flushes stdout while running ``python -m smtplib``
in order to display the prompt correctly. Patch by Petri Lehtinen.
Ezio Melotti [Tue, 18 Oct 2011 09:59:39 +0000 (12:59 +0300)]
#12277: add missing comma.
Nadeem Vawda [Mon, 17 Oct 2011 17:34:22 +0000 (19:34 +0200)]
Issue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.
Benjamin Peterson [Mon, 17 Oct 2011 17:09:27 +0000 (13:09 -0400)]
plug possible refleak (closes #13199)
Mark Hammond [Mon, 17 Oct 2011 00:35:31 +0000 (11:35 +1100)]
normalize whitespace in Lib/distutils/msvc9compiler.py
Mark Hammond [Mon, 17 Oct 2011 00:05:57 +0000 (11:05 +1100)]
Issue #7833: Ext. modules built using distutils on Windows no longer get a manifest
Victor Stinner [Sun, 16 Oct 2011 21:45:39 +0000 (23:45 +0200)]
Issue #10653: Fix time.strftime() on Windows, check for invalid format strings
Raymond Hettinger [Sun, 16 Oct 2011 06:50:42 +0000 (23:50 -0700)]
Issue 13177: Make tracebacks more readable by avoiding chained exceptions in the lru_cache.
Éric Araujo [Fri, 14 Oct 2011 15:37:45 +0000 (17:37 +0200)]
Update dead references from py.org/dev/faq to the devguide (#13176)
Éric Araujo [Fri, 14 Oct 2011 14:50:09 +0000 (16:50 +0200)]
Branch merge
Martin v. Löwis [Fri, 14 Oct 2011 13:35:36 +0000 (15:35 +0200)]
Replace {Get,Set,Has}AttrString with *AttrId.