Victor Stinner
8580dab513
Hum, VMS code is still present
2013-08-04 10:32:26 +02:00
Victor Stinner
f3fd13b5dd
Complete What's New in Python 3.4
2013-08-04 10:30:57 +02:00
Eli Bendersky
c4216ab92b
Issue #17902 : Clarify doc of ElementTree.iterparse and IncrementalParser
...
Based on patch by Aaron Oakley
2013-08-03 18:55:10 -07:00
Eli Bendersky
ca97fd3053
Issue #17902 : Clarify doc of ElementTree.iterparse
2013-08-03 18:52:32 -07:00
Larry Hastings
d36fc4307e
Fix minor documentation markup error.
2013-08-03 02:49:53 -07:00
Antoine Pitrou
a68cbfa556
Issue #18589 : fix hyperlinking of type slots (tp_*)
2013-08-01 21:14:43 +02:00
Antoine Pitrou
39668f57f4
Issue #18589 : fix hyperlinking of type slots (tp_*)
2013-08-01 21:12:45 +02:00
R David Murray
536ffe161c
#17616 : Improve context manager tests, fix bugs in close method and mode docs.
...
'mode' docs fix: the file must always be opened in binary in Python3.
Bug in Wave_write.close: when the close method calls the check that the header
exists and it raises an error, the _file attribute never gets set to None, so
the next close tries to close the file again and we get an ignored traceback
in the __del__ method. The fix is to set _file to None in a finally clause.
This represents a behavior change...in theory a program could be checking for
the error on close and then doing a recovery action on the still open file and
closing it again. But this change will only go into 3.4, so I think that
behavior change is acceptable given that it would be pretty weird and unlikely
logic to begin with.
2013-07-31 20:48:26 -04:00
R David Murray
c91d5eea10
#17616 : wave.open now supports the 'with' statement.
...
Feature and tests by ClClaudiu.Popa, I added the doc changes.
2013-07-31 13:46:08 -04:00
Terry Jan Reedy
92e2a220ef
Merge with 3.3
2013-07-30 22:31:30 -04:00
Terry Jan Reedy
778cba7f29
Issue #18573 : More copy-paste fixes to assertWarns entry.
2013-07-30 22:31:06 -04:00
R David Murray
bc47d7bb4f
Merge: #16273 : Fix tutorial discussion of seek/tell (opaque text-mode values).
2013-07-30 15:53:30 -04:00
R David Murray
1c4e443ea2
#16273 : Fix tutorial discussion of seek/tell (opaque text-mode values).
...
Patch by Sijin Joseph.
2013-07-30 15:51:57 -04:00
R David Murray
f392c604e7
Merge: #18601 : fix error made when difflib example was converted to use 'with'.
2013-07-30 15:37:43 -04:00
R David Murray
96433f8e34
#18601 : fix error made when difflib example was converted to use 'with'.
2013-07-30 15:37:11 -04:00
Ethan Furman
9026262507
fixed examples to work with changed attribute names
2013-07-30 12:24:25 -07:00
R David Murray
20ac14fbad
Merge #18584 : s/testcleanup/testsetup/ until we switch to Sphinx 1.1.
2013-07-30 14:43:10 -04:00
R David Murray
11bfd32881
#18584 : s/testcleanup/testsetup/ until we switch to Sphinx 1.1.
...
testcleanup directive is new as of 1.1, and we are currently running
1.0.7. But using testsetup works just as well, and avoids the
unknown directive error when building the docs.
2013-07-30 14:42:40 -04:00
Antoine Pitrou
8547a0e29b
Merge doc fix
2013-07-30 20:09:36 +02:00
Antoine Pitrou
3ab7b0aabb
Simplify example of PyErr_Fetch() use
2013-07-30 20:09:03 +02:00
Antoine Pitrou
796564c27b
Issue #18112 : PEP 442 implementation (safe object finalization).
2013-07-30 19:59:21 +02:00
R David Murray
299a221940
Merge #18584 : make doctest examples in email documentation pass.
2013-07-29 15:56:26 -04:00
R David Murray
fdfb0050bb
#18584 : make doctest examples in email documentation pass.
...
With the exception of the 'as_string' call in the policy docs.
That one is a separate issue.
Note that when building the docs sphinx is complaining about
.. testcleanup:: being an invalid directive. I don't know
why this is, as I'm following the sphinx docs...but fortunately
the action is to omit the text in the body, so the generated
documentation is correct.
2013-07-29 15:49:58 -04:00
Nick Coghlan
cf67b2a891
Merge #15415 from 3.3
2013-07-28 22:25:25 +10:00
Nick Coghlan
5517596c04
Close #15415 : Factor out temp dir helpers to test.support
...
Patch by Chris Jerdonek
2013-07-28 22:11:50 +10:00
Nick Coghlan
e8c45d6d0e
Close #13266 : Add inspect.unwrap
...
Initial patch by Daniel Urban and Aaron Iles
2013-07-28 20:00:01 +10:00
Victor Stinner
b6738df111
(Merge 3.3) doc of PYTHONFAULTHANDLER env var: add missing "versionadded" tag
2013-07-28 02:57:02 +02:00
Victor Stinner
ae6d05bcb9
doc of PYTHONFAULTHANDLER env var: add missing "versionadded" tag
2013-07-28 02:56:50 +02:00
Terry Jan Reedy
937b50c378
Merge with 3.3
2013-07-27 16:15:51 -04:00
Terry Jan Reedy
9eda66da78
Issue #18573 : Complete copy-paste from assertRaises entry to assertWarns entry.
2013-07-27 16:15:29 -04:00
R David Murray
4d35e75ca0
#17818 : aifc.getparams now returns a namedtuple.
...
Patch by Claudiu Popa.
2013-07-25 16:12:01 -04:00
R David Murray
bd2a757010
Merge #15130 : remove repeat of abstract paragraph from socket howto body.
2013-07-25 13:24:40 -04:00
R David Murray
b76b1b1ec8
#15130 : remove repeat of abstract paragraph from socket howto body.
...
Patch by Tshepang Lekhonkhobe.
2013-07-25 13:24:15 -04:00
Ezio Melotti
3e1e97a99a
#16937 : merge with 3.3.
2013-07-25 05:04:50 +02:00
Ezio Melotti
61b0c672b5
#16937 : document that stdin is always buffered, even when -u is used. Patch by Elena Oat.
2013-07-25 05:04:02 +02:00
Vinay Sajip
aca61703fa
Closes #18541 : merged update from 3.3.
2013-07-24 17:52:58 +01:00
Vinay Sajip
a92fbe6dce
Issue #18541 : simplified LoggerAdapter example.
2013-07-24 17:52:01 +01:00
Ethan Furman
f24bb35a69
closes issue18042 -- a `unique` decorator is added to enum.py
...
The docs also clarify the 'Interesting Example' duplicate-free enum is for
demonstration purposes.
2013-07-18 17:05:39 -07:00
Ned Deily
eaaedcdd89
Closes #18471 : Fix typo in heapq documentation (reported by François Pinard).
2013-07-15 19:09:27 -07:00
Ned Deily
676d7aa905
Issue #18471 : Fix typo in heapq documentation (reported by François Pinard).
2013-07-15 19:08:13 -07:00
Barry Warsaw
224a599c0c
- Issue #18440 : Clarify that `hash()` can truncate the value returned from an
...
object's custom `__hash__()` method.
2013-07-15 14:47:29 -04:00
Barry Warsaw
4958f714bd
- Issue #18440 : Clarify that `hash()` can truncate the value returned from an
...
object's custom `__hash__()` method.
2013-07-15 15:21:41 -04:00
Nick Coghlan
24c05bc154
Close issue 17482: don't overwrite __wrapped__
2013-07-15 21:13:08 +10:00
Ned Deily
d57b268653
Closes #18452 : fix several "occurrence" typos (reported by Févry Thibault).
2013-07-14 12:45:18 -07:00
Ned Deily
0995c47891
Issue #18452 : fix several "occurrence" typos (reported by Févry Thibault).
2013-07-14 12:43:16 -07:00
R David Murray
d0a03ad139
#18389 : Clarify that relpath does not access the file system.
...
Initial patch by Madison May.
2013-07-12 17:43:53 -04:00
R David Murray
ce10fab9f6
#18389 : Clarify that relpath does not access the file system.
...
Initial patch by Madison May.
2013-07-12 17:43:11 -04:00
Vinay Sajip
11b38f17ca
Closes #18433 : Merged documentation update from 3.3.
2013-07-12 21:54:12 +01:00
Vinay Sajip
577d4ff6e0
Issue #18433 : Clarified venv documentation.
2013-07-12 21:52:51 +01:00
Vinay Sajip
c1a9d30354
Merged changes.
2013-07-12 21:46:05 +01:00
Vinay Sajip
ad6bb031d7
Issue #18434 : Updated example script to tidy up resources.
2013-07-12 21:44:35 +01:00
Vinay Sajip
62926eed68
Closes #18434 : Merged documentation update from 3.3.
2013-07-12 20:58:14 +01:00
Vinay Sajip
3c557f298a
Issue #18434 : Updated example script in venv docs to use setuptools rather than Distribute.
2013-07-12 20:54:25 +01:00
Serhiy Storchaka
4fcf1b2bb7
Issue #18085 : Add missed const modifier for some entries in refcounts.dat.
2013-07-11 22:00:57 +03:00
Serhiy Storchaka
244d6252f2
Issue #18085 : Add missed const modifier for some entries in refcounts.dat.
2013-07-11 21:57:34 +03:00
R David Murray
e173d01231
Merge #17987 : properly document support.captured_xxx.
2013-07-11 12:29:31 -04:00
R David Murray
5a33f81348
#17987 : properly document support.captured_xxx.
...
Patch by Dmi Baranov.
2013-07-11 12:28:40 -04:00
Serhiy Storchaka
491856074f
Issue #18336 . Fix a link to StreamReader's read() method.
2013-07-11 18:27:20 +03:00
Serhiy Storchaka
cca40ffa97
Issue #18336 . Fix a link to StreamReader's read() method.
2013-07-11 18:26:13 +03:00
Ezio Melotti
d95bb3f981
#18403 : merge with 3.3.
2013-07-08 17:53:32 +02:00
Ezio Melotti
93dd6934ff
#18403 : fix an off-by-one typo noticed by Xue Fuqiao.
2013-07-08 17:52:54 +02:00
Ronald Oussoren
5f8e78545c
(3.3->default) Cleanup of documentation change from #17860
...
Reformulated the textual change, and applied it to the docstring as well.
2013-07-07 09:28:01 +02:00
Ronald Oussoren
385521c90e
Cleanup of documentation change from #17860
...
Reformulated the textual change, and applied it to the docstring as well.
2013-07-07 09:26:45 +02:00
Victor Stinner
0507bf56f0
Issue #3329 : Implement the PEP 445
...
Add new enum:
* PyMemAllocatorDomain
Add new structures:
* PyMemAllocator
* PyObjectArenaAllocator
Add new functions:
* PyMem_RawMalloc(), PyMem_RawRealloc(), PyMem_RawFree()
* PyMem_GetAllocator(), PyMem_SetAllocator()
* PyObject_GetArenaAllocator(), PyObject_SetArenaAllocator()
* PyMem_SetupDebugHooks()
Changes:
* PyMem_Malloc()/PyObject_Realloc() now always call malloc()/realloc(), instead
of calling PyObject_Malloc()/PyObject_Realloc() in debug mode.
* PyObject_Malloc()/PyObject_Realloc() now falls back to
PyMem_Malloc()/PyMem_Realloc() for allocations larger than 512 bytes.
* Redesign debug checks on memory block allocators as hooks, instead of using C
macros
2013-07-07 02:05:46 +02:00
Ronald Oussoren
c17d0c2218
(3.3->default) Issue #17860 : explicitly mention that std* streams are opened in binary mode by default.
...
The documentation does mention that the streams are opened in text mode
when univeral_newlines is true, but not that that they are opened in
binary mode when that argument is false and that seems to confuse at
least some users.
2013-07-06 10:25:04 +02:00
Ronald Oussoren
a68650553d
Issue #17860 : explicitly mention that std* streams are opened in binary mode by default.
...
The documentation does mention that the streams are opened in text mode
when univeral_newlines is true, but not that that they are opened in
binary mode when that argument is false and that seems to confuse at
least some users.
2013-07-06 10:23:59 +02:00
Brett Cannon
679ecb565b
Issue #15767 : back out 8a0ed9f63c6e, finishing the removal of
...
ModuleNotFoundError.
2013-07-04 17:51:50 -04:00
Brett Cannon
82da8886cc
Issue #15767 : Revert 3a50025f1900 for ModuleNotFoundError
2013-07-04 17:48:16 -04:00
Richard Oudkerk
771b961d4e
Issue #14206 : Clarify docs for Queue.join_cancel_thread().
2013-07-02 13:01:31 +01:00
Richard Oudkerk
d7d3f376dd
Issue #14206 : Clarify docs for Queue.join_cancel_thread().
2013-07-02 12:59:55 +01:00
Richard Oudkerk
b0be62453f
Issue #17273 : Clarify that pool methods can only be used by parent process.
2013-07-02 12:41:00 +01:00
Richard Oudkerk
b3c4b98c23
Issue #17273 : Clarify that pool methods can only be used by parent process.
2013-07-02 12:32:00 +01:00
Christian Heimes
04926aeb2f
Issue 18240: The HMAC module is no longer restricted to bytes and accepts
...
any bytes-like object, e.g. memoryview. Original patch by Jonas Borgström.
2013-07-01 13:08:42 +02:00
Terry Jan Reedy
ec4bdac8dd
(merge) Issue #7136 : In the Idle File menu, "New Window" is renamed "New File".
...
Patch by Tal Einat, Roget Serwy, and Todd Rovito.
2013-07-01 00:52:18 -04:00
Terry Jan Reedy
8a0b7756e2
Issue #7136 : In the Idle File menu, "New Window" is renamed "New File".
...
Patch by Tal Einat, Roget Serwy, and Todd Rovito.
2013-07-01 00:42:52 -04:00
Terry Jan Reedy
b7bb6f571b
Merge with 3.3
2013-06-29 13:16:17 -04:00
Terry Jan Reedy
c4565a9524
Issue #18237 : Fix assertRaisesRegexp error caought by Jeff Tratner.
2013-06-29 13:15:43 -04:00
Ethan Furman
e2563462fc
Added rationale for defaulting to 1 in the functional API.
2013-06-28 19:37:17 -07:00
Ethan Furman
3fe70b4acc
Added example to enum docs show access to name and value attributes of enum members.
2013-06-28 14:02:34 -07:00
R David Murray
9a2f139ba0
#18111 : Add What's New entry for max/min default.
2013-06-28 13:31:19 -04:00
Charles-François Natali
37cfb0a920
Issue #17914 : Use os.cpu_count() instead of multiprocessing.cpu_count() where
...
applicable.
2013-06-28 19:25:45 +02:00
R David Murray
fe3ae3cdc7
Merge #18311 : fix typo.
2013-06-26 15:11:32 -04:00
R David Murray
c7f7579855
#18311 : fix typo.
2013-06-26 15:11:12 -04:00
Raymond Hettinger
4d6018fe45
Issue 18111: Add a default argument to min() and max()
2013-06-24 22:43:02 -07:00
Ned Deily
2c72b51c44
Issue #18164 : merge from 3.3
2013-06-24 14:23:35 -07:00
Ned Deily
51cee7d24a
Issue #18164 : Clarify the embedding docs regarding link options.
2013-06-24 14:22:09 -07:00
Richard Oudkerk
9d89ae64b9
Merge.
2013-06-24 20:39:28 +01:00
Richard Oudkerk
2b310dd8b9
Fix typo.
2013-06-24 20:38:46 +01:00
Richard Oudkerk
93b736ee15
Merge.
2013-06-24 18:13:54 +01:00
Richard Oudkerk
7b69da72b8
Clarify note and fix typo.
2013-06-24 18:12:57 +01:00
Richard Oudkerk
71e7dbd11d
Issue #15818 : Merge.
2013-06-24 15:43:35 +01:00
Richard Oudkerk
64c25b4282
Issue #15818 : Typo in docs.
2013-06-24 15:42:00 +01:00
Richard Oudkerk
35d05537fc
Issue #18277 : Merge.
2013-06-24 14:52:14 +01:00
Richard Oudkerk
95fe1a793f
Issue #18277 : Document quirks of multiprocessing queue.
2013-06-24 14:48:07 +01:00
R David Murray
9dac840e3c
Merge #18179 : reflow paragraphs.
2013-06-23 16:06:13 -04:00
R David Murray
021362dbd4
#18179 : reflow paragraphs.
2013-06-23 16:05:44 -04:00
R David Murray
ec94eac4c9
Merge #18179 : document the local_hostname parameter.
...
Original patch by Berker Peksag.
2013-06-23 15:52:08 -04:00
R David Murray
36beb66be9
#18179 : document the local_hostname parameter.
...
Original patch by Berker Peksag.
2013-06-23 15:47:50 -04:00
R David Murray
5707d508e1
#11390 : convert doctest CLI to argparse and add -o and -f options.
...
This provides a way to specify arbitrary doctest options when using
the CLI interface to process test files, just as one can when calling
testmod or testfile programmatically.
2013-06-23 14:24:13 -04:00
Christian Heimes
c77d9f38c2
Issue #11016 : Add C implementation of the stat module as _stat
2013-06-22 21:05:02 +02:00