Commit graph

9051 commits

Author SHA1 Message Date
Éric Araujo
3f2ba3bd86 Branch merge 2011-11-15 16:12:22 +01:00
Éric Araujo
4d15546504 Remove obsolete verbose arguments from packaging.
Logging replaces verbose arguments.  I haven’t fixed the example in
Doc/install/install.rst because I have major fixes and changes to the
oc under way and will fix or remove that example as part of that task.
2011-11-15 11:43:20 +01:00
Jesus Cea
f450c1b9e0 reST fixes for /dev/poll 2011-11-15 05:42:59 +01:00
Jesus Cea
d8b9ae6e8f Issue #6397: Support '/dev/poll' polling objects in select module, under Solaris & derivatives. 2011-11-14 19:07:41 +01:00
Éric Araujo
f8361623f0 Clean up byte-compilation code in packaging (#11254 followup).
- Don't use keyword arguments for debug_override; I find it more
  readable to have a comment explaining that True makes pyc and False
  pyo than to write out the non-obvious (when you haven’t read the doc)
  argument name

- Move duplicate code from build_py and install_lib into cmd

- Remove obsolete verbose argument of util.byte_compile

- Remove obsolete passing of -O/-OO to the Python process spawned by
  util.byte_compile (I’ll remove the whole spawning later, after I write
  more tests to check the contents of pyc and pyo files; now that
  byte_compile does not depend on the value of __debug__ in the calling
  Python, we can call py_compile or compileall directly)
2011-11-14 18:10:19 +01:00
Eli Bendersky
bf9d34ce7e Issue 12767: document the argument of threading.Condition.notify 2011-11-12 20:46:54 +02:00
Florent Xicluna
f8240d6564 Merge 3.2, doc typos. 2011-11-11 19:58:53 +01:00
Eli Bendersky
28a08205c5 Issue #13191: typo in argparse docs 2011-11-11 10:58:36 +02:00
Eli Bendersky
6e9002c8e0 Issue #13365: correct an error in the documentation of str.expandtabs. Patch by John Feuerstein 2011-11-11 10:44:22 +02:00
Victor Stinner
9f4b1e9c50 Fix and deprecated the unicode_internal codec
unicode_internal codec uses Py_UNICODE instead of the real internal
representation (PEP 393: Py_UCS1, Py_UCS2 or Py_UCS4) for backward
compatibility.
2011-11-10 20:56:30 +01:00
Charles-François Natali
10b8cf4455 Issue #7777: socket: Add Reliable Datagram Sockets (PF_RDS) support. 2011-11-10 19:21:37 +01:00
Ezio Melotti
257a14c2a5 Refactor functions signatures in the doc. 2011-11-09 00:25:47 +02:00
Brian Curtin
4b6fabdff1 Backed out changeset 60ae7979fec8 2011-11-08 14:54:02 -06:00
Brian Curtin
e751d6f2f1 Remove the old style [...] to denote optional args and show the defaults. 2011-11-08 14:30:02 -06:00
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
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
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
8f7bded7e0 merge with 3.2 2011-10-31 10:13:30 +01:00
Raymond Hettinger
5d12faa5b8 Merge 2011-10-30 15:07:01 -07: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
Victor Stinner
2f3ca9f20e Close #13247: Add cp65001 codec, the Windows UTF-8 (CP_UTF8) 2011-10-27 01:38:56 +02: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
Benjamin Peterson
b4d8e912d7 merge 3.2 2011-10-24 08:52:30 -04:00
Antoine Pitrou
767c0a82ad Mention InterruptedError in the doc for new function signal.sigwaitinfo 2011-10-23 23:52:23 +02:00
Florent Xicluna
e9126b5e3b Merge 3.2 2011-10-23 22:44:19 +02:00
Florent Xicluna
6d57d212a8 Documentation typo. 2011-10-23 22:23:57 +02:00
Mark Dickinson
36645681c8 Issue #13201: equality for range objects is now based on equality of the underlying sequences. Thanks Sven Marnach for the patch. 2011-10-23 19:53:01 +01:00