Commit graph

21441 commits

Author SHA1 Message Date
Stefan Krah
abd887d690 Issue #14181: Improve clarity in the documentation for the multi-purpose
Py_buffer.obj field.
2012-03-06 14:55:06 +01:00
Nick Coghlan
b9b281b787 Add some simple examples to the PEP 380 section of What's New 2012-03-06 22:31:12 +10:00
Nick Coghlan
98e20701cb Add PEP 414 to What's New, consolidate memoryview entries 2012-03-06 21:50:13 +10:00
Martin v. Löwis
de157cc5bc Issue #14200: Add benchmark results to text flow. 2012-03-06 08:42:17 +01:00
Antoine Pitrou
bdb1cf1ca5 Issue #12328: Fix multiprocessing's use of overlapped I/O on Windows.
Also, add a multiprocessing.connection.wait(rlist, timeout=None) function
for polling multiple objects at once.  Patch by sbt.

Complete changelist from sbt's patch:

* Adds a wait(rlist, timeout=None) function for polling multiple
  objects at once.  On Unix this is just a wrapper for
  select(rlist, [], [], timeout=None).

* Removes use of the SentinelReady exception and the sentinels argument
  to certain methods.  concurrent.futures.process has been changed to
  use wait() instead of SentinelReady.

* Fixes bugs concerning PipeConnection.poll() and messages of zero
  length.

* Fixes PipeListener.accept() to call ConnectNamedPipe() with
  overlapped=True.

* Fixes Queue.empty() and SimpleQueue.empty() so that they are
  threadsafe on Windows.

* Now PipeConnection.poll() and wait() will not modify the pipe except
  possibly by consuming a zero length message.  (Previously poll()
  could consume a partial message.)

* All of multiprocesing's pipe related blocking functions/methods are
  now interruptible by SIGINT on Windows.
