INADA Naoki
1179f4b40f
bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)
2018-05-21 18:35:41 +09:00
Aaron Hall, MBA
4054b172ab
bpo-26103: Fix inspect.isdatadescriptor() and a data descriptor definition. (GH-1959)
...
Look for '__set__' or '__delete__'.
2018-05-21 02:46:42 +03:00
Terry Jan Reedy
dd281873ba
Add idlelib and IDLE section to What's New in 3.7. ( #7019 )
2018-05-20 17:00:13 -04:00
Andrés Delfino
0c4be82890
bpo-33580: Make binary/text file glossary entries follow most common "see also" style. (GH-6991)
2018-05-20 18:12:50 +03:00
Lisa Roach
900c48dba3
bpo-30940: Updating round() docs. (GH-6342)
2018-05-20 18:00:18 +03:00
Eitan Adler
9572132ab3
Docs: be less specific about python versions (GH-6985)
...
CPython 3.5 is old now, and we don't bump this version often,
so lets avoid using specific versions.
2018-05-20 17:38:01 +03:00
Serhiy Storchaka
f5e7b1999f
bpo-23722: Raise a RuntimeError for absent __classcell__. (GH-6931)
...
A DeprecationWarning was emitted in Python 3.6-3.7.
2018-05-20 08:48:12 +03:00
Serhiy Storchaka
8ae8e6af37
bpo-23722: Fix docs for future __classcell__ changes. (GH-6999)
2018-05-20 08:13:52 +03:00
Elvis Pranskevichus
63536bd286
bpo-32996: The bulk of What's New in Python 3.7 (GH-6978)
2018-05-19 23:15:06 -04:00
Daniel Chimeno
cf8abcbe03
import secrets module in secrets recipes ( #6705 )
2018-05-20 01:01:49 +10:00
Ivan Levkivskyi
f65e31fee3
bpo-28556: Don't simplify unions at runtime (GH-6841)
2018-05-18 16:00:38 -07:00
Serhiy Storchaka
bde3e0bf09
Fix C API docs: PyCapsule_Import always set an exception on failure. (GH-6967)
2018-05-18 16:32:54 +03:00
Miro Hrončok
fb9dd89153
bpo-33559: Attribute changed repr of exceptions (GH-6954)
2018-05-17 15:04:57 -04:00
Miro Hrončok
631753fcc5
bpo-33559: Document changed repr of exceptions (GH-6943)
2018-05-17 13:44:53 -04:00
Yury Selivanov
d8d715f514
asyncio/docs: Mark asyncio.run() as provisional in 3.7. ( #6946 )
2018-05-17 13:44:00 -04:00
Gregory P. Smith
dff46758f2
bpo-19950: Clarify unittest TestCase instance use. (GH-6875)
2018-05-17 10:08:45 -05:00
Andrés Delfino
d5f1442608
bpo-33518: Add PEP entry to documentation glossary (GH-6860)
2018-05-17 09:51:50 +02:00
Zvezdan Petkovic
c2f082e9d1
bpo-13631: Fix the order of initialization for readline libedit on macOS. (GH-6915)
...
The editline emulation needs to be initialized *after* the name is
defined. This fixes the long open issue.
2018-05-17 02:45:10 -04:00
Steve Dower
e5f41d2f1e
bpo-33522: Enable CI builds on Visual Studio Team Services ( #6865 )
2018-05-16 17:50:29 -04:00
Barry Warsaw
713a936736
bpo-32216: Update dataclasses documentation ( #6913 )
2018-05-16 15:50:07 -04:00
Petr Viktorin
8b94b41ab7
bpo-28167: Remove platform.linux_distribution (GH-6871)
...
* test_ssl: Remove skip_if_broken_ubuntu_ssl
We no longer support OpenSSL 0.9.8.15.15.
* bpo-28167: Remove platform.linux_distribution
2018-05-16 11:51:18 -04:00
Christopher Beacham
5db5c0669e
bpo-21475: Support the Sitemap extension in robotparser (GH-6883)
2018-05-16 10:52:07 -04:00
Eric V. Smith
7a1c027501
Minor tweaks to dataclasses docs. (GH-6903)
2018-05-16 09:29:05 -04:00
Eric V. Smith
98d50cb8f5
bpo-32216: Add documentation for dataclasses (GH-6886)
...
This is an initial version that likely requires much polishing. I'm adding it lay out the structure and so we have something to start working from.
2018-05-16 04:20:43 -04:00
Christian Heimes
67c4801663
bpo-32257: Add ssl.OP_NO_RENEGOTIATION (GH-5904)
...
The ssl module now contains OP_NO_RENEGOTIATION constant, available with
OpenSSL 1.1.0h or 1.1.1.
Note, OpenSSL 1.1.0h hasn't been released yet.
Signed-off-by: Christian Heimes <christian@python.org>
2018-05-15 16:25:40 -04:00
Stéphane Wirtel
19177fbd5d
bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814)
2018-05-15 14:58:35 -04:00
Matthias Bussonnier
9eb40bc38d
bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669)
...
Also bump PendingDeprecationWarning to DeprecationWarning.
2018-05-15 11:17:00 -04:00
Travis DePrato
b7b493e2fb
Add AsyncContextManager to typing module documentation. (GH-6822)
2018-05-14 18:14:07 -04:00
Amber Brown
545c955be9
bpo-33497: Add errors param to cgi.parse_multipart and make an encoding in FieldStorage use the given errors (GH-6804)
2018-05-14 18:11:55 -04:00
Andrés Delfino
f2290fb19a
bpo-32769: Write annotation entry for glossary (GH-6657)
...
https://bugs.python.org/issue32769
2018-05-14 15:04:55 -04:00
Romuald Brunet
0ded580403
Add versionchanged in create_datagram_endpoint doc ( #4697 )
...
Most of the parameters were added in 3.4.4 (b9bf913ab3
), but this
change was not documented
2018-05-14 19:22:00 +03:00
Elena Oat
7ffd4c58fa
bpo-22069: Update TextIO documentation (GH-6609)
...
Clarify that flush is implied when the call to write contains a newline character.
2018-05-14 10:48:01 -04:00
Serhiy Storchaka
df00f04825
bpo-26701: Tweak the documentation for special methods in int(). (GH-6741)
2018-05-10 23:38:44 +10:00
Serhiy Storchaka
ddb6215a55
bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)
2018-05-09 11:10:55 +03:00
Julien Palard
b3c369861b
Fix superfluous if in documentation. (GH-6728)
2018-05-09 10:25:22 +03:00
Ivan Levkivskyi
bd5f96581b
bpo-32717: Document PEP 560 (GH-6726)
2018-05-08 19:38:41 +01:00
Vinay Sajip
c4994dc00d
bpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. (GH-6702)
2018-05-04 22:20:54 +01:00
Antoine Pitrou
9d3627e311
bpo-33332: Add signal.valid_signals() (GH-6581)
2018-05-04 13:00:50 +02:00
Serhiy Storchaka
ef347535f2
bpo-20104: Improve error handling and fix a reference leak in os.posix_spawn(). ( #6332 )
2018-05-01 16:45:04 +03:00
Stéphane Wirtel
7508a54c77
bpo-20709: os.utime(path_to_directory): wrong documentation for Windows. (GH-5469)
...
Remove the paragraph where we explain that os.utime() does not support a
directory as path under Windows. Patch by Jan-Philip Gehrcke
Co-authored-by: Jan-Philip Gehrcke <jgehrcke@gmail.com>
2018-05-01 12:02:26 +02:00
Julien Palard
335a602666
Add What's New for Korean documentation translation. (GH-6645)
2018-05-01 11:46:43 +02:00
Brett Cannon
3ab9365dca
bpo-33254: do not return an empty list when asking for the contents of a namespace package (GH-6467)
2018-04-30 11:31:45 -07:00
Siddhesh Poyarekar
55edd0c185
bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. (GH-6030)
...
METH_NOARGS functions need only a single argument but they are cast
into a PyCFunction, which takes two arguments. This triggers an
invalid function cast warning in gcc8 due to the argument mismatch.
Fix this by adding a dummy unused argument.
2018-04-29 21:59:33 +03:00
Bo Bayles
9f3535c9cd
bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223)
2018-04-29 21:03:05 +03:00
Dong-hee Na
5779483299
bpo-33378: Add Korean to the language switcher. (GH-6627)
2018-04-28 22:08:22 +02:00
Tom Christie
e022bbc169
Change "non-local state" to "content-local state". (GH-6617)
...
The wording here seems wrong, as per https://bugs.python.org/msg315792
2018-04-27 18:35:13 -04:00
Brian Curtin
df826f36e0
Clarify the inspect.getmembers predicate parameter ( #6615 )
...
Previously, the predicate parameter was mentioned, but what it was to be
called with was not documented and required either trial-and-error or
looking into the source to find that it is called with the `value`, or
second item, of the full members list. This change addresses what the
predicate will receive, as well as does some light formatting to make
this clear.
2018-04-26 19:48:26 -04:00
Andrés Delfino
67a8f4fed3
bpo-33280: Reorganize external Tcl/Tk references. (GH-6473)
2018-04-25 20:53:58 +03:00
Neeraj Badlani
643ff711fa
Mention both relevant PEPs in function annotations tutorial (GH-6304)
...
Patch by Neeraj Badlani.
2018-04-25 12:52:13 -05:00
Pablo Galindo
d6ef6db9ff
Fix rendering issues in the documentation for the os module ( #6525 )
2018-04-25 20:48:27 +03:00
Chris Bradbury
e500839796
bpo-33251: Update documentation to reflect change. (GH-6446) ( #6583 )
2018-04-23 13:56:39 -07:00
Andrés Delfino
b81ca28b37
bpo-33297: Mention Pillow to work with more image formats. ( #6505 )
...
Also update PIL doc references to Pillow.
2018-04-21 15:17:26 +03:00
Brett Cannon
441d945eb3
Clarify that __path__ can't be just any value (GH-6554)
2018-04-20 16:32:46 -07:00
Brett Cannon
a8c342465b
bpo-25427: Remove pyvenv (GH-5962)
2018-04-20 14:15:40 -07:00
Ville Skyttä
61f82e0e33
Spelling fixes to docs, docstrings, and comments (GH-6374)
2018-04-20 16:08:45 -04:00
Pablo Galindo
9009f3e389
Update What's new in 3.7 to reference preadv, pwritev and posix_spawn (GH-6524)
2018-04-18 21:26:18 -07:00
Benjamin Peterson
acfb087f9f
fix pydoc-topics to work with Sphinx 1.7 (GH-6475)
...
In fact, we now require a newer Sphinx version because APIs have moved around.
2018-04-16 22:56:46 -07:00
Andrés Delfino
4b685bf719
bpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)
2018-04-17 08:34:35 +03:00
Łukasz Langa
a00d440edb
Revert 725476222a
( #6494 )
...
This note in documentation was never true.
2018-04-16 20:00:31 -07:00
Andrés Delfino
c89b221758
Remove to-be-deprecated urllib.request.urlretrieve function reference ( #6454 )
2018-04-16 07:02:56 -07:00
Nick Coghlan
1a5c4bdb6e
bpo-33185: Improve wording and markup (GH-6477)
...
Adds some working and markup fixes that I missed
in the initial commit for this issue.
(Follow-up to GH-6419)
2018-04-15 23:32:05 +10:00
Nick Coghlan
82a9481059
bpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419)
...
The pydoc CLI assumed -m pydoc would add the empty string
to sys.path, and hence got confused when it switched to
adding the full initial working directory instead.
This refactors the pydoc CLI path manipulation to be
more testable, and ensures it won't accidentally
remove the standard library directory containing
pydoc itself from sys.path.
2018-04-15 21:52:57 +10:00
Antoine Pitrou
480ab05d5f
bpo-33176: Add a toreadonly() method to memoryviews. (GH-6466)
2018-04-14 19:49:21 +02:00
WeizhongTu
ffa2c3e2c4
itemgetter add dict example (GH-1280)
2018-04-12 21:33:08 -04:00
suic86
04e8293465
Fix error messages in argparse examples (GH-6435)
...
The examples in argparse documentation use `error: too few arguments`
error message which was removed in this commit f97c59a
in 2011.
2018-04-11 13:45:04 -05:00
Serhiy Storchaka
d08972fdb9
bpo-33260: Regenerate token.py after removing ASYNC and AWAIT. (GH-6447)
2018-04-11 19:15:51 +03:00
Serhiy Storchaka
46936d5a71
Improve highlighting of some code blocks. (GH-6401)
2018-04-08 19:18:04 +03:00
Raymond Hettinger
9265dd72e5
Add a prepend() recipe to teach a chain() idiom (GH-6415)
2018-04-08 08:44:20 -07:00
Alex Gaynor
c87eb09d2e
bpo-29613: Added support for SameSite cookies (GH-6413)
...
* bpo-29613: Added support for SameSite cookies
Implemented as per draft
https://tools.ietf.org/html/draft-west-first-party-cookies-07
* Documented SameSite
And suggestions by members.
* Missing space :(
* Updated News and contributors
* Added version changed details.
* Fix in documentation
* fix in documentation
* Clubbed test cases for same attribute into single.
* Updates
* Style nits + expand tests
* review feedback
2018-04-07 16:09:42 -04:00
Antoine Pitrou
1d80a56173
bpo-33201: Modernize "Extension types" doc (GH-6337)
...
* bpo-33201: Modernize "Extension types" doc
* Split tutorial and other topics
* Some small fixes
* Address some review comments
* Rename noddy* to custom* and shoddy to sublist
* Fix markup
2018-04-07 18:14:03 +02:00
Jay Crotts
ef5ce884a4
bpo-8243: Doc patch for curses.window.addstr and curses.window.addch (GH-5179)
2018-04-06 21:27:07 -04:00
Brett Cannon
9e2be60634
bpo-33169: Remove values of `None` from sys.path_importer_cache when invalidating caches (GH-6402)
...
An entry of None in sys.path_importer_cache represents a negative/missing finder for a path, so clearing it out makes sense.
2018-04-06 16:10:18 -07:00
Alex Gaynor
1d87c7b80b
fixed capitalization of class name (GH-6396)
2018-04-06 08:26:49 -04:00
Łukasz Langa
c51d8c9ba6
bpo-23403: Bump pickle.DEFAULT_PROTOCOL to 4 ( #6355 )
...
This makes performance better and produces shorter pickles. This change is backwards compatible up to the oldest currently supported version of Python (3.4).
2018-04-03 23:06:53 -07:00
INADA Naoki
42ec190761
bpo-33195: Doc: Deprecate Py_UNICODE in c-api/arg (GH-6329)
...
Py_UNICODE is deprecated since Python 3.3.
But the deprecation is missed in the c-api/arg document.
2018-04-04 13:59:08 +09:00
hui shang
dfbbbf16f9
bpo-32337: Update documentats about dict order (GH-4973)
2018-04-04 13:55:05 +09:00
INADA Naoki
629338f140
bpo-32360: Remove object_pairs_hook=OrderedDict examples (GH-5001)
2018-04-03 12:39:47 +09:00
Andrés Delfino
badb894bbb
closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (GH-6335)
2018-04-02 19:48:54 -07:00
Gregory P. Smith
79760ed256
bpo-20104: Add os.posix_spawn documentation. ( #6334 )
2018-04-01 12:01:48 -07:00
Mike DePalatis
233de021d9
Fix socket type in DatagramHandler documentation: TCP -> UDP (GH-6272)
2018-03-30 15:36:06 +08:00
Julien Palard
79c3bab35c
FIX documentation and NEWS of ThreadedHTTPServer. (GH-6207)
2018-03-28 23:24:58 +02:00
Julien Palard
78553138be
Fix typos '.::' should typically just be '::'. (GH-6165)
2018-03-28 23:14:15 +02:00
Serhiy Storchaka
bac2d5ba30
Fix duplicating words words. (GH-6296)
...
Most of them have been added in 3.7.
2018-03-28 22:14:26 +03:00
Antoine Pitrou
aa50bf08e6
bpo-33126: Document PyBuffer_ToContiguous() ( #6292 )
2018-03-28 17:26:32 +02:00
INADA Naoki
40a536be53
s/the the/the/ (GH-6287)
2018-03-28 22:07:57 +09:00
Sam Dunster
65a34709f6
Fix senfile typo ( #6265 )
...
* Also in docs
2018-03-27 17:47:38 -07:00
Cheryl Sabella
da1734c58d
bpo-27212: Modify islice recipe to consume initial values preceding start (GH-6195)
2018-03-26 18:29:33 -07:00
Michael Seifert
e105294708
Corrected link targets in collections.rst (GH-1052)
2018-03-26 14:40:35 +03:00
cocoatomo
e6223579c8
Fix description about SimpleXMLRPCServer constructor parameter bind_and_activate. (GH-776)
...
Passing True as the `bind_and_activate` *do* immediately opening and binding to their socket.
2018-03-26 14:03:40 +03:00
Gregory P. Smith
dfb6e54dd8
Clarify fd inheritance when close_fds=False. (GH-6240)
...
Clarify the subprocess documentation.
2018-03-25 10:27:59 -07:00
Nick Coghlan
d5d9e02dd3
bpo-33053: -m now adds *starting* directory to sys.path (GH-6231)
...
Historically, -m added the empty string as sys.path
zero, meaning it resolved imports against the current
working directory, the same way -c and the interactive
prompt do.
This changes the sys.path initialisation to add the
*starting* working directory as sys.path[0] instead,
such that changes to the working directory while the
program is running will have no effect on imports
when using the -m switch.
2018-03-25 23:03:10 +10:00
Nick Coghlan
bc77eff8b9
bpo-33042: Fix pre-initialization sys module configuration (GH-6157)
...
- new test case for pre-initialization of sys.warnoptions and sys._xoptions
- restored ability to call these APIs prior to Py_Initialize
- updated the docs for the affected APIs to make it clear they can be
called before Py_Initialize
- also enhanced the existing embedding test cases
to check for expected settings in the sys module
2018-03-25 20:44:30 +10:00
Himanshu Lakhara
5cbb84106e
bpo-27428: Fix WindowsRegistryFinder documentation to list appropriate ABC (GH-6061)
2018-03-23 14:26:35 -07:00
Julien Palard
8bcfa02e4b
bpo-31639: Use threads in http.server module. (GH-5018)
2018-03-23 17:40:33 +01:00
Berker Peksag
a0a42d22d8
Fix a reference to the MRE book in re docs (GH-1113)
...
Reported by Maksym Nikulyak on docs.p.o.
2018-03-23 16:46:52 +03:00
Serhiy Storchaka
702f8f3611
bpo-33041: Rework compiling an "async for" loop. ( #6142 )
...
* Added new opcode END_ASYNC_FOR.
* Setting global StopAsyncIteration no longer breaks "async for" loops.
* Jumping into an "async for" loop is now disabled.
* Jumping out of an "async for" loop no longer corrupts the stack.
* Simplify the compiler.
2018-03-23 14:34:35 +02:00
Xiang Zhang
10b134a07c
bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016)
...
The result of host() was not empty when the network is constructed by a tuple containing an
integer mask and only 1 bit left for addresses.
2018-03-21 08:25:13 +08:00
Cheryl Sabella
5609b78392
bpo-18802: Add more details to ipaddress documentation (GH-6083)
...
Original patch by Jon Foster and Berker Peksag.
2018-03-21 08:09:15 +08:00
Cheryl Sabella
4be79f2946
bpo-28247: Document Windows executable creation in zipapp (GH-6158)
2018-03-20 22:23:19 +00:00
Serhiy Storchaka
fe2bbb1869
bpo-32489: Allow 'continue' in 'finally' clause. (GH-5822)
2018-03-18 09:56:52 +02:00