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
Raymond Hettinger
8f34da3f5f
merge
2013-05-23 00:15:19 -07: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
R David Murray
b3a579223e
merge #17973 : fix technical inaccuracy in faq entry (it now passes doctest).
2013-05-21 11:45:09 -04:00
Ned Deily
de88c0d2f2
Issue #18026 : merge
2013-05-20 14:32:06 -07:00
R David Murray
63f72908a1
Merge #17973 : Add FAQ entry for ([],)[0] += [1] both extending and raising.
2013-05-20 10:33:27 -04:00
Andrew Kuchling
2a9c8e8cd3
#17955 : minor updates to Functional howto
...
* Describe compress() and accumulate()
* Add a subsection on combinatoric functions.
* Add a forward link to skip the theoretical discussion in the first section.
* Clarify what filterfalse() is the opposite of.
* Remove the old outline and some notes at the end.
* Various small edits.
2013-05-20 10:14:53 -04: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
Ezio Melotti
93c6770c72
#14097 : merge with 3.3.
2013-05-20 08:14:14 +03: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
Andrew Kuchling
40e39fc8b8
#17700 : merge with 3.3
2013-05-09 20:14:01 -04:00
Andrew Kuchling
ddcb30440d
#17700 : update the curses HOWTO for 3.x
2013-05-09 20:05:20 -04:00
Ezio Melotti
1fbb773c29
#17938 : merge with 3.3.
2013-05-09 15:34:09 +03:00
Ezio Melotti
955382ca54
#17938 : remove duplicate paragraphs.
2013-05-09 15:33:53 +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
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
Barry Warsaw
24aa15959b
Merge 3.3
2013-04-19 11:32:54 -04:00
Barry Warsaw
0aa685a33c
Minor typo in example.
2013-04-19 11:32:25 -04:00
Antoine Pitrou
5b235d0923
Issue #17741 : Add ElementTree.IncrementalParser, an event-driven parser for non-blocking applications.
2013-04-18 19:37:06 +02:00
R David Murray
bca1a2629a
#17135 : Add note in imp to use importlib for new programs.
2013-04-18 09:51:17 -04:00
R David Murray
33a3c50db5
#17135 : mark imp as deprecated as of 3.4.
2013-04-17 18:50:12 -04:00
Ezio Melotti
5aa7685a1c
#17771 : merge with 3.3.
2013-04-17 07:34:31 +03:00
Ezio Melotti
a68c1ab571
#17771 : fix typo. Patch by Andriy Mysyk.
2013-04-17 07:34:13 +03:00
Ezio Melotti
3533ef2d21
#17740 : merge with 3.3.
2013-04-17 04:10:51 +03:00
Ezio Melotti
c048d98501
#17740 : fix links to the socket function. Initial patch by Zachary Ware.
2013-04-17 04:10:26 +03:00
Antoine Pitrou
9b42128e2c
Issue #17739 : fix the description of SSLSocket.getpeercert(binary_form=True) for server sockets.
...
Thanks to David D Lowe for reporting.
2013-04-16 20:28:15 +02:00
Antoine Pitrou
d34941ad4e
Issue #17739 : fix the description of SSLSocket.getpeercert(binary_form=True) for server sockets.
...
Thanks to David D Lowe for reporting.
2013-04-16 20:27:17 +02:00
Ezio Melotti
acfc454c10
#13510 : merge with 3.3.
2013-04-15 19:09:29 +03:00
Ezio Melotti
ed3cd7e445
#13510 : clarify that f.readlines() is note necessary to iterate over a file. Patch by Dan Riti.
2013-04-15 19:08:31 +03:00
Eric V. Smith
7d55a40b9a
Issue #17728 : Merge with 3.3.
2013-04-15 09:53:49 -04:00
Eric V. Smith
45fe62dc9c
Issue #17728 : Specify default precision for float.format for presentation types e, f, and g.
2013-04-15 09:51:54 -04:00
R David Murray
8a34596bbe
#2118 : IOError is deprecated, use OSError.
2013-04-14 06:46:35 -04:00
Georg Brandl
c8fb047d69
merge with 3.3
2013-04-14 12:03:01 +02:00
Georg Brandl
1aca953a40
Fix example ignoring ".svn" directories in compileall.
2013-04-14 12:02:43 +02:00
Georg Brandl
e827ea866d
merge with 3.3
2013-04-14 11:59:19 +02:00
Georg Brandl
1e1134a314
The Integral class does not contain implementations for the bit-shifting operations. (See #3056.)
2013-04-14 11:58:54 +02:00
Georg Brandl
015427e659
merge with 3.3
2013-04-14 11:55:44 +02:00
Georg Brandl
5e2954e083
Clarify that the function *definition* creates the function and the binding in the module globals.
2013-04-14 11:47:46 +02:00
Georg Brandl
f36f20f850
merge with 3.3
2013-04-14 11:16:46 +02:00
Georg Brandl
991fc5736e
Closes #13638 : document PyErr_SetFromErrnoWithFilenameObject,
...
PyErr_SetFromWindowsErrWithFilenameObject, and
PyErr_SetExcFromWindowsErrWithFilenameObject.
Note that PyErr_SetExcFromWindowsErrWithFilenameObjectAndSomeOtherParametersSoThatTheNameGetsSoLongThatNobodyIsEverGonnaUseThisStrangeFunctionForAnything is still undocumented.
2013-04-14 11:12:16 +02:00
Georg Brandl
1e6a3a2fe9
merge with 3.3
2013-04-14 10:59:17 +02:00
Georg Brandl
a204636b91
bind('') does not do the same as bind('localhost')
2013-04-14 10:59:04 +02:00
Georg Brandl
f221377d8b
merge with 3.3
2013-04-14 10:50:13 +02:00
Georg Brandl
5f4b4ac73e
Update code examples using collections.abc classes.
2013-04-14 10:50:05 +02:00
Georg Brandl
9def20566a
merge with 3.3
2013-04-14 10:31:24 +02:00
Georg Brandl
7b8c1324d7
Closes #17726 : small clarification in design FAQ.
2013-04-14 10:31:06 +02:00
Georg Brandl
94a9a2da32
merge with 3.3
2013-04-14 10:19:31 +02:00
Georg Brandl
e09596862a
Update using/mac documentation which was still on 2.5.
2013-04-14 10:17:35 +02:00
Georg Brandl
cf72c5e4ea
merge with 3.3
2013-04-14 10:13:50 +02:00
Georg Brandl
dec3b3f704
Clarify point in name mangling doc.
2013-04-14 10:13:42 +02:00
R David Murray
8e37d5df95
#2118 : Make SMTPException a subclass of IOError.
...
Initial patch by Ned Jackson Lovely.
2013-04-13 14:49:48 -04:00
R David Murray
c1d3daf58b
Merge #2118 : clarify smtplib exception documentation.
2013-04-13 14:42:36 -04:00
R David Murray
0bfd6acf03
Reflow paragraph.
2013-04-13 14:40:51 -04:00
R David Murray
14ee3cf244
#2118 : clarify smtplib exception documentation.
2013-04-13 14:40:33 -04:00
Ezio Melotti
5c965dafbd
#17686 : merge with 3.3.
2013-04-13 20:07:58 +03:00
Ezio Melotti
ac3da87553
#17686 : fix broken link in Doc/using/unix.rst. Patch by Dan Riti.
2013-04-13 20:07:42 +03:00
Mark Dickinson
9b6fdf8401
Fix incorrect indentation on 'versionadded' for weakref.ref.__callback__.
2013-04-13 16:09:18 +01:00
Mark Dickinson
556e94b8fe
Issue #17643 : Add __callback__ attribute to weakref.ref.
2013-04-13 15:45:44 +01:00
Ezio Melotti
3121e32952
#17653 : merge with 3.3.
2013-04-12 19:19:45 +03:00
Ezio Melotti
a3b255f275
#17653 : fix typo in socketserver docs. Patch by Tshepang Lekhonkhobe.
2013-04-12 19:19:21 +03:00
Vinay Sajip
a713079ed8
Closed #9556 : Allowed specifying a time-of-day for a TimedRotatingFileHandler to rotate.
2013-04-12 17:04:23 +01:00
Ezio Melotti
15a98cd30c
Merge heads.
2013-04-12 16:24:12 +03:00
Ezio Melotti
6ebdb61b67
Merge heads.
2013-04-12 16:23:24 +03:00
Andrew Svetlov
2175b4ff28
#17688 : fix declaration for richcmp example in the docs.
...
Thanks to Daniel Mullner
2013-04-12 16:09:00 +03:00
Andrew Svetlov
59d6d2dbeb
#17688 : fix declaration for richcmp example in the docs.
...
Thanks to Daniel Mullner
2013-04-12 16:08:40 +03:00
Ezio Melotti
cbc2d29636
#6696 : merge with 3.3.
2013-04-12 15:44:37 +03:00
Ezio Melotti
075d87cf05
#6696 : add documentation for the Profile objects, and improve profile/cProfile docs. Patch by Tom Pinckney.
2013-04-12 15:42:06 +03:00
Antoine Pitrou
50b24d0d7c
Fix a crash when setting a servername callback on a SSL server socket and the client doesn't send a server name.
...
Patch by Kazuhiro Yoshida.
(originally issue #8109 )
2013-04-11 20:48:42 +02:00
Georg Brandl
526575d537
Fix invalid markup.
2013-04-11 16:10:13 +02:00
R David Murray
671cd3290b
#17487 : wave.getparams now returns a namedtuple.
...
Patch by Claudiu Popa.
2013-04-10 12:31:43 -04:00
Ezio Melotti
3f5ffbee23
#17635 : merge with 3.3.
2013-04-10 18:01:22 +03:00
Ezio Melotti
c09959ae0f
#17635 : fix wrong function name in multiprocessing docs.
2013-04-10 17:59:20 +03:00
Brett Cannon
777622b6ca
What's new entry for issue #17093
2013-04-09 17:03:10 -04:00
Brett Cannon
100883f0cb
Issue #17093,17566,17567: Methods from classes in importlib.abc now raise/return
...
the default exception/value when called instead of raising/returning
NotimplementedError/NotImplemented (except where appropriate).
This should allow for the ABCs to act as the bottom/end of the MRO with expected
default results.
As part of this work, also make importlib.abc.Loader.module_repr()
optional instead of an abstractmethod.
2013-04-09 16:59:39 -04:00
Andrew Svetlov
595365de32
Merge heads
2013-04-07 14:47:05 +03:00
Andrew Svetlov
5cd72b7b9c
Update argparse docs to follow order of ArgumentParser() arguments.
2013-04-07 14:44:34 +03:00
Andrew Svetlov
5b6e1cad37
Update argparse docs to follow order of ArgumentParser() arguments.
2013-04-07 14:43:17 +03:00
Raymond Hettinger
1a2ea9c592
merge
2013-04-06 20:28:05 -07:00
Raymond Hettinger
17328e4fae
Clean-up lru_cache examples. The print() not is needed. Set maxsize to a power of two.
2013-04-06 20:27:33 -07:00
Andrew Svetlov
c53fd51278
Change wording as Eli Bendersky suggests.
2013-04-06 18:55:31 +03:00
Andrew Svetlov
e16f4dc80a
Change wording as Eli Bendersky suggests.
2013-04-06 18:55:07 +03:00
Georg Brandl
a4f988c2bd
merge with 3.3
2013-04-06 16:49:23 +02:00
Georg Brandl
03b273f4d1
Add 3.3.1 to LICENSE files.
2013-04-06 16:48:55 +02:00
Georg Brandl
98297f4807
merge with 3.3
2013-04-06 16:47:34 +02:00
Georg Brandl
cca5548159
merge with 3.3.1 release clone
2013-04-06 16:42:43 +02:00