Commit graph

15181 commits

Author SHA1 Message Date
Nick Coghlan
217f05b3ed Issue #13237: Forward port from 3.2 of subprocess documentation updates. Needed quite a few adjustments to account for new features coming in 3.3 2011-11-08 22:11:21 +10:00
Brian Curtin
569b494320 Fix #13327. utimensat now has the atime and mtime arguments set as optional,
defaulting to None like the other utimes family members. It now accepts
keyword arguments because, unlike other other functions in the family,
it has a `flags` value at the end of the argument list (which
retains its 0 default).
2011-11-07 16:09:20 -06:00
Brian Curtin
ca0fbc02e9 branch merge 2011-11-07 14:19:46 -06:00
Brian Curtin
c1b65d1831 Fix 13327. Remove explicit None arguments from futimes, futimens, futimesat,
and lutimes.
2011-11-07 14:18:54 -06:00
Éric Araujo
1cdbf57c7c Merge 3.2 2011-11-07 18:11:27 +01:00
Brian Curtin
52fbea1d87 Fix #13327. Remove the need for an explicit None as the second argument to
os.utime in order to update to the current time. The second argument is now
optional.
2011-11-06 13:41:17 -06:00
Amaury Forgeot d'Arc
864741b2c7 Issue #13350: Replace most usages of PyUnicode_Format by PyUnicode_FromFormat. 2011-11-06 15:10:48 +01:00
Benjamin Peterson
878ce389a0 add introspection to range objects (closes #9896)
Patch by Daniel Urban.
2011-11-05 15:17:52 -04:00
Petri Lehtinen
064e39330d Issue #3067: Enhance the documentation and docstring of locale.setlocale() 2011-11-05 10:22:03 +02:00
É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
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
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
Antoine Pitrou
873bf262ad Update example of non-blocking SSL code for the new finer-grained exceptions 2011-10-27 23:59:03 +02:00
Antoine Pitrou
41032a69c1 Issue #11183: Add finer-grained exceptions to the ssl module, so that
you don't have to inspect the exception's attributes in the common case.
2011-10-27 23:56:55 +02:00
Vinay Sajip
b5cab85dc7 Merged documentation fix from 3.2. 2011-10-27 17:53:19 +01:00
Victor Stinner
7592d0513e Fix the issue number of my cp65001 commit: 13247 => issue #13216 2011-10-27 01:43:48 +02:00
Victor Stinner
2f3ca9f20e Close #13247: Add cp65001 codec, the Windows UTF-8 (CP_UTF8) 2011-10-27 01:38:56 +02:00
Ezio Melotti
f7f0a66a8f Fix typos. 2011-10-25 17:22:22 +03:00
Victor Stinner
8b905bd9d4 Issue #13226: Add RTLD_xxx constants to the os module. These constants can by
used with sys.setdlopenflags().
2011-10-25 13:34:04 +02:00
Victor Stinner
e0be423297 Close #10278: Add clock_getres(), clock_gettime() and CLOCK_xxx constants to
the time module. time.clock_gettime(time.CLOCK_MONOTONIC) provides a monotonic
clock
2011-10-25 13:06:09 +02:00
Ezio Melotti
92b958420e Merge the codecs doc refactoring with 3.2. 2011-10-25 10:41:37 +03:00
Ezio Melotti
7a03f64c2e Remove mention of narrow/wide builds in the codecs doc. 2011-10-25 10:30:19 +03:00
Ezio Melotti
90bf5f1171 Remove mention of narrow/wide builds and update array doc, add a test. 2011-10-25 10:05:34 +03:00
Ezio Melotti
c99c85899a Remove mention of narrow/wide builds from ord/chr doc. 2011-10-25 09:32:34 +03:00
Ezio Melotti
f4d76e6ca7 #13251: update string description in datamodel.rst. 2011-10-25 09:23:42 +03:00
Benjamin Peterson
3ed559a3c7 merge 3.2 (#13259) 2011-10-25 00:04:10 -04:00
Benjamin Peterson
b4d8e912d7 merge 3.2 2011-10-24 08:52:30 -04:00
Antoine Pitrou
037ffbf182 Improve the porting section 2011-10-24 00:25:41 +02:00
Antoine Pitrou
fd9b4166bb Improve / clean up the PEP 393 description 2011-10-24 00:14:43 +02:00
Antoine Pitrou
01fd26c746 Improve description of PEP 3151 2011-10-24 00:07:02 +02:00
Antoine Pitrou
767c0a82ad Mention InterruptedError in the doc for new function signal.sigwaitinfo 2011-10-23 23:52:23 +02:00
Ezio Melotti
2d99dac479 Use `...` for string literals. 2011-10-24 00:44:03 +03:00
Florent Xicluna
dcbb822c08 Fix documentation formatting. 2011-10-23 23:37:46 +02:00
Florent Xicluna
72ca42af8b Merge heads 2011-10-23 22:47:56 +02:00