Berker Peksag
12f611a47a
Merge from 3.5
2016-08-25 00:50:59 +03:00
Berker Peksag
7d92f892b4
Fix typo in Cursor.execute().
2016-08-25 00:50:24 +03:00
Berker Peksag
c7876464e7
Issue #6057 : Merge from 3.5
2016-08-25 00:45:36 +03:00
Berker Peksag
ed789f9cf9
Issue #6057 : Document exceptions in sqlite3 module
...
Patch by Jaysinh Shukla and Stéphane Wirtel.
2016-08-25 00:45:07 +03:00
Vinay Sajip
dd30830d8a
Closes #20124 : clarified usage of the atTime parameter in TimedRotatingFileHandler documentation.
2016-08-24 17:49:15 +01:00
Martin Panter
3c0d0baf2b
Issue #12319 : Support for chunked encoding of HTTP request bodies
...
When the body object is a file, its size is no longer determined with
fstat(), since that can report the wrong result (e.g. reading from a pipe).
Instead, determine the size using seek(), or fall back to chunked encoding
for unseekable files.
Also, change the logic for detecting text files to check for TextIOBase
inheritance, rather than inspecting the “mode” attribute, which may not
exist (e.g. BytesIO and StringIO). The Content-Length for text files is no
longer determined ahead of time, because the original logic could have been
wrong depending on the codec and newline translation settings.
Patch by Demian Brecht and Rolf Krahl, with a few tweaks by me.
2016-08-24 06:33:33 +00:00
R David Murray
bdfa0ebff7
#26907 : add some missing getsockopt constants.
...
Patch by Christian Heimes, reviewed by Martin Panter.
2016-08-23 21:12:40 -04:00
R David Murray
d44500cc29
Merge: #25916 : fix a few 'string of bytes' references.
2016-08-23 20:44:31 -04:00
R David Murray
48de28290c
#25916 : fix a few 'string of bytes' references.
...
Patch by SilengGhost.
2016-08-23 20:43:56 -04:00
Zachary Ware
c019bd3033
Fix markup, add versionadded tags
2016-08-23 13:23:31 -05:00
Guido van Rossum
f0666949fd
Issue 27598: Add Collections to collections.abc.
...
Patch by Ivan Levkivskyi, docs by Neil Girdhar.
2016-08-23 10:47:07 -07:00
Steven D'Aprano
228731879a
Add documentation for geometric and harmonic means.
2016-08-24 02:34:25 +10:00
Steven D'Aprano
6877ed3560
Issue #27573 make the exit message configurable.
2016-08-24 01:42:15 +10:00
Vinay Sajip
9ae505041f
Issue #12713 : reverted fix pending further discussion.
2016-08-23 08:43:16 +01:00
Jason R. Coombs
c758d51aa8
Issue #27819 : Add more detail in What's New in 3.6.
2016-08-21 16:09:27 -04:00
Nick Coghlan
cbcd221de4
Merge #27782 fix from 3.5
2016-08-21 17:43:58 +10:00
Nick Coghlan
8682f578c1
Issue #27782 : Fix m_methods handling in multiphase init
...
Multi-phase extension module import now correctly allows the
``m_methods`` field to be used to add module level functions
to instances of non-module types returned from ``Py_create_mod``.
Patch by Xiang Zhang.
2016-08-21 17:41:56 +10:00
Ethan Furman
e8e61277ff
issue26981: add _order_ compatibility shim to enum.Enum
2016-08-20 07:19:31 -07:00
Martin Panter
8fbab9f163
Merge spelling fixes from 3.5
2016-08-20 08:26:16 +00:00
Berker Peksag
09808e7530
Issue #12982 : Merge from 3.5
2016-08-20 11:12:20 +03:00
Berker Peksag
f43bc98c48
Issue #12982 : Thanks to PEP 488, Python no longer creates .pyo files
2016-08-20 11:11:52 +03:00
Martin Panter
d210a70dd9
Minor spelling fixes
2016-08-20 08:03:06 +00:00
Ethan Furman
332dbc7325
Issue26988: remove AutoEnum
2016-08-20 00:00:52 -07:00
Berker Peksag
7a01508bbe
Issue #12946 : Merge from 3.5
2016-08-19 11:52:08 +03:00
Berker Peksag
c01e766b54
Issue #12946 : Document that PyModule_GetDict can fail in some cases
2016-08-19 11:51:39 +03:00
Berker Peksag
3f015a64b8
Issue #27157 : Make only type() itself accept the one-argument form
...
Patch by Eryk Sun and Emanuel Barry.
2016-08-19 11:04:07 +03:00
Vinay Sajip
ef948cd058
Closes #12713 : Allowed abbreviation of subcommands in argparse.
2016-08-18 21:23:48 +01:00
Guido van Rossum
97c1adf393
Anti-registration of various ABC methods.
...
- Issue #25958 : Support "anti-registration" of special methods from
various ABCs, like __hash__, __iter__ or __len__. All these (and
several more) can be set to None in an implementation class and the
behavior will be as if the method is not defined at all.
(Previously, this mechanism existed only for __hash__, to make
mutable classes unhashable.) Code contributed by Andrew Barnert and
Ivan Levkivskyi.
2016-08-18 09:22:23 -07:00
Vinay Sajip
82df3b3071
Closes #9998 : Allowed find_library to search additional locations for libraries.
2016-08-17 16:20:07 +01:00
Zachary Ware
48e4bd6a02
Merge with 3.5
2016-08-17 09:52:32 -05:00
Zachary Ware
54005afeee
Use sys.version_info, not sys.version.
...
sys.version[0] gives a string, which fails > comparison with 2.
Reported by Arne Maximilian Richter on docs@
2016-08-17 09:51:20 -05:00
Raymond Hettinger
fd27f62a74
Add cross-reference to typing.NamedTuple. Doctest two more examples.
2016-08-16 13:13:17 -07:00
Raymond Hettinger
a5f1fbd493
merge
2016-08-16 10:59:21 -07:00
Raymond Hettinger
379a3ffaf2
Remove duplicate of the entry in the seealso section
2016-08-16 10:59:04 -07:00
Raymond Hettinger
6538b430cf
Issue #25628 : Make namedtuple "rename" and "verbose" parameters keyword-only.
2016-08-16 10:55:43 -07:00
Georg Brandl
4770d6ec76
Add versionadded tags for (c)math.tau.
2016-08-16 07:08:46 +02:00
Nick Coghlan
02d03dfab1
Issue #26823 : fix traceback abbreviation docs
...
- be clear builtin traceback display was also updated
- show example output in What's New
- fix versionadded markup
2016-08-16 10:58:14 +10:00
Guido van Rossum
b09b3f7ab9
Add docs for typing.AnyStr and typing.Text. By Michael Lee. (Merge 3.5->3.6)
2016-08-15 15:08:11 -07:00
Guido van Rossum
aa9560c633
Add docs for typing.AnyStr and typing.Text. By Michael Lee.
2016-08-15 15:06:38 -07:00
Guido van Rossum
0a891d70de
Issue #12345 : Add mathemathcal constant tau to math and cmath.
...
Patch by Lisa Roach. See also PEP 628.
2016-08-15 09:12:52 -07:00
Serhiy Storchaka
15f3228b7c
Issue #16764 : Support keyword arguments to zlib.decompress(). Patch by
...
Xiang Zhang.
2016-08-15 10:06:16 +03:00
Nick Coghlan
d00342347e
Issue #26823 : Abbreviate recursive tracebacks
...
Large sections of repeated lines in tracebacks are now abbreviated as
"[Previous line repeated {count} more times]" by both the traceback
module and the builtin traceback rendering.
Patch by Emanuel Barry.
2016-08-15 13:11:34 +10:00
Steven D'Aprano
dd51d16b48
Issue27573 code.interact prints a message when exiting.
2016-08-15 04:14:33 +10:00
Steven D'Aprano
a0d3eeff86
Add versionadded tag to docs for timeit.autorange
2016-08-15 02:47:49 +10:00
Steven D'Aprano
09f4f711b6
Issue6422 add autorange method to timeit.Timer
2016-08-15 01:27:03 +10:00
Serhiy Storchaka
9171a8b4ce
Issue #27574 : Decreased an overhead of parsing keyword arguments in functions
...
implemented with using Argument Clinic.
2016-08-14 10:52:18 +03:00
R David Murray
c00189e949
Merge: #27753 : fix typo (name->named).
2016-08-13 14:47:54 -04:00
R David Murray
689016fc00
#27753 : fix typo (name->named).
2016-08-13 14:47:18 -04:00
Raymond Hettinger
5dd2b8621d
merge
2016-08-13 11:15:59 -07:00
Raymond Hettinger
f6ffa9826e
Issue #27720 : Fix error in eng_to_decimal docs and add examples from the specification.
...
(Based on a first draft patch from Evelyn Mitchell.)
2016-08-13 11:15:34 -07:00
Berker Peksag
0b9e64122b
Issue #24637 : Merge from 3.5
2016-08-13 05:38:18 +03:00
Berker Peksag
bd664357f1
Issue #24637 : Document that locals can be any mapping object
...
This behavior is already tested in test_general_eval in
Lib/test/test_builtin.py
Patch by Matthew Keeter.
2016-08-13 05:37:49 +03:00
Brett Cannon
3f63483a30
Merge for issue #27712
2016-08-12 10:57:17 -07:00
Brett Cannon
6336fb2734
Issue #27712 : Fix some typos in the import docs.
...
Thanks to Xiang Zhang for the patch.
2016-08-12 10:56:48 -07:00
Raymond Hettinger
87fe473edc
merge
2016-08-12 09:44:18 -07:00
Raymond Hettinger
7f65af3d2d
Issue 27719: Remove a doc example that is not applicable in Python 3
2016-08-12 09:43:59 -07:00
Martin Panter
98cf1e79a1
Issue #27745 : Merge typo fixes from 3.5
2016-08-12 12:05:48 +00:00
Martin Panter
b4a2b36c99
Issue #27745 : Fix some typos in Argument Clinic howto, by Lele Gaifax
2016-08-12 12:02:03 +00:00
Martin Panter
83545f1c76
Merge ISO-8859 fixes from 3.5
2016-08-10 07:00:33 +00:00
Zachary Ware
306c3dd6f5
Issue #27200 : Merge with 3.5
2016-08-10 01:05:56 -05:00
Zachary Ware
4199bbaf63
Issue #27200 : Fix doctests in Doc/library/hashlib.rst
2016-08-10 01:05:19 -05:00
Zachary Ware
11328fc480
Closes #27210 : Merge with 3.5
2016-08-10 01:01:05 -05:00
Zachary Ware
9f8b3a0b92
Issue #27210 : Fix doctests for a few modules.
...
Initial patch by Jelle Zijlstra.
2016-08-10 00:59:59 -05:00
Zachary Ware
7a57370637
Closes #27209 : Merge with 3.5
2016-08-10 00:39:59 -05:00
Zachary Ware
640b1ca507
Issue #27209 : Fix doctests in Doc/library/email*.rst
...
Patch by Jelle Zijlstra.
2016-08-10 00:39:41 -05:00
Zachary Ware
ef28f6ad82
Closes #27208 : Merge with 3.5
2016-08-10 00:35:51 -05:00
Zachary Ware
c90fccdff6
Issue #27208 : Fix doctest in Doc/library/traceback.rst
...
Patch by Jelle Zijlstra.
2016-08-10 00:35:27 -05:00
Zachary Ware
75bc032341
Closes #27207 : Merge with 3.5
2016-08-10 00:31:31 -05:00
Zachary Ware
4032620f93
Issue #27207 : Fix doctests in Doc/whatsnew/3.2.rst
...
Initial patch by Jelle Zijlstra.
2016-08-10 00:30:41 -05:00
Martin Panter
540f0451d2
Correct misspellings of ISO-8859
2016-08-10 05:25:16 +00:00
Zachary Ware
c17dd50957
Closes #27206 : Merge with 3.5
2016-08-09 17:45:15 -05:00
Zachary Ware
c483a01a8f
Issue #27206 : Fix doctests in Doc/tutorial.
...
Patch by Jelle Zijlstra.
2016-08-09 17:44:52 -05:00
Zachary Ware
0e0fe4f9ea
Closes #27205 : Merge with 3.5
2016-08-09 17:38:44 -05:00
Zachary Ware
2b52c0a25f
Issue #27205 : Fix doctests in Doc/library/collections.rst.
...
Initial patch by Jelle Zijlstra.
2016-08-09 17:38:22 -05:00
Zachary Ware
8ec8749a38
Closes #27722 : Merge with 3.5
2016-08-09 17:10:53 -05:00
Zachary Ware
7a26da5845
Issue #27722 : Fix default for touch method's 'mode' argument
2016-08-09 17:10:39 -05:00
Zachary Ware
f03f7c75d8
Closes #27204 : Merge with 3.5
2016-08-09 17:05:23 -05:00
Zachary Ware
378a1d77d9
Issue #27204 : Fix doctests in Doc/howto
...
Patch by Jelle Zijlstra.
2016-08-09 16:47:04 -05:00
Zachary Ware
1aa913e134
Merge with 3.5
2016-08-09 16:21:17 -05:00
Zachary Ware
2f47fb0021
Correct signatures for a couple of logging handlers
...
Reported by Oleg Gromyak on docs@
2016-08-09 16:20:41 -05:00
Guido van Rossum
2b0bb0d295
Issue #27700 : Document AbstractEventLoop, not BaseEventLoop. (Merge 3.5->3.6)
2016-08-08 14:43:46 -07:00
Guido van Rossum
f68afd8544
Issue #27700 : Document AbstractEventLoop, not BaseEventLoop.
2016-08-08 09:41:21 -07:00
Berker Peksag
1107f09bfc
Merge from 3.5
2016-08-08 13:35:27 +03:00
Berker Peksag
08d85ee78d
Fix use of default reST role
2016-08-08 13:34:49 +03:00
Berker Peksag
f4c69ab0ed
Issue #23322 : Merge from 3.5
2016-08-08 13:07:35 +03:00
Berker Peksag
7d1c5efed1
Issue #23322 : Remove outdated reference to an example in parser docs
...
Initial patch by Sahil Chelaramani.
2016-08-08 13:07:08 +03:00
Andrew Svetlov
2b1c45ed54
Merge 3.5
2016-08-08 03:11:06 +03:00
Andrew Svetlov
4365b8302d
Use asyncio.gather instead of asyncio.wait in example.
...
gather will raise exception in case of problem but wait just returns done and pending lists of futures.
For getting error every future result should be retrieved, which is boring and error prone.
2016-08-08 03:10:39 +03:00
Gregory P. Smith
50abe877ee
Issue #27664 : Add to concurrent.futures.thread.ThreadPoolExecutor()
...
the ability to specify a thread name prefix.
2016-08-07 10:19:20 -07:00
Guido van Rossum
3cc38327b6
Better docs for typing.Any by Michael Lee. Fixes issue #27688 . (Merge 3.5->3.6)
2016-08-06 13:48:10 -07:00
Guido van Rossum
abfe28b012
Better docs for typing.Any by Michael Lee. Fixes issue #27688 .
2016-08-06 13:46:48 -07:00
Serhiy Storchaka
febc332056
Issue #26754 : Undocumented support of general bytes-like objects
...
as path in compile() and similar functions is now deprecated.
2016-08-06 23:29:29 +03:00
Serhiy Storchaka
d73c31899e
Issue #26800 : Undocumented support of general bytes-like objects
...
as paths in os functions is now deprecated.
2016-08-06 23:22:08 +03:00
Berker Peksag
43b586b951
Silence warnings from 'make suspicious' to make the docs buildbot happy
2016-08-06 13:37:22 +03:00
Vinay Sajip
fd0f84bd8f
Closes #22829 : Added --prompt option to venv.
2016-08-06 10:43:44 +01:00
Berker Peksag
933c66af56
Issue #18548 : Merge from 3.5
2016-08-06 03:00:30 +03:00
Berker Peksag
ab75e02f5c
Issue #18548 : Fix unittest.TestSuite() example
...
Initial patch by py.user.
2016-08-06 03:00:03 +03:00
Ethan Furman
73fc586d9f
Add AutoEnum: automatically provides next value if missing. Issue 26988.
2016-08-05 16:03:16 -07:00
Ethan Furman
20bd9f033a
Clarify NotImplemented vs NotImplementedError. Initial patch by Emmanuel Barry. Closes issue 27242.
2016-08-05 15:10:16 -07:00
Guido van Rossum
b6337a1145
Add typing.Generator docs, by Michael Lee. (Merge 3.5->3.6)
2016-08-05 12:57:38 -07:00
Guido van Rossum
b858af61b9
Add typing.Generator docs, by Michael Lee.
2016-08-05 12:56:09 -07:00
Martin Panter
02b75abf73
Merge spelling and grammar fixes from 3.5
2016-08-05 01:51:39 +00:00
Zachary Ware
a31ddb3351
Merge with 3.5
2016-08-04 12:14:51 -05:00
Zachary Ware
72e483aac4
Fix half-finished sentence.
...
Reported by Linda Pescatore on docs@.
2016-08-04 12:13:47 -05:00
Berker Peksag
6090194ef7
Merge from 3.5
2016-08-04 17:26:00 +03:00
Berker Peksag
85b6090768
Fix indentation of versionadded directive in IPv4Address.reverse_pointer docs
2016-08-04 17:25:40 +03:00
Berker Peksag
8576ca1970
Merge from 3.5
2016-08-04 17:22:05 +03:00
Berker Peksag
6bbc83986d
Indent ipaddress.ip_address() example correctly
2016-08-04 17:21:46 +03:00
Martin Panter
69332c1a64
Fix spelling and grammar in documentation and code comments
2016-08-04 13:07:31 +00:00
Martin Panter
0de01c4b30
Issue #24278 : Merge argument parsing docs from 3.5
2016-08-04 01:51:32 +00:00
Martin Panter
6c7d5a2553
Issue #24278 : Explain how argument parsing output buffers are managed
2016-08-03 14:35:05 +00:00
Berker Peksag
9f4712af25
Issue #23710 : Merge from 3.5
2016-08-03 12:59:16 +03:00
Berker Peksag
bed6891c77
Issue #23710 : Update PyObject_HEAD documentation
...
Since PEP 3123, PyObject_HEAD only has one field named ob_base.
Users now need to use the Py_TYPE macro instead of self->ob_type.
Initial patch by Ammar Askar.
2016-08-03 12:58:49 +03:00
Berker Peksag
91494d3b73
Issue #26576 : Merge from 3.5
2016-08-03 10:17:51 +03:00
Berker Peksag
6cafececbf
Issue #26576 : Clarify that the @deco syntax is not always an equivalent of f = deco(f)
...
Patch by Chris Angelico.
2016-08-03 10:17:21 +03:00
Alexander Belopolsky
43746c3770
Closes #27661 : Added tzinfo keyword argument to datetime.combine.
2016-08-02 17:49:30 -04:00
Senthil Kumaran
cde03fa038
[merge from 3.5] - Prevent HTTPoxy attack (CVE-2016-1000110)
...
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:51:13 -07:00
Senthil Kumaran
17742f2d45
[merge from 3.4] - Prevent HTTPoxy attack (CVE-2016-1000110)
...
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:39:06 -07:00
Senthil Kumaran
436fe5a447
[merge from 3.3] Prevent HTTPoxy attack (CVE-2016-1000110)
...
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:34:34 -07:00
Senthil Kumaran
4cbb23f8f2
Prevent HTTPoxy attack (CVE-2016-1000110)
...
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:24:16 -07:00
Nick Coghlan
607e1c4c44
Issue 27366: PEP 487 docs updates
...
- Porting note for type keyword arg handling
- __init_subclass__ note regarding metaclass hint
2016-07-31 12:42:49 +10:00
Berker Peksag
01d1719062
Issue #27366 : Tweak PEP 487 documentation
...
* Added versionadded directives
* Deleted duplicate sentence from __init_subclass__ docstring
* Modernized tests
2016-07-30 14:06:15 +03:00
Nick Coghlan
d78448e912
Issue #27366 : Implement PEP 487
...
- __init_subclass__ called when new subclasses defined
- __set_name__ called when descriptors are part of a
class definition
2016-07-30 16:26:03 +10:00
Berker Peksag
f6daa690e4
Merge from 3.5
2016-07-30 03:48:12 +03:00
Berker Peksag
fa95068081
Silence another "default role used" warning in typing.rst
...
This should make ware-docs green again.
2016-07-30 03:47:52 +03:00
Berker Peksag
23aa24bc68
Fix "default role used" warning in shlex.rst
2016-07-30 03:40:38 +03:00
Guido van Rossum
a9333b1207
Fix whitespace.
2016-07-29 15:41:35 -07:00
Guido van Rossum
c301cbf445
Fix whitespace.
2016-07-29 15:41:17 -07:00
Guido van Rossum
e608709675
Expand documentation about type aliases and NewType in the typing module (merge 3.5 -> 3.6).
...
By Michael Lee.
2016-07-29 15:39:36 -07:00
Guido van Rossum
342e800e97
Expand documentation about type aliases and NewType in the typing module.
...
By Michael Lee.
2016-07-29 15:38:14 -07:00
Vinay Sajip
c1f974c944
Closes #1521950 : Made shlex parsing more shell-like.
2016-07-29 22:35:03 +01:00
Martin Panter
6a09315ff0
Issue #26462 : Merge code block fixes from 3.5
2016-07-29 01:49:37 +00:00
Zachary Ware
10ea19f69c
Merge with 3.5
2016-07-28 19:01:09 -05:00
Zachary Ware
87ec85f420
Correct typo in Windows docs.
...
Found by Jack Copper on docs@
2016-07-28 19:00:53 -05:00
Martin Panter
8bde911115
Issue #27626 : Merge spelling fixes from 3.5
2016-07-28 01:30:58 +00:00
Martin Panter
eb9957065a
Issue #27626 : Spelling fixes in docs, comments and internal names
...
Based on patch by Ville Skyttä.
2016-07-28 01:11:04 +00:00
Berker Peksag
755df2a558
Issue #27633 : Merge from 3.5
2016-07-27 13:33:28 +03:00
Berker Peksag
25539b089f
Issue #27633 : Fix usage of versionchanged directive in email.parser.rst
...
Patch by Florian Preinstorfer.
2016-07-27 13:32:54 +03:00
Martin Panter
1050d2d0c7
Issue #26462 : Doc: reduce literal_block warnings, fix syntax highlighting.
...
Patch by Julien Palard.
2016-07-26 11:18:21 +02:00
Martin Panter
c75885bb86
Issue #26638 : Merge CLI link fix from 3.5
2016-07-26 06:47:09 +00:00
Martin Panter
254da19d0e
Issue #26638 : Don’t link 2to3 -l option to the tarfile -l option
2016-07-26 06:46:06 +00:00
Berker Peksag
3b055b5960
Issue #27601 : Merge from 3.5
2016-07-25 04:56:19 +03:00
Berker Peksag
aa46bd461c
Issue #27601 : Improve example in the "Hashing of numeric types" section
...
* Fix return value of hash_compute() implementation
* Rename variable names to hash_value to improve readability
Patch by Emanuel Barry.
2016-07-25 04:55:51 +03:00
Martin Panter
525a949251
Issue #27130 : Merge zlib 64-bit fixes from 3.5
2016-07-23 03:39:49 +00:00
Martin Panter
84544c1020
Issue #27130 : Fix handling of buffers exceeding UINT_MAX in “zlib” module
...
Patch by Xiang Zhang.
2016-07-23 03:02:07 +00:00
Vinay Sajip
638e622055
Closes #27493 : accepted Path objects in file handlers for logging.
2016-07-22 18:23:04 +01:00
Vinay Sajip
cccf6068fa
Closes #26559 : Allow configuring flush-on-close behaviour of MemoryHandler.
2016-07-22 16:27:31 +01:00
Zachary Ware
de85ed69f4
Closes #25393 : Merge with 3.5
2016-07-19 16:46:09 -05:00
Zachary Ware
48e3f98206
Issue #25393 : Fix probable copy/paste error in resource docs
...
Patch by Alakshendra Yadav.
2016-07-19 16:41:20 -05:00
Berker Peksag
fe8d966657
Issue #27567 : Expose the POLLRDHUP constant in the select module
2016-07-19 21:09:26 +03:00
Benjamin Peterson
0715ce358a
add EPOLLEXCLUSIVE
2016-07-18 22:02:44 -07:00
Benjamin Peterson
96e97169cc
expose EPOLLRDHUP ( closes #27567 )
2016-07-18 21:47:39 -07:00
Martin Panter
e3d747496e
Issue #27528 : Merge warning doc and test from 3.5
2016-07-19 02:50:51 +00:00
Martin Panter
221945056d
Issue #27528 : Document and test warning messages must match at beginning
2016-07-19 02:26:38 +00:00
Berker Peksag
c29dd2257e
Issue #27531 : Merge from 3.5
2016-07-17 15:27:10 +03:00
Berker Peksag
ebf9fd31a8
Issue #27531 : Update signature of Mock.assert_not_called method
...
Since 01ae1ac2daf4, it doesn't accept any arguments.
Patch by Michael Killough.
2016-07-17 15:26:46 +03:00
Martin Panter
d2fe862bab
Issue #27285 : Cleanup leftover susp-ignored entry after text was changed
2016-07-16 07:17:46 +00:00
Brett Cannon
7365361408
Merge for #26696
2016-07-15 12:16:42 -07:00
Brett Cannon
9305bba203
Issue #26696 : Document collections.abc.ByteString.
...
Thanks to Xiang Zhang for the patch.
2016-07-15 12:16:18 -07:00
Berker Peksag
663dacda4d
Issue #27180 : Merge from 3.5
2016-07-14 07:45:24 +03:00
Berker Peksag
2b8792137b
Issue #27180 : Clarify Path.rename() behavior on Unix systems
...
Patch by Evelyn Mitchell.
2016-07-14 07:44:59 +03:00
Berker Peksag
2162237dbe
Issue #27455 : Merge from 3.5
2016-07-14 07:33:16 +03:00
Berker Peksag
3093bf163b
Issue #27455 : Improve examples in tkinter documentation
...
Patch by John Hagen.
2016-07-14 07:32:43 +03:00
Serhiy Storchaka
b133bb4977
Issue #27481 : Docummented that ValueError is now raised instead of TypeError
...
in case of embedded null characters/bytes. Patch by Xiang Zhang.
2016-07-12 09:15:00 +03:00
Serhiy Storchaka
6f379f4886
Issue #27481 : Docummented that ValueError is now raised instead of TypeError
...
in case of embedded null characters/bytes. Patch by Xiang Zhang.
2016-07-12 09:14:15 +03:00
Ned Deily
538f5c4786
Issue #27285 : Cleanup "suspicious" warnings.
2016-07-11 14:21:58 -04:00
Martin Panter
702f4f5d6f
Issue #23804 : Merge spelling and NEWS fixes from 3.5
2016-07-11 12:54:44 +00:00
Martin Panter
204bf0b9ae
English spelling and grammar fixes
2016-07-11 07:51:37 +00:00
R David Murray
a7425c5e37
Merge: #26176 : fix usage of Address constructor in email examples.
2016-07-10 14:00:51 -04:00
R David Murray
7a139c50db
#26176 : fix usage of Address constructor in email examples.
...
Patch by Nathan Harold.
2016-07-10 13:59:01 -04:00
Brett Cannon
fdcdd9ed80
Issue #26896 : Disambiguate uses of "importer" with "finder".
...
Thanks to Oren Milman for the patch.
2016-07-08 11:00:00 -07:00
Brett Cannon
15552c39e0
Issue #27285 : Document the deprecation of the pyvenv script.
...
As part of the update, the documentation was updated to normalize
around the term "virtual environment" instead of relying too heavily
on "venv" for the same meaning and leading to inconsistent usage of
either.
Thanks to Steve Piercy for the patch.
2016-07-08 10:46:21 -07:00
Serhiy Storchaka
0122ae9ac8
Issue #21708 : Deprecated dbm.dumb behavior that differs from common dbm
...
behavior: creating a database in 'r' and 'w' modes and modifying a database
in 'r' mode.
2016-07-06 12:21:58 +03:00
Berker Peksag
e3c1d34c65
Merge from 3.5
2016-07-05 17:08:52 +03:00
Berker Peksag
e75ffa965b
Add versionadded to PyDict_SetDefault documentation
...
It was added for Python 3.4 in a0b750ea3397.
2016-07-05 17:08:29 +03:00
Serhiy Storchaka
7e160ce356
Issue #23034 : The output of a special Python build with defined COUNT_ALLOCS,
...
SHOW_ALLOC_COUNT or SHOW_TRACK_COUNT macros is now off by default. It can
be re-enabled using the "-X showalloccount" option. It now outputs to stderr
instead of stdout.
2016-07-03 21:03:53 +03:00
Berker Peksag
cf8b42e904
Issue #27431 : Merge from 3.5
2016-07-01 12:33:25 +03:00
Berker Peksag
8faca61fec
Issue #27431 : Update default protocol version in shelve.Shelf() documentation
...
shelve.open() documentation was updated in f351fb7ea179.
2016-07-01 12:33:00 +03:00
Berker Peksag
a9e1ebb780
Issue #27430 : Merge from 3.5
2016-07-01 12:17:45 +03:00
Berker Peksag
e39682b076
Issue #27430 : Fix typos, patch by scop.
2016-07-01 12:17:05 +03:00
Berker Peksag
e807e892ed
Fix typo in whatsnew/3.6.rst
2016-07-01 12:12:19 +03:00
Serhiy Storchaka
ee047e589d
Issue #4945 : Improved the documenting of boolean arguments in the json module.
...
Based on patch by Gabriel Genellina.
2016-06-30 14:03:21 +03:00
Serhiy Storchaka
15287f8bcc
Issue #4945 : Improved the documenting of boolean arguments in the json module.
...
Based on patch by Gabriel Genellina.
2016-06-30 13:59:12 +03:00
Victor Stinner
60a7ec3ba0
Merge 3.5 (copy doc)
2016-06-30 11:50:59 +02:00
Victor Stinner
0ab67dfb7c
Issue #27416 : clarify copy doc
...
Patch written by R. David Murray.
2016-06-30 11:50:23 +02:00
Martin Panter
34eeed4290
Issue #26721 : Change StreamRequestHandler.wfile to BufferedIOBase
2016-06-29 10:12:22 +00:00
Guido van Rossum
7acc3486d6
Fix issue #27402 : example for typing did not type-check. (Merge 3.5->3.6)
2016-06-28 10:12:22 -07:00
Guido van Rossum
457509826e
Fix issue #27402 : example for typing did not type-check.
2016-06-28 10:08:17 -07:00
Berker Peksag
61d1e99923
Issue #27393 : Merge from 3.5
2016-06-27 13:11:16 +03:00
Berker Peksag
6803f35acc
Issue #27393 : Fix escaping of C:\ too
2016-06-27 13:10:47 +03:00
Berker Peksag
c2cfe33b27
Issue #27393 : Merge from 3.5
2016-06-27 09:52:07 +03:00
Berker Peksag
9c1e9d453c
Issue #27393 : Fix escaping of venv activate commands on Windows
...
Patch by Manuel Kaufmann.
2016-06-27 09:51:40 +03:00
Serhiy Storchaka
8122174af1
Issue #22115 : Added methods trace_add, trace_remove and trace_info in the
...
tkinter.Variable class. They replace old methods trace_variable, trace,
trace_vdelete and trace_vinfo that use obsolete Tcl commands and might
not work in future versions of Tcl.
2016-06-26 09:46:57 +03:00
Serhiy Storchaka
2d8f94532b
Issue #26243 : Correct a wording in docs.
...
Thanks Berker.
2016-06-25 22:47:04 +03:00
Serhiy Storchaka
95657cdd40
Issue #26243 : Only the level argument to zlib.compress() is keyword argument
...
now. The first argument is positional-only.
2016-06-25 22:43:05 +03:00
Brett Cannon
696c35e86b
Issue #26186 : Remove the restriction that built-in and extension
...
modules can't be lazily loaded.
Thanks to Python 3.6 allowing for types.ModuleType to have its
__class__ mutated, the restriction can be lifted by calling
create_module() on the wrapped loader.
2016-06-25 10:58:17 -07:00
Brett Cannon
a32c4d0531
Issue #27038 : Expose DirEntry as os.DirEntry.
...
Thanks to Jelle Zijlstra for the code portion of the patch.
2016-06-24 14:14:44 -07:00
Brett Cannon
559ad5d401
Remove a stale reference to pathlib.PurePath.path
2016-06-24 12:22:14 -07:00
Brett Cannon
c28592bb2f
Issue #27186 : Define what a "path-like object" is.
...
Thanks to Dusty Phillips for the initial patch.
2016-06-24 12:21:47 -07:00
Brett Cannon
c78ca1e044
Issue #27186 : Update os.fspath()/PyOS_FSPath() to check the return
...
type of __fspath__().
As part of this change, also make sure that the pure Python
implementation of os.fspath() is tested.
2016-06-24 12:03:43 -07:00
Berker Peksag
ac5a319a1c
Issue #27381 : Merge from 3.5
2016-06-24 12:57:18 +03:00
Berker Peksag
a064382925
Issue #27381 : Remove superfluous paren in zipfile documentation
2016-06-24 12:56:50 +03:00
Berker Peksag
69da9c4343
Issue #26547 : Merge from 3.5
2016-06-24 09:12:20 +03:00
Berker Peksag
37e87e6ec1
Issue #26547 : Remove outdated term dictproxy from vars() documentation
...
dictproxy was used in Python 2 and it was renamed to mappingproxy
in Python 3.3.
Patch by Julien.
2016-06-24 09:12:01 +03:00
Berker Peksag
7577ad32d1
Issue #27378 : Merge from 3.5
2016-06-24 08:55:06 +03:00
Berker Peksag
79af27ef2e
Issue #27378 : Remove an outdated reference from regex HOWTO
...
Patch by Matt Morrison.
2016-06-24 08:54:43 +03:00
Terry Jan Reedy
58d3f59c2f
Merge with 3.5
2016-06-22 22:46:51 -04:00
Terry Jan Reedy
dcb6c88a24
Issue #27304 : Source code links for sub-packages in the same file.
...
Patch by Yoni Lavi
2016-06-22 22:46:34 -04:00
Benjamin Peterson
ec51eb7b25
merge 3.5
2016-06-21 23:47:24 -07:00
Benjamin Peterson
8550bd80ae
alter header; '%' really throws latex through a loop
2016-06-21 23:47:16 -07:00
Serhiy Storchaka
aacd53f6cb
Issue #18726 : All optional parameters of the dump(), dumps(),
...
load() and loads() functions and JSONEncoder and JSONDecoder class
constructors in the json module are now keyword-only.
2016-06-22 00:03:20 +03:00
Martin Panter
df1d31c2cd
Fix “allow(s) to”
2016-06-20 08:00:45 +00:00
Martin Panter
590dcab95a
Merge spelling fixes from 3.5
2016-06-20 07:55:14 +00:00
Martin Panter
2275e626b1
Fix spelling errors in code comments
2016-06-20 07:52:50 +00:00
Serhiy Storchaka
f81a266df9
Issue #27294 : Numerical state in the repr for Tkinter event objects is now
...
represented as a compination of known flags.
2016-06-18 22:09:30 +03:00
Serhiy Storchaka
514f9736a7
Issue #27294 : Numerical state in the repr for Tkinter event objects is now
...
represented as a compination of known flags.
2016-06-18 22:08:11 +03:00
Senthil Kumaran
4c3e687745
[merge from 3.5] - issue27021 - Document SC_IOV_MAX limitation imposed by OS on os.writev.
...
Patch contributed Марк Коренберг.
2016-06-18 11:23:04 -07:00
Senthil Kumaran
d37de3c41d
issue27021 - Document SC_IOV_MAX limitation imposed by OS on os.writev.
...
Patch contributed Марк Коренберг.
2016-06-18 11:21:50 -07:00
Martin Panter
2fec611a70
Issue #24314 : Merge doc links from 3.5
2016-06-18 08:20:22 +00:00
Martin Panter
bae5d81f5d
Issue #24314 : Fix doc links for general attributes like __name__, __dict__
2016-06-18 03:57:31 +00:00
Steve Dower
ea93ac013d
Issue #26536 : socket.ioctl now supports SIO_LOOPBACK_FAST_PATH. Patch by Daniel Stokes.
2016-06-17 12:52:18 -07:00
Ned Deily
dccc5edfa1
Issue #27327 : fix doc typo, noted by Jakub Wilk.
2016-06-15 18:06:32 -04:00
Berker Peksag
f0f2960f45
Merge from 3.5
2016-06-15 18:13:12 +03:00
Berker Peksag
33e7ca78f9
Make faq/general.rst gender-inclusive, patch by Sam Hathaway.
2016-06-15 18:12:49 +03:00
Georg Brandl
d20cb0263a
merge with 3.5
2016-06-15 08:58:46 +02:00
Georg Brandl
b14f0c6409
merge with 3.4
2016-06-15 08:58:00 +02:00
Georg Brandl
4b9e75ba7f
Docs: add html-stable autobuild variant
2016-06-15 08:57:32 +02:00
Martin Panter
9a8b5ca2d7
Issue #27311 : Merge zipfile doc from 3.5
2016-06-15 01:05:27 +00:00
Martin Panter
71e86367e0
Issue #27311 : Fix ZipFile.writestr data argument name.
...
Patch by John Hagen.
2016-06-15 00:24:34 +00:00
Berker Peksag
e0b70cd8a9
Issue #16864 : Cursor.lastrowid now supports REPLACE statement
...
Initial patch by Alex LordThorsen.
2016-06-14 15:25:36 +03:00
Berker Peksag
4762d5d5d1
Merge from 3.5
2016-06-14 12:51:28 +03:00
Berker Peksag
48b13f0427
Delete outdated paragraph about OptimizedUnicode again
...
sqlite3.OptimizedUnicode is an alias for str in Python 3 and
its behavior is already tested in CheckOptimizedUnicode in
Lib/sqlite3/test/factory.py.
sqlite3.OptimizedUnicode was undocumented in 0fc10a33eb4c and
probably added back with the result of a bad merge.
2016-06-14 12:51:07 +03:00
Martin Panter
6d1d2f229e
Issue #16182 : Merge readline update from 3.5
2016-06-14 08:49:51 +00:00
Martin Panter
6afbc653a7
Issue #16182 : set_pre_input_hook() may not exist; document, and update test
2016-06-14 08:45:43 +00:00
Berker Peksag
c4e1e19f12
Issue #27306 : Merge from 3.5
2016-06-14 00:49:05 +03:00
Berker Peksag
9748478086
Issue #27306 : Fix typo in tarfile documentation
...
Patch by Gareth Rees.
2016-06-14 00:48:35 +03:00
Terry Jan Reedy
dffd42f130
Whitespace
2016-06-13 00:42:42 -04:00
Terry Jan Reedy
d9792a0f18
Issue #27163 : Add idlelib/IDLE entry to What's New in 3.6.
2016-06-13 00:41:53 -04:00
Serhiy Storchaka
64204de04c
Issue #27095 : Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes.
...
Patch by Demur Rumed.
2016-06-12 17:36:24 +03:00
Berker Peksag
8f95e65e5d
Issue #15657 : Delete incorrect statement from PyMethodDef documentation
2016-06-12 16:34:38 +03:00
Berker Peksag
96471105f4
Issue #27188 : Merge from 3.5
2016-06-12 13:42:12 +03:00
Berker Peksag
c415440faa
Issue #27188 : Fix various sqlite3 documentation errors
...
* Connection.execute* methods don't create intermediate cursor objects
* Fix description of seq_of_parameters parameter
* Clarify that Warning is sqlite3.Warning
* sql_script parameter of Cursor.executescript() doesn't accept bytes
* Add missing tests
* Fix various markup errors
Initial patch by Dave Sawyer.
2016-06-12 13:41:47 +03:00
Berker Peksag
89f27e5888
Merge from 3.5
2016-06-12 12:26:08 +03:00
Berker Peksag
00eaa8a53b
Use exc role for ValueError in multiprocessing.rst
2016-06-12 12:25:43 +03:00
Berker Peksag
db287b5ca7
Issue #27221 : Merge from 3.5
2016-06-12 12:19:39 +03:00
Berker Peksag
0b19e1e72c
Issue #27221 : Delete an outdated paragraph about pickle support of Process
...
Initial patch by Jelle Zijlstra.
2016-06-12 12:19:13 +03:00
Martin Panter
98e9051577
Add grammatical article to “an ASCII letter”
2016-06-12 06:17:29 +00:00
Martin Panter
aea671efc6
Merge typo fixes from 3.5
2016-06-12 06:16:51 +00:00
Martin Panter
70c502aacf
Fix typos and English grammar in documentation and code comment
2016-06-12 06:14:03 +00:00
Martin Panter
ed74e243c6
Issue #24136 : Adjust f-strings doc for interable unpacking
2016-06-12 01:56:24 +00:00