summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-32651 Recommend getpass.getuser() (GH-5301) (#5304)Miss Islington (bot)2018-01-242-8/+11
| | | | * bpo-32651 - In the documentation for os.getlogin(), recommend getpass.getuser() (cherry picked from commit d499031f5f33c3ef71be7c81ef52eee6b47c42e1)
* bpo-17799: Explain real behaviour of sys.settrace and sys.setprofile ↵Xiang Zhang2018-01-242-20/+39
| | | | | (GH-4056) (#5298) (cherry picked from commit 131fd7f96c619bc7eaea956e45c6337175f4b27f)
* [3.6] bpo-32555: Fix locale encodings (#5193)Victor Stinner2018-01-152-1/+31
| | | | | | | | | | | | | | | | | 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.
* [3.6] bpo-31900: Fix localeconv() encoding for LC_NUMERIC (#4174) (#5192)Victor Stinner2018-01-153-0/+32
| | | | | | | | | | * 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)
* bpo-26330: Update shutil.disk_usage() documentation (GH-5184) (GH-5188)Miss Islington (bot)2018-01-151-1/+2
| | | | | Clarify that on Windows, path must be a directory. On Unix, path can be a file or a directory. (cherry picked from commit ee3b83547c6b0cac1da2cb44aaaea533a1d1bbc8)
* bpo-15221: Update os.path.is*() documentation (GH-5185) (GH-5186)Miss Islington (bot)2018-01-151-6/+9
| | | | | | `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)
* Add itertools recipe for directly finding the n-th combination (GH-5161) (#5174)Miss Islington (bot)2018-01-131-0/+23
| | | (cherry picked from commit d37258dd2e189141906bd234385096cd8e885d8d)
* Improve enum.Flag code example (GH-5167) (GH-5171)Miss Islington (bot)2018-01-131-1/+1
| | | | | The code example that demonstrate how to use enum.Flag was missing the import of enum.auto. (cherry picked from commit 0f31c74fcfdec8f9e6157de2c366f2273de81677)
* Lexical Analysis ref doc: Fix a typo in the string concatenation internal ↵Miss Islington (bot)2018-01-121-1/+1
| | | | | | | | 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)
* advance copyright years to 2018 (GH-5094) (#5104)Miss Islington (bot)2018-01-062-2/+2
| | | (cherry picked from commit 65f2a6dcc2bc28a8566b74c8e9273f982331ec48)
* bpo-32211: Document the existing bug in re.findall() and re.finditer(). (#4695)Serhiy Storchaka2018-01-041-4/+10
|
* bpo-32452: clarify term 'brackets' in generator tutorial (GH-5079) (#5081)Miss Islington (bot)2018-01-021-3/+3
| | | | 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)
* Fix trivial typo in pickle.rst (GH-4955) (#4958)Miss Islington (bot)2017-12-211-1/+1
| | | (cherry picked from commit a8d25a16452f7ee8dfc350cd028b3ae172d28ada)
* bpo-32306: Clarify c.f.Executor.map() documentation (GH-4947) (#4948)Miss Islington (bot)2017-12-201-13/+21
| | | | The built-in map() function collects function arguments lazily, but concurrent.futures.Executor.map() does so eagerly. (cherry picked from commit a7a751dd7b08a5bb6cb399c1b2a6ca7b24aba51d)
* Improve the F-strings and format specifier documentation (GH-4931) (GH-4933)Miss Islington (bot)2017-12-191-4/+5
| | | | | Mention that the format-specifier mini language in f-strings is the same one used by str.format. (cherry picked from commit f4e21a2a72f76d75a6cc6f74faf910a5f3108482)
* bpo-32377: improve __del__ docs and fix mention about resurrection (GH-4927) ↵Miss Islington (bot)2017-12-192-40/+49
| | | | | | | | (#4929) * Fix GH-32377: improve __del__ docs and fix mention about resurrection * Mention that CPython only calls __del__ once. (cherry picked from commit 4b965930e8625f77cb0e821daf5cc40e85b45f84)
* Minor wording tweak for itertools documentation (GH-4893) (#4894)Miss Islington (bot)2017-12-151-2/+2
| | | (cherry picked from commit 6693d7af6670f8bda331e0b63bb77fce2e3efe9c)
* F-strings docs: link to Format Specifiers (GH-4888) (GH-4889)Miss Islington (bot)2017-12-151-1/+2
| | | | Link to the Format Specification Mini Language section from f-strings' documentation. (cherry picked from commit d924fa523df766dbf2f8b6a28ae502eb3433bfe5)
* bpo-28393: Update encoding lookup docs wrt bpo-27938 (GH-4871) (#4881)Miss Islington (bot)2017-12-151-4/+8
| | | (cherry picked from commit 297fd876aad8ef443d8992618de22c46dbda258b)
* [3.6] bpo-32297: Fix misspellings in Python source code comments (GH-4803) ↵Andrew Svetlov2017-12-141-1/+1
| | | | | | | | | | | | | | (#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)
* trivial: link updates in documentation (GH-2765) (#4835)Miss Islington (bot)2017-12-134-5/+5
| | | (cherry picked from commit 4f29f3c84b74de8c208980a14bc56bffa6363121)
* bpo-32284: Fix documentation of BinaryIO and TextIO (GH-4832) (#4833)Miss Islington (bot)2017-12-131-3/+3
| | | (cherry picked from commit c3e070f84931c847d1b35e7fb36aa71edd6215f6)
* bpo-31942: Document optional support of start and stop attributes in ↵Miss Islington (bot)2017-12-121-3/+3
| | | | | Sequence.index method (GH-4277) (#4811) (cherry picked from commit 5ce0a2a100909104836f53a2c8823006ec46f8ad)
* bpo-22671: Clarify and test default read method implementations (GH-4568) ↵Miss Islington (bot)2017-12-111-5/+8
| | | | | | (#4796) Original patch written by Martin Panter, enhanced by Sanyam Khurana. (cherry picked from commit 1b74f9b77a6fa1d7828986cb79d5b10942ff9141)
* bpo-32212: Updated logging documentation to make parameter names more ↵Vinay Sajip2017-12-091-236/+251
| | | | | consistent with source. (GH-4765) (GH-4767) (cherry picked from commit a9f8df646aac7fc94ced0aefd1ed2c8566d14d10)
* bpo-32208: update threading.Semaphore docs and add unit test (GH-4709) (#4750)Miss Islington (bot)2017-12-071-13/+13
| | | | | | | | | | * 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)
* Add a missing space in tkinter documentation. (GH-4692) (GH-4722)Miss Islington (bot)2017-12-051-1/+1
| | | (cherry picked from commit ae342cf7deebdcf2035f4064609b32b2102dadcf)
* [3.6] bpo-31589 : Build PDF using xelatex for better UTF8 support. (GH-3940) ↵Miss Islington (bot)2017-12-021-3/+2
| | | | | | (#4683) Also addresses doc build failures documented in bpo-32200. (cherry picked from commit 7324b5ce8e7c031a0a3832a6a8d7c639111ae0ff)
* Use raw strings in the re module examples. (GH-4616) (#4617)Miss Islington (bot)2017-11-281-4/+4
| | | (cherry picked from commit c615be5166ed338c052fa67fe781b9bfe0dfb78c)
* bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)Miss Islington (bot)2017-11-271-2/+2
| | | (cherry picked from commit c172fc5031a4035986bef0b2fcef906706d7abf3)
* bpo-29879: Update typing documentation. (GH-4573) (GH-4574)Miss Islington (bot)2017-11-261-0/+12
| | | | | - 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)
* [Doc] Update opcode for var-positional arguments (GH-4446) (#4457)Miss Islington (bot)2017-11-251-1/+1
| | | | `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)
* Improve Scheduler Objects documentation. (GH-4556) (GH-4557)Miss Islington (bot)2017-11-251-1/+1
| | | | Mention that the lower the priority number, the higher priority it represents. (cherry picked from commit 9d5ec808de2c1359f434cc2fa8378458e4339c96)
* bpo-30004: Fix the code example of using group in Regex Howto Docs (GH-4443) ↵Miss Islington (bot)2017-11-251-3/+3
| | | | | | (GH-4554) The provided code example was supposed to find repeated words, however it returned false results. (cherry picked from commit 610e5afdcbe3eca906ef32f4e0364e20e1b1ad23)
* Asyncion-Dev docs: Fix the reference to sys.excepthook (GH-4414) (GH-4549)Miss Islington (bot)2017-11-251-2/+2
| | | (cherry picked from commit f8802d80b32dbc64f9e0e72270695d24ac50e246)
* Improve the String tutorial docs (GH-4541) (GH-4545)Miss Islington (bot)2017-11-241-7/+7
| | | | | | 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)
* Extending Python Doc minor updates (GH-4518) (GH-4535)Miss Islington (bot)2017-11-242-4/+4
| | | | | Move footnote markers to be closer to the related terminology: before the end of the sentence, instead of after. (cherry picked from commit cdfe910e746e1d0fc43429b8cc3384a65a19b358)
* bpo-31325: Fix usage of namedtuple in RobotFileParser.parse() (GH-4529) (#4533)Miss Islington (bot)2017-11-231-4/+4
| | | (cherry picked from commit 3df02dbc8e197053105f9dffeae40b04ec66766e)
* bpo-30456: Clarify example for duplicates in second argument of isinstance ↵Berker Peksag2017-11-231-1/+2
| | | | | (GH-1699) (cherry picked from commit 26248ef58dcf49619930ffa2e050ffa687a88601)
* bpo-32105: add asyncio.BaseEventLoop.connect_accepted_socket versionadded to ↵Miss Islington (bot)2017-11-211-0/+3
| | | | | documentation. (GH-4491) (#4493) (cherry picked from commit 431665bf1971e66c51f59abf0693f700ff7919e8)
* Add comment and improve variable name in roundrobin() (GH-4486) (#4487)Miss Islington (bot)2017-11-211-4/+5
| | | (cherry picked from commit 337cbbace0a43f50fcd33ea4d3b7cb30733237db)
* bpo-32050: Fix -x option documentation (GH-4475) (#4477)Miss Islington (bot)2017-11-201-2/+0
| | | | | 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)
* Remove outdated .pyo reference from msilib docs (GH-4461)Miss Islington (bot)2017-11-191-1/+1
| | | | | | Since f299abdafa0f2b6eb7abae274861b19b361c96bc the remove_pyc() method no longer tries to remove .pyo files. (cherry picked from commit b56becb373f01c7e285f028bde640f0864d0240e)
* Document parameters of BaseServer.finish_request() (GH-4445)Miss Islington (bot)2017-11-191-1/+1
| | | (cherry picked from commit 7750bded92d908cbc422c57b97214f8eec615b0d)
* Fix typo in atexit documentation. (GH-4419) (GH-4425)Miss Islington (bot)2017-11-161-1/+1
| | | | `kargs` -> `kwargs` (cherry picked from commit d505a29a15a6f9315d8c46445b8a0cccfc2048b8)
* bpo-31948: Fix broken links in msilib docs (GH-4397). (GH-4398)Jesse-Bakker2017-11-151-32/+32
| | | (cherry picked from commit 3bda02222aa3783bf85fc3ff8bc042aefd9c4fd3)
* bpo-15606: Improve the re.VERBOSE documentation. (GH-4366) (#4394)Miss Islington (bot)2017-11-141-1/+2
| | | (cherry picked from commit b0b44b4b3337297007f5ef87220a75df204399f8)
* [3.6] bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160). ↵xdegaye2017-11-121-1/+2
| | | | | (#4379) (cherry picked from commit e0582a37c8d1776a2fd4968e9216f3a05f780276)
* The termios man page is in section 3 (GH-2450)Miss Islington (bot)2017-11-111-1/+1
| | | (cherry picked from commit e197a8538bae3c5f2727dfdc8672aa15d9429e51)
* Remove redundant 'exc = True' line (GH-4357)Miss Islington (bot)2017-11-111-1/+0
| | | | It can be removed after https://github.com/python/peps/commit/c28890fb421c906241da6da718f9eacc5a3109ee (cherry picked from commit 7c9da3e5ba060463b661da58ec3fe6beedce5566)