summaryrefslogtreecommitdiff
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-38781: Clear buffer in MemoryHandler flush (GH-17132)Daniel Andersson2019-11-131-2/+2
| | | | | | | | This makes it easier to use a custom buffer when subclassing MemoryHandler (by avoiding the explicity empty list literal assignment in the flush method). For example, collection.deque can now be used without any modifications to MemoryHandler.flush. The same applies to BufferingHandler.
* bpo-4630: Add cursor no-blink option for IDLE (GH-16960)Zackery Spytz2019-11-136-1/+45
| | | This immediately toggles shell, editor, and output windows, but does not affect other input widgets.
* closes bpo-27805: Ignore ESPIPE in initializing seek of append-mode files. ↵Benjamin Peterson2019-11-122-1/+16
| | | | | (GH-17112) This change, which follows the behavior of C stdio's fdopen and Python 2's file object, allows pipes to be opened in append mode.
* bpo-38723: Pdb._runscript should use io.open_code() instead of open() (GH-17127)jsnklln2019-11-121-1/+2
| | | | Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
* bpo-38738: Fix formatting of True and False. (GH-17083)Serhiy Storchaka2019-11-122-4/+4
| | | | | | | | | * "Return true/false" is replaced with "Return ``True``/``False``" if the function actually returns a bool. * Fixed formatting of some True and False literals (now in monospace). * Replaced "True/False" with "true/false" if it can be not only bool. * Replaced some 1/0 with True/False if it corresponds the code. * "Returns <bool>" is replaced with "Return <bool>".
* bpo-16576: Add checks for bitfields passed by value to functions. (GH-17097)Vinay Sajip2019-11-121-0/+81
|
* bpo-26353: IDLE adds an unneeded newline when saving a shell window (GH-17103)Zackery Spytz2019-11-123-15/+31
|
* bpo-38385: Fix iterator/iterable terminology in statistics docs (GH-17111)Raymond Hettinger2019-11-111-1/+1
|
* bpo-38565: add new cache_parameters method for lru_cache (GH-16916)Manjusaka2019-11-112-0/+13
|
* bpo-38438: Simplify argparse "star nargs" usage. (GH-17106)Brandt Bucher2019-11-113-11/+15
|
* bpo-38761: Register WeakSet as a MutableSet (GH-17104)Raymond Hettinger2019-11-102-0/+8
|
* bpo-38635: Simplify decoding the ZIP64 extra field and make it tolerant to ↵Serhiy Storchaka2019-11-091-37/+16
| | | | extra data. (GH-16988)
* bpo-22367: Add tests for fcntl.lockf(). (GH-17010)Dong-hee Na2019-11-071-1/+28
|
* update a deprecated assert in logging tests (GH-17079)l0rb2019-11-071-1/+1
|
* bpo-38716: stop rotating handlers from setting inherited namer and rotator ↵l0rb2019-11-062-2/+22
| | | | to None (GH-17072)
* bpo-38692: Add os.pidfd_open. (GH-17063)Benjamin Peterson2019-11-051-0/+9
|
* bpo-37645: add new function _PyObject_FunctionStr() (GH-14890)Jeroen Demeyer2019-11-054-30/+30
| | | | | | | | | | | | Additional note: the `method_check_args` function in `Objects/descrobject.c` is written in such a way that it applies to all kinds of descriptors. In particular, a future re-implementation of `wrapper_descriptor` could use that code. CC @vstinner @encukou https://bugs.python.org/issue37645 Automerge-Triggered-By: @encukou
* bpo-35381 Remove all static state from posixmodule (GH-15892)Eddie Elizondo2019-11-051-0/+30
| | | | | | | | | | | | | | After #9665, this moves the remaining types in posixmodule to be heap-allocated to make it compatible with PEP384 as well as modifying all the type accessors to fully make the type opaque. The original PR that got messed up a rebase: https://github.com/python/cpython/pull/10854. All the issues in that commit have now been addressed since https://github.com/python/cpython/pull/11661 got committed. This change also removes any state from the data segment and onto the module state itself. https://bugs.python.org/issue35381 Automerge-Triggered-By: @encukou
* Fix a typo in wave module docstring (GH-17009)Michael Haas2019-11-041-1/+1
| | | s/pathing/patching/
* bpo-38422: Clarify docstrings of pathlib suffix(es) (GH-16679)Ram Rachum2019-11-021-2/+10
| | | | | | | | | | Whenever I use `path.suffix` I have to check again whether it includes the dot or not. I decided to add it to the docstring so I won't have to keep checking. https://bugs.python.org/issue38422 Automerge-Triggered-By: @pitrou
* Slightly improve plistlib test coverage. (GH-17025)Jon Janzen2019-11-011-5/+21
| | | | | | | | | | | | * Add missing test class (mistake in GH-4455) * Increase coverage with 4 more test cases * Rename neg_uid to huge_uid in test_modified_uid_huge * Replace test_main() with unittest.main() * Update plistlib docs
* Add docstring for shlex.split (GH-16740)MaT1g3R2019-10-311-0/+1
|
* bpo-38312: Add curses.{get,set}_escdelay and curses.{get,set}_tabsize. ↵Anthony Sottile2019-10-311-0/+4
| | | | (GH-16938)
* bpo-38586: setting logging.Handler .name property in fileConfig (GH-16918)Lucas Cimon2019-10-312-0/+25
|
* bpo-16575: Add checks for unions passed by value to functions. (GH-16799)Vinay Sajip2019-10-311-0/+80
|
* bpo-38614: Increase asyncio test_communicate() timeout (GH-16995)Victor Stinner2019-10-301-1/+1
| | | | Fix test_communicate() of test_asyncio.test_subprocess: use support.LONG_TIMEOUT (5 minutes), instead of 1 minute.
* bpo-38640: Allow break and continue in always false while loops (GH-16992)Pablo Galindo2019-10-301-0/+18
|
* bpo-38614: Add timeout constants to test.support (GH-16964)Victor Stinner2019-10-304-26/+80
| | | | | | | | Add timeout constants to test.support: * LOOPBACK_TIMEOUT * INTERNET_TIMEOUT * SHORT_TIMEOUT * LONG_TIMEOUT
* bpo-28029: Make "".replace("", s, n) returning s for any n != 0. (GH-16981)Serhiy Storchaka2019-10-301-0/+1
|
* bpo-36993: Improve error reporting for zipfiles with bad zip64 extra data. ↵Daniel Hillier2019-10-292-0/+234
| | | | (GH-14656)
* bpo-38626: Add comment explaining why __lt__ is used. (GH-16978)Raymond Hettinger2019-10-281-0/+2
| | | https://bugs.python.org/issue38626
* Remove code commented for more than 10 years (GH-16965)Victor Stinner2019-10-281-79/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test_urllib commented since 2007: commit d9880d07fc032884e8bd5cf3ac636d3a3778d5f7 Author: Facundo Batista <facundobatista@gmail.com> Date: Fri May 25 04:20:22 2007 +0000 Commenting out the tests until find out who can test them in one of the problematic enviroments. pynche code commented since 1998 and 2001: commit ef30092207e684bd3e74fe3d6172b97327a0a089 Author: Barry Warsaw <barry@python.org> Date: Tue Dec 15 01:04:38 1998 +0000 Added most of the mechanism to change the strips from color variations to color constants (i.e. red constant, green constant, blue constant). But I haven't hooked this up yet because the UI gets more crowded and the arrows don't reflect the correct values. Added "Go to Black" and "Go to White" buttons. commit 741eae0b3129c123ed4319d8d9e5b877b09aefa8 Author: Barry Warsaw <barry@python.org> Date: Wed Apr 18 03:51:55 2001 +0000 StripWidget.__init__(), update_yourself(): Removed some unused local variables reported by PyChecker. __togglegentype(): PyChecker accurately reported that the variable __gentypevar was unused -- actually this whole method is currently unused so comment it out.
* bpo-37330: open() no longer accept 'U' in file mode (GH-16959)Victor Stinner2019-10-286-52/+32
| | | | | open(), io.open(), codecs.open() and fileinput.FileInput no longer accept "U" ("universal newline") in the file mode. This flag was deprecated since Python 3.3.
* bpo-38334: Fix seeking backward on an encrypted zipfile.ZipExtFile. (GH-16937)Serhiy Storchaka2019-10-272-26/+69
| | | Test by Daniel Hillier.
* bpo-37309: First idlelib/NEWS.txt for 3.9.0 (GH-16947)Terry Jan Reedy2019-10-271-1/+9
|
* bpo-34162: Last idlelib/NEWS.txt items for 3.8.0. (GH-16943)Terry Jan Reedy2019-10-261-0/+9
|
* bpo-38598: Do not try to compile IDLE shell or output windows (GH-16939)Terry Jan Reedy2019-10-261-0/+7
|
* bpo-38535: Fix positions for AST nodes for calls without arguments in ↵Serhiy Storchaka2019-10-261-6/+6
| | | | decorators. (GH-16861)
* bpo-33348: parse expressions after * and ** in lib2to3 (GH-6586)Zsolt Dollenstein2019-10-235-11/+12
| | | | | | | | | | These are valid even in python 2.7 https://bugs.python.org/issue33348 Automerge-Triggered-By: @gpshead
* bpo-30618: add readlink to pathlib.Path (GH-8285)Girts2019-10-232-0/+19
| | | | | | | | | | | This adds a "readlink" method to pathlib.Path objects that calls through to os.readlink. https://bugs.python.org/issue30618 Automerge-Triggered-By: @gpshead
* bpo-34679: ProactorEventLoop only uses set_wakeup_fd() in main thread (GH-16901)Victor Stinner2019-10-232-3/+5
| | | | bpo-34679, bpo-38563: asyncio.ProactorEventLoop.close() now only calls signal.set_wakeup_fd() in the main thread.
* bpo-31202: Preserve case of literal parts in Path.glob() on Windows. (GH-16860)Serhiy Storchaka2019-10-212-18/+24
|
* bpo-38493: Add os.CLD_KILLED and os.CLD_STOPPED. (GH-16821)Dong-hee Na2019-10-211-0/+10
|
* bpo-27961: Replace PY_LONG_LONG with long long. (GH-15386)Sergey Fedoseev2019-10-211-2/+2
|
* bpo-38208: Simplify string.Template by using __init_subclass__(). (GH-16256)Serhiy Storchaka2019-10-211-24/+22
|
* bpo-36321: Fix misspelled attribute name in namedtuple() (GH-16858)Raymond Hettinger2019-10-201-2/+0
|
* bpo-38525: Fix a segmentation fault when using reverse iterators of empty ↵Dong-hee Na2019-10-191-0/+25
| | | | | dict (GH-16846) The reverse iterator for empty dictionaries was not handling correctly shared-key dictionaries.
* bpo-36876: Re-organize the c-analyzer tool code. (gh-16841)Eric Snow2019-10-1820-472/+345
| | | | | This is partly a cleanup of the code. It also is preparation for getting the variables from the source (cross-platform) rather than from the symbols. The change only touches the tool (and its tests).
* bpo-38521: Fix error in NormalDist.__eq__() (GH-16840)Raymond Hettinger2019-10-182-1/+5
|
* bpo-38502: regrtest uses process groups if available (GH-16829)Victor Stinner2019-10-181-7/+22
| | | | | test.regrtest now uses process groups in the multiprocessing mode (-jN command line option) if process groups are available: if os.setsid() and os.killpg() functions are available.