| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
For datetime.datetime.strptime(), the leading zero for some two-digit formats is optional.
This adds a footnote to the strftime/strptime documentation to reflect this fact, and adds some tests to ensure that it is true.
bpo-34903
(cherry picked from commit 6b9c204ee77a0de87d6f51a3d4547a18604cef9e)
Co-authored-by: Mike Gleen <mike.gleen@gmail.com>
|
|
|
|
|
|
| |
The initialize options are 1) add command line options, which are appended to sys.argv as if passed on a real command line, and 2) skip the shell restart. The customization dialog is accessed by a new entry on the Run menu.
(cherry picked from commit 201bc2d18b60adb05810d2a6ab396047bc527088)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
|
|
|
|
|
|
|
| |
Measure required height by quickly maximizing once per screen.
A search for a better method failed.
(cherry picked from commit 5bff3c86ab77e9d831b3cd19b45654c7eef22931)
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
|
|
|
|
|
|
| |
Mention explicitly that PyObject_CallXXX() functions raise an
exception an failure.
(cherry picked from commit 1ce2656f13e726b3b99d4c968926908cff1f460a)
|
|
|
|
|
| |
(cherry picked from commit 5600b5e1b24a3491e83f1b3038a7ea047a34c0bf)
Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
|
|
|
|
|
| |
(cherry picked from commit 552951563cd5968d25e95306362e41f07d661a88)
Co-authored-by: Julien Palard <julien@palard.fr>
|
|
|
|
|
|
| |
* [3.7] Doc: Add an optional obsolete header. (GH-13638).
(cherry picked from commit 46ed90dd014010703c7a3b2a61c4927644fa8210)
Co-authored-by: Julien Palard <julien@palard.fr>
|
|
|
|
|
| |
(cherry picked from commit f475729a714a9fb13672f8989c4abbafb783e09b)
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
|
|
|
|
|
|
|
|
|
| |
This PR adds missing details in the [`concurrent.futures`](https://docs.python.org/3/library/concurrent.futures.html) documentation:
* the mention that `Future.cancel` also returns `False` if the call finished running;
* the mention of the states for `Future` that did not complete: pending or running.
(cherry picked from commit 431478d5d74d880692817323198b9605af972fa5)
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
|
|
|
|
|
|
| |
Python 3.6 changed the size of bytecode instruction, while the documentation for `EXTENDED_ARG` was not updated accordingly.
(cherry picked from commit 405f648db7c44b07348582b5101d4716e0ce5ac3)
Co-authored-by: Yao Zuo <laike9m@users.noreply.github.com>
|
| |
|
|
|
|
|
| |
(cherry picked from commit ee171a26c1169abfae534b08acc0d95c6e45a22a)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
|
|
|
|
|
|
|
| |
(GH-13860) (GH-13896)
(cherry picked from commit dc2476500d91082f0c907772c83a044bf49af279)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 59e7bbcaa4d0d556591f774c5ea4869c41fa95b0)
Co-authored-by: Julien Palard <julien@palard.fr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Improve example on tzinfo instances
Move from GMTX to TZX when naming the classes, as GMT1 might be rather
confusing as seen in the reported issue.
In addition, move to UTC over GMT and improve the tzname implementation.
* Simplify datetime with tzinfo example
Move the example in the documentation to just use timezone.utc and a
user defined Kabul timezone rather than having two user defined
timezones with DST.
Kabul timezone is still interesting as it changes its offset but not
based on DST. This is more accurate as the previous example was missing
information about the fold attribute. Additionally, implementing the fold
attribute was rather complex and probably not relevant enough for the
section "datetime with tzinfo".
(cherry picked from commit f0b5ae4567637b24035ecda93a3240efc96b6dd9)
Co-authored-by: Mario Corchero <mcorcherojim@bloomberg.net>
|
|
|
|
|
|
|
|
| |
What's new now mentions SSLContext.hostname_checks_common_name instead of SSLContext.host_flags.
https://bugs.python.org/issue36868
(cherry picked from commit 47eb2234061524562a4b484e3a395f4fdd6c1b76)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
| |
(cherry picked from commit 141da44bb45bc182886303fce92cbbae5631cb4c)
Co-authored-by: Julien Palard <julien@palard.fr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-19184: Update the documentation of dis module
* Explain the behavior of the number of arguments of RAISE_VARGARGS
opcode.
* bpo-19184: Update blurb.
* bpo-19184: Fix typo in the dis Documentation.
* bpo-19184: Address review comments and improve the doc
* bpo-19184: Remove news file.
(cherry picked from commit e1179a5096fb12297ececd7a1c79969aa5747e28)
Co-authored-by: Michele Angrisano <michele.angrisano@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-13545) (GH-13753)
* bpo-37014: Update docstring and Documentation of fileinput.FileInput()
* Explain the behavior of fileinput.FileInput() when reading stdin.
* Update blurb.
* bpo-37014: Fix typo in the docstring and documentation.
(cherry picked from commit aca273e2401ca3151e15e984f400233b7f255e15)
Co-authored-by: Michele Angrisano <michele.angrisano@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit b7daabd711274a009e70556020efeae502a85f0b)
Co-authored-by: Anthony Sottile <asottile@umich.edu>
|
|
|
|
|
|
|
| |
language (GH-13520)
(cherry picked from commit 66501058fef76a5d77e6879f6da3282f0a9eef1b)
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
|
|
|
|
|
|
|
| |
(GH-13718)
(cherry picked from commit 5ac0b988fd5f1428efe35329c531c7b5c74d37f6)
Co-authored-by: Windson yang <wiwindson@outlook.com>
|
|
|
|
|
| |
(cherry picked from commit a747c3a5edf21fa5670bc30f5e1d804de89ebf62)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 4612671df2742eade8ecf8003a6ce1247973c135)
Co-authored-by: Akshay Sharma <akshay.sharma09695@gmail.com>
|
|
|
|
|
|
|
|
| |
Also includes other minor test skipping doc improvements.
https://bugs.python.org/issue37094
(cherry picked from commit ffed76b6fc4d7dd0244b662d6e5738eb496d9def)
Co-authored-by: Makdon <makdon@makdon.me>
|
|
|
|
|
| |
(cherry picked from commit 2f5b9dcc0a89cbde1499c76df81c36bfd5ef9aa8)
Co-authored-by: Antti Haapala <antti@haapala.name>
|
|
|
|
|
|
| |
https://bugs.python.org/issue36794
(cherry picked from commit 34f4f5efea730504216ee19f237734e0bb0104ee)
Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com>
|
|
|
|
|
|
|
| |
in addition to global-statement also mention nonlocal-statement
(in the paragraph describing access to variables which are non local to a function
(cherry picked from commit e1f95e77e0647aff602e0660ba3c282b71045875)
Co-authored-by: pbhd <p-bauer-schriesheim@t-online.de>
|
|
|
|
|
|
|
|
| |
(GH-13643)
Co-Authored-By: brianquinlan <brian@sweetapp.com>
(cherry picked from commit 39889864c09741909da4ec489459d0197ea8f1fc)
Co-authored-by: Brian Quinlan <brian@sweetapp.com>
|
|
|
|
|
| |
(cherry picked from commit 7114c6504a60365b8b0cd718da0ec8a737599fb9)
Co-authored-by: Julien Palard <julien@palard.fr>
|
|
|
|
|
| |
There is an extra "one" in the text description for the constant
socket.CAN_RAW_FD_FRAMES
(cherry picked from commit 1b05aa219041eb1c9dbcb4ec6c1fa5b20f060bf5)
|
|
|
|
|
| |
(cherry picked from commit 51ddab8dae056867f3595ab3400bffc93f67c8d4)
Co-authored-by: Julien Palard <julien@palard.fr>
|
|
|
|
|
| |
(cherry picked from commit 0811f2d81a12a3415dc2cb2744b41520c48d4db5)
Co-authored-by: Julien Palard <julien@palard.fr>
|
|
|
|
|
|
| |
Per ae58649, time.monotonic is always available, making the old note outdated.
(cherry picked from commit 293e9f86b8d10fcd88d6a2015babae76e9a8bd8f)
Co-authored-by: Brad <brad.solomon.1124@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 5033e315d28d54a41bcd987d04e6e6453d5b275f)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
|
|
|
|
|
|
|
| |
Move doc entry to match menu and refactor zoom function.
A followup patch will include a blurb.
(cherry picked from commit df9b032f47e4edaf306d95449370e565ee470018)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
| |
(cherry picked from commit cc1c582f6fe450ce1c7de849137039e9b5fab8eb)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
|
|
|
|
|
|
|
|
| |
handled (GH-7778)
``_thread.interrupt_main()`` now avoids setting the Python error status if the ``SIGINT`` signal is ignored or not handled by Python.
(cherry picked from commit 608876b6b1eb59538e6c29671a733033fb8b5be7)
Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
|
|
|
|
|
| |
(cherry picked from commit e788057a9188ff37e232729815dfda2529079420)
Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
PyErr_WriteUnraisable() now displays the exception even if displaying
the traceback failed. Moreover, hold a strong reference to sys.stderr
while using it.
Document that an exception must be set when calling
PyErr_WriteUnraisable(), but don't add an assertion to check it at
runtime.
Cleanup: use longer names for variables and create
write_unraisable_exc_file() subfunction.
|
|
|
|
|
|
|
| |
fails for Feb 29. (GH-10243)
(cherry picked from commit 56027ccd6b9dab4a090e4fef8574933fb9a36ff2)
Co-authored-by: Abhishek Kumar Singh <toanant@users.noreply.github.com>
|
|
|
|
|
|
|
| |
(GH-11980) (GH-13455)
(cherry picked from commit 522ccef8690970fc4f78f51a3adb995f2547871a)
Co-authored-by: Geoff Shannon <earthlingzephyr@gmail.com>
|
|
|
|
|
|
|
| |
Print any argument other than None or int passed to SystemExit
or sys.exit().
(cherry picked from commit 6d965b39b7a486dd9e96a60b19ee92382d668299)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
|
|
|
| |
The sqlite3.Connection object doesn't call its close() method when it's used
as a context manager.
(cherry picked from commit 287b84de939db47aa8c6f30734ceb8aba9d1db29)
Co-authored-by: Xtreak <tir.karthi@gmail.com>
|
|
|
|
|
|
| |
Add a missing comma.
(cherry picked from commit 1d5bdef550d4395211fbe5f3c1444d7ea5bb54a2)
Co-authored-by: Boštjan Mejak <bostjan.xperia@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit d28772ab6967fea136c0707f0207673ebad66f61)
Co-authored-by: Edison A <20975616+SimiCode@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Given example does not run, loop variable is missing.
Secondly, this is bad example how to handle shutdown signal, because it would cause `RuntimeError: Event loop stopped before Future completed.`
Perhaps it would be better to cancel all tasks instead of closing loop directly?
Did not create issue, because question is quite simple.
(cherry picked from commit ceb842e155f5fa0109fa88d52da3d1f5e73490ad)
Co-authored-by: Alexander Vasin <hi@alvass.in>
|
|
|
|
|
|
|
| |
Makes the documentation of math and cmath module
more helpful for the beginners.
(cherry picked from commit 6faad355db6c2bd4a0ade7868f245b42c04f5337)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
|
|
|
|
|
| |
(cherry picked from commit f98c3c59c0930ee41175d8935f72bfeed5fee17a)
Co-authored-by: redshiftzero <jen@freedom.press>
|
|
|
|
|
| |
(cherry picked from commit 245f528a92d7748dbd7acf9cba860153c143bbfe)
Co-authored-by: Stefan Hoelzl <stefan.hoelzl@posteo.de>
|