2012-03-05 19:28:37 +01:00
Éric Araujo
6a59b70cba Merge 3.2 2012-03-05 16:24:07 +01:00
Éric Araujo
80f7102d43 Improve packaging.database documentation 2012-03-05 16:16:37 +01:00
Antoine Pitrou
8d3c290de4 Issue #14166: Pickler objects now have an optional dispatch_table attribute which allows to set custom per-pickler reduction functions.
Patch by sbt.
2012-03-04 18:31:48 +01:00
Georg Brandl
f125bf5f94 Update copyright years and version name. 2012-03-04 16:26:19 +01:00
Georg Brandl
0e475c359c Sort and clean up suspicious ignore file. 2012-03-04 16:22:05 +01:00
Georg Brandl
a673eb895e Fix invalid markup and update suspicious ignores. 2012-03-04 16:17:05 +01:00
Georg Brandl
50fdcdf086 Fix encoding handling of the pydoc-topics writer. 2012-03-04 16:12:02 +01:00
Armin Ronacher
50364b4a5c Basic documentation for PEP 414 2012-03-04 12:33:51 +00:00
Victor Stinner
643cd68ea4 Issue #13964: signal.sigtimedwait() timeout is now a float instead of a tuple
Add a private API to convert an int or float to a C timespec structure.
2012-03-02 22:54:03 +01:00
Brett Cannon
83ac0133bd Clarify importlib.machinery.PathFinder's difference from what __import__() does. 2012-03-02 12:10:48 -05:00
Brett Cannon
75321e8379 Minor doc cleanup. 2012-03-02 11:58:25 -05:00
Eli Bendersky
92818d5383 Merge 3.2 2012-03-02 07:41:23 +02:00
Petri Lehtinen
be52d507d2 Merge branch '3.2'
Issue #13491.
2012-03-01 21:49:41 +02:00
Eli Bendersky
493846e149 Add missing 'versionadded' for shlex.quote; closes #14165 2012-03-01 19:07:55 +02:00
Stefan Krah
54c32032aa Issue #10181: Add warning that structure layouts in memoryobject.h and
object.h have changed.
2012-02-29 17:47:21 +01:00
Stefan Krah
95b1ba6388 Add PyMemoryView_FromMemory() to whatsnew/3.3. 2012-02-29 17:27:21 +01:00
Ezio Melotti
6ea00ef25a #14155: merge with 3.2. 2012-02-29 13:40:11 +02:00
Ezio Melotti
0b8123d8ae #10713: merge with 3.2. 2012-02-29 11:49:45 +02:00
Larry Hastings
7b5649cd48 Merge: Propagate changes for issues #13053 and #13086 from 2.7 to 3.2.
(Doc only.)
2012-02-28 16:30:31 -08:00
Sandro Tosi
0109e3cd24 merge with 3.2 2012-02-28 22:29:08 +01:00
Vinay Sajip
ff4b7bfaef Merged cookbook improvement from 3.2. 2012-02-28 08:06:01 +00:00
Georg Brandl
86798d4ff9 Merge with 3.2. 2012-02-28 08:21:49 +01:00
Brett Cannon
b46a1793a7 Update importlib.invalidate_caches() to be more general. 2012-02-27 18:15:42 -05:00
Eli Bendersky
49ac6f4492 Some corrections for the Doc/extending documentation. Closes #14129 2012-02-27 19:18:35 +02:00
Benjamin Peterson
ad8586d075 typo 2012-02-27 10:59:10 -05:00
Vinay Sajip
bd2c199b2b Merged cookbook update for LogRecord customisation. 2012-02-27 11:57:25 +00:00
Vinay Sajip
22fa0677d6 Merged cookbook update from 3.2. 2012-02-27 11:03:26 +00:00
Georg Brandl
6181b397c4 Remove duplicate label. 2012-02-26 23:02:53 +01:00
Gregory P. Smith
c45a8a153b Issue #14123: Explicitly mention that old style % string formatting has caveats but is not going away any time soon. 2012-02-26 01:54:46 -08:00
Nick Coghlan
ab7bf2143e Close issue #6210: Implement PEP 409 2012-02-26 17:49:52 +10:00
Ezio Melotti
cda6b6d60d #14081: The sep and maxsplit parameter to str.split, bytes.split, and bytearray.split may now be passed as keyword arguments. 2012-02-26 09:39:55 +02:00
Éric Araujo
408026c7e8 Merge 3.2 2012-02-26 04:07:37 +01:00
Ezio Melotti
8c5c3c1e33 #14114: merge with 3.2. 2012-02-25 19:26:39 +02:00
Stefan Krah
9a2d99e28a - Issue #10181: New memoryview implementation fixes multiple ownership
and lifetime issues of dynamically allocated Py_buffer members (#9990)
  as well as crashes (#8305, #7433). Many new features have been added
  (See whatsnew/3.3), and the documentation has been updated extensively.
  The ndarray test object from _testbuffer.c implements all aspects of
  PEP-3118, so further development towards the complete implementation
  of the PEP can proceed in a test-driven manner.

  Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review
  and many ideas.

- Issue #12834: Fix incorrect results of memoryview.tobytes() for
  non-contiguous arrays.

- Issue #5231: Introduce memoryview.cast() method that allows changing
  format and shape without making a copy of the underlying memory.
2012-02-25 12:24:21 +01:00
Victor Stinner
0a786221d9 Issue #13846: Enhance time.monotonic() documentation 2012-02-24 00:10:45 +01:00
Georg Brandl
335d628a66 merge with 3.2 2012-02-23 21:17:27 +01:00
Benjamin Peterson
b43fde98b4 remove unapplicable statement 2012-02-21 18:03:26 -05:00
Georg Brandl
42ae472798 merge with 3.2 2012-02-21 22:37:36 +01:00
Benjamin Peterson
c9f54cf512 enable hash randomization by default 2012-02-21 16:08:05 -05:00
Benjamin Peterson
79d38788ee update unicode link 2012-02-20 22:35:25 -05:00
Benjamin Peterson
fb36e66d2c adjust docs for unicode 6.1 2012-02-20 22:34:50 -05:00
Georg Brandl
2fb477c0f0 Merge 3.2: Issue #13703 plus some related test suite fixes. 2012-02-21 00:33:36 +01:00
Vinay Sajip
5743691b87 Merged upstream changes. 2012-02-20 18:50:33 +00:00
Antoine Pitrou
c229e6e8ff Issue #14040: Remove rarely used file name suffixes for C extensions (under POSIX mainly).
This will improve import performance a bit (especially under importlib).
2012-02-20 19:41:11 +01:00
Vinay Sajip
aa8a62dcc0 Merged documentation update from 3.2. 2012-02-20 18:36:12 +00:00