Serhiy Storchaka
6543912c90
bpo-32912: Replace a DeprecationWarning with a SyntaxWarning (GH-9652)
...
for invalid escape sequences in string and bytes literals.
2018-10-19 17:42:06 +03:00
Braden Groom
5be00247ae
bpo-26441: Remove documentation for deleted to_splittable and from_splittable methods ( #9865 )
2018-10-18 20:13:23 -04:00
Vinay Sajip
bbd90e4f62
Updated documentation on logging.debug(). (GH-9946)
2018-10-18 11:45:58 +01:00
Cheryl Sabella
0f11a88622
Add missing comma to wsgiref doc (GH-9932)
2018-10-17 22:55:32 +01:00
Julien Palard
8e73ad38ab
Doc: Fix is_prime (GH-9909)
2018-10-17 08:45:51 +02:00
Cheryl Sabella
c984d20ec8
In email docs, correct spelling of foregoing ( #9856 )
2018-10-16 15:28:34 -04:00
Cheryl Sabella
a5ca98537b
In email.parser in message_from_bytes, update `strict` to `policy` ( #9854 )
...
According to the versionchanged note, the `strict` argument was removed in 3.3 and `policy` was added, but the name of the argument in the paragraph wasn't updated.
2018-10-16 15:26:17 -04:00
Vinay Sajip
1a4a10d9f1
Added CLI starter example to logging cookbook. (GH-9910)
2018-10-16 12:36:52 +01:00
Braden Groom
43a5bd7b45
bpo-23554: Change echo server example class name from EchoServerClientProtocol to EchoServerProtocol (GH-9859)
2018-10-15 17:39:16 -04:00
Pablo Galindo
ee171a26c1
Stop using deprecated logging API in Sphinx suspicious checker (GH-9875)
2018-10-15 20:07:23 +01:00
Wolfgang Maier
6bdb6f7675
fix dangling keyfunc examples in documentation of heapq and sorted ( #1432 )
...
* fix dangling mention of key=str.lower in heapq doc
* Fix dangling mention of keyfunc example for sorted()
2018-10-15 13:06:53 -06:00
BNMetrics
18fb1fb943
bpo-34844: logging.Formatter enhancement - Ensure style and format string matches in logging.Formatter (GH-9703)
2018-10-15 19:41:36 +01:00
Andrés Delfino
c8bb467f40
Update compound_stmts.rst ( #9864 )
2018-10-14 11:18:16 +03:00
Zackery Spytz
0461704060
bpo-22872: multiprocessing.Queue's put() and get() now raise ValueError if the queue is closed. (GH-9010)
...
Previously, put() and get() would raise AssertionError and OSError,
respectively.
2018-10-13 12:26:09 +03:00
Stéphane Wirtel
e385d0661e
bpo-34967: Sphinx is deprecating add_description_unit, use add_object_type (GH-9827)
2018-10-13 08:14:08 +02:00
Juliette Monsel
bf034715db
bpo-23831: Add moveto method to the tkinter.Canvas widget. (GH-9768)
2018-10-12 19:44:10 +03:00
Cheryl Sabella
2d6097d027
bpo-11233: Create availability directive for documentation (GH-9692)
...
Replace "Availability: xxx" with ".. availability:: xxx" in the doc.
Original patch by Georg Brandl.
Co-Authored-By: Georg Brandl <georg@python.org>
2018-10-12 16:55:20 +02:00
Gus Goulart
4505f65ae7
bpo-34203: FAQ now recommends python 3.x over 2.x (GH-9796)
2018-10-12 12:16:43 +03:00
Stéphane Wirtel
859c068e52
bpo-34962: make doctest in Doc/ now passes, and is enforced in CI (GH-9806)
2018-10-12 09:51:05 +02:00
Felipe Rodrigues
1d26c72e6a
bpo-34576 warn users on security for http.server ( #9720 )
...
It was proposed to add an warning for http.server regarding security
issues. The wording was provided at bpo-26005 by @orsenthil
2018-10-10 19:43:40 -07:00
Elvis Pranskevichus
a6b3ec5b6d
bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_EPOCH (GH-9607)
...
Unconditional forcing of ``CHECKED_HASH`` invalidation was introduced in
3.7.0 in bpo-29708. The change is bad, as it unconditionally overrides
*invalidation_mode*, even if it was passed as an explicit argument to
``py_compile.compile()`` or ``compileall``. An environment variable
should *never* override an explicit argument to a library function.
That change leads to multiple test failures if the ``SOURCE_DATE_EPOCH``
environment variable is set.
This changes ``py_compile.compile()`` to only look at
``SOURCE_DATE_EPOCH`` if no explicit *invalidation_mode* was specified.
I also made various relevant tests run with explicit control over the
value of ``SOURCE_DATE_EPOCH``.
While looking at this, I noticed that ``zipimport`` does not work
with hash-based .pycs _at all_, though I left the fixes for
subsequent commits.
2018-10-10 18:43:14 +02:00
Mayank Asthana
7e18deef65
bpo-34926: Make mimetypes.guess_type accept os.PathLike objects (GH-9777)
...
:meth:`mimetypes.MimeTypes.guess_type` now accepts :term:`path-like object` in addition to url strings.
2018-10-10 16:46:44 +02:00
Stéphane Wirtel
7c817e620b
bpo-34913: Document gzip command line interface (GH-9782)
2018-10-10 08:28:26 +02:00
animalize
6261ae9b01
bpo-32174: Let .chm document display non-ASCII characters properly (GH-9758)
...
Let .chm document display non-ASCII characters properly
Escape the `body` part of .chm source file to 7-bit ASCII, to fix visual effect on some MBCS Windows systems.
2018-10-08 14:20:54 -07:00
Paul Bailey
4c33997057
bpo-34911: Added support for secure websocket cookies (GH-9734)
2018-10-08 21:49:29 +03:00
Juliette Monsel
af5658ae93
bpo-34829: Add missing selection_ methods to the Tkinter Spinbox. (GH-9617)
...
Implement the methods selection_from(), selection_range(), selection_present()
and selection_to() for Tkinter Spinbox.
2018-10-08 19:29:24 +03:00
Xtreak
a8d5e2f255
Use double quote instead of backtick to clarify Ellipsis constant (GH-9754)
2018-10-08 20:44:16 +05:30
Sanyam Khurana
ffc5a14d00
bpo-33014: Clarify str.isidentifier docstring (GH-6088)
...
* bpo-33014: Clarify str.isidentifier docstring
* bpo-33014: Add code example in isidentifier documentation
2018-10-08 12:23:32 +05:30
Danish Prakash
656d52dbfd
bpo-34901: add isolated (-I) flag to sys.flags (GH-9708)
...
https://bugs.python.org/issue34901
2018-10-07 09:12:31 -07:00
Andrés Delfino
7dfbd49671
Correct grammar mistake in re.rst. (GH-9745)
2018-10-06 22:48:30 +03:00
Stéphane Wirtel
683281f536
bpo-34906: Doc: Fix typos (2) (GH-9735)
...
Fix typos
2018-10-06 16:35:53 +02:00
Christophe Nanteuil
92878829c3
bpo-34158: Documentation UTC offset update (GH-8377)
...
* Documentation of UTC offset update
Since changes in the UTC offset that allows sub-minute offsets, the documentation needs update:
- "%z" format code documentation update
Karthikeyan Singaravelan commented on bugs.python.org:
Added as part of 018d353c1c
and a fix regarding duplicate words for that part was added at bac2d5ba30
.
Relevant format string at https://github.com/python/cpython/pull/2896/files#diff-25e2d173c84057d069b7890450714eddR214 .
Relevant test case with 6-digit string for microsecond : https://github.com/python/cpython/pull/2896/files#diff-acc40bec51c7de832de3361db3edae52R309 .
Table at https://docs.python.org/3.7/library/datetime.html#strftime-and-strptime-behavior could also be updated with microseconds being optional in the second column
%z | UTC offset in the form ±HHMM[SS] (empty string if the object is naive). | (empty), +0000, -0400, +1030
- isoformat documentation update
According to me, needs confirmation:
Relevant format string at https://github.com/python/cpython/pull/4699/files#diff-25e2d173c84057d069b7890450714eddR176
Relevant test case at https://github.com/python/cpython/pull/4699/files#diff-25e2d173c84057d069b7890450714edd
* From Martin Panter: some style improvment;
From @pganssle: using f for fractional part of seconds in all file.
2018-10-05 18:57:02 -04:00
Xtreak
6f9c55d1c0
bpo-34825: Add more entries to os to pathlib reference table (GH-9608)
...
The added functions are as below :
| os module | Pathlib |
| ------------- | ------------- |
| os.chmod | Path.chmod |
| os.mkdir | Path.mkdir |
| os.rename | Path.rename |
| os.replace | Path.replace |
| os.rmdir | Path.rmdir |
| os.remove, os.unlink | Path.unlink |
| os.path.samefile | Path.samefile |
Thanks
https://bugs.python.org/issue34825
2018-10-05 08:24:11 -07:00
Stéphane Wirtel
07fbbfde1b
bpo-34906: Doc: Fix typos (GH-9712)
2018-10-05 16:17:18 +02:00
Benjamin Peterson
e006b39a40
Make it clear that the msg argument to assertWarns/assertWarnsRegex/assertRaisesRegex is keyword-only. (GH-9680)
...
A follow up to be4e5b8920
.
2018-10-02 21:38:39 -07:00
Cheryl Sabella
11c4eaa993
Remove recent from logging cookbook (GH-9636)
2018-10-02 09:35:05 -07:00
Benjamin Peterson
be4e5b8920
Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)
2018-10-01 22:18:44 -07:00
Ezio Melotti
30534cc717
bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9662)
2018-10-01 17:34:46 -07:00
Hrvoje Nikšić
cd602b8af2
bpo-34476: Document that asyncio.sleep() always suspends. ( #9643 )
2018-10-01 13:09:38 +03:00
Brendan Jurd
9df100286b
Fix name of argument in docs for functools.reduce(). ( #9634 )
2018-09-30 23:52:10 -07:00
Zackery Spytz
e45473e3ca
bpo-27351: Fix ConfigParser.read() documentation and docstring (GH-8123)
...
Switch "list" with "iterable" to match with the implementation.
2018-09-29 10:15:55 -06:00
Zackery Spytz
eef059657d
bpo-31370: Remove references to threadless builds ( #8805 )
...
Support for threadless builds was removed in a6a4dc81
.
2018-09-29 10:07:11 -06:00
방성범 (Bang Seongbeom)
508d820512
Fix astuple in dataclasses documentation (GH-9631)
2018-09-29 06:50:31 -04:00
Victor Stinner
37aae9dcf1
bpo-34687: Update asyncio doc for ProactorEventLoop (GH-9623)
...
Since ProactorEventLoop is now the default in 3.8, remove examples
using it explicitly on Windows.
https://bugs.python.org/issue34687
2018-09-28 08:40:08 -07:00
Yury Selivanov
59ee5b1293
bpo-34802: Fix asyncio.iscoroutine() docs (GH-9611)
2018-09-27 15:48:30 -04:00
Serhiy Storchaka
3f22811fef
bpo-32892: Use ast.Constant instead of specific constant AST types. (GH-9445)
2018-09-27 17:42:37 +03:00
Tal Einat
f55c64c632
bpo-31425: fix versionadded in docs and add attribution in NEWS (GH-9595)
2018-09-27 00:20:38 +03:00
Michael Lee
130717fe58
Clarify that Type[SomeTypeVar] is legal ( #9585 )
...
Currently, the docs state that when doing `Type[X]`, X is only allowed to
be a class, a union of classes, and Any. This pull request amends
that sentence to clarify X may also be a typevar (or a union involving
classes, Any, and TypeVars).
2018-09-26 16:13:28 +01:00
Bjorn Andersson
bb8165172a
bpo-31425: Expose AF_QIPCRTR in socket module (GH-3706)
...
The AF_QIPCRTR address family was introduced in Linux v4.7.
Co-authored-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-09-26 16:47:52 +03:00
Cheryl Sabella
d345bb4d9b
bpo-34334: Don't log traceback twice in QueueHandler (GH-9537)
2018-09-26 00:00:08 +01:00