| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
* bpo-32651 - In the documentation for os.getlogin(), recommend getpass.getuser()
(cherry picked from commit d499031f5f33c3ef71be7c81ef52eee6b47c42e1)
|
|
|
|
|
| |
(GH-4056) (#5298)
(cherry picked from commit 131fd7f96c619bc7eaea956e45c6337175f4b27f)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On FreeBSD and Solaris, os.strerror() now always decode the byte
string from the current locale encoding, rather than using
ASCII/surrogateescape in some cases.
Changes:
* Add _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx() which has an
additional current_locale parameter.
* PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize() and
* PyUnicode_EncodeLocale() now always use the current locale
* encoding, instead of using Py_DecodeLocale()/Py_EncodeLocale().
* Document encoding in Py_DecodeLocale() and Py_EncodeLocale()
documentations.
* Add USE_FORCE_ASCII define to not define
decode_ascii_surrogateescape() on Android.
|
|
|
|
|
|
|
|
|
|
| |
* Add _Py_GetLocaleconvNumeric() function: decode decimal_point and
thousands_sep fields of localeconv() from the LC_NUMERIC encoding,
rather than decoding from the LC_CTYPE encoding.
* Modify locale.localeconv() and "n" formatter of str.format() (for
int, float and complex to use _Py_GetLocaleconvNumeric()
internally.
(cherry picked from commit cb064fc2321ce8673fe365e9ef60445a27657f54)
|
|
|
|
|
| |
Clarify that on Windows, path must be a directory.
On Unix, path can be a file or a directory.
(cherry picked from commit ee3b83547c6b0cac1da2cb44aaaea533a1d1bbc8)
|
|
|
|
|
|
| |
`os.path.is*()` can return False if the file can't be accessed.
The behaviour is documented in details in `os.path.exists()`.
Link to `os.path.exists()` from `os.path.is*()`.
(cherry picked from commit b3dd18d4035803b50c65a434955966d1b3b1f363)
|
|
|
| |
(cherry picked from commit d37258dd2e189141906bd234385096cd8e885d8d)
|
|
|
|
|
| |
The code example that demonstrate how to use enum.Flag was missing
the import of enum.auto.
(cherry picked from commit 0f31c74fcfdec8f9e6157de2c366f2273de81677)
|
|
|
|
|
|
|
|
| |
link (GH-5157) (GH-5160)
In lexical analysis reference documentation, the internal link to
the string literal concatenation section was written as`.. _string-catenation:`.
Changed that to `.. _string-concatenation:`.
(cherry picked from commit 3764bb075a73074f55568fc7c37adde6054eb59a)
|
|
|
| |
(cherry picked from commit 65f2a6dcc2bc28a8566b74c8e9273f982331ec48)
|
| |
|
|
|
|
| |
Updates documentation for generator expressions in classes tutorial: Clarify usage of ambiguous term "brackets" by replacing with "square brackets". Updated subsequent lines to respect line breaks. (GH-5079)
(cherry picked from commit f190eb59e60e2ae7a7cbd396458389a7a076e0d3)
|
|
|
| |
(cherry picked from commit a8d25a16452f7ee8dfc350cd028b3ae172d28ada)
|
|
|
|
| |
The built-in map() function collects function arguments lazily, but concurrent.futures.Executor.map() does so eagerly.
(cherry picked from commit a7a751dd7b08a5bb6cb399c1b2a6ca7b24aba51d)
|
|
|
|
|
| |
Mention that the format-specifier mini language in f-strings
is the same one used by str.format.
(cherry picked from commit f4e21a2a72f76d75a6cc6f74faf910a5f3108482)
|
|
|
|
|
|
|
|
| |
(#4929)
* Fix GH-32377: improve __del__ docs and fix mention about resurrection
* Mention that CPython only calls __del__ once.
(cherry picked from commit 4b965930e8625f77cb0e821daf5cc40e85b45f84)
|
|
|
| |
(cherry picked from commit 6693d7af6670f8bda331e0b63bb77fce2e3efe9c)
|
|
|
|
| |
Link to the Format Specification Mini Language section from f-strings' documentation.
(cherry picked from commit d924fa523df766dbf2f8b6a28ae502eb3433bfe5)
|
|
|
| |
(cherry picked from commit 297fd876aad8ef443d8992618de22c46dbda258b)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#4864)
* [3.6] bpo-32297: Few misspellings found in Python source code comments. (GH-4803)
* Fix multiple typos in code comments
* Add spacing in comments (test_logging.py, test_math.py)
* Fix spaces at the beginning of comments in test_logging.py.
(cherry picked from commit 53f7a7c2814fbfd8a29200926601a32fa48bacb3)
|
|
|
| |
(cherry picked from commit 4f29f3c84b74de8c208980a14bc56bffa6363121)
|
|
|
| |
(cherry picked from commit c3e070f84931c847d1b35e7fb36aa71edd6215f6)
|
|
|
|
|
| |
Sequence.index method (GH-4277) (#4811)
(cherry picked from commit 5ce0a2a100909104836f53a2c8823006ec46f8ad)
|
|
|
|
|
|
| |
(#4796)
Original patch written by Martin Panter, enhanced by Sanyam Khurana.
(cherry picked from commit 1b74f9b77a6fa1d7828986cb79d5b10942ff9141)
|
|
|
|
|
| |
consistent with source. (GH-4765) (GH-4767)
(cherry picked from commit a9f8df646aac7fc94ced0aefd1ed2c8566d14d10)
|
|
|
|
|
|
|
|
|
|
| |
* fix issue32208: update threading.Semaphore docs and add unit test to validate correct behavior
* add test for blocking
* Update threading.rst
* semaphore: remove documentation validation tests and move 'return value' test to BaseSemaphore
(cherry picked from commit a0374dd34aa25f0895195d388b5ceff43b121b00)
|
|
|
| |
(cherry picked from commit ae342cf7deebdcf2035f4064609b32b2102dadcf)
|
|
|
|
|
|
| |
(#4683)
Also addresses doc build failures documented in bpo-32200.
(cherry picked from commit 7324b5ce8e7c031a0a3832a6a8d7c639111ae0ff)
|
|
|
| |
(cherry picked from commit c615be5166ed338c052fa67fe781b9bfe0dfb78c)
|
|
|
| |
(cherry picked from commit c172fc5031a4035986bef0b2fcef906706d7abf3)
|
|
|
|
|
| |
- Add "version added: 3.5.2" note where it was missing.
- Remove the mention that Reversible is new in 3.5.2
(cherry picked from commit 0cd2e81bea639828d7c9a7afc61fb1da9699492c)
|
|
|
|
| |
`BUILD_MAP_UNPACK_WITH_CALL` was duplicated as the opcode for both var-positional and var-keyword arguments. The opcode for the former was updated as `BUILD_TUPLE_UNPACK_WITH_CALL`.
(cherry picked from commit 0c71653cb8231f176d02140fdef3706de2e93b9f)
|
|
|
|
| |
Mention that the lower the priority number, the higher priority it represents.
(cherry picked from commit 9d5ec808de2c1359f434cc2fa8378458e4339c96)
|
|
|
|
|
|
| |
(GH-4554)
The provided code example was supposed to find repeated words, however it returned false results.
(cherry picked from commit 610e5afdcbe3eca906ef32f4e0364e20e1b1ad23)
|
|
|
| |
(cherry picked from commit f8802d80b32dbc64f9e0e72270695d24ac50e246)
|
|
|
|
|
|
| |
The paragraph that contains example of string literal concatenation was placed
after the section about concatenation using the '+' sign.
Moved the paragraph to the appropriate section.
(cherry picked from commit 78a5722ae950b80a4b3d13377957f3932195aef3)
|
|
|
|
|
| |
Move footnote markers to be closer to the related terminology:
before the end of the sentence, instead of after.
(cherry picked from commit cdfe910e746e1d0fc43429b8cc3384a65a19b358)
|
|
|
| |
(cherry picked from commit 3df02dbc8e197053105f9dffeae40b04ec66766e)
|
|
|
|
|
| |
(GH-1699)
(cherry picked from commit 26248ef58dcf49619930ffa2e050ffa687a88601)
|
|
|
|
|
| |
documentation. (GH-4491) (#4493)
(cherry picked from commit 431665bf1971e66c51f59abf0693f700ff7919e8)
|
|
|
| |
(cherry picked from commit 337cbbace0a43f50fcd33ea4d3b7cb30733237db)
|
|
|
|
|
| |
The line number in correct when using the -x option: Py_Main() uses
ungetc() to not skip the first newline character.
(cherry picked from commit c5a2071586f735d2a61d1756e7011cfbb6ce86c9)
|
|
|
|
|
|
| |
Since f299abdafa0f2b6eb7abae274861b19b361c96bc
the remove_pyc() method no longer tries to
remove .pyo files.
(cherry picked from commit b56becb373f01c7e285f028bde640f0864d0240e)
|
|
|
| |
(cherry picked from commit 7750bded92d908cbc422c57b97214f8eec615b0d)
|
|
|
|
| |
`kargs` -> `kwargs`
(cherry picked from commit d505a29a15a6f9315d8c46445b8a0cccfc2048b8)
|
|
|
| |
(cherry picked from commit 3bda02222aa3783bf85fc3ff8bc042aefd9c4fd3)
|
|
|
| |
(cherry picked from commit b0b44b4b3337297007f5ef87220a75df204399f8)
|
|
|
|
|
| |
(#4379)
(cherry picked from commit e0582a37c8d1776a2fd4968e9216f3a05f780276)
|
|
|
| |
(cherry picked from commit e197a8538bae3c5f2727dfdc8672aa15d9429e51)
|
|
|
|
| |
It can be removed after https://github.com/python/peps/commit/c28890fb421c906241da6da718f9eacc5a3109ee
(cherry picked from commit 7c9da3e5ba060463b661da58ec3fe6beedce5566)
|