Martin Panter
40de69ac58
Issue #25738 : Merge HTTP server from 3.5
2016-06-08 09:45:58 +00:00
Martin Panter
e42e129ebe
Issue #25738 : Don’t send message body for 205 Reset Content
...
Patch by Susumu Koshiba.
2016-06-08 08:29:13 +00:00
Victor Stinner
9ff9cbd600
Merge 3.5 (os.urandom)
2016-06-07 11:25:43 +02:00
Victor Stinner
dddf4849ec
os.urandom() doesn't block on Linux anymore
...
Issue #26839 : On Linux, os.urandom() now calls getrandom() with GRND_NONBLOCK
to fall back on reading /dev/urandom if the urandom entropy pool is not
initialized yet. Patch written by Colm Buckley.
2016-06-07 11:21:42 +02:00
Martin Panter
0d3535a6ab
Issue #23883 : News updates for __all__ attributes
2016-06-06 02:09:08 +00:00
Ned Deily
223b874c00
Issue #26014 : merge from 3.5
2016-06-05 17:39:58 -07:00
Ned Deily
8f5798edfb
Issue #26014 : Update 3.x packaging documentation:
...
- "See also" links to the new docs are now provided in the legacy pages
- links to setuptools documentation have been updated
(original patch by Susan Sun)
2016-06-05 17:38:48 -07:00
Martin Panter
ff5cd4576f
Issue #24291 : Merge wsgi partial write fix from 3.5
2016-06-05 06:56:51 +00:00
Martin Panter
ed0425c60a
Issue #24291 : Avoid WSGIRequestHandler doing partial writes
...
If the underlying send() method indicates a partial write, such as when the
call is interrupted to handle a signal, the server would silently drop the
remaining data.
Also add deprecated support for SimpleHandler.stdout.write() doing partial
writes.
2016-06-05 06:28:55 +00:00
Senthil Kumaran
1b749c5ef6
[merge from 3.5] - issue27202 - Fix the mistake in changesets 70af472451cb (3.5) and 2bb806539ca6 (3.6)
...
exclude_patterns in Sphinx conf.py will exclude the .rsts from the build. It
was incorrect exclude 2.x rsts in that. This fix contributed again Jelle
Zijlstra, excludes doctests in whatsnew/2.7.rst from being exercised by using
doctests skip option.
2016-06-04 22:23:18 -07:00
Senthil Kumaran
889f914edb
issue27202 - Fix the mistake in changesets 70af472451cb (3.5) and 2bb806539ca6 (3.6)
...
exclude_patterns in Sphinx conf.py will exclude the .rsts from the build. It
was incorrect exclude 2.x rsts in that. This fix contributed again Jelle
Zijlstra, excludes doctests in whatsnew/2.7.rst from being exercised by using
doctests skip option.
2016-06-04 22:22:26 -07:00
Berker Peksag
20ab95413e
Issue #17888 : Merge from 3.5
2016-06-04 21:48:16 -07:00
Berker Peksag
03fe0027fb
Issue #17888 : Add a note about contributing to Python docs
...
Patch by Terry Chia and Laura Rupprecht.
2016-06-04 21:47:44 -07:00
Berker Peksag
94f89a6e02
Fix typos in datetime documentation.
2016-06-04 21:36:53 -07:00
Senthil Kumaran
003f60486a
[merge from 3.5] - issue27202 - Exclude 2.x release notes from python3 make doctests.
...
Patch contributed by Jelle Zijlstra.
2016-06-04 20:53:38 -07:00
Senthil Kumaran
ff6c5c5466
issue27202 - Exclude 2.x release notes from python3 make doctests.
...
Patch contributed by Jelle Zijlstra.
2016-06-04 20:52:57 -07:00
Senthil Kumaran
2950776d36
[merge from 3.5] - Issue27203 - Fix doctests Doc/faq/programming.rst.
...
Patch contributed by Jelle Zijlstra.
2016-06-04 20:08:10 -07:00
Senthil Kumaran
7749320142
Issue27203 - Fix doctests Doc/faq/programming.rst.
...
Patch contributed by Jelle Zijlstra.
2016-06-04 20:07:34 -07:00
Nick Coghlan
b4b966ece2
Issue #19611 : handle implicit parameters in inspect.signature
...
inspect.signature now reports the implicit ``.0`` parameters generated by
the compiler for comprehension and generator expression scopes as if they
were positional-only parameters called ``implicit0``.
Patch by Jelle Zijlstra.
2016-06-04 14:40:03 -07:00
Ethan Furman
d62548afed
issue27186: add open/io.open; patch by Jelle Zijlstra
2016-06-04 14:38:43 -07:00
Kushal Das
c79b06c35c
Issue #19234 : Merge from 3.5
2016-06-04 10:21:36 -07:00
Kushal Das
89beb27061
Issue #19234 : Documents socket.fileno() returns -1 on failure
2016-06-04 10:20:12 -07:00
Ned Deily
7a3827f61f
Issue 27216: Fix typo (noticed by Alex Chan).
2016-06-04 09:41:05 -07:00
Ned Deily
32db43867c
Issue 27216: Fix typo (noticed by Alex Chan).
2016-06-04 09:40:40 -07:00
Martin Panter
19409197e2
Merge typo fixes from 3.5
2016-06-04 05:26:40 +00:00
Martin Panter
3ee6270262
Fix typos in code comment and documentation
2016-06-04 04:57:19 +00:00
R David Murray
11aaa42d1c
psuedo merge: #22797 : clarify when URLErrors are raised by urlopen.
...
I'm not sure how my previous merge commit got screwed up, hopefully this
one will do the right thing.
2016-06-03 15:40:29 -04:00
R David Murray
21dcb932a7
#22797 : clarify when URLErrors are raised by urlopen.
2016-06-03 13:29:17 -04:00
Senthil Kumaran
194a4a245a
[merge from 3.5] - issue27113 - Document "check_same_thread" parameter in sqlite3.connect api.
...
Patch contributed by Dave Sawyer.
2016-06-03 00:04:28 -07:00
Senthil Kumaran
7ee91942b4
issue27113 - Document "check_same_thread" parameter in sqlite3.connect api.
...
Patch contributed by Dave Sawyer.
2016-06-03 00:03:48 -07:00
Senthil Kumaran
464afee749
[merge from 3.5] - issue8519 - Reference termios and ioctl manual pages in the library documentation.
2016-06-02 23:50:02 -07:00
Senthil Kumaran
0779129302
issue8519 - Reference termios and ioctl manual pages in the library documentation.
2016-06-02 23:49:05 -07:00
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
287e687648
issue25931: document that socketserver.Forking* are unavailable on platforms
...
lacking os.fork().
2016-06-03 05:44:47 +00:00
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
3498db1f78
merge 3.5
2016-06-03 00:33:02 +00:00
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
583a1d6240
Document that CalledProcessError.returncode is the negative
...
signal number when the process died due to a signal.
2016-06-03 00:31:21 +00:00
R David Murray
3bad04ca62
Merge: #26829 : Clarify that namespace is copied to a new __dict__ in instance creation.
2016-06-02 20:06:13 -04:00
R David Murray
dd4fcf52f4
#26829 : Clarify that namespace is copied to a new __dict__ in instance creation.
...
Patch by Emily Morehouse.
2016-06-02 20:05:43 -04:00
Tommy Beadle
e9b8403a1f
[Issue 15476] Make "code object" its own entry in the index
2016-06-02 19:26:51 -04:00
Berker Peksag
ca4589e932
Issue #16192 : Merge from 3.5
2016-06-02 15:28:29 -07:00
Berker Peksag
8891dfe717
Issue #16192 : Fix copy and paste mistake noticed by Eryk Sun
2016-06-02 15:28:00 -07:00
Ethan Furman
cdc0879d3a
issue27186 -- initial docs, tests, and python version of os.fspath
2016-06-02 15:06:09 -07:00
Tommy Beadle
63b91e5403
Issue #24617 : Add comment for os.mkdir about mode quirks
2016-06-02 15:41:20 -04:00
R David Murray
e747dd89b6
Merge: #13784 : fix xml.sax.reader getColumn/LineNumber docs.
2016-06-02 15:15:12 -04:00
Berker Peksag
d612920484
Issue #16192 : Merge from 3.5
2016-06-02 12:18:21 -07:00
Berker Peksag
d85a1e6b55
Issue #16192 : Clarify when c_int is an alias to c_long in ctypes documentation
2016-06-02 12:17:51 -07:00
R David Murray
f86959d883
#13784 : fix xml.sax.reader getColumn/LineNumber docs.
...
verification and patch by Emily Morehouse.
2016-06-02 15:14:30 -04:00
Benjamin Peterson
010bb99432
merge 3.5
2016-06-02 11:36:16 -07:00
Benjamin Peterson
a49ccf2113
note that Py_VISIT handles NULL ( closes #27183 )
2016-06-02 11:35:59 -07:00
Berker Peksag
0a5120e457
Issue #23116 : Improve ask_ok() example in the Python tutorial
2016-06-02 11:31:19 -07:00
Berker Peksag
9c27c18c65
Issue #23116 : Merge from 3.5
2016-06-02 11:31:51 -07:00
Kushal Das
9cd39a170b
Issue #21271 : Adds new keyword only parameters in reset_mock call
...
We now have two keyword only parameters in the reset_mock function to
selectively reset the return_value or the side_effects, or both.
2016-06-02 10:20:16 -07:00
Berker Peksag
fa6de5cddf
Issue #12243 : Merge from 3.5
2016-06-01 18:26:50 -07:00
Berker Peksag
1b207c55a4
Issue #12243 : Remove redundant availability notes from getpass docs
...
Patch by Bryce Verdier.
2016-06-01 18:26:18 -07:00
Berker Peksag
c5f4036e6c
Issue #27178 : Fix markup in tutorial
...
Patch by Nathan Harold.
2016-06-01 14:38:18 -07:00
Berker Peksag
32072714fd
Merge from 3.5
2016-06-01 13:55:00 -07:00
Berker Peksag
5b6a14d1cb
Fix link in programming FAQ.
...
The example actually uses the sort method of list object.
2016-06-01 13:54:33 -07:00
Berker Peksag
ef1179e451
Issue #27174 : Merge from 3.5
2016-06-01 09:53:05 -07:00
Berker Peksag
93818c752d
Issue #27174 : Update IPython URL in tutorial
2016-06-01 09:52:35 -07:00
Berker Peksag
12a8a8a0db
Merge from 3.5
2016-06-01 09:36:40 -07:00
Berker Peksag
8e937f80c9
Fix typo in Python tutorial
2016-06-01 09:36:14 -07:00
Martin Panter
f9de40666c
Issue #25570 : Merge add_header() example from 3.5
2016-06-01 08:17:27 +00:00
Martin Panter
7aaaded8f4
Issue #25570 : Add example of customizing User-Agent via add_header()
2016-06-01 08:10:50 +00:00
Zachary Ware
d6ce44c412
Merge with 3.5
2016-06-01 00:01:21 -05:00
Zachary Ware
f9aff925e0
Fix typo
2016-06-01 00:01:10 -05:00
Martin Panter
e514093a2f
Issue #27125 : Merge typo fixes from 3.5
2016-05-30 05:24:49 +00:00
Martin Panter
a90a4a9651
Issue #27125 : Remove duplicated words from documentation and comments
2016-05-30 04:04:50 +00:00
Senthil Kumaran
96ebb8431a
[merge from 3.5] issue27043 - Explain the inspect.cleandoc behavior on synopsis line and other lines.
...
Patch contributed by Nathan Harold.
2016-05-29 20:37:54 -07:00
Senthil Kumaran
ebd84e342c
issue27043 - Explain the inspect.cleandoc behavior on synopsis line and other lines.
...
Patch contributed by Nathan Harold.
2016-05-29 20:36:58 -07:00
Serhiy Storchaka
8c740c4d19
Improved docs for issue27033. Based on comments by R. David Murray.
2016-05-29 23:43:24 +03:00
Martin Panter
e501a93c18
Issue #27125 : Merge typo fixes from 3.5
...
Also merge changes from Issue #27117 ; no actual code changes to 3.6.
2016-05-29 09:05:06 +00:00
Martin Panter
8d56c026a5
Issue #27125 : Fix various errors like “will [be] inherited”
2016-05-29 04:13:35 +00:00
Martin Panter
82069612ec
Issue #27124 : Merge binascii doc from 3.5
2016-05-29 00:56:02 +00:00
Martin Panter
58dd7648de
Issue #27124 : Fix documentation of exception raised by a2b_hex()
2016-05-29 00:48:54 +00:00
Eric Snow
dc4f7c09cc
Issue #27147 : Mention PEP 420 in the importlib docs.
2016-05-28 11:08:20 -07:00
Eric Snow
338502b307
Issue #27147 : Mention PEP 420 in the importlib docs.
2016-05-28 11:56:53 -06:00
Raymond Hettinger
672866d009
Issue 25926: Clarify that the pure python equivalents are only approximate.
2016-05-28 00:17:54 -07:00
Raymond Hettinger
819581b843
Issue 25926: Clarify that the pure python equivalents are only approximate.
2016-05-28 00:10:56 -07:00
Martin Panter
5f7110304c
Issue #26553 : Merge capitalization from 3.5
2016-05-28 02:25:07 +00:00
Martin Panter
fe289c0f6f
Issue #26553 : Capitalization of HTTP, HTTPS, FTP, and URL
...
Patch by Anish Shah and Aatish Neupane.
2016-05-28 02:20:39 +00:00
Martin Panter
c249221dfd
Issue #20699 : Merge io bytes-like fixes from 3.5
2016-05-28 01:07:08 +00:00
Martin Panter
6bb91f3b6e
Issue #20699 : Document that “io” methods accept bytes-like objects
...
This matches the usage of ZipFile and BufferedWriter. This still requires
return values to be bytes() objects.
Also document and test that the write() methods should only access their
argument before they return.
2016-05-28 00:41:57 +00:00
Martin Panter
5677aa75f0
Issue #5784 : Merge zlib from 3.5
2016-05-27 11:30:59 +00:00
Martin Panter
c618ae8ed7
Issue #5784 : wbits=0 apparently added in zlib v1.2.3.5
2016-05-27 11:20:21 +00:00
Martin Panter
f4affb71bc
Issue #5784 : Merge zlib from 3.5
2016-05-27 08:00:24 +00:00
Martin Panter
0fdf41d847
Issue #5784 : Expand documentation and tests for zlib wbits parameter
...
Based on documentation by AM Kuchling.
2016-05-27 07:32:11 +00:00
Benjamin Peterson
f527aa5040
merge 3.5
2016-05-26 23:19:02 -07:00
Benjamin Peterson
06198789a2
stop talking about svn
2016-05-26 23:18:51 -07:00
Benjamin Peterson
f50cc9ad66
merge 3.5
2016-05-26 22:56:51 -07:00
Benjamin Peterson
047ada4ef3
remove cruft from Schwarzian transform section
2016-05-26 22:55:49 -07:00
Benjamin Peterson
3f69f02792
merge 3.5
2016-05-26 22:51:44 -07:00
Benjamin Peterson
6d3ad2f64d
"Numeric Python" -> "NumPy"
2016-05-26 22:51:32 -07:00
Martin Panter
f157982b2c
Issue #27076 : More doc and comment spelling fixes for 3.6, by Ville Skyttä
2016-05-26 06:03:33 +00:00
Martin Panter
3e04d5b306
Issue #27076 : Merge spelling from 3.5
2016-05-26 06:03:19 +00:00
Martin Panter
46f50726a0
Issue #27076 : Doc, comment and tests spelling fixes
...
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
2016-05-26 05:35:26 +00:00
Steve Dower
4d4bc42c8b
Closes #23026 : Documentation improvements and code formatting
2016-05-25 11:26:07 -07:00
Steve Dower
80ac11d01e
Issue #23026 : winreg.QueryValueEx() now return an integer for REG_QWORD type. (Patch by hakril)
2016-05-24 15:42:04 -07:00
Serhiy Storchaka
b0f80b0312
Issue #26647 : Python interpreter now uses 16-bit wordcode instead of bytecode.
...
Patch by Demur Rumed.
2016-05-24 09:15:14 +03:00
Paul Moore
835416cf7c
Issue #27064 : The py.exe launcher now defaults to Python 3.
...
The Windows launcher ``py.exe`` no longer prefers an installed
Python 2 version over Python 3 by default when used interactively.
2016-05-22 12:28:41 +01:00
Berker Peksag
bab6d16ef3
Issue #27075 : Link to StreamReader and StreamWriter docs
...
Patch by Ville Skyttä.
2016-05-21 14:56:53 +03:00
Berker Peksag
732ba821ca
Issue #27075 : Link to StreamReader and StreamWriter docs
...
Patch by Ville Skyttä.
2016-05-21 14:56:35 +03:00
Victor Stinner
5a48e21ff1
subprocess now emits a ResourceWarning warning
...
Issue #26741 : subprocess.Popen destructor now emits a ResourceWarning warning
if the child process is still running.
2016-05-20 12:11:15 +02:00
Victor Stinner
19ed27ec2b
Optimize pickle.load() and pickle.loads()
...
Issue #27056 : Optimize pickle.load() and pickle.loads(), up to 10% faster to
deserialize a lot of small objects.
2016-05-20 11:42:37 +02:00
Guido van Rossum
03e6061956
Back out pathlib.Path.path attr. (Merge 3.5->3.6)
2016-05-19 13:11:17 -07:00
Guido van Rossum
387e6e3817
Back out pathlib.Path.path attr. (Merge 3.4->3.5)
2016-05-19 13:10:20 -07:00
Guido van Rossum
3d4d01f614
Back out 7e9605697dfc, 2e3c31ab586a, 759b2cecc289.
...
These added a path attribute to pathlib.Path objects, and docs.
Instead, we're going to use PEP 519.
(Starting in the 3.4 branch and merging forward from there since that's what I did originally.)
2016-05-19 13:00:21 -07:00
Serhiy Storchaka
c9736b4bdf
Issue #27036 : Fixed formatting references to "bytes-like object" in plural.
2016-05-18 13:55:11 +03:00
Serhiy Storchaka
e5ea1abf91
Issue #27036 : Fixed formatting references to "bytes-like object" in plural.
2016-05-18 13:54:54 +03:00
Berker Peksag
094c9c921c
Issue #23275 : Allow () = iterable assignment syntax
...
Documentation updates by Martin Panter.
2016-05-18 08:44:29 +03:00
Senthil Kumaran
93d22ecc7c
merge from 3.5
...
issue27045 - Use backslash in windows path to script file.
2016-05-17 20:51:15 -07:00
Senthil Kumaran
c9bfc13aa9
issue27045 - Use backslash in windows path to script file.
2016-05-17 20:50:43 -07:00
Ned Deily
36c18956b0
Issue #27049 : fix doc typo
2016-05-17 21:45:13 -04:00
Ned Deily
cec95813b2
Issue #27049 : fix doc typo
2016-05-17 21:44:46 -04:00
Benjamin Peterson
815b61d4ce
merge 3.5 ( #27042 )
2016-05-16 23:20:32 -07:00
Benjamin Peterson
54044d605f
class definitions only get argument lists ( closes #27042 )
2016-05-16 23:20:22 -07:00
Benjamin Peterson
bc7ee43a6d
Backed out changeset 71ff2235bb4c ( closes #27042 )
2016-05-16 23:18:33 -07:00
Yury Selivanov
b4a0d52a3f
docs: Update whatsnew/3.6 with asyncio changes
2016-05-16 16:25:16 -04:00
Yury Selivanov
f979d55886
Merge 3.5
2016-05-16 16:23:20 -04:00
Yury Selivanov
950204df9c
docs: Update asyncio docs & whatsnew
2016-05-16 16:23:00 -04:00
Serhiy Storchaka
2e208b7d62
Issue #27031 : Removed dummy methods in Tkinter widget classes: tk_menuBar()
...
and tk_bindForTraversal().
2016-05-16 22:35:46 +03:00
Serhiy Storchaka
cbcc2fd641
Issue #27033 : The default value of the decode_data parameter for
...
smtpd.SMTPChannel and smtpd.SMTPServer constructors is changed to False.
2016-05-16 09:36:31 +03:00
Serhiy Storchaka
4ecfa455ae
Expand abbreviations FIFO and LIFO.
2016-05-16 09:31:54 +03:00
Serhiy Storchaka
98019e1cf6
Issue #27034 : Removed deprecated class asynchat.fifo.
2016-05-16 09:10:43 +03:00
Serhiy Storchaka
f47fc5553b
Issue #26039 : Document ZipInfo.is_dir() and make force_zip64 keyword-only.
...
Patch by Thomas Kluyver.
2016-05-15 12:27:16 +03:00
Martin Panter
f0dbf7a6ab
Issue #26870 : Add readline.set_auto_history(), originally by Tyler Crompton
2016-05-15 01:26:25 +00:00
Martin Panter
4dd27f0adc
Issue #25533 : Merge frozen module docs from 3.5
2016-05-15 00:41:40 +00:00
Martin Panter
f47a400347
Issue #25533 : Update documentation regarding the frozen modules table
...
* "ctypes" documentation was using Python 2 bytes-str equivalence.
* PyImport_FrozenModules is a pointer to const as of Python 3.4
2016-05-15 00:13:04 +00:00
Serhiy Storchaka
18ee29d0b8
Issue #26039 : zipfile.ZipFile.open() can now be used to write data into a ZIP
...
file, as well as for extracting data. Patch by Thomas Kluyver.
2016-05-13 13:52:49 +03:00
Serhiy Storchaka
c499f30286
Issue #23921 : Standardized documentation whitespace formatting.
...
Original patch by James Edwards.
2016-05-10 12:01:56 +03:00
Serhiy Storchaka
dba903993a
Issue #23921 : Standardized documentation whitespace formatting.
...
Original patch by James Edwards.
2016-05-10 12:01:23 +03:00
Benjamin Peterson
a4dfbe608f
merge 3.5 ( #26986 )
2016-05-09 23:44:30 -07:00
Benjamin Peterson
387235085c
improve PyFunction_New docs ( closes #26986 )
...
Patch from Xiang Zhang.
2016-05-09 23:43:53 -07:00
Serhiy Storchaka
a26e4b97d8
Issue #26156 : Make expressions grammar description more semantically correct.
2016-05-08 22:00:09 +03:00
Serhiy Storchaka
c7cc9850d4
Issue #26156 : Make expressions grammar description more semantically correct.
2016-05-08 21:59:46 +03:00
Martin Panter
1ce738e08f
Merge typo fixes from 3.5
2016-05-08 14:02:35 +00:00
Martin Panter
4c35964b76
Corrections for a/an in code comments and documentation
2016-05-08 13:53:41 +00:00
Martin Panter
f0564164ba
Fix typos in comments, documentation and test method names
2016-05-08 13:48:10 +00:00
Martin Panter
129fe04d4d
Issue #26512 : Clarify Integral; tidy up table of rounding functions
...
Based on patch by Julien.
2016-05-08 12:22:37 +00:00
Martin Panter
18933ed6ab
Issue #26512 : Merge rounding doc from 3.5
2016-05-08 12:34:58 +00:00
Serhiy Storchaka
1acbf853c8
Issue #26736 : Used HTTPS for external links in the documentation if possible.
2016-05-07 10:49:58 +03:00
Serhiy Storchaka
6dff0205b7
Issue #26736 : Used HTTPS for external links in the documentation if possible.
2016-05-07 10:49:07 +03:00
Serhiy Storchaka
a5f3a50734
Issue #26889 : Fixed hyperlinks formatting.
2016-05-07 10:06:39 +03:00
Serhiy Storchaka
64099ea58e
Issue #26889 : Fixed hyperlinks formatting.
2016-05-07 10:05:02 +03:00
Serhiy Storchaka
72ac6a7675
Issue #26889 : Tweaked xmlrpc.client documentation.
2016-05-07 08:44:36 +03:00
Serhiy Storchaka
da7880ad95
Issue #26889 : Tweaked xmlrpc.client documentation.
2016-05-07 08:44:15 +03:00
Berker Peksag
9fc385748c
Issue #26957 : Remove duplicate 'the' from datetime documentation
...
Patch by Alex Chan.
2016-05-04 23:26:04 +03:00
Berker Peksag
bace976db1
Issue #26957 : Remove duplicate 'the' from datetime documentation
...
Patch by Alex Chan.
2016-05-04 23:25:44 +03:00
Terry Jan Reedy
478be14ec0
Merge with 3.5
2016-05-02 18:30:19 -04:00
Terry Jan Reedy
929d7f86d5
Clarify IDLE-console differences with respect to the sys module.
...
The reload(sys) effect was the crux of a Stackoverflow question.
2016-05-02 18:30:02 -04:00
Berker Peksag
955bc38b16
Issue #26322 : Document typing.Set, patch by Joseph Moran
2016-04-29 14:41:41 +03:00
Berker Peksag
5d6fd8c936
Issue #26322 : Document typing.Set, patch by Joseph Moran
2016-04-29 14:41:16 +03:00
Zachary Ware
a5ffa2e965
Closes #26875 : Merge with 3.5
2016-04-28 14:47:33 -05:00
Zachary Ware
42f740d854
Issue #26875 : Fix mmap example
...
Patch by Xiang Zhang.
2016-04-28 14:47:12 -05:00
Serhiy Storchaka
b275210a3b
Issue #25788 : fileinput.hook_encoded() now supports an "errors" argument
...
for passing to open. Original patch by Joseph Hackman.
2016-04-27 23:13:46 +03:00
Serhiy Storchaka
258a5d4dcb
fileinput.hook_encoded() uses builtin open(), not codecs.open().
2016-04-27 23:06:41 +03:00
Serhiy Storchaka
a87e6ba0ac
fileinput.hook_encoded() uses builtin open(), not codecs.open().
2016-04-27 23:06:15 +03:00
Martin Panter
a653a27591
Issue #20598 : Merge argparse docs from 3.5
2016-04-26 11:47:10 +00:00
Martin Panter
f5e60480b9
Issue #20598 : Replace trivial split() calls with lists in argparse docs
2016-04-26 11:41:25 +00:00
Raymond Hettinger
c5c43b8374
merge
2016-04-26 01:11:28 -07:00
Raymond Hettinger
b9531bcdcc
Issue #24715 : Improve sort stability example
2016-04-26 01:11:10 -07:00
Raymond Hettinger
ab425aa9d3
Issue #16394 : Note the tee() pure python equivalent is only a rough approximation.
2016-04-26 00:10:00 -07:00
Senthil Kumaran
0996fa3bd8
merge 3.5
...
Issue #26804 : urllib.request will prefer lower_case proxy environment variables
over UPPER_CASE or Mixed_Case ones.
Patch contributed by Hans-Peter Jansen. Reviewed by Martin Panter and Senthil Kumaran.
2016-04-25 08:18:07 -07:00
Senthil Kumaran
a7c0ff2f0b
Issue #26804 : urllib.request will prefer lower_case proxy environment variables
...
over UPPER_CASE or Mixed_Case ones.
Patch contributed by Hans-Peter Jansen. Reviewed by Martin Panter and Senthil Kumaran.
2016-04-25 08:16:23 -07:00
Zachary Ware
3211595bef
Merge with 3.5
2016-04-25 09:27:49 -05:00
Zachary Ware
d3304e3e20
FileExistsError is raised by mkdir when dir exists
...
Reported by Saul Spatz on docs@
2016-04-25 09:27:27 -05:00
Berker Peksag
42d9b02c04
Issue #23662 : Document default value of RFC 2109 attributes
2016-04-25 14:32:41 +03:00
Berker Peksag
8724a2adf2
Issue #23662 : Document default value of RFC 2109 attributes
2016-04-25 14:32:19 +03:00
Victor Stinner
8153ac8f00
Issue #26249 : Mention PyMem_Malloc() change in What's New in Python 3.6 in the
...
Optimizations section.
2016-04-24 22:33:26 +02:00
Martin Panter
a497774b71
Issue #24911 : Merge socket context manager doc from 3.5
2016-04-24 04:55:00 +00:00
Martin Panter
e37fc18b3c
Issue #24911 : All socket objects are context managers; update examples
2016-04-24 04:24:36 +00:00
Martin Panter
37917369d5
Issue #23806 : Merge susp-ignored.csv from 3.5
2016-04-24 04:07:58 +00:00
Martin Panter
887bc96e2e
Issue #23806 : Update susp-ignored.csv
2016-04-24 04:06:15 +00:00
Berker Peksag
e50d8465ab
Issue #26041 : Remove "will be removed in Python 3.7" from description messages
...
We will keep platform.dist() and platform.linux_distribution() to make porting
from Python 2 easier.
Patch by Kumaripaba Miyurusara Athukorala.
2016-04-24 03:32:50 +03:00
Berker Peksag
8d8221f0d6
Issue #26041 : Remove "will be removed in Python 3.7" from description messages
...
We will keep platform.dist() and platform.linux_distribution() to make porting
from Python 2 easier.
Patch by Kumaripaba Miyurusara Athukorala.
2016-04-24 03:32:24 +03:00
Berker Peksag
8d9594df66
Issue #19731 : Update copyright year in docs.p.o footer
...
See https://mail.python.org/pipermail/python-legal-sig/2013-November/000059.html
for details.
Patch by Antoine Pitrou.
2016-04-24 03:21:32 +03:00
Berker Peksag
2ec1bee1b3
Issue #19731 : Update copyright year in docs.p.o footer
...
See https://mail.python.org/pipermail/python-legal-sig/2013-November/000059.html
for details.
Patch by Antoine Pitrou.
2016-04-24 03:21:13 +03:00
Berker Peksag
c61d80cc83
Issue #18572 : Remove redundant note about surrogates in string escape doc
2016-04-24 03:14:01 +03:00
Berker Peksag
4f35d79d65
Issue #18572 : Remove redundant note about surrogates in string escape doc
2016-04-24 03:13:40 +03:00
Berker Peksag
78de0b1047
Issue #18353 : Remove PyUnicode_WRITE_CHAR macro link from c-api/unicode.rst
...
Patch by Corey Brune.
2016-04-24 03:07:03 +03:00
Berker Peksag
544ae59b8e
Issue #18353 : Remove PyUnicode_WRITE_CHAR macro link from c-api/unicode.rst
...
Patch by Corey Brune.
2016-04-24 03:06:44 +03:00
Berker Peksag
ae7e8c44ac
Issue #21382 : Clarify signal.signal() documentation on Windows
...
All signal.SIG* constants may not be defined on Windows so a call like
signal.signal(signal.SIGPIPE, lambda signum, frame: sys.exit(1))
will raise an AttributeError.
2016-04-24 02:59:43 +03:00
Berker Peksag
77e543c6cd
Issue #21382 : Clarify signal.signal() documentation on Windows
...
All signal.SIG* constants may not be defined on Windows so a call like
signal.signal(signal.SIGPIPE, lambda signum, frame: sys.exit(1))
will raise an AttributeError.
2016-04-24 02:59:16 +03:00
Berker Peksag
557326eed3
Issue #20112 : Improve BaseHTTPRequestHandler.error_message_format documentation
...
* Explain how 'error_message_format' is used by 'send_error' method
* Mention that 'responses' is used by 'send_response_only' and 'send_error' methods
* Replace 'class variables' with 'attributes'
Initial patch by Anastasia Filatova.
2016-04-24 01:51:31 +03:00
Berker Peksag
0269828320
Issue #20112 : Improve BaseHTTPRequestHandler.error_message_format documentation
...
* Explain how 'error_message_format' is used by 'send_error' method
* Mention that 'responses' is used by 'send_response_only' and 'send_error' methods
* Replace 'class variables' with 'attributes'
Initial patch by Anastasia Filatova.
2016-04-24 01:51:02 +03:00
Benjamin Peterson
9046df0659
merge 3.5 ( #26827 )
2016-04-22 23:43:24 -07:00
Benjamin Peterson
95b5f0ad7e
fix python 3 mod init function declaration ( closes #26827 )
2016-04-22 23:43:10 -07:00
Serhiy Storchaka
8b9eefc363
Issue #26733 : Disassembling a class now disassembles class and static methods.
...
Patch by Xiang Zhang.
2016-04-23 09:24:29 +03:00
Serhiy Storchaka
585c93daea
Issue #26733 : Disassembling a class now disassembles class and static methods.
...
Patch by Xiang Zhang.
2016-04-23 09:23:52 +03:00
Senthil Kumaran
3973d27702
merge 3.5
...
Document no_proxy environment variable in python 3.x #issue23806
2016-04-22 20:35:40 -07:00
Senthil Kumaran
21ce717eaf
Issue23806 - Document the no_proxy environment variable in Python 3 docs.
2016-04-22 20:34:42 -07:00
Victor Stinner
f5c4b99034
PyMem_Malloc() now uses the fast pymalloc allocator
...
Issue #26249 : PyMem_Malloc() allocator family now uses the pymalloc allocator
rather than system malloc(). Applications calling PyMem_Malloc() without
holding the GIL can now crash: use PYTHONMALLOC=debug environment variable to
validate the usage of memory allocators in your application.
2016-04-22 16:26:23 +02:00
Senthil Kumaran
5439fc4901
[minor] Doc fix in old python doc.
2016-04-21 00:23:08 -07:00
Martin Panter
abe4d52a1a
Merge doc and comment fixes from 3.5
2016-04-19 23:23:16 +00:00
Jesus Cea
0fea25af48
MERGE: Trivial typo
2016-04-19 21:50:40 +02:00
Jesus Cea
ded4c4967b
Trivial typo
2016-04-19 21:50:19 +02:00
Paul Moore
9a8d0d5c7d
Mention types.SimpleNamespace in collections.namedtuple doc
...
Issue #26805 .
2016-04-19 19:17:16 +01:00
Martin Panter
8f26565ba9
Fix spelling (inital), grammar (may translates) in documentation, comments
2016-04-19 04:03:41 +00:00
Paul Moore
b5d164cc3f
Mention types.SimpleNamespace in collections.namedtuple doc
...
Issue #26805 .
2016-04-19 19:17:16 +01:00
Berker Peksag
1d0489269e
Issue #26615 : Add missing __qualname__ entry to functools.update_wrapper() docs
...
Patch by Xiang Zhang.
2016-04-18 21:21:10 +03:00
Berker Peksag
472233ec83
Issue #26615 : Add missing __qualname__ entry to functools.update_wrapper() docs
...
Patch by Xiang Zhang.
2016-04-18 21:20:50 +03:00
Georg Brandl
d2be07e1fd
#25987 : add versionadded to Reversible.
2016-04-18 07:25:54 +02:00
Serhiy Storchaka
b6a9c9761c
Issue #26778 : Fixed "a/an/and" typos in code comment, documentation and error
...
messages.
2016-04-17 09:39:28 +03:00
Serhiy Storchaka
6a7b3a77b4
Issue #26778 : Fixed "a/an/and" typos in code comment and documentation.
2016-04-17 08:32:47 +03:00
Steven D'Aprano
151f5d5971
Fix a few minor typos to secrets documentation.
2016-04-17 13:05:10 +10:00
Martin Panter
528619b6c3
Issue #26782 : Add STARTUPINFO to subprocess.__all__ on Windows
2016-04-16 23:42:37 +00:00
Steven D'Aprano
b2871faa87
Documentation for secrets.py
2016-04-17 01:42:33 +10:00
Martin Panter
8b04a945ef
Merge typo fixes from 3.5
2016-04-16 09:29:17 +00:00
Martin Panter
119e502277
Fix typos in code comments and documentation
2016-04-16 09:28:57 +00:00
Martin Panter
d3aeb9b797
Issue #26638 : Merge link fixes from 3.5
2016-04-16 07:36:08 +00:00
Martin Panter
00ccacc8db
Issue #26638 : Fix links to some CLI options and section headings
...
* Disable inappropriate links to Python interpreter options
* Correct link to CLI section in zipapp
* Make CLI section label in timeit less ambiguous
2016-04-16 04:59:38 +00:00
Martin Panter
f7ee9c2108
Issue #25314 : Merge argparse doc from 3.5
2016-04-16 00:20:21 +00:00
Gregory P. Smith
b0c6380640
merge heads
2016-04-15 16:47:32 -07:00
Martin Panter
b030991a5f
Issue #26535 : Correct docs regarding the struct buffer size
2016-04-15 23:03:54 +00:00
Brett Cannon
1f8a1cc0f7
Merge for issue #26760
2016-04-15 12:44:09 -07:00
Brett Cannon
abf797df66
Issue #26760 : Minimally document PyFrameObject
2016-04-15 12:43:50 -07:00
Martin Panter
cda80940ed
Issue #15984 : Merge PyUnicode doc from 3.5
2016-04-15 02:27:11 +00:00
Martin Panter
20d325574e
Issue #15984 : Correct PyUnicode_FromObject() and _FromEncodedObject() docs
2016-04-15 00:56:21 +00:00
Martin Panter
6245cb3c01
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
...
This affects documentation, code comments, and a debugging messages.
2016-04-15 02:14:19 +00:00
Martin Panter
81939db712
Issue #25496 : Merge tarfile doc from 3.5
2016-04-13 03:31:33 +00:00
Martin Panter
7f7c605f29
Issue #25496 : Document compresslevel defaults to 9, by Hamza T Khan
2016-04-13 03:24:06 +00:00
Martin Panter
0cab9c1eba
Issue #26404 : Add context manager to socketserver, by Aviv Palivoda
2016-04-13 00:36:52 +00:00
Georg Brandl
2cfa4c7b27
merge with 3.5
2016-04-12 07:52:22 +02:00
Georg Brandl
7ff033bd62
Clarify greedy-qualifier example, avoid HTML.
2016-04-12 07:51:41 +02:00
Serhiy Storchaka
96790a4b82
Issue #25910 : Fixed more links in the docs.
2016-04-11 17:33:27 +03:00
Serhiy Storchaka
de886d9233
Issue #25910 : Fixed more links in the docs.
2016-04-11 17:32:33 +03:00
Victor Stinner
21de67f900
Merge 3.5
2016-04-11 16:23:37 +02:00
Victor Stinner
a9901e86ba
typing doc: add versionadded 3.5
2016-04-11 16:23:22 +02:00
Berker Peksag
1dc2dda4e3
Add a versionchanged directive to document addition of the new 'namereplace' error handler.
...
Reported by Robert on docs@p.o.
2016-04-11 13:50:04 +03:00
Berker Peksag
2c57da0e48
Add a versionchanged directive to document addition of the new 'namereplace' error handler.
...
Reported by Robert on docs@p.o.
2016-04-11 13:49:46 +03:00
Serhiy Storchaka
ba416eef18
Merge heads
2016-04-11 12:39:07 +03:00
Serhiy Storchaka
a1f5f8bc79
Merge heads
2016-04-11 12:38:54 +03:00
Serhiy Storchaka
336fc5bbb0
Issue #25910 : Fixed dead links in the docs.
2016-04-11 12:34:07 +03:00
Berker Peksag
8e72f503b1
Fix typos in mock and exceptions docs
...
The default value of __len__ is 0, not 1:
>>> from unittest.mock import MagicMock
>>> mock = MagicMock()
>>> len(mock)
0
Reported by Alex on docs@p.o.
Remove the remaining VMSError reference. VMS support is gone.
2016-04-11 12:23:25 +03:00
Berker Peksag
8fafc74d45
Fix typos in mock and exceptions docs
...
The default value of __len__ is 0, not 1:
>>> from unittest.mock import MagicMock
>>> mock = MagicMock()
>>> len(mock)
0
Reported by Alex on docs@p.o.
Remove the remaining VMSError reference. VMS support is gone.
2016-04-11 12:23:04 +03:00
Serhiy Storchaka
90be7333ea
Issue #25910 : Fixed dead links in the docs.
2016-04-11 12:18:56 +03:00
Martin Panter
a29f720493
Issue #14456 : Merge signal doc fix from 3.5
2016-04-11 02:45:22 +00:00
Martin Panter
199e3f8b96
Issue #14456 : Remove contradiction about blocking signals from bad merge
2016-04-11 02:44:34 +00:00
Martin Panter
50ab1a3694
Issue #26685 : Raise OSError if closing a socket fails
2016-04-11 00:38:12 +00:00
Martin Panter
3872d62133
Issue #25609 : Double back-ticks to avoid “make check” buildbot failure
2016-04-10 02:41:25 +00:00
Victor Stinner
1edcd50b5d
Merge 3.5: fcntl doc
2016-04-09 11:33:53 +02:00
Victor Stinner
d0d5154251
Update fcntl doc: replace IOError with OSError
...
Issue #26716 . IOError is a deprecated alias to OSError since Python 3.3.
2016-04-09 11:32:58 +02:00
Berker Peksag
d7e44b61e7
Issue #17264 : Fix cross refs and a markup error in extending/building.rst
2016-04-09 09:08:26 +03:00
Berker Peksag
705c0e38c2
Issue #17264 : Fix cross refs and a markup error in extending/building.rst
2016-04-09 09:08:05 +03:00
Martin Panter
b4912b8ed3
Issue #25314 : Remove confused statement about const argument
2016-04-09 03:49:48 +00:00
Brett Cannon
09455589c7
Issue #26587 : Remove an incorrect statement from the docs
2016-04-08 15:06:54 -07:00
Brett Cannon
5f0507d8ab
Issue #26587 : Allow .pth files to specify file paths as well as
...
directories.
Thanks to Wolfgang Langner for the bug report and initial version of
the patch.
2016-04-08 15:04:28 -07:00
Brett Cannon
9e080e0e74
Issue #25609 : Introduce contextlib.AbstractContextManager and
...
typing.ContextManager.
2016-04-08 12:15:27 -07:00
Martin Panter
b15c304984
Issue #6953 : Merge readline doc from 3.5
2016-04-05 10:17:38 +00:00
Martin Panter
0f7673943a
Issue #6953 : Rearrange and expand Readline module documentation
...
* Group functions into six new subsections
* Document the underlying Readline function or variable accessed
* get_history_length() returns the history file limit
* clear_history() is conditionally compiled in
* Clarify zero and one bases for history item indexes
* parse_and_bind() uses its argument directly as an init line
* Change "command line" to "line buffer" for consistency
* read_init_file() also executes the file
* read_history_file() replaces the previous history
* write_history_file() overwrites any existing file
* Differentiate history file lines from history list items, which could be
multi-line
* Add more information about completion, also addressing Issue #10796
* libedit (Editline) may be used on any platform; detection is OS X specific
2016-04-05 07:37:22 +00:00
Martin Panter
c86c91aab0
Merge typo fixes from 3.5
2016-04-05 06:20:32 +00:00
Martin Panter
cc71a795df
Fix typos in documentation and comments
2016-04-05 06:19:42 +00:00
Guido van Rossum
16ca06b8cb
Add collections.Reversible. Patch by Ivan Levkivskyi. Fixes issue #25987 .
2016-04-04 10:59:29 -07:00
Berker Peksag
1862bb2769
Issue #26679 : Fix description of KEY_PPAGE and KEY_NPAGE constants
...
Patch by Robert Bachmann and SilentGhost.
2016-04-02 04:48:46 +03:00
Berker Peksag
af8363926a
Issue #26679 : Fix description of KEY_PPAGE and KEY_NPAGE constants
...
Patch by Robert Bachmann and SilentGhost.
2016-04-02 04:48:27 +03:00
Berker Peksag
40d38e19a1
Issue #26688 : Fix module name in mock docs
...
Patch by Ashley Anderson.
2016-04-02 04:32:26 +03:00
Berker Peksag
b31daff1f7
Issue #26688 : Fix module name in mock docs
...
Patch by Ashley Anderson.
2016-04-02 04:32:06 +03:00
Martin Panter
6b6abd4cf1
Issue #26678 : Merge datetime doc fixes from 3.5
2016-04-01 23:20:52 +00:00
Vinay Sajip
c334202f41
Merged documentation update from 3.5.
2016-04-01 23:13:48 +01:00
Vinay Sajip
d93a60149c
Added a cookbook recipe for a logging context manager.
2016-04-01 23:13:01 +01:00
Martin Panter
16c7cfda7c
Issue #26678 : Fix indexing of datetime.tzinfo and timezone classes
...
Also fix links to the “tzinfo” class and attributes.
2016-04-01 21:48:24 +00:00
Martin Panter
dcfebb32e2
Issue #26676 : Add missing XMLPullParser to ElementTree.__all__
2016-04-01 06:55:55 +00:00
Serhiy Storchaka
7b1e5a7722
Remove redundant leading zeroes in PEP references.
2016-03-31 15:31:20 +03:00
Serhiy Storchaka
e4ba872543
Remove redundant leading zeroes in PEP references.
2016-03-31 15:30:54 +03:00
Berker Peksag
fe4c01268c
Fix typo in xml.dom.pulldom.rst
...
Reported by Matthew Cole on docs@p.o.
2016-03-30 16:29:01 +03:00
Berker Peksag
13b3acd13e
Fix typo in xml.dom.pulldom.rst
...
Reported by Matthew Cole on docs@p.o.
2016-03-30 16:28:43 +03:00
Andrew Svetlov
50e648a06d
Merge 3.5
2016-03-29 09:39:22 +03:00
Andrew Svetlov
6f57424ae0
Document None as timeout for asyncio.timeout()
2016-03-29 09:39:02 +03:00
Martin Panter
eba25880f8
Issue #25314 : Merge argparse doc from 3.5
2016-03-28 06:13:52 +00:00
Martin Panter
ef4bb1e994
Issue #23804 : Merge SSL zero read fix from 3.5
2016-03-28 01:09:13 +00:00
Martin Panter
f6b1d66a3c
Issue #23804 : Fix SSL recv/read(0) to not return 1024 bytes
2016-03-28 00:22:09 +00:00
Berker Peksag
f841909f09
Issue #23758 : Improve num_params docs of create_{function,aggregate} functions
...
If you pass -1, the callable can take any number of arguments.
Added tests to verify the behavior.
Initial patch by Cédric Krier.
2016-03-27 22:39:41 +03:00
Berker Peksag
fa0f62d6ab
Issue #23758 : Improve num_params docs of create_{function,aggregate} functions
...
If you pass -1, the callable can take any number of arguments.
Added tests to verify the behavior.
Initial patch by Cédric Krier.
2016-03-27 22:39:14 +03:00
Berker Peksag
b61b0f13b5
Document sqlite3.Cursor.close()
...
The behaviour of the close method is tested by ClosedCurTests
in Lib/sqlite3/test/dbapi.py.
This is basically a backport of https://github.com/ghaering/pysqlite/issues/73 .
2016-03-27 21:51:22 +03:00
Berker Peksag
f70fe6f6cf
Document sqlite3.Cursor.close()
...
The behaviour of the close method is tested by ClosedCurTests
in Lib/sqlite3/test/dbapi.py.
This is basically a backport of https://github.com/ghaering/pysqlite/issues/73 .
2016-03-27 21:51:02 +03:00
Berker Peksag
598b198ca6
sqlite3 documentation: Connection.iterdump() is a method
2016-03-27 18:46:42 +03:00
Berker Peksag
557a06309c
sqlite3 documentation: Connection.iterdump() is a method
2016-03-27 18:46:18 +03:00
Victor Stinner
a6d865c128
Issue #25654 :
...
* multiprocessing: open file with closefd=False to avoid ResourceWarning
* _test_multiprocessing: open file with O_EXCL to detect bugs in tests (if a
previous test forgot to remove TESTFN)
* test_sys_exit(): remove TESTFN after each loop iteration
Initial patch written by Serhiy Storchaka.
2016-03-25 09:29:50 +01:00
Zachary Ware
bfba2cd406
Don't doc check the venv dir
2016-03-24 22:44:41 -05:00
Terry Jan Reedy
4c181cf448
Merge with 3.5
2016-03-23 13:37:15 -04:00
Terry Jan Reedy
01a9a958b6
Issue #26525 : Change chr example to match change in ord example.
2016-03-23 13:36:52 -04:00
Victor Stinner
d1700a9360
Fix typo in doc: avoid the french "& cie" :-)
2016-03-23 16:57:51 +01:00
Victor Stinner
404cdc5a92
faulthandler: add Windows exception handler
...
Issue #23848 : On Windows, faulthandler.enable() now also installs an exception
handler to dump the traceback of all Python threads on any Windows exception,
not only on UNIX signals (SIGSEGV, SIGFPE, SIGABRT).
2016-03-23 10:39:17 +01:00
Victor Stinner
e19558af1b
Add a source parameter to warnings.warn()
...
Issue #26604 :
* Add a new optional source parameter to _warnings.warn() and warnings.warn()
* Modify asyncore, asyncio and _pyio modules to set the source parameter when
logging a ResourceWarning warning
2016-03-23 00:28:08 +01:00
Victor Stinner
e492ae50e2
tracemalloc now supports domains
...
Issue #26588 :
* The _tracemalloc now supports tracing memory allocations of multiple address
spaces (domains).
* Add domain parameter to tracemalloc_add_trace() and
tracemalloc_remove_trace().
* tracemalloc_add_trace() now starts by removing the previous trace, if any.
* _tracemalloc._get_traces() now returns a list of (domain, size,
traceback_frames): the domain is new.
* Add tracemalloc.DomainFilter
* tracemalloc.Filter: add an optional domain parameter to the constructor and a
domain attribute
* Sublte change: use Py_uintptr_t rather than void* in the traces key.
* Add tracemalloc_config.use_domain, currently hardcoded to 1
2016-03-22 12:58:23 +01:00
Terry Jan Reedy
063d48d9c0
Issue #26525 : Change ord example from nu to more easily recognized Euro sign.
2016-03-20 21:18:40 -04:00
Terry Jan Reedy
4902c46bff
Issue #15660 : Further clarify 0 prefix for width specifier in formats.
2016-03-20 21:05:57 -04:00
Berker Peksag
563c949b11
Issue #26593 : Fix typo in logging HOWTO
...
Patch by Andrew Szeto.
2016-03-20 12:50:56 +02:00
Victor Stinner
fac395681f
Optimize bytes.replace(b'', b'.')
...
Issue #26574 : Optimize bytes.replace(b'', b'.') and
bytearray.replace(b'', b'.'): up to 80% faster. Patch written by Josh Snider.
2016-03-21 10:38:58 +01:00
Terry Jan Reedy
5decb84454
Merge with 3.5
2016-03-20 21:18:54 -04:00
Terry Jan Reedy
370764a824
Merge with 3.5
2016-03-20 21:06:15 -04:00
Berker Peksag
5d7286c05d
Issue #26593 : Fix typo in logging HOWTO
...
Patch by Andrew Szeto.
2016-03-20 12:51:16 +02:00
Berker Peksag
3c3d7f4b99
Issue #18787 : spwd.getspnam() now raises a PermissionError if the user
...
doesn't have privileges.
2016-03-19 11:44:17 +02:00
Victor Stinner
ee803a8d2c
Issue #26567 : enhance ResourceWarning example
2016-03-19 10:33:25 +01:00
Victor Stinner
914cde89d4
On ResourceWarning, log traceback where the object was allocated
...
Issue #26567 :
* Add a new function PyErr_ResourceWarning() function to pass the destroyed
object
* Add a source attribute to warnings.WarningMessage
* Add warnings._showwarnmsg() which uses tracemalloc to get the traceback where
source object was allocated.
2016-03-19 01:03:51 +01:00
Brett Cannon
81ae89b611
Merge for issue #26095
2016-03-18 13:24:15 -07:00
Brett Cannon
adcb654519
Suggest people use feature detection in porting guide
2016-03-18 13:23:58 -07:00
Brett Cannon
5936313651
Issue #26252 : Add an example on how to register a finder
2016-03-18 11:54:22 -07:00
Ezio Melotti
6840632ef2
#26250 : merge with 3.5.
2016-03-18 20:11:30 +02:00
Ezio Melotti
62564dbb4b
#26250 : document the sqlite3.Cursor.connection attribute. Initial patches by Aviv Palivoda and Varpu Rantala.
2016-03-18 20:10:36 +02:00
Victor Stinner
9b46a57302
Doc: fix typos, patch written by Stefan Behnel
2016-03-18 15:10:43 +01:00
Serhiy Storchaka
ee6471ec90
Fixed a typo.
2016-03-18 14:37:53 +02:00
Serhiy Storchaka
774006232a
Fixed a typo.
2016-03-18 14:36:47 +02:00
Berker Peksag
b3fe1c488f
Issue #26580 : Remove outdated reference to ftpmirror
...
Patch by SilentGhost.
2016-03-18 14:26:29 +02:00
Berker Peksag
42f8548c89
Issue #26580 : Remove outdated reference to ftpmirror
...
Patch by SilentGhost.
2016-03-18 14:26:08 +02:00
Victor Stinner
c2fc56836f
Enhance documentation on malloc debug hooks
...
Issue #26564 , #26516 , #26563 .
2016-03-18 11:04:31 +01:00
Martin Panter
ce911c3fed
Issue #26499 : Fixes to HTTPResponse.readline() and read1(), by Silent Ghost
2016-03-17 06:42:48 +00:00
Martin Panter
32f2eb4941
Issue #21042 : Revert Linux find_library() to return just filename
...
This reverts most of revision 3092cf163eb4. The change worked on x86
architectures, but did not work on ARM, probably due to extra ABI flags in
the ldconfig output.
2016-03-17 07:50:22 +00:00
Martin Panter
ec195fba5b
Issue #26499 : Merge HTTPResponse fix from 3.5
2016-03-17 07:05:34 +00:00
Victor Stinner
0611c26a58
On memory error, dump the memory block traceback
...
Issue #26564 : _PyObject_DebugDumpAddress() now dumps the traceback where a
memory block was allocated on memory block. Use the tracemalloc module to get
the traceback.
2016-03-15 22:22:13 +01:00
Victor Stinner
c4aec3628b
Check the GIL in PyObject_Malloc()
...
Issue #26558 : The debug hook of PyObject_Malloc() now checks that the GIL is
held when the function is called.
2016-03-14 22:26:53 +01:00
Victor Stinner
8a20851010
Issue #25654 :
...
* multiprocessing: open file with closefd=False to avoid ResourceWarning
* _test_multiprocessing: open file with O_EXCL to detect bugs in tests (if a
previous test forgot to remove TESTFN)
* test_sys_exit(): remove TESTFN after each loop iteration
Initial patch written by Serhiy Storchaka.
2016-03-25 09:29:50 +01:00
Victor Stinner
34be807ca4
Add PYTHONMALLOC env var
...
Issue #26516 :
* Add PYTHONMALLOC environment variable to set the Python memory
allocators and/or install debug hooks.
* PyMem_SetupDebugHooks() can now also be used on Python compiled in release
mode.
* The PYTHONMALLOCSTATS environment variable can now also be used on Python
compiled in release mode. It now has no effect if set to an empty string.
* In debug mode, debug hooks are now also installed on Python memory allocators
when Python is configured without pymalloc.
2016-03-14 12:04:26 +01:00
Ezio Melotti
4c9375b65f
#24918 : merge with 3.5.
2016-03-13 11:41:45 +02:00
Ezio Melotti
f2b9a39813
#24918 : fix CSS for code blocks when a side box is present. Patch by Manvi B.
2016-03-13 11:41:05 +02:00
Raymond Hettinger
5f6209a3c6
merge
2016-03-13 00:12:49 -08:00
Raymond Hettinger
a503f7092f
Minor recipe edit: convert "while 1" to "while True".
2016-03-13 00:12:31 -08:00
Ezio Melotti
0ce835fc7e
#25687 : merge with 3.5.
2016-03-13 09:40:55 +02:00
Ezio Melotti
8dea74f12a
#25687 : clarify that errors in tearDown increase the total number of reported errors. Initial patch by HyeSoo Park.
2016-03-13 09:40:09 +02:00
Raymond Hettinger
7dc830e988
merge
2016-03-12 22:58:44 -08:00
Raymond Hettinger
4d02896609
Issue #26548 : Minor fix to awkward wording in docs
2016-03-12 22:58:24 -08:00
Steve Dower
6d6b986d90
Issue #23606 : Adds note to ctypes documentation regarding cdll.msvcrt.
2016-03-12 08:26:29 -08:00
Steve Dower
d669b6bd0a
Issue #23606 : Adds note to ctypes documentation regarding cdll.msvcrt.
2016-03-12 08:25:22 -08:00
Berker Peksag
eb2e02bed4
Issue #26542 : Fix markup of code example in difflib documentation
...
Patch by Dmitry Shachnev.
2016-03-11 23:19:48 +02:00
Victor Stinner
2c2a4e63d7
Add Mock.assert_called()
...
Issue #26323 : Add assert_called() and assert_called_once() methods to
unittest.mock.Mock.
2016-03-11 22:17:48 +01:00
Berker Peksag
82442b7022
Issue #26542 : Fix markup of code example in difflib documentation
...
Patch by Dmitry Shachnev.
2016-03-11 23:20:09 +02:00
Victor Stinner
f915e0e393
Merge 3.5 (malloc doc)
2016-03-09 15:02:31 +01:00
Victor Stinner
29bf27fe7f
Issue #26516 : Enhance Python mem allocators doc
...
* add link to PYTHONMALLOCSTATS env var
* add parameters to PyMem macros like PyMem_MALLOC()
* fix PyMem_SetupDebugHooks(): add Calloc functions
* add some newlines for readability
2016-03-09 14:49:52 +01:00
Martin Panter
b9f3114d42
Issue #21042 : Return full path in ctypes.util.find_library() on Linux
...
Patch by Tamás Bence Gedai.
2016-03-10 01:06:23 +00:00
Serhiy Storchaka
674e2d0ea0
Issue #15068 : Got rid of excessive buffering in fileinput.
...
The bufsize parameter is now deprecated and ignored.
2016-03-08 18:35:19 +02:00
Serhiy Storchaka
cc2dbc5844
Issue #15068 : Got rid of excessive buffering in the fileinput module.
...
The bufsize parameter is no longer used.
2016-03-08 18:28:36 +02:00
Ned Deily
8cd8883d27
Issue #26505 : merge from 3.5
2016-03-07 14:52:46 -05:00
Ned Deily
adbf8cecbe
Issue #26505 : Fix typos in getaddrinfo license text.
...
Patch by Alex Willmer.
2016-03-07 14:51:59 -05:00
Berker Peksag
f1fc8f953e
Issue #24852 : Remove outdated "HOWTO Use Python in the web" document
2016-03-07 19:01:05 +02:00
Berker Peksag
b4f2f453e7
Issue #24852 : Remove outdated "HOWTO Use Python in the web" document
2016-03-07 19:00:47 +02:00
Berker Peksag
5b96d66ac6
Issue #21034 : Remove outdated paragraph from venv documentation
...
Since Python 3.4, there is no need to install pip and setuptools
into a venv manually.
2016-03-07 18:51:06 +02:00
Berker Peksag
777d639a92
Issue #21034 : Remove outdated paragraph from venv documentation
...
Since Python 3.4, there is no need to install pip and setuptools
into a venv manually.
2016-03-07 18:50:49 +02:00
Raymond Hettinger
20b3e72b8d
Merge
2016-03-06 18:12:08 -08:00
Raymond Hettinger
e525ee3b48
Document another recipe for itertools: all_equal(). Inspired by David Beazley.
2016-03-06 18:11:38 -08:00
Alexander Belopolsky
a2998a63c8
Closes #19475 : Added timespec to the datetime.isoformat() method.
...
Added an optional argument timespec to the datetime isoformat() method
to choose the precision of the time component.
Original patch by Alessandro Cucci.
2016-03-06 14:58:43 -05:00
Berker Peksag
998f7d719b
Issue #26246 : Set initial value of the hidden attr when creating copy button.
...
Patch by Liang-Bo Wang.
2016-03-02 19:40:50 +02:00
Berker Peksag
ff47cfbc66
Issue #26246 : Set initial value of the hidden attr when creating copy button.
...
Patch by Liang-Bo Wang.
2016-03-02 19:40:30 +02:00
Berker Peksag
25c0ef518d
Issue #26246 : Set initial value of the hidden attr when creating copy button.
...
Patch by Liang-Bo Wang.
2016-03-02 19:40:08 +02:00
Berker Peksag
6282e656e9
Issue #26335 : Make mmap.write() return the number of bytes written like
...
other write methods.
Patch by Jakub Stasiak.
2016-03-02 19:30:18 +02:00
Georg Brandl
d047c2f8b2
merge with 3.5
2016-02-28 21:13:44 +01:00
Georg Brandl
96421d6f11
Update susp-ignore file ( #25910 ).
2016-02-28 21:13:23 +01:00
Georg Brandl
a7f7232838
merge with 3.5
2016-02-28 21:09:45 +01:00
Georg Brandl
76b2ee03c3
Fix typo.
2016-02-28 21:09:36 +01:00
Martin Panter
8cacc63002
Issue #22836 : Merge exception reporting from 3.5
2016-02-28 03:29:51 +00:00
Martin Panter
3263f6874a
Issue #22836 : Keep exception reports sensible despite errors
2016-02-28 03:16:11 +00:00
Ezio Melotti
b8d75035f2
#26246 : merge with 3.5.
2016-02-27 08:42:14 +02:00
Ezio Melotti
738f88f688
#26246 : merge with 3.4.
2016-02-27 08:41:16 +02:00
Ezio Melotti
90ba2ca68a
#26246 : update copybutton.js after JQuery update. Patch by Liang-Bo Wang.
2016-02-27 08:39:36 +02:00
Georg Brandl
3902d62c4e
merge with 3.5
2016-02-26 19:37:52 +01:00
Georg Brandl
5d94134040
Closes #25910 : fix dead and permanently redirected links in the docs. Thanks to SilentGhost for the patch.
2016-02-26 19:37:12 +01:00
Georg Brandl
1a41c44af9
merge with 3.5
2016-02-26 19:18:05 +01:00
Georg Brandl
06871ef2b3
Fix version.
2016-02-26 19:17:39 +01:00
Georg Brandl
eb73563f48
merge with 3.5
2016-02-26 19:16:43 +01:00
Georg Brandl
32fbd3a623
Closes #26442 : fix copy-paste.
2016-02-26 19:16:40 +01:00
Georg Brandl
def4ff6a64
merge with 3.5
2016-02-26 19:14:56 +01:00
Georg Brandl
adeffcc2f9
Closes #26444 : typo fixes.
2016-02-26 19:13:47 +01:00
Martin Panter
de9b27d908
Issue #26390 : Merge pbkdf2_hmac() doc from 3.5
2016-02-26 00:41:38 +00:00
Georg Brandl
6d6dd73aec
merge with 3.5
2016-02-25 20:18:00 +01:00
Georg Brandl
8c16cb9f65
Closes #26435 : fix syntax in directives. Thanks to Jakub Stasiak.
2016-02-25 20:17:45 +01:00
Georg Brandl
057ab49a6b
merge with 3.5
2016-02-25 20:14:21 +01:00
Georg Brandl
2305b3cde3
Fix rstlint to also look for indented comments that should be directives.
2016-02-25 20:14:10 +01:00
Martin Panter
150ea1a1df
Issue #22088 : Merge base64 docs from 3.5
2016-02-24 01:08:43 +00:00
Martin Panter
ee3074e1f4
Issue #22088 : Clarify base-64 alphabets and which characters are discarded
...
* There are only two base-64 alphabets defined by the RFCs, not three
* Due to the internal translation, plus (+) and slash (/) are never discarded
* standard_ and urlsafe_b64decode() discard characters as well
Also update the doc strings to clarify data types, based on revision
92760d2edc9e, correct the exception raised by b16decode(), and correct the
parameter name for the base-85 functions.
2016-02-23 22:30:50 +00:00
Georg Brandl
2d43bc2fc2
merge with 3.5
2016-02-22 14:53:03 +01:00
Georg Brandl
f1d371bde9
Update example; str(float) changed so there is difference now.
2016-02-22 14:52:55 +01:00
Martin Panter
fe93283fe1
Issue #26261 : Merge NamedTemporaryFile docs from 3.5
2016-02-22 10:10:55 +00:00
Martin Panter
1f0e1f3cbb
Issue #26261 : Clarify NamedTemporaryFile name attribute vs file.name
2016-02-22 10:10:00 +00:00
Martin Panter
bc85e35fe6
Issue #26390 : Fix and test pbkdf2_hmac() parameter names
...
Based on patch by Daan Bakker.
2016-02-22 09:21:49 +00:00
Martin Panter
0d34530fe0
Merge XML-RPC client documentation from 3.5
2016-02-22 09:05:19 +00:00
Martin Panter
1c5e715d8f
Fix errors in XML-RPC client example code
...
* http.client.HTTP (does not exist in Python 3) → HTTPConnection
* Server (deprecated) → ServerProxy
* Transport.send_request() grew a new “debug” parameter in Python 3 (revision
a528f7f8f97a)
2016-02-22 09:04:22 +00:00
Berker Peksag
42b33a4d14
Issue #26401 : Fix compile() documentation
...
After 25032ec29315, compile() will raise a ValueError
if source contains null bytes.
Patch by SilentGhost.
2016-02-21 22:00:29 +02:00
Berker Peksag
0334c3c735
Issue #26401 : Fix compile() documentation
...
After 25032ec29315, compile() will raise a ValueError
if source contains null bytes.
Patch by SilentGhost.
2016-02-21 22:00:12 +02:00
Martin Panter
d9108d1253
Issue #23430 : Stop socketserver from catching SystemExit etc from handlers
...
Also make handle_error() consistently output to stderr, and fix the
documentation.
2016-02-21 08:49:56 +00:00
Brett Cannon
86a8be00ed
Fix a name in an example
2016-02-20 18:47:09 -08:00
Brett Cannon
4cbab346df
Issue #26397 : Update an importlib example to use util.module_from_spec() instead of create_module()
2016-02-20 18:45:56 -08:00
Brett Cannon
fe1941ebf8
Merge w/ 3.5
2016-02-20 18:40:18 -08:00
Brett Cannon
27c712e149
List what classes from importlib.machinery don't work with importlib.util.LazyLoader
2016-02-20 18:40:02 -08:00
Vinay Sajip
d9dc53021e
Merged cookbook update from 3.5.
2016-02-20 19:03:29 +00:00
Vinay Sajip
e10d370a92
Added simple threading example to logging cookbook.
2016-02-20 19:02:46 +00:00
Martin Panter
2d2d08d2cc
Issue #22468 : Merge gettarinfo() doc from 3.5
2016-02-19 23:46:59 +00:00
Martin Panter
f817a48d17
Issues #22468 , #21996 , #22208 : Clarify gettarinfo() and TarInfo usage
...
* The Windows-specific binary notice was probably a Python 2 thing
* Make it more obvious gettarinfo() is based on stat(), and that non-ordinary
files may need special care
* The file name must be text; suggest dummy arcname as a workaround
* Indicate TarInfo may be used directly, not just via gettarinfo()
2016-02-19 23:34:56 +00:00
Georg Brandl
7db1d16209
merge with 3.5
2016-02-19 08:57:50 +01:00
Georg Brandl
92849d1721
Closes #20169 : fix inner links random doc.
2016-02-19 08:57:38 +01:00
Martin Panter
be1aec752d
Issue #15608 : Merge socketserver doc from 3.5
2016-02-19 03:35:00 +00:00
Martin Panter
eac17b8955
Issue #15608 : Improve socketserver module documentation
...
* Add headings for each concrete and mix-in class and list methods and
attributes under them
* Fix class and method cross references
* Changed RequestHandler to BaseRequestHandler and added class heading
* Pull out Stream/DatagramRequestHandler definitions
* Reordered the request handler setup(), handle(), finish() methods
* Document constructor parameters for the server classes
* Remove version 2.6 not relevant for Python 3 documentation
2016-02-19 03:27:46 +00:00
Berker Peksag
31a252b7f3
Issue #16915 : Clarify that mode parameter of socket.makefile() does not accept
...
the same values as open().
2016-02-18 17:34:32 +02:00
Berker Peksag
3fe64d0c5c
Issue #16915 : Clarify that mode parameter of socket.makefile() does not accept
...
the same values as open().
2016-02-18 17:34:00 +02:00
Benjamin Peterson
bd8112901a
merge 3.5 ( #26378 )
2016-02-17 23:43:08 -08:00
Benjamin Peterson
8f0432ffbb
fix typo ( closes #26378 )
2016-02-17 23:42:46 -08:00
Ned Deily
5ab2699c28
Issue #26368 : fix typo in asynchio stream doc, reported by Ryan Stuart.
2016-02-16 13:27:45 +11:00
Ned Deily
f38c93fb7f
Issue #26368 : fix typo in asynchio stream doc, reported by Ryan Stuart.
2016-02-16 13:27:04 +11:00
Georg Brandl
40383c8f10
Minor clarification in tutorial.
2016-02-15 17:50:33 +01:00
Yury Selivanov
3e48b38dff
Merge 3.5 (issue #25887 )
2016-02-13 18:00:31 -05:00
Yury Selivanov
77c96813ab
Issue #25887 : Raise a RuntimeError when a coroutine is awaited more than once.
2016-02-13 17:59:05 -05:00
Martin Panter
bc1ee460dc
Issue #25179 : Documentation for formatted string literals aka f-strings
...
Some of the inspiration and wording is taken from the text of PEP 498 by Eric
V. Smith, and the existing str.format() documentation.
2016-02-13 00:41:37 +00:00
Serhiy Storchaka
ffe96ae10b
Issue #25994 : Added the close() method and the support of the context manager
...
protocol for the os.scandir() iterator.
2016-02-11 13:21:30 +02:00
Serhiy Storchaka
885bdc4946
Issue #25985 : sys.version_info is now used instead of sys.version
...
to format short Python version.
2016-02-11 13:10:36 +02:00
Guido van Rossum
e93b06a0a3
Hopefully clarify the difference between Optional[t] and an optional argument.
2016-02-10 09:48:58 -08:00
Guido van Rossum
3fb5612e08
Hopefully clarify the difference between Optional[t] and an optional argument.
2016-02-10 09:46:56 -08:00
Martin Panter
288ed038aa
Issue #26304 : Additional “allows to” fix specific to 3.6
2016-02-10 05:45:55 +00:00
Martin Panter
3008b1c4bb
Issue #26304 : Merge doc wording from 3.5
2016-02-10 05:44:56 +00:00
Martin Panter
c04fb56e36
Issue #26304 : Change "allows to <verb>" to "allows <verb>ing" or similar
...
The original form is incorrect grammar and feels awkward, even though the
meaning is clear.
2016-02-10 05:44:01 +00:00
Martin Panter
7e3a91a5fc
Issue #26136 : Upgrade the generator_stop warning to DeprecationWarning
...
Patch by Anish Shah.
2016-02-10 04:40:48 +00:00
Martin Panter
1fe0d13d12
Issue #26243 : zlib.compress() keyword argument support by Aviv Palivoda
2016-02-10 10:06:36 +00:00
Martin Panter
96a4f07107
Issues #26310 , #26311 : Fix typos in the documentation and code comments
2016-02-10 01:17:51 +00:00
Martin Panter
263c448a2e
Issues #26310 , 26311: Merge typo fixes from 3.5
2016-02-10 01:18:36 +00:00
Gregory P. Smith
b8e5eb31ea
Clarify "cardinality of" as "number of elements in" as many readers do
...
not have a math vocabulary.
2016-02-08 09:59:00 -08:00
Gregory P. Smith
e27403b75f
Clarify "cardinality of" as "number of elements in" as many readers do
...
not have a math vocabulary.
2016-02-08 09:58:40 -08:00
Serhiy Storchaka
c4b813d05d
Issue #26198 : Fixed error messages for some argument parsing errors.
...
Fixed the documented about buffer overflow error for "es#" and "et#" format
units.
2016-02-08 01:06:11 +02:00
Martin Panter
d5db14794b
Issue #25179 : Preparatory cleanup of existing docs on string formatting
...
* Various sections were pointing to the section on the string.Formatter
class, when the section on the common format string syntax is probably more
appropriate
* Fix references to various format() functions and methods
* Nested replacement fields may contain conversions and format specifiers,
and this is tested; see Issue #19729 for instance
2016-02-08 01:34:09 +00:00
Serhiy Storchaka
503f908090
Issue #26039 : Added zipfile.ZipInfo.from_file() and zipinfo.ZipInfo.is_dir().
...
Patch by Thomas Kluyver.
2016-02-08 00:02:25 +02:00
Martin Panter
46988d3659
Merge string formatting doc fixes from 3.5
2016-02-08 01:49:35 +00:00
Senthil Kumaran
029f7f7af2
merge from 3.5
2016-02-05 19:37:47 -08:00
Senthil Kumaran
b6213c5664
Fix userinfo example presented in urllib2 howto.
2016-02-05 19:37:23 -08:00
Zachary Ware
e922289620
Merge with 3.5
2016-02-03 22:07:08 -06:00
Zachary Ware
2b818142d1
Python for .NET has moved to Github.
...
Reported by Denis Akhiyarov on docs@
2016-02-03 22:05:46 -06:00
Zachary Ware
71e8134f20
Merge with 3.5
2016-02-02 17:04:56 -06:00
Zachary Ware
3df11b2bd6
Fix typo.
...
Reported by Jon Tetlak on docs@
2016-02-02 17:04:41 -06:00
Martin Panter
8254f793c0
Issue #26244 : Merge zlib documentation from 3.5
2016-02-03 07:52:06 +00:00
Martin Panter
567d513b9b
Issue #26244 : Clarify default zlib compression level in documentation
...
Based on patch by Aviv Palivoda.
2016-02-03 07:06:33 +00:00
Raymond Hettinger
a63897164e
merge
2016-02-01 21:21:19 -08:00
Raymond Hettinger
b00da57561
Issue #26194 : Inserting into a full deque to raise an IndexError
2016-02-01 21:19:22 -08:00
Victor Stinner
59fe937c50
Merge 3.5 (doc)
2016-01-31 18:36:52 +01:00
Victor Stinner
5f0c5d92ef
Enhance os.scandir() doc
...
Issue #26248 , patch written by Ben Hoyt:
1) Clarify that the return values of is_dir()/is_file()/etc are cached
separately for follow_symlinks True and False.
2) Be more specific about when the functions require a system call, and how it
relates to caching and follow_symlinks.
3) DRY up common stuff between is_dir and is_file by saying "Caching, system
calls made, and exceptions raised are as per is_dir" in is_file.
4) Tweak to the first paragraph of docs for is_dir/is_file to simplify: assume
the follow_symlinks=True default, then note the follow_symlinks=False
non-default case after.
2016-01-31 18:36:41 +01:00
Berker Peksag
89e54338d0
Issue #26242 : Fix another one in importlib.rst
2016-01-30 19:30:22 +02:00
Berker Peksag
fe5f614418
Issue #26242 : Fix another one in importlib.rst
2016-01-30 19:30:06 +02:00
Berker Peksag
da7e0d8b78
Fix a markup error in socket.rst
2016-01-30 19:23:46 +02:00
Berker Peksag
253739daf4
Fix a markup error in socket.rst
2016-01-30 19:23:29 +02:00
Berker Peksag
f98aca5c23
Update "Creating Virtual Environments" link in venv documentation
2016-01-30 12:24:49 +02:00
Berker Peksag
ef410770a7
Update "Creating Virtual Environments" link in venv documentation
2016-01-30 12:24:31 +02:00
Berker Peksag
f108a58365
Update output of venv -h
...
* Update description of the --system-site-packages option
* Show --copies option in the usage
2016-01-30 12:17:29 +02:00
Berker Peksag
a9744aebc8
Update output of venv -h
...
* Update description of the --system-site-packages option
* Show --copies option in the usage
2016-01-30 12:17:10 +02:00
Berker Peksag
68df686954
Add a link to PEP 384 in stable.rst
2016-01-28 12:42:45 +02:00
Martin Panter
9d48869fcc
Issue #19023 : Merge ctypes doc and tests from 3.5
2016-01-29 10:25:40 +00:00
Martin Panter
34360c8e09
Issue #19023 : Document ctypes array and pointer classes
...
Also add some more tests. Based on patch by Sye van der Veen.
2016-01-29 10:12:19 +00:00
Berker Peksag
806cb0f2b6
Add a link to PEP 384 in stable.rst
2016-01-28 12:42:26 +02:00
Berker Peksag
1b95517337
Issue #26034 : Sync documentation of --clear with its behavior
...
Most of the docs has already been updated in c3c188a0325a.
2016-01-28 09:01:49 +02:00
Berker Peksag
547f66f599
Issue #26034 : Sync documentation of --clear with its behavior
...
Most of the docs has already been updated in c3c188a0325a.
2016-01-28 09:01:26 +02:00
Berker Peksag
0fe1b472ab
Issue #26199 : Fix broken link in unittest.mock-examples.rst
...
Patch by Raphael Das Gupta.
2016-01-28 08:40:21 +02:00
Martin Panter
5da4e86bc0
Issue #26220 : Merge Unicode how-to from 3.5
2016-01-29 04:06:49 +00:00
Martin Panter
4942870471
Issue #26220 : Remove outdated comment about a question mark
2016-01-29 04:01:16 +00:00
Berker Peksag
a370a4271e
Issue #26199 : Fix broken link in unittest.mock-examples.rst
...
Patch by Raphael Das Gupta.
2016-01-28 08:40:03 +02:00
Raymond Hettinger
0ef0423cb2
merge
2016-01-26 21:46:03 -08:00
Raymond Hettinger
3743432302
Issue #26194 : Fix undefined behavior for deque.insert() when len(d) == maxlen
2016-01-26 21:44:16 -08:00
Brett Cannon
9fa812668f
Issue #18018 : Raise an ImportError if a relative import is attempted
...
with no known parent package.
Previously SystemError was raised if the parent package didn't exist
(e.g., __package__ was set to '').
Thanks to Florent Xicluna and Yongzhi Pan for reporting the issue.
2016-01-22 16:39:02 -08:00
Brett Cannon
849113af6b
Issue #25791 : Warn when __package__ != __spec__.parent.
...
In a previous change, __spec__.parent was prioritized over
__package__. That is a backwards-compatibility break, but we do
eventually want __spec__ to be the ground truth for module details. So
this change reverts the change in semantics and instead raises an
ImportWarning when __package__ != __spec__.parent to give people time
to adjust to using spec objects.
2016-01-22 15:25:50 -08:00
Brett Cannon
52c854a838
Merge from 3.5
2016-01-22 14:05:41 -08:00