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
Éric Araujo
e5eec7e198
Move xml.etree higher and xml.parsers.expat lower in the markup ToC.
...
I assume that most users looking at this page are looking for a library
to process XML, not a low-level parser. First proposed in #11379 .
2012-03-05 16:01:41 +01:00
Éric Araujo
fdfaf0aba2
Use source reST role instead of file where it makes sense.
...
source generates a nifty link to the Mercurial web viewer.
2012-03-05 15:50:37 +01:00
Éric Araujo
d3899e320f
Remove mention of defunct file.
...
Misc/COPYRIGHT was renamed twelve years ago to LICENSE and later copied
to the main docs, to which there is already a link.
2012-03-05 15:47:32 +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
b2b18632ce
merge 3.2 heads
2012-03-02 07:43:08 +02:00
Eli Bendersky
92818d5383
Merge 3.2
2012-03-02 07:41:23 +02:00
Eli Bendersky
20293441da
Issue #11379 : add a note in xml.dom.minidom suggesting to use etree in some cases
2012-03-02 07:37:13 +02:00
Petri Lehtinen
be52d507d2
Merge branch '3.2'
...
Issue #13491 .
2012-03-01 21:49:41 +02:00
Petri Lehtinen
4d2bfb5e08
sqlite3: Port documentation changes from the 2.7 branch
...
Issue #13491 .
2012-03-01 21:48:38 +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
443f000bdd
#14155 : remove duplication about search vs match in re doc.
2012-02-29 13:39:05 +02:00
Ezio Melotti
0b8123d8ae
#10713 : merge with 3.2.
2012-02-29 11:49:45 +02:00
Ezio Melotti
5a045b9f54
#10713 : Improve documentation for \b and \B and add a few tests. Initial patch and tests by Martin Pool.
2012-02-29 11:48:44 +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
Larry Hastings
62417a0354
Propagate changes for issues #13053 and #13086 from 2.7 to 3.2. (Doc only.)
2012-02-28 16:21:47 -08:00
Sandro Tosi
0109e3cd24
merge with 3.2
2012-02-28 22:29:08 +01:00
Sandro Tosi
83c48822c5
s/div/truediv/; thanks to Félix-Antoine Fortin from docs@
2012-02-28 22:28:28 +01:00
Vinay Sajip
ff4b7bfaef
Merged cookbook improvement from 3.2.
2012-02-28 08:06:01 +00:00
Vinay Sajip
39b83ac772
Improved logging cookbook example.
2012-02-28 08:05:23 +00:00
Georg Brandl
86798d4ff9
Merge with 3.2.
2012-02-28 08:21:49 +01:00
Georg Brandl
e998386442
Fix markup errors.
2012-02-28 08:21:40 +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
982f534fab
Updated cookbook with information on customising LogRecords.
2012-02-27 11:56:29 +00:00
Vinay Sajip
22fa0677d6
Merged cookbook update from 3.2.
2012-02-27 11:03:26 +00:00
Vinay Sajip
6b883a2c4d
Updated logging cookbook with info on alternative format styles.
2012-02-27 11:02:45 +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
Gregory P. Smith
3bbdc8e822
Issue #14123 : Explicitly mention that old style % string formatting has caveats
...
but is not going away any time soon.
2012-02-26 01:54:07 -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
Éric Araujo
f527277b67
Branch merge
2012-02-26 04:00:43 +01:00
Éric Araujo
a6091998af
Use const markup instead of a misleading string literal
2012-02-26 02:13:30 +01:00
Ezio Melotti
8c5c3c1e33
#14114 : merge with 3.2.
2012-02-25 19:26:39 +02:00
Ezio Melotti
4342722f40
#14114 : don't include copybutton.js in the htmlhelp output.
2012-02-25 19:24:24 +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
e578021696
Add 3.2.3 to license.
2012-02-23 21:19:18 +01:00
Georg Brandl
335d628a66
merge with 3.2
2012-02-23 21:17:27 +01:00
Georg Brandl
eb25fb7af7
Fix markup errors.
2012-02-23 21:12:39 +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
Georg Brandl
7ef825fdab
merge with 3.2
2012-02-21 22:36:37 +01:00
Georg Brandl
c9a42070a6
Remove reST markup from --help output. Also: O(n**2) is dict construction, not single insertion.
2012-02-21 22:36:27 +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
Georg Brandl
09a7c72cad
Merge from 3.1: Issue #13703 : add a way to randomize the hash values of basic types (str, bytes, datetime)
...
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.
The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
2012-02-20 21:31:46 +01:00
Georg Brandl
2daf6ae249
Issue #13703 : add a way to randomize the hash values of basic types (str, bytes, datetime)
...
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.
The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
2012-02-20 19:54:16 +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
Vinay Sajip
fee358b0df
logging: clarified documentation for Handler.handleError.
2012-02-20 18:35:26 +00:00
Antoine Pitrou
ea6b4d5f70
Issue #13641 : Decoding functions in the base64 module now accept ASCII-only unicode strings.
...
Patch by Catalin Iacob.
2012-02-20 19:30:23 +01:00
Benjamin Peterson
43844351c3
write versionadded
2012-02-20 08:48:25 -05:00
Benjamin Peterson
8eb1269c34
add generic implementation of a __dict__ descriptor for C types
2012-02-19 19:59:10 -05:00
Antoine Pitrou
4a57846efe
Merge
2012-02-20 01:52:17 +01:00
Éric Araujo
a7e594b9a5
Merge 3.2
2012-02-20 01:53:09 +01:00
Antoine Pitrou
c541f8ef40
Issue #14043 : Speed up importlib's _FileFinder by at least 8x, and add a new importlib.invalidate_caches() function.
...
importlib is now often faster than imp.find_module() at finding modules.
2012-02-20 01:48:16 +01:00
Éric Araujo
c3ef037ee1
Add missing “::” markup.
...
Also wrap two looong lines.
2012-02-20 01:44:55 +01:00
Sandro Tosi
32ac92cd4a
Issue #13605 : merge with 3.2
2012-02-19 19:54:23 +01:00
Sandro Tosi
0467686e07
Issue #13605 : use print() in argparse nargs example
2012-02-19 19:54:00 +01:00
Sandro Tosi
488a56d2fb
merge with 3.2
2012-02-19 12:30:47 +01:00
Sandro Tosi
f06d444f5a
don't split 'Hye-Shik Chang' name; thanks to Sergey from docs@
2012-02-19 12:30:28 +01:00
Sandro Tosi
1ee86a1515
merge with 3.2
2012-02-19 12:28:18 +01:00
Sandro Tosi
76dea27421
Indent 'File' in memoryview example, so it is correctly highlighted
2012-02-19 12:28:01 +01:00
Sandro Tosi
b5d271073f
merge with 3.2
2012-02-18 16:06:39 +01:00
Sandro Tosi
c33ae06cbf
fix error in memoryview example; thanks to kan lianlian from docs@
2012-02-18 16:05:34 +01:00
Terry Jan Reedy
93abdd1ab8
Merge with 3.2 closes 14023
2012-02-17 19:58:41 -05:00
Terry Jan Reedy
ead1de2f03
Issue 14023 Revert edit to 2.7 version. (I suspect edit is from when we thought
...
to to makes bytes mutable, before deciding to add bytearrays.)
2012-02-17 19:56:58 -05:00
Ezio Melotti
c48cfe37d2
#14020 : merge with 3.2.
2012-02-18 02:03:35 +02:00
Ezio Melotti
4279bc7aef
#14020 : improve HTMLParser documentation.
2012-02-18 02:01:36 +02:00
Petri Lehtinen
17f1be6368
Merge branch '3.2'
...
Closes #13995 .
2012-02-16 21:44:26 +02:00
Petri Lehtinen
b3890226b3
sqlite3: Fix documentation errors concerning Cursor.rowcount
...
Closes #13995 .
2012-02-16 21:39:03 +02:00
Sandro Tosi
cd77815e4c
Issue #11836 : document and expose multiprocessing.SimpleQueue
2012-02-15 23:27:00 +01:00
Sandro Tosi
5cb522cb32
Issue #11836 : document multiprocessing.queues.SimpleQueue
2012-02-15 23:14:21 +01:00
Petri Lehtinen
be2cf338e9
Merge branch '3.2'
...
Issue #13491 .
2012-02-15 22:22:34 +02:00
Petri Lehtinen
1ca93954e1
Issue #13491 : Fix many errors in sqlite3 documentation
...
Initial patch by Johannes Vogel.
2012-02-15 22:21:01 +02:00
Éric Araujo
1d175f7768
Merge fixes for #1326113 and #12297 from 3.2
2012-02-15 17:13:26 +01:00
Éric Araujo
ccddc474c3
Improve doc for atexit.register and unregister ( #12297 )
2012-02-15 17:07:49 +01:00
Victor Stinner
0f7888d453
Time module doc: Fix reST syntax
2012-02-14 02:42:21 +01:00
Senthil Kumaran
1fd648212e
shutil copy module reference doc fix.
2012-02-13 23:35:44 +08:00
Senthil Kumaran
7f728c1e1a
shutil copy module reference doc fix.
2012-02-13 23:30:47 +08:00
Florent Xicluna
a72a98f24a
Issue #13988 : cElementTree is deprecated and the _elementtree accelerator is automatically used whenever available.
2012-02-13 11:03:30 +01:00
Gregory P. Smith
db66310e8f
Issue #13930 : Adds ability for 2to3 to write its output to a different
...
directory tree instead of overwriting the input files. Adds three command
line options: -o/--output-dir, -W/--write-unchanged-files and --add-suffix.
2012-02-12 15:56:49 -08:00
Gregory P. Smith
58f23ffb21
Issue #13930 : Adds ability for 2to3 to write its output to a different
...
directory tree instead of overwriting the input files. Adds three command
line options: -o/--output-dir, -W/--write-unchanged-files and --add-suffix.
Feature backports into stable release branches for 2to3 are allowed by
a special exemption:
http://mail.python.org/pipermail/python-dev/2011-December/115089.html
2012-02-12 15:50:21 -08:00
Éric Araujo
a9d2b64206
Merge fixes for #13193 and FAQ from 3.2
2012-02-12 04:58:46 +01:00
Éric Araujo
01a2215727
Update mention of Subversion in the FAQ.
...
If I grepped correctly, this was the last outdated place.
2012-02-12 04:49:45 +01:00
Antoine Pitrou
4f863433fd
What's new typo
2012-02-12 02:12:47 +01:00
Nadeem Vawda
d7e5c6ed7f
Add section on bz2 module to whatsnew/3.3.
2012-02-12 01:34:18 +02:00
Nadeem Vawda
7edbe30e70
Fix typo in whatsnew/3.3.
2012-02-12 00:30:54 +02:00
Nadeem Vawda
d1a107132c
Merge: #13989 : Document that GzipFile does not support text mode.
2012-02-11 23:54:51 +02:00
Nadeem Vawda
30d94b7aea
Issue #13989 : Document that GzipFile does not support text mode.
...
Also, give a more helpful error message when opened with an invalid mode string.
2012-02-11 23:45:10 +02:00
Eli Bendersky
44fb613816
fix Doc/extending/extending.rst typo
2012-02-11 10:27:31 +02:00
Eli Bendersky
d049d5c7fb
fix Sphinx error in os.rst
2012-02-11 09:52:29 +02:00
Petri Lehtinen
bc35bebb45
Undocument and clean up sqlite3.OptimizedUnicode
...
Closes #13921 .
2012-02-09 21:09:03 +02:00
Senthil Kumaran
f0f9679d5c
merge from 3.2
...
Issue #9021 - Introduce copy module better in the docs.
2012-02-09 18:27:48 +08:00
Senthil Kumaran
5b14d732d8
Issue #9021 - Introduce copy module better. Doc changes suggested by Terry
...
Reedy.
2012-02-09 18:26:59 +08:00
Senthil Kumaran
0bfa963fbb
merged from 3.2
...
Issue #6005 : Examples in the socket library documentation use sendall, where
relevant, instead send method.
2012-02-09 17:55:56 +08:00
Senthil Kumaran
6e13f130a9
Fix Issue #6005 : Examples in the socket library documentation use sendall,
...
where relevant, instead send method.
2012-02-09 17:54:17 +08:00
Antoine Pitrou
bcf2b59fb5
Issue #13609 : Add two functions to query the terminal size:
...
os.get_terminal_size (low level) and shutil.get_terminal_size (high level).
Patch by Zbigniew Jędrzejewski-Szmek.
2012-02-08 23:28:36 +01:00
Victor Stinner
4195b5caea
Backout f8409b3d6449: the PEP 410 is not accepted yet
2012-02-08 23:03:19 +01:00
Victor Stinner
ccd5715a14
PEP 410
2012-02-08 14:31:50 +01:00
Victor Stinner
f4c54ff5cd
What's New in 3.3: reorder modules
...
Remove also duplicate functions in the "os" module section
2012-02-08 01:48:34 +01:00
Victor Stinner
2e63177e94
What's New in 3.3: Fix time module doc
2012-02-08 01:43:34 +01:00
Victor Stinner
8b30201f7d
Issue #13846 : Add time.monotonic(), monotonic clock.
2012-02-07 23:29:46 +01:00
Charles-François Natali
7794090251
Following Nick's suggestion, rename posix.fdlistdir() to posix.flistdir(), to
...
be consistent with other functions accepting file descriptors (fdlistdir() was
added in 3.3, so hasn't been released yet).
2012-02-06 19:54:48 +01:00
Charles-François Natali
7372b06cd7
Issue #13734 : Add os.fwalk(), a directory walking function yielding file
...
descriptors.
2012-02-05 15:15:38 +01:00
Nadeem Vawda
fb39063202
Make lzma docs consistent with other compression modules (cf. changeset 11bd2d32b4e8).
2012-02-05 15:07:43 +02:00
Éric Araujo
cd0d951a70
Merge edits from 3.2 ( #13716 , #1040439 , #2945 , #13770 , #6715 )
2012-02-05 13:49:59 +01:00
Éric Araujo
cd2a6033ac
Branch merge
2012-02-05 13:41:47 +01:00
Nadeem Vawda
bd249c1bae
Clarify note in BZ2File docs about lack of multi-stream support (issue #1625 ).
2012-02-05 14:29:00 +02:00
Georg Brandl
2cf04487ac
merge with 3.2
2012-02-05 09:28:39 +01:00
Georg Brandl
9701eb6e14
Closes #13944 : fix capitalization of class name.
2012-02-05 09:25:22 +01:00
Nadeem Vawda
8f50912f87
Issue #1625 : Document BZ2File's lack of support for multi-stream inputs.
2012-02-04 23:44:49 +02:00
Benjamin Peterson
94015f13f1
merge 3.2
2012-02-04 09:56:43 -05:00
Benjamin Peterson
f51ebf94bb
threading primitives now have timeouts
2012-02-04 09:55:52 -05:00
Nadeem Vawda
d85d0e7247
Document that some of LZMAFile.__init__()'s args are keyword-only.
2012-02-04 14:06:07 +02:00
Nadeem Vawda
54d8144bb0
Make BZ2File.__init__()'s fileobj argument keyword-only.
2012-02-04 13:58:07 +02:00
Georg Brandl
ff962c5f1f
Small grammar fixes by Mark Summerfield.
2012-02-04 08:55:56 +01:00
Martin v. Löwis
9d6c66933a
Issue #13777 : Add PF_SYSTEM sockets on OS X.
...
Patch by Michael Goderbauer.
2012-02-03 17:44:58 +01:00
Georg Brandl
538343d6ec
Fix small grammatical inconsistency.
2012-02-02 22:22:19 +01:00
Petri Lehtinen
4b0eab62f0
Merge branch 3.2
...
Closes #13402 .
2012-02-02 21:23:15 +02:00
Petri Lehtinen
9713321f46
Document absoluteness of sys.executable
...
Closes #13402 .
2012-02-02 20:59:50 +02:00
Brian Curtin
090ec3c7fc
merge. again.
2012-02-01 15:24:10 -06:00
Brian Curtin
97e2008645
merge updates
2012-02-01 15:20:03 -06:00
Brian Curtin
8d132c88c2
merge from 3.2
2012-02-01 15:15:14 -06:00
Brian Curtin
10dda6e029
Add a hint that CSD == Service Pack.
...
People searcing for the way to get a "service pack" will never find that we
provide it here, and people that find this function won't know what CSD is
until they run the function. On top of this, they won't know what the value
means unless they really have a service pack installed.
CSD, or Customer Service Diagnostics, is apparently no longer used, and was
rarely used term at that. Most references to it online are from
universities making Windows 2000 and XP service packs available to students.
2012-02-01 15:14:00 -06:00
Raymond Hettinger
590463efc4
merge
2012-02-01 09:08:08 -08:00
Raymond Hettinger
fc3ba6b8fc
Add usage note
2012-02-01 09:07:40 -08:00
Antoine Pitrou
f3b2d88b67
Issue #8828 : Add new function os.replace(), for cross-platform renaming with overwriting.
2012-01-30 22:08:52 +01:00