Nick Coghlan
f94a16b494
Close #18626 : add a basic CLI for the inspect module
2013-09-22 22:46:49 +10:00
Nick Coghlan
4c7fe6a5ad
Avoid inconsistent use of 'finalizer'
2013-09-22 21:32:12 +10:00
Nick Coghlan
be57ab8a34
Close #19047 : weakref doc cleanups
...
- be clear finalizers survive automatically
- update for PEP 442 __del__ changes
- mention module cleanup changes and weakref.finalize in What's New
2013-09-22 21:26:30 +10:00
Senthil Kumaran
3af4fad555
Correcting the mistake in 678e3c0d2d99
...
Merge from 3.3
Addresses Issue #18553 : isatty is not Unix only.
2013-09-19 00:10:17 -07:00
Senthil Kumaran
2a97cee5ed
Correcting the mistake in 14ba90816930
...
Addresses Issue #18553 : isatty is not Unix only.
2013-09-19 00:08:56 -07:00
R David Murray
4750fa8369
Merge #14984 : On POSIX, enforce permissions when reading default .netrc.
2013-09-17 21:28:17 -04:00
R David Murray
fb9dc0b3ae
Merge #14984 : On POSIX, enforce permissions when reading default .netrc.
2013-09-17 21:04:50 -04:00
R David Murray
8270a2c209
Merge #14984 : On POSIX, enforce permissions when reading default .netrc.
2013-09-17 20:32:54 -04:00
R David Murray
104aab956f
#14984 : On POSIX, enforce permissions when reading default .netrc.
...
Initial patch by Bruno Piguet.
This is implemented as if a useful .netrc file could exist without passwords,
which is possible in the general case; but in fact our netrc implementation
does not support it. Fixing that issue will be an enhancement.
2013-09-17 20:30:02 -04:00
Serhiy Storchaka
3c41154331
Issue #17003 : Unified the size argument names in the io module with common
...
practice.
2013-09-16 23:18:10 +03:00
Andrew Kuchling
173a157e72
#1565525 : Add traceback.clear_frames() helper function to clear locals ref'd by a traceback
2013-09-15 18:15:56 -04:00
Ethan Furman
101e0746d3
Close #18989 : enum members will no longer overwrite other attributes, nor be overwritten by them.
2013-09-15 12:34:36 -07:00
Senthil Kumaran
defe7f4c62
Expose --bind argument for http.server, enable http.server to bind to a user
...
specified network interface.
Patch contributed by Malte Swart. Addresses issue #17764 .
HG :Enter commit message. Lines beginning with 'HG:' are removed.
2013-09-15 09:37:27 -07:00
Georg Brandl
5642ff9d8e
Fixup reST syntax errors and streamline docs of PEP 446.
2013-09-15 10:37:57 +02:00
Ethan Furman
668dede7e9
Close #18929 : inspect.classify_class_attrs will now search the metaclasses (last) to find where an attr was defined.
2013-09-14 18:53:26 -07:00
Antoine Pitrou
7c89ae206e
Address Terry's comments
2013-09-15 02:01:39 +02:00
Antoine Pitrou
0715b9fad3
Issue #18937 : Add an assertLogs() context manager to unittest.TestCase to ensure that a block of code emits a message using the logging module.
2013-09-14 19:45:47 +02:00
Brett Cannon
a87e31ca52
Issue #18955 : clarify what is removed by importlib.util.module_for_loader.
2013-09-13 16:52:19 -04:00
Ezio Melotti
92ed89081e
#18951 : merge with 3.3.
2013-09-13 22:18:02 +03:00
Ezio Melotti
560a77881b
#18951 : use consistent names in unittest docs.
2013-09-13 22:17:40 +03:00
Senthil Kumaran
aa1004da97
merge from 3.3
...
Clarify mmap.close method behavior. Addresses issue #18815
Patch contributed by Anoop Thomas Mathew.
2013-09-09 22:40:13 -07:00
Senthil Kumaran
b9183950d8
Clarify mmap.close method behavior. Addresses issue #18815
...
Patch contributed by Anoop Thomas Mathew.
2013-09-09 22:39:28 -07:00
Senthil Kumaran
8a7687a631
merge from 3.3
...
Document Fraction's numerator and denominator properties.
Addresses issue #18800
2013-09-09 19:58:20 -07:00
Senthil Kumaran
b505a6ac91
Document Fraction's numerator and denominator properties.
...
Addresses issue #18800
2013-09-09 19:57:37 -07:00
Raymond Hettinger
fb92f393b0
Issue 18752: Make chain.from_iterable() more visible in the documentation.
2013-09-09 02:01:35 -05:00
Raymond Hettinger
223b9c36ad
merge
2013-09-09 01:55:31 -05:00
Raymond Hettinger
ee09458e08
merge
2013-09-09 01:55:07 -05:00
Raymond Hettinger
1e21ebcc2a
Issue 18301: The classmethod decorator didn't fit well with the rough-equivalent example code.
2013-09-09 01:54:27 -05:00
Ethan Furman
455bfdea2f
Close #18980 : Enum doc fixes. Patch from Elazar Gershuni.
2013-09-08 23:48:34 -07:00
Raymond Hettinger
8df58f7ae8
Issue 18752: Make chain.from_iterable() more visible in the documentation.
2013-09-09 01:29:40 -05:00
Nick Coghlan
ff6382b40d
Merge #18952 fix from 3.3
2013-09-08 12:49:53 +10:00
Nick Coghlan
0494c2ae7f
Close #18952 : correctly download test support data
...
When test.support was converted to a package, it started silently
skipping the tests which needed to download support data to run.
This change refactors the affected code, and also tidies up
test.support.findfile to remove the unused *here* parameter, document
the *subdir* parameter and rename the *filename* parameter to avoid
shadowing the file builtin and be consistent with the documentation.
The unexpected skips were noticed and reported by Zachary Ware
2013-09-08 11:40:34 +10:00
Senthil Kumaran
b1424a2908
merge from 3.3
...
Correct Profile class usage example. Addresses issue #18033 .
Patch contributed by Olivier Hervieu and Dmi Baranov.
2013-09-07 17:52:38 -07:00
Senthil Kumaran
21101f7038
Correct Profile class usage example. Addresses issue #18033 .
...
Patch contributed by Olivier Hervieu and Dmi Baranov.
2013-09-07 17:51:58 -07:00
Senthil Kumaran
59b74ec5e3
merge from 3.3
...
Removing the mention of os.isatty mention as Unix only
Correct the wrong documentation.
2013-09-07 11:30:04 -07:00
Senthil Kumaran
1b90227c0d
Removing the mention of os.isatty mention as Unix only
...
Correct the wrong documentation.
2013-09-07 11:28:58 -07:00
Ezio Melotti
84eadd8651
#18895 : merge with 3.3.
2013-09-07 15:24:01 +03:00
Ezio Melotti
e64a91a890
#18895 : split a sentence in unittest docs.
2013-09-07 15:23:36 +03:00
Ezio Melotti
0cd94428ad
#18894 : merge with 3.3.
2013-09-07 15:20:03 +03:00
Ezio Melotti
e2202365ed
#18894 : remove mention of deprecated fail* methods.
2013-09-07 15:19:30 +03:00
Ethan Furman
ed0bf8a729
Close #18908 : Keep Enum docs in their own section. Patch by Elazar Gershuni.
2013-09-06 19:53:30 -07:00
Vinay Sajip
e2549df82e
Closes #18939 : Merged documentation update from 3.3.
2013-09-06 09:51:27 +01:00
Vinay Sajip
a704582002
Issue #18939 : Updated venv documentation with some clarifications.
2013-09-06 09:50:43 +01:00
Vinay Sajip
db2c6819ba
Closes #18933 : Merged update from 3.3.
2013-09-05 23:02:45 +01:00
Vinay Sajip
31b862d40b
Issue #18933 : Added links to source code.
2013-09-05 23:01:07 +01:00
Victor Stinner
73821c47dc
Issue #16853 : Mention the new selectors module in the select module
2013-09-04 20:40:13 +02:00
Charles-François Natali
243d8d85de
Issue #16853 : Add new selectors module.
2013-09-04 19:02:49 +02:00
Andrew Svetlov
58b5c5ad14
Issue #18882 : Add threading.main_thread() function.
2013-09-04 07:01:07 +03:00
Serhiy Storchaka
e06a89655a
Issue #18901 : The sunau getparams method now returns a namedtuple rather than
...
a plain tuple. Patch by Claudiu Popa.
2013-09-04 00:43:03 +03:00
Ethan Furman
ec15a826ce
Close #18738 : Route __format__ calls to mixed-in type for mixed Enums (such as IntEnum).
2013-08-31 19:17:41 -07:00
Eli Bendersky
2c68e300e5
Fix XMLPullParser documentation to say "non-blocking" instead of "asynchronous".
...
The latter is more ambiguous.
Related to issue #17741
2013-08-31 07:37:23 -07:00
Eli Bendersky
b586934f0e
Issue #17741 : Rename IncrementalParser and its methods.
...
The new names are hopefully more descriptive and consistent. If you feel you
don't agree with this change, *please* read issue 17741 first - there's a lot of
discussion in there.
2013-08-30 05:51:20 -07:00
Serhiy Storchaka
a8c2a8aa8d
Issue #18760 : Improved cross-references in the xml package.
2013-08-29 10:29:30 +03:00
Serhiy Storchaka
15e6590774
Issue #18760 : Improved cross-references in the xml package.
2013-08-29 10:28:44 +03:00
Andrew Svetlov
eb97368451
Issue #11798 : TestSuite now drops references to own tests after execution.
2013-08-28 21:28:38 +03:00
Victor Stinner
daf455554b
Issue #18571 : Implementation of the PEP 446: file descriptors and file handles
...
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
2013-08-28 00:53:59 +02:00
Serhiy Storchaka
46e1ce214b
Issue #18783 : Removed existing mentions of Python long type in docstrings,
...
error messages and comments.
2013-08-27 20:17:03 +03:00
Serhiy Storchaka
9594942716
Issue #18783 : Removed existing mentions of Python long type in docstrings,
...
error messages and comments.
2013-08-27 19:40:23 +03:00
Eli Bendersky
8d26a56f3e
Clarify pyexpat documentation in StartElementHandler
2013-08-25 19:06:16 -07:00
Eli Bendersky
ca4d97ea8a
Clarify pyexpat documentation in StartElementHandler
2013-08-25 19:05:55 -07:00
Eli Bendersky
c020e7f8cb
Merge doc fix from 3.3
2013-08-25 15:30:39 -07:00
Eli Bendersky
bf8ab77f94
Update XMLParser.close documentation and fix formatting.
...
Using ``method`` markup because the method is on a callback object, not an
explicitly documented method. :meth: markup creates links within the current
class which is incorrect.
In addition, indent the paragraph correctly.
2013-08-25 15:27:36 -07:00
Ezio Melotti
74eba65fb6
Fix markup in elementtree docs.
2013-08-26 01:05:57 +03:00
Eli Bendersky
bfd78370a5
Clarify the documentation of XMLParser.close
...
The return value of close() is not always a toplevel element. It depends on
what the underlying target returns. By default, TreeBuilder returns the
toplevel document element.
2013-08-24 15:11:44 -07:00
Serhiy Storchaka
96d5c54130
Issue #18757 : Improved cross-references in the concurrent package.
2013-08-24 00:27:59 +03:00
Serhiy Storchaka
9e0ae53980
Issue #18757 : Improved cross-references in the concurrent package.
2013-08-24 00:23:38 +03:00
Ezio Melotti
6e6c6ac3d7
#18796 : improve documentation of the file argument of dis.show_code. Initial patch by Vajrasky Kok.
2013-08-23 22:41:39 +03:00
Brett Cannon
f9f0458961
merge emphasized discouragement of overriding __import__
2013-08-23 11:00:04 -04:00
Brett Cannon
f5ebd26403
Emphasize that people should not override __import__.
...
With importlib getting used more and more, changing __import__ will
not work as well as people used to hope as it will potentially bypass
importers, etc. It also will not work with importlib.import_module()
as it uses "importlib.__import__" (i.e. importlib's implementation of
import) directly and not builtins.__import__.
2013-08-23 10:58:49 -04:00
Victor Stinner
13423c3726
Close #18794 : Add a fileno() method and a closed attribute to select.devpoll
...
objects.
Add also tests on fileno() method and closed attribute of select.epoll and select.kqueue.
2013-08-22 00:19:50 +02:00
Serhiy Storchaka
319f3a10f9
Issue #18761 : Improved cross-references in email documentation.
2013-08-19 10:03:11 +03:00
Serhiy Storchaka
e0f0cf4067
Issue #18761 : Improved cross-references in email documentation.
2013-08-19 09:59:18 +03:00
Vinay Sajip
07b16615bc
Issue #18759 : Merged updates from 3.3.
2013-08-17 00:40:38 +01:00
Vinay Sajip
67f39777fa
Issue #18759 : Improved cross-references in logging documentation.
2013-08-17 00:39:42 +01:00
Serhiy Storchaka
bbbf191707
Issue #18743 : Fix references to non-existant "StringIO" module.
2013-08-17 00:11:54 +03:00
Serhiy Storchaka
e79be877df
Issue #18743 : Fix references to non-existant "StringIO" module.
2013-08-17 00:09:55 +03:00
Antoine Pitrou
c593056744
Fix the default placeholder in textwrap.shorten() to be " [...]".
...
For some reason I forgot to do it before committing the patch in issue #18585 .
2013-08-16 22:31:12 +02:00
Antoine Pitrou
53e5b5e581
Issue #16190 : fix random module recommendation to use ssl.RAND_bytes().
2013-08-16 19:20:04 +02:00
Antoine Pitrou
ba69008bd0
Issue #16190 : fix random module recommendation to use ssl.RAND_bytes().
2013-08-16 19:19:40 +02:00
Christian Heimes
d88f735f17
Issue #18673 : Add versionchanged to docs
2013-08-16 14:37:50 +02:00
Christian Heimes
177b3f9982
Issue #18673 : Add O_TMPFILE to os module. O_TMPFILE requires Linux kernel
...
3.11 or newer. It's only defined on system with 3.11 uapi headers, too.
2013-08-16 14:35:09 +02:00
David Wolever
5d07e70568
Remove errant fourth '.' from ellipsis in datetime documentation.
2013-08-14 14:41:48 -04:00
David Wolever
e76c0393a8
Remove errant fourth '.' from ellipsis in datetime documentation.
2013-08-14 14:41:48 -04:00
Richard Oudkerk
84ed9a68bd
Issue #8713 : Support alternative start methods in multiprocessing on Unix.
...
See http://hg.python.org/sandbox/sbt#spawn
2013-08-14 15:35:41 +01:00
Ned Deily
7cf5e61b83
Issue 18724: Fix typo noticed by Susan Tan.
2013-08-13 01:15:14 -07:00
Ned Deily
eedb58d8d8
Issue 18724: Fix typo noticed by Susan Tan.
2013-08-13 01:12:41 -07:00
Felix Crux
654f003a13
Documenting that json.load may raise a ValueError.
...
Issue #18680 : JSONDecoder should document that it raises a ValueError
for malformed data
2013-08-12 17:39:51 -04:00
Felix Crux
bc4b8ebc8b
Documenting that json.load may raise a ValueError.
...
Issue #18680 : JSONDecoder should document that it raises a ValueError
for malformed data
2013-08-12 17:39:51 -04:00
Felix Crux
b435799520
Documenting that json.load may raise a ValueError.
...
Issue #18680 : JSONDecoder should document that it raises a ValueError
for malformed data
2013-08-12 17:39:51 -04:00
Felix Crux
60fb9719a1
Documenting that json.load may raise a ValueError.
...
Issue #18680 : JSONDecoder should document that it raises a ValueError
for malformed data
2013-08-12 17:39:51 -04:00
David Wolever
bbf4a46304
Merge issue #17701 : Improving strftime documentation.
2013-08-12 17:15:36 -04:00
David Wolever
569a5faaea
Issue #17701 : Improving strftime documentation.
2013-08-12 16:56:02 -04:00
Antoine Pitrou
389dec8bcf
Issue #18585 : Add :func:`textwrap.shorten` to collapse and truncate a piece of text to a given length.
2013-08-12 22:39:09 +02:00
Eli Bendersky
01ea326a8e
Close #12645 : Clarify and reformat the documentation of import_fresh_module
2013-08-11 15:43:30 -07:00
Eli Bendersky
ba5517d4c0
Issue #12645 : Clarify and reformat the documentation of import_fresh_module
2013-08-11 15:38:08 -07:00
Ezio Melotti
b2855ccd09
#18663 : merge with 3.3.
2013-08-11 13:05:37 +03:00
Ezio Melotti
d51914c6c1
#18663 : document that assertAlmostEqual also works when the values are equal and add tests.
2013-08-11 13:04:50 +03:00
Ethan Furman
a4998a7041
Close #18264 : int- and float-derived enums now converted to int or float.
2013-08-10 13:01:45 -07:00
R David Murray
fb1a7bc907
#18600 : In 3.3, as_string does not accept a policy keyword.
...
Also, document the policy keyword that was added to Message in 3.3.
2013-08-09 16:17:00 -04:00
R David Murray
bb17d2b857
#18600 : add policy to add_string, and as_bytes and __bytes__ methods.
...
This was triggered by wanting to make the doctest in email.policy.rst pass;
as_bytes and __bytes__ are clearly useful now that we have BytesGenerator.
Also updated the Message docs to document the policy keyword that was
added in 3.3.
2013-08-09 16:15:28 -04:00
Ezio Melotti
3e4477ced0
#18267 : merge with 3.3.
2013-08-08 15:46:13 +03:00
Ezio Melotti
79016e1d55
#18267 : make whitespace consistent and fix an operator.
2013-08-08 15:45:56 +03:00
Antoine Pitrou
58720d6145
Issue #17934 : Add a clear() method to frame objects, to help clean up expensive details (local variables) and break reference cycles.
2013-08-05 23:26:40 +02:00
Jason R. Coombs
b2aa6f4055
Issue 18532: Added tests and documentation to formally specify the .name attribute on hashlib objects.
2013-08-03 11:39:39 +02:00
Alexander Belopolsky
790d269d39
Fixes #8860 : Round half-microseconds to even in the timedelta constructor.
...
(Original patch by Mark Dickinson.)
2013-08-04 14:51:35 -04: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
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
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
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
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
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
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
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
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
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
Brett Cannon
27bc441f5e
merge for issue #18278
2013-06-21 18:37:02 -04:00
Brett Cannon
29b2f174da
Issue #18278 : properly document how the loaders are called for FileFinder
2013-06-21 18:31:55 -04:00
Andrew Kuchling
4921a089e2
#12716 : reorganize docs for os module a bit
...
* Move the constants used by os.open() to after the description of os.open(),
instead of putting them in their own section.
* Move RTLD_* constants to "Miscellaneous System Information" section, and
mention the sys functions they're used with.
* Mention dir_fd parameter in os.open() text.
* Typo fix ("are a supported by").
2013-06-21 11:49:57 -04:00
Andrew Kuchling
c61b913078
#13226 : update references from ctypes/DLFCN modules to os module
2013-06-21 10:58:41 -04:00
Andrew Kuchling
3468d25a80
Merge from 3.3
2013-06-21 08:07:35 -04:00
Andrew Kuchling
edb4260ffd
Closes #18218 : use correct variable name for starting point
2013-06-21 08:00:58 -04:00
Andrew Kuchling
29303d4ea5
Merge from 3.3
2013-06-20 21:40:14 -04:00
Andrew Kuchling
c3db3739aa
Closes #18267 : use floor division in code example
2013-06-20 21:33:05 -04:00
Andrew Kuchling
f862dc53e8
Merge from 3.3
2013-06-20 21:20:20 -04:00
Andrew Kuchling
1d7d580d0e
Closes #18272 : use 'builtins' for 3.3 instead of __builtin__
2013-06-20 21:17:41 -04:00
Brett Cannon
89df7b4e64
Issue #17177 : Clarify some deprecations
2013-06-18 20:49:55 -04:00
Brett Cannon
8dd823340f
Grammar tweak
2013-06-17 19:58:57 -04:00
Christian Heimes
9a5395ae2b
Issue #18147 : Add diagnostic functions to ssl.SSLContext().
...
get_ca_list() lists all loaded CA certificates and cert_store_stats() returns
amount of loaded X.509 certs, X.509 CA certs and CRLs.
2013-06-17 15:44:12 +02:00
Brett Cannon
a81d527ca9
documentation suggesting something which doesn't exist
2013-06-16 19:17:12 -04:00
Brett Cannon
390f6c1bf7
Merge doc/argument name fix
2013-06-16 19:09:46 -04:00
Brett Cannon
a269d821a1
merge
2013-06-16 19:07:16 -04:00
Brett Cannon
1d75382e81
Fix a misnaming of a method and an argument
2013-06-16 19:06:55 -04:00
Brett Cannon
f24fecd4ac
Issue #18076 : Introduce imoportlib.util.decode_source().
...
The helper function makes it easier to implement
imoprtlib.abc.InspectLoader.get_source() by making that function
require just the raw bytes for source code and handling all other
details.
2013-06-16 18:37:53 -04:00
Brett Cannon
645ab68f25
merge
2013-06-16 13:14:06 -04:00
Brett Cannon
e4f41deccf
Issue #17177 : The imp module is pending deprecation.
...
To make sure there is no issue with code that is both Python 2 and 3
compatible, there are no plans to remove the module any sooner than
Python 4 (unless the community moves to Python 3 solidly before then).
2013-06-16 13:13:40 -04:00
Andrew Kuchling
f567727abc
Merge with 3.3
2013-06-16 13:02:55 -04:00
Andrew Kuchling
c7b6c50f29
Describe 'surrogateescape' in the documentation.
...
Also, improve some docstring descriptions of the 'errors' parameter.
Closes #14015 .
2013-06-16 12:58:48 -04:00
Brett Cannon
a3c96154d2
Issue #17907 : touch up the code for imp.new_module().
2013-06-14 22:26:30 -04:00
Brett Cannon
15e489f7c5
Fix markup of the synopsis along with changing to state what is in the
...
module and not as a definition of what an enumeration is.
2013-06-14 21:59:16 -04:00
Ethan Furman
6b3d64ab5d
Closes issue 17947. Adds PEP-0435 (Adding an Enum type to the Python standard library).
...
Missing files added.
News entry added.
2013-06-14 16:55:46 -07:00
Brett Cannon
2d77204180
Issue #17907 : Document types.ModuleType's constructor and attributes,
...
allowing for documenting imp.new_module() as deprecated.
2013-06-14 19:19:57 -04:00
Brett Cannon
05a647deed
Issue #18192 : Introduce importlib.util.MAGIC_NUMBER and document the
...
deprecation of imp.get_magic().
2013-06-14 19:02:34 -04:00
Brett Cannon
8c18da20f9
merge
2013-06-14 18:33:21 -04:00
Brett Cannon
33915eba7c
Issue #17222 : Raise FileExistsError when py_compile.compile would
...
overwrite a symlink or non-regular file with a regular file.
2013-06-14 18:33:00 -04:00
Ned Deily
7bff3cbe3d
Issue #18149 : Add filecmp.clear_cache() to manually clear the filecmp cache.
...
Patch by Mark Levitt
2013-06-14 15:19:11 -07:00
Brett Cannon
3fe35e6503
Issue #18193 : Add importlib.reload(), documenting (but not
...
implementing in code) the deprecation of imp.reload().
Thanks to Berker Peksag for the patch.
2013-06-14 15:04:26 -04:00
Ethan Furman
0fff6ad1a1
Closes issue 17947. Adds PEP-0435 (Enum, IntEnum) to the stdlib.
2013-06-14 00:30:27 -07:00
Brett Cannon
8f5ac5106e
Issue #15767 : Touch up ModuleNotFoundError usage by import.
...
Forgot to raise ModuleNotFoundError when None is found in sys.modules.
This led to introducing the C function PyErr_SetImportErrorSubclass()
to make setting ModuleNotFoundError easier.
Also updated the reference docs to mention ModuleNotFoundError
appropriately. Updated the docs for ModuleNotFoundError to mention the
None in sys.modules case.
Lastly, it was noticed that PyErr_SetImportError() was not setting an
exception when returning None in one case. That issue is now fixed.
2013-06-12 23:29:18 -04:00
Brett Cannon
b1611e2772
Issue #15767 : Introduce ModuleNotFoundError, a subclass of
...
ImportError.
The exception is raised by import when a module could not be found.
Technically this is defined as no viable loader could be found for the
specified module. This includes ``from ... import`` statements so that
the module usage is consistent for all situations where import
couldn't find what was requested.
This should allow for the common idiom of::
try:
import something
except ImportError:
pass
to be updated to using ModuleNotFoundError and not accidentally mask
ImportError messages that should propagate (e.g. issues with a
loader).
This work was driven by the fact that the ``from ... import``
statement needed to be able to tell the difference between an
ImportError that simply couldn't find a module (and thus silence the
exception so that ceval can raise it) and an ImportError that
represented an actual problem.
2013-06-12 16:59:46 -04:00
Ned Deily
982c6efeb5
Issue #18187 : merge from 3.3
2013-06-11 14:40:23 -07:00
Ned Deily
3886120428
Issue #18187 : Fix broken link in venv documentation. Patch by Berker Peksag.
2013-06-11 14:38:39 -07:00
Christian Heimes
46bebee25f
Issue #17134 : Add ssl.enum_cert_store() as interface to Windows' cert store.
2013-06-09 19:03:31 +02:00
Christian Heimes
3e738f97f8
removed accidental new line
2013-06-09 18:07:16 +02:00
Christian Heimes
6d7ad13a45
Issue #18143 : Implement ssl.get_default_verify_paths() in order to debug
...
the default locations for cafile and capath.
2013-06-09 18:02:55 +02:00
Ezio Melotti
7dc4c03344
#18126 : merge with 3.3.
2013-06-09 01:05:16 +03:00
Ezio Melotti
c1f5839412
#18126 : update NumPy links in the documentation. Patch by Yury V. Zaytsev.
2013-06-09 01:04:21 +03:00
Łukasz Langa
fdcf2b7d4e
moved the single-dispatch generic function definitions to the glossary
2013-06-07 22:54:03 +02:00
Vinay Sajip
30298b468b
Closes #11959 : SMTPServer and SMTPChannel now take an optional map, use of which avoids affecting global state.
2013-06-07 15:21:41 +01:00
Łukasz Langa
6f69251980
Add reference implementation for PEP 443
...
PEP accepted: http://mail.python.org/pipermail/python-dev/2013-June/126734.html
2013-06-05 12:20:24 +02:00
Raymond Hettinger
d71001749d
Clarify which dictionaries are updateable
...
by using the wording from the Py2.7 docs.
2013-06-02 10:03:05 -07:00
Serhiy Storchaka
ea2b490f3d
Issue #18011 : base64.b32decode() now raises a binascii.Error if there are
...
non-alphabet characters present in the input string to conform a docstring.
Updated the module documentation.
2013-05-28 15:27:29 +03:00
Jason R. Coombs
3a09286790
Issue #13772 : Restored directory detection of targets in `os.symlink` on Windows, which was temporarily removed in Python 3.2.3 due to an incomplete implementation. The implementation now works even if the symlink is created in a location other than the current directory.
2013-05-27 23:21:28 -04:00
Brett Cannon
533f1ed334
Add a missing parenthesis.
2013-05-25 11:28:20 -04:00
Brett Cannon
2cefb3cf96
Various tweaks to importlib docs.
2013-05-25 11:26:11 -04:00
Brett Cannon
c3511c1dd8
Issue #17953 : document that sys.modules shouldn't be replaced (thanks
...
to interp->modules) and that deleting essential items from the dict
can cause Python to blow up.
Thanks to Terry Reedy for coming up with initial wording and Yogesh
Chaudhari for coming up with a patch using that wording in parallel to
my own patch.
2013-05-24 08:05:07 -04:00
Senthil Kumaran
05ec6aca3a
Fix #18007 : Document CookieJar.add_cookie_header request parameter changes in 3.3
2013-05-23 05:27:38 -07:00
Nick Coghlan
650e322fc6
Issue 17844: Clarify meaning of different codec tables
2013-05-23 20:24:02 +10:00
Serhiy Storchaka
9e62d35e65
Issue #17844 : Add links to encoders and decoders for bytes-to-bytes codecs.
2013-05-22 15:33:09 +03:00
Ned Deily
ea3cfc5f34
Issue #18026 : fix ctypes doc typo
2013-05-20 14:29:44 -07:00
Raymond Hettinger
697fd46d15
merge
2013-06-02 10:04:59 -07:00
Brett Cannon
0dbb4c7f13
Issues #18088 , 18089: Introduce
...
importlib.abc.Loader.init_module_attrs() and implement
importlib.abc.InspectLoader.load_module().
The importlib.abc.Loader.init_module_attrs() method sets the various
attributes on the module being loaded. It is done unconditionally to
support reloading. Typically people used
importlib.util.module_for_loader, but since that's a decorator there
was no way to override it's actions, so init_module_attrs() came into
existence to allow for overriding. This is also why module_for_loader
is now pending deprecation (having its other use replaced by
importlib.util.module_to_load).
All of this allowed for importlib.abc.InspectLoader.load_module() to
be implemented. At this point you can now implement a loader with
nothing more than get_code() (which only requires get_source();
package support requires is_package()). Thanks to init_module_attrs()
the implementation of load_module() is basically a context manager
containing 2 methods calls, a call to exec(), and a return statement.
2013-05-31 18:56:47 -04:00
Brett Cannon
b60a43eabf
Add a reset_name argument to importlib.util.module_to_load in order to
...
control whether to reset the module's __name__ attribute in case a
reload is being done.
2013-05-31 18:11:17 -04:00
Brett Cannon
177381116e
Add a reference to module_to_load
2013-05-31 18:00:56 -04:00
Brett Cannon
357c9fb055
Rename importlib.util.ModuleManager to module_to_load so that the name
...
explains better what the context manager is providing.
2013-05-30 17:31:47 -04:00
Brett Cannon
56dfc2127f
Undo a recommendation as load_module() methods might be called directly
2013-05-28 18:40:31 -04:00
Brett Cannon
3dc48d6f69
Issue #18070 : importlib.util.module_for_loader() now sets __loader__
...
and __package__ unconditionally in order to do the right thing for
reloading.
2013-05-28 18:35:54 -04:00
Brett Cannon
a22faca714
Clarify some documentation
2013-05-28 17:50:14 -04:00
Brett Cannon
a3687f0d68
Introduce importlib.util.ModuleManager which is a context manager to
...
handle providing (and cleaning up if needed) the module to be loaded.
A future commit will use the context manager in
Lib/importlib/_bootstrap.py and thus why the code is placed there
instead of in Lib/importlib/util.py.
2013-05-28 17:29:34 -04:00
Serhiy Storchaka
77a3ad743f
Issue #18011 : base64.b32decode() now raises a binascii.Error if there are
...
non-alphabet characters present in the input string to conform a docstring.
Updated the module documentation.
2013-05-28 15:30:38 +03:00
Jason R. Coombs
8f1a8e32b1
Merge with 3.3
2013-05-27 23:26:36 -04:00
Brett Cannon
3b62ca88e4
Issue #18072 : Implement get_code() for importlib.abc.InspectLoader and
...
ExecutionLoader.
2013-05-27 21:11:04 -04:00
Brett Cannon
9ffe85e1e8
Move importlib.abc.SourceLoader.source_to_code() to InspectLoader.
...
While the previous location was fine, it makes more sense to have the
method higher up in the inheritance chain, especially at a point where
get_source() is defined which is the earliest source_to_code() could
programmatically be used in the inheritance tree in importlib.abc.
2013-05-26 16:45:10 -04:00
Łukasz Langa
eadd8cf507
Fix #16832 - expose cache validity checking support in ABCMeta
2013-05-25 18:41:50 +02:00
Brett Cannon
21cc628e4c
merge
2013-05-25 11:29:03 -04:00
Brett Cannon
b39567a00e
merge
2013-05-25 11:26:36 -04:00
Brett Cannon
6489d0b380
merge fix for issue #17953
2013-05-24 17:31:37 -04:00
Senthil Kumaran
8307075ce8
Fix #17272 - Make Request.full_url and Request.get_full_url return same result under all circumstances.
...
Document the change of Request.full_url to a property.
2013-05-24 09:14:12 -07:00
Senthil Kumaran
cbc77bbbc0
merge from 3.3
...
Fix #18007 : Document CookieJar.add_cookie_header request parameter changes in 3.3 and 3.4.
2013-05-23 05:28:34 -07:00
Nick Coghlan
c633f97808
Merge issue 17844 from 3.3
2013-05-23 20:25:09 +10:00
Serhiy Storchaka
549681c79b
Issue #17844 : Add links to encoders and decoders for bytes-to-bytes codecs.
2013-05-22 15:35:35 +03:00
Giampaolo Rodola'
80e1c43ddf
Fix issue #17996 : expose socket.AF_LINK constant on BSD and OSX.
2013-05-21 21:02:04 +02:00
Ned Deily
de88c0d2f2
Issue #18026 : merge
2013-05-20 14:32:06 -07:00
Charles-Francois Natali
44feda3cd0
Issue #17914 : Add os.cpu_count(). Patch by Yogesh Chaudhari, based on an
...
initial patch by Trent Nelson.
2013-05-20 14:40:46 +02:00
Eli Bendersky
fb625448f8
Clarify docs too: events can be any sequence (not that the C code supports it)
2013-05-19 09:09:24 -07:00
Raymond Hettinger
163e9821b4
Undo the deprecation of _asdict().
...
Backed out changeset c4ca39bece9d
2013-05-18 00:05:20 -07:00
Raymond Hettinger
4e0172fd9a
Deprecate nametuple._asdict()
2013-05-17 17:14:27 -07:00
Benjamin Peterson
e8e14591eb
rather than passing locals to the class body, just execute the class body in the proper environment
2013-05-16 14:37:25 -05:00
Barry Warsaw
b710d7e4c3
- Issue #17977 : The documentation for the cadefault argument's default value
...
in urllib.request.urlopen() is fixed to match the code.
2013-05-14 11:38:38 -04:00
Barry Warsaw
d486707d2e
- Issue #17977 : The documentation for the cadefault argument's default value
...
in urllib.request.urlopen() is fixed to match the code.
2013-05-14 11:35:16 -04:00
Georg Brandl
7025349aa8
merge with 3.3
2013-05-12 12:37:12 +02:00
Georg Brandl
521ed52131
Closes issue #17732 : ignore install-directory specific options in
...
distutils.cfg when a venv is active.
2013-05-12 12:36:07 +02:00
Raymond Hettinger
3f5228d402
Issue #16694 : Add source code link for operator.py
2013-05-10 19:57:44 -07:00
Barry Warsaw
8c01ffa6ed
Merge 3.3
2013-05-10 11:36:23 -04:00
Barry Warsaw
d8f870d0fa
I was confused before. It's correct to not call .close() inside the with
...
statement, but add a comment that clarifies the purpose of the code.
2013-05-10 11:35:38 -04:00
Ezio Melotti
9b149b94ff
#17841 : merge with 3.3.
2013-05-10 05:22:14 +03:00
Ezio Melotti
173d4109b5
#17841 : remove missing codecs aliases from the documentation. Patch by Thomas Fenzl.
2013-05-10 05:21:35 +03:00
Ezio Melotti
0fbdf26158
#16523 : merge with 3.3.
2013-05-08 10:56:32 +03:00
Ezio Melotti
babc8227cc
#16523 : improve attrgetter/itemgetter/methodcaller documentation.
2013-05-08 10:53:11 +03:00
Ezio Melotti
3ed3b3b402
#17714 : merge with 3.3.
2013-05-07 11:21:21 +03:00
Ezio Melotti
c58a3ea72c
#17714 : document that the base64 codec adds a trailing newline.
2013-05-07 11:14:27 +03:00
Ezio Melotti
7168879eb2
#17871 : merge with 3.3.
2013-05-07 09:47:08 +03:00
Ezio Melotti
9c939bceeb
#17871 : fix unittest.TextTestRunner signature in the docs. Patch by Yogesh Chaudhari.
2013-05-07 09:46:30 +03:00
Raymond Hettinger
6e6bee8d08
merge
2013-05-06 18:23:10 -07:00
Raymond Hettinger
12f588adeb
Issue 17920: Fix-up terminology in the set documentation
2013-05-06 18:22:43 -07:00
Nick Coghlan
b39fd0c9b8
Issue #11816 : multiple improvements to the dis module
...
* get_instructions generator
* ability to redirect output to a file
* Bytecode and Instruction abstractions
Patch by Nick Coghlan, Ryan Kelly and Thomas Kluyver.
2013-05-06 23:59:20 +10:00
Raymond Hettinger
77371a5eea
merge
2013-05-05 19:54:04 -07:00
Raymond Hettinger
44571daf0e
Issue 17862: Improve the signature of itertools grouper() recipe.
...
Putting *n* after the *iterable* matches the signature of other itertools
and recipes. Also, it reads better.
Suggested by Ezio Melotti.
2013-05-05 19:53:41 -07:00
Richard Oudkerk
7a3dae056d
Issue #15528 : Add weakref.finalize to support finalization using
...
weakref callbacks.
This is 2e446e87ac5b except that collections/__init__.py has been
modified to import proxy from _weakref instead of weakref. This
eliminates an import cycle which seems to cause a problem on Unix but
not Windows.
2013-05-05 23:05:00 +01:00
Richard Oudkerk
39b17c513a
Backout 2e446e87ac5b; it breaks the unix buildbots.
2013-05-05 22:12:34 +01:00
Richard Oudkerk
f3593026de
Issue #15528 : Add weakref.finalize to support finalization using
...
weakref callbacks.
2013-05-05 20:59:04 +01:00
Antoine Pitrou
1a6cb30a34
Issue #5845 : Enable tab-completion in the interactive interpreter by default, thanks to a new sys.__interactivehook__.
...
(original patch by Éric Araujo)
2013-05-04 20:08:35 +02:00
Brett Cannon
4c14b5de1c
#17115,17116: Have modules initialize the __package__ and __loader__
...
attributes to None.
The long-term goal is for people to be able to rely on these
attributes existing and checking for None to see if they have been
set. Since import itself sets these attributes when a loader does not
the only instances when the attributes are None are from someone
overloading __import__() and not using a loader or someone creating a
module from scratch.
This patch also unifies module initialization. Before you could have
different attributes with default values depending on how the module
object was created. Now the only way to not get the same default set
of attributes is to circumvent initialization by calling
ModuleType.__new__() directly.
2013-05-04 13:56:58 -04:00
Ezio Melotti
4cfc0b5411
#16518 : merge with 3.3.
2013-05-04 18:07:12 +03:00
Ezio Melotti
c228e96726
#16518 : use "bytes-like object" throughout the docs.
2013-05-04 18:06:34 +03:00
Charles-Francois Natali
f18a82d956
Issue #17529 : Fix os.sendfile() documentation regarding the type of file
...
descriptor supported.
2013-05-01 15:13:12 +02:00
Charles-Francois Natali
a771a1b48e
Issue #17529 : Fix os.sendfile() documentation regarding the type of file
...
descriptor supported.
2013-05-01 15:12:20 +02:00
Benjamin Peterson
3b0431dc60
check local class namespace before reaching for cells ( closes #17853 )
2013-04-30 09:41:40 -04:00
Ezio Melotti
f256f5f3eb
#17881 : merge with 3.3.
2013-04-30 16:34:30 +03:00
Ezio Melotti
ab6ab15e7d
#17881 : clarify documentation of plistlib.
2013-04-30 16:34:04 +03:00
R David Murray
d4c1b36c39
Merge: Reflow paragraphs.
...
(I got a merge conflict on this in urllib.request.rst, which makes no sense to
me. Hopefully I didn't screw up the previous 3.3 commit.)
2013-04-28 11:30:19 -04:00
R David Murray
9330a94467
Reflow paragraphs.
...
I know one of them looks worse, but now it is <80 chars and
matches the 2.7 text.
2013-04-28 11:24:35 -04:00
R David Murray
876f08e3ae
Merge #7152 : Clarify that ProxyHandler is added only if proxy settings are detected.
...
Behavior confirmation and initial patch by Jessica McKellar.
2013-04-28 11:08:27 -04:00