Commit Graph

12370 Commits

Author SHA1 Message Date
Éric Araujo 146f870916 Branch merge 2011-11-03 16:44:13 +01:00
Éric Araujo e64052176d Merge follow-up for #11254 and other changes from 3.2 2011-11-03 05:17:11 +01:00
Éric Araujo 880801501b 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.
2011-11-03 05:08:28 +01:00
Éric Araujo 3bb1a6f990 State explicitely that PYTHONDONTWRITEBYTECODE is equivalent to -B 2011-11-03 03:20:43 +01:00
Victor Stinner df5bccc8a3 (Merge 3.2) Issue #10570: curses.tigetstr() is now expecting a byte string,
instead of a Unicode string.

This is an incompatible change, but the previous behaviour was completly wrong.
2011-11-02 23:47:58 +01:00
Victor Stinner 2662133a05 Issue #10570: curses.tigetstr() is now expecting a byte string, instead of a
Unicode string.

This is an incompatible change, but the previous behaviour was completly wrong.
2011-11-02 23:45:29 +01:00
Ezio Melotti 7de56f6a04 #670664: Fix HTMLParser to correctly handle the content of ``<script>...</script>`` and ``<style>...</style>``. 2011-11-01 14:12:22 +02:00
Sandro Tosi 4bfe03a42e correct signature for tzinfo.dst() in examples; thanks to Daniil Shved from docs@ 2011-11-01 10:32:05 +01:00
Sandro Tosi 53bcd66012 use diveintopython.net now that DIP.org returns 410; thanks to Josh Gachnang from docs@ 2011-10-31 17:46:04 +01:00
Sandro Tosi 69e59a17dd remove confusing paragraph (as part of r87523); thanks to AJ Hill from docs@ 2011-10-31 17:15:39 +01:00
Sandro Tosi e348455f5f document turtle done() function; thanks to Csaba Szepesvari from docs@ 2011-10-31 10:12:43 +01:00
Sandro Tosi 567493fe26 caught is the right pp of catch; thanks to Don Bennett from docs@ 2011-10-31 02:41:06 +01:00
Raymond Hettinger 6f45d18c24 Improve itertools docs with clearer examples of pure python equivalent code. 2011-10-30 15:06:14 -07:00
Ezio Melotti f54f6f520d Add a button to the code examples in the doc to show/hide the prompts and output. 2011-10-30 09:20:19 +02:00
Florent Xicluna 305bb662a9 Documentation typo 2011-10-28 22:14:41 +02:00
Florent Xicluna 83386dac8b I should be someone 2011-10-28 22:03:55 +02:00
Ezio Melotti f99e4b5dbe Improve HTMLParser example in the doc and fix a couple minor things. 2011-10-28 14:34:56 +03:00
Ezio Melotti 0b85cd0680 Merge heads. 2011-10-28 12:32:53 +03:00
Ezio Melotti d3cf0db3ee #13278: fix typo. 2011-10-28 12:22:25 +03:00
Florent Xicluna 74e6495a20 Fixes #13270: obsolete reference to old-style/new-style classes. 2011-10-28 11:21:19 +02:00
Vinay Sajip 6187664fa7 Added lost documentation cross-reference. 2011-10-27 17:50:55 +01:00
Ezio Melotti fbb39815d4 Refactor a bit the codecs doc. 2011-10-25 10:40:38 +03:00
Ezio Melotti 963004d1d8 Fix typo. 2011-10-25 09:41:13 +03:00
Benjamin Peterson 1fafc1a11f document __bytes__ special method (closes #13259) 2011-10-25 00:03:51 -04:00
Benjamin Peterson d6ca6c2b32 note callable is back in 3.2 2011-10-24 08:51:15 -04:00
Florent Xicluna 023611f34e Issue 13141: Demonstrate recommended style for socketserver examples. 2011-10-23 22:40:37 +02:00
Petri Lehtinen ce77037503 Add the green "New reference" note to the doc of PyException_GetTraceback() 2011-10-23 21:03:33 +03:00
Ezio Melotti cd1d3ef77b #13233: fix typo. 2011-10-20 19:51:18 +03:00
Ezio Melotti 81231d9379 #13219: clarify section about character sets in the re documentation. 2011-10-20 19:38:04 +03:00
Raymond Hettinger af37b89240 Issue 12668: Fix wording in Whatsnew3.2 2011-10-19 14:16:18 -07:00
Raymond Hettinger 5768e0c788 Issue 11931: Minor punctuation/grammar/wording fixups to the regex docs 2011-10-19 14:10:07 -07:00
Senthil Kumaran 29fa9d4d68 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.
2011-10-20 01:46:00 +08:00
Ezio Melotti e130a52d8a Remove duplication. 2011-10-19 10:58:56 +03:00
Ezio Melotti 67494f2224 #12277: add missing comma. 2011-10-18 12:59:39 +03:00
Éric Araujo 9be57231dd Update dead references from py.org/dev/faq to the devguide (#13176) 2011-10-14 17:37:45 +02:00
Ezio Melotti 7903913fa6 #670664: merge with 3.2. 2011-11-01 14:14:15 +02:00
Sandro Tosi b6dbc9ee15 merge with 3.2 2011-11-01 10:32:22 +01:00
Ross Lagerwall 59142db6d3 Issue #12797: Added custom opener parameter to builtin open() and FileIO.open(). 2011-10-31 20:34:46 +02:00
Sandro Tosi 6a57afee04 merge with 3.2 2011-10-31 17:46:25 +01:00
Sandro Tosi d856bc0582 merge with 3.2 2011-10-31 17:16:03 +01:00
Sandro Tosi 8f7bded7e0 merge with 3.2 2011-10-31 10:13:30 +01:00
Sandro Tosi 9bf59aa103 merge with 3.2 2011-10-31 02:42:06 +01:00
Raymond Hettinger 5d12faa5b8 Merge 2011-10-30 15:07:01 -07:00
Ezio Melotti afe471d7d2 Merge the button to show/hide the prompts and output from 3.2. 2011-10-30 09:37:46 +02:00
Florent Xicluna 608cab54e4 Merge 3.2 2011-10-28 22:16:23 +02:00
Florent Xicluna d39a4d755a Merge 3.2 2011-10-28 22:05:12 +02:00
Ezio Melotti ac73b0c95e Merge HTMLParser doc changes from 3.2. 2011-10-28 14:36:11 +03:00
Ezio Melotti 455036fd1f #13278: merge with 3.2. 2011-10-28 12:33:27 +03:00
Florent Xicluna acfc97a05a Merge 3.2 2011-10-28 11:23:25 +02:00
Antoine Pitrou f3dc2d7afd Fix typo 2011-10-28 00:01:03 +02:00