Commit graph

14891 commits

Author SHA1 Message Date
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
Victor Stinner
8cecc8c262 Issue #7330: Implement width and precision (ex: "%5.3s") for the format string
of PyUnicode_FromFormat() function, original patch written by Ysj Ray.
2013-05-06 23:11:54 +02:00
R David Murray
5c29bb331a Merge #14187: Add glossary entry for 'function annotations'.
Patch by Chris Rebert.
2013-05-06 12:58:41 -04:00
R David Murray
25cd09115d #14187: Add glossary entry for 'function annotations'.
Patch by Chris Rebert.
2013-05-06 12:58:16 -04: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
609a56f788 Elaborate on bytes-like objects. 2013-05-04 20:18:53 +02:00
Antoine Pitrou
5de183a07c Elaborate on bytes-like objects. 2013-05-04 20:18:34 +02: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
Ezio Melotti
e1419e80cf #16518: merge with 3.3. 2013-04-30 23:34:41 +03:00
Ezio Melotti
aa54e2ff5e #16518: add "bytes-like object" to the glossary. 2013-04-30 23:33:31 +03: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
775ccdf1fc #7152: Remove incorrectly added reference to DataHandler. 2013-04-28 17:06:01 -04: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
R David Murray
5aea37ad1d #7152: Clarify that ProxyHandler is added only if proxy settings are detected.
Behavior confirmation and initial patch by Jessica McKellar.
2013-04-28 11:07:16 -04:00
Brett Cannon
1f6ee73c1e merge for issue #17357 2013-04-27 23:20:55 -04:00
Brett Cannon
4067aa272e Issue #17357: Use more stern wording for
importlib.invalidate_caches().
2013-04-27 23:20:32 -04:00
Antoine Pitrou
9f14681959 Issue #17804: New function `struct.iter_unpack` allows for streaming struct unpacking. 2013-04-27 00:20:04 +02:00
Ezio Melotti
cbe19e56ea #17729: merge with 3.3. 2013-04-23 09:58:04 +03:00
Ezio Melotti
d638381ee0 #17729: remove the Advocacy HOWTO from the index. 2013-04-23 09:56:30 +03:00
Ezio Melotti
99b3caf514 #17729: merge with 3.3. 2013-04-23 09:25:45 +03:00
Ezio Melotti
8bdcaf794a #17729: remove the outdated Advocacy HOWTO, as suggested by the author. 2013-04-23 09:24:51 +03:00
Serhiy Storchaka
fcd9f22238 Issue #16624: subprocess.check_output now accepts an input argument,
allowing the subprocess's stdin to be provided as a (byte) string.
Patch by Zack Weinberg.
2013-04-22 20:20:54 +03:00
R David Murray
ca3f29413e #15575: Clarify tutorial description of when modules are executed. 2013-04-21 16:59:04 -04:00
R David Murray
25187e666b #15575: Clarify tutorial description of when modules are executed. 2013-04-21 16:58:36 -04:00
Ned Deily
7503b4f463 Issue #17670: merge from 3.3 2013-04-21 13:07:27 -07:00
Ned Deily
bebe91a0ef Issue #17670: Provide an example of expandtabs() usage. 2013-04-21 13:05:21 -07:00
R David Murray
a6d67e6c5d Merge #17409: Document RLIM_INFINITY and use it to clarify the setrlimit docs. 2013-04-20 13:40:33 -04:00
R David Murray
bdf940d3bd #17409: Document RLIM_INFINITY and use it to clarify the setrlimit docs. 2013-04-20 13:37:34 -04:00
Eli Bendersky
3bdead1113 Add some documentation for IncrementalParesr 2013-04-20 09:06:27 -07:00
Eli Bendersky
10e0af8493 Fix trailing whitespace 2013-04-20 05:54:29 -07:00
Eli Bendersky
ab2a76c8a8 Update ET documentation reprhasing the mention of the new IncrementalParser in
the doc for iterparse.
2013-04-20 05:53:50 -07:00