summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-32236: open() emits RuntimeWarning if buffering=1 for binary mode (GH-4842)Alexey Izbyshev2018-10-2011-28/+88
| | | | | | | | | If buffering=1 is specified for open() in binary mode, it is silently treated as buffering=-1 (i.e., the default buffer size). Coupled with the fact that line buffering is always supported in Python 2, such behavior caused several issues (e.g., bpo-10344, bpo-21332). Warn that line buffering is not supported if open() is called with binary mode and buffering=1.
* bpo-34536: Cleanup test_enum imports (GH-9979)Victor Stinner2018-10-191-5/+0
| | | sys and threading were imported twice.
* bpo-33594: Add deprecation info in inspect.py module (GH-7036)Matthias Bussonnier2018-10-192-7/+18
|
* bpo-33726, doc: Add short descriptions to PEP references in seealso (GH-7294)Andrés Delfino2018-10-192-2/+17
|
* bpo-33712: OrderedDict only creates od_fast_nodes cache if needed (GH-7349)Serhiy Storchaka2018-10-192-52/+20
|
* Elaborate datetime.timedelta docstring (GH-7458)Chris Barker2018-10-191-1/+5
|
* bpo-34070: open() only checks for isatty if buffering < 0 (GH-8187)David Herberth2018-10-192-3/+5
|
* queue doc: Clarify that the simple FIFO queue is SimpleQueue (GH-8372)Julien Palard2018-10-191-2/+2
|
* unittest.mock doc: Fix references to recursive seal of Mocks (GH-9028)Mario Corchero2018-10-192-9/+9
| | | | | The docs in `library/unittest.mock` have been updated to remove confusing terms about submock and be explicit about the behavior expected.
* bpo-25750: Add test on bad descriptor __get__() (GH-9084)jdemeyer2018-10-192-0/+44
|
* bpo-33073: Rework int.as_integer_ratio() implementation (GH-9303)Serhiy Storchaka2018-10-193-36/+9
| | | | | * Simplify the C code. * Simplify tests and make them more strict and robust. * Add references in the documentation.
* Use dict unpacking in functools.partial() docs (GH-9412)Sergey Fedoseev2018-10-191-2/+1
|
* Fix typos in comments (GH-9905)Quan Tian2018-10-193-4/+4
|
* bpo-20216: Correct docstrings of digest() methods in hashlib. (GH-9873)Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)2018-10-199-17/+17
|
* bpo-33947: dataclasses no longer can raise RecursionError in repr (GF9916)Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)2018-10-193-6/+118
| | | The reprlib code was copied here instead of importing reprlib. I'm not sure if we really need to avoid the import, but since I expect dataclasses to be more common that reprlib, it seems wise. Plus, the code is small.
* bpo-34741: Get rid of tp_getattro and tp_setattro in pyexpat.xmlparser. ↵Serhiy Storchaka2018-10-192-345/+269
| | | | | | (GH-9422) Use tp_members and tp_getset instead.
* bpo-32912: Replace a DeprecationWarning with a SyntaxWarning (GH-9652)Serhiy Storchaka2018-10-196-12/+23
| | | | for invalid escape sequences in string and bytes literals.
* bpo-34866: Adding max_num_fields to cgi.FieldStorage (GH-9660)matthewbelisle-wf2018-10-195-12/+102
| | | | Adding `max_num_fields` to `cgi.FieldStorage` to make DOS attacks harder by limiting the number of `MiniFieldStorage` objects created by `FieldStorage`.
* bpo-35013: Add more type checks for children of Element. (GH-9944)Serhiy Storchaka2018-10-193-50/+71
| | | | | | It is now guarantied that children of xml.etree.ElementTree.Element are Elements (at least in C implementation). Previously methods __setitem__(), __setstate__() and __deepcopy__() could be used for adding non-Element children.
* Fix several reference counting bugs in pyexpat.c. (GH-9955)Zackery Spytz2018-10-191-4/+8
|
* bpo-31522: mailbox.get_string: pass `from_` parameter to `get_bytes` (#9857)Cheryl Sabella2018-10-193-1/+30
| | | This allows *from_* to be successfully set to a non-default value when calling mbox.get_string.
* bpo-26441: Remove documentation for deleted to_splittable and ↵Braden Groom2018-10-191-33/+0
| | | | from_splittable methods (#9865)
* Update opcode.h header comment to mention the source data file (GH-9935)Shivank982018-10-182-3/+4
| | | This is intended to help code explorers find out more about what's defined there.
* bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760)Juliette Monsel2018-10-183-5/+14
|
* Updated documentation on logging.debug(). (GH-9946)Vinay Sajip2018-10-181-2/+2
|
* bpo-34765: Update the install-sh file (GH-9592)stratakis2018-10-182-219/+445
| | | | | Update the outdated install-sh file to the latest revision from automake v1.16.1
* bpo-35008: Fix possible leaks in Element.__setstate__(). (GH-9924)Serhiy Storchaka2018-10-183-31/+83
| | | | | C implementation of xml.etree.ElementTree.Element.__setstate__() leaked references to children when called for already initialized element.
* bpo-35011: Restore use of pyexpatns.h in libexpat (GH-9939)Gregory P. Smith2018-10-182-0/+8
| | | | | | | | Restores the use of pyexpatns.h to isolate our embedded copy of the expat C library so that its symbols do not conflict at link or dynamic loading time with an embedding application or other extension modules with their own version of libexpat. https://github.com/python/cpython/commit/5dc3f23b5fb0b510926012cb3732dae63cddea60#diff-3afaf7274c90ce1b7405f75ad825f545 inadvertently removed it when upgrading expat.
* bpo-24658: Fix read/write greater than 2 GiB on macOS (GH-1705)Stéphane Wirtel2018-10-175-26/+33
| | | On macOS, fix reading from and writing into a file with a size larger than 2 GiB.
* Add missing comma to wsgiref doc (GH-9932)Cheryl Sabella2018-10-171-1/+1
|
* bpo-23420: Verify the value of '-s' when execute the CLI of cProfile (GH-9925)Stéphane Wirtel2018-10-173-2/+12
| | | | | | Verify the value for the parameter '-s' of the cProfile CLI. Patch by Robert Kuska. Co-authored-by: Robert Kuska <rkuska@gmail.com>
* Doc: Fix is_prime (GH-9909)Julien Palard2018-10-171-0/+4
|
* In email docs, correct spelling of foregoing (#9856)Cheryl Sabella2018-10-161-1/+1
|
* In email.parser in message_from_bytes, update `strict` to `policy` (#9854)Cheryl Sabella2018-10-161-1/+1
| | | 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.
* bpo-34997: Fix test_logging.ConfigDictTest.test_out_of_order (GH-9913)Pablo Galindo2018-10-161-1/+2
| | | | | | | | When runnint test_logging with --huntrleaks after commit 18fb1fb943b7dbd7f8a76017ee2a67ef13effb85, test_out_of_order fails to raise ValueError due to the fact that the new test test_out_of_order_with_dollar_style mutates the out_of_order dictionary. Even if the test copies the dictionary first, the mutation is done in a very deep level so the original one is also affected.
* Added CLI starter example to logging cookbook. (GH-9910)Vinay Sajip2018-10-161-0/+161
|
* bpo-34783: Fix test_nonexisting_script() (GH-9896)Victor Stinner2018-10-151-8/+1
| | | | | | Fix test_cmd_line_script.test_nonexisting_script(): the test must not rely on sys.executable, since main.c uses config->program which can be different than sys.executable in many cases (for example, on macOS when using the framework).
* bpo-23554: Change echo server example class name from ↵Braden Groom2018-10-151-2/+2
| | | | EchoServerClientProtocol to EchoServerProtocol (GH-9859)
* bpo-34989: python-gdb.py: fix current_line_num() (GH-9889)Victor Stinner2018-10-152-13/+35
| | | | | | | | | | | | | | python-gdb.py now handles errors on computing the line number of a Python frame. Changes: * PyFrameObjectPtr.current_line_num() now catchs any Exception on calling addr2line(), instead of failing with a surprising "<class 'TypeError'> 'FakeRepr' object is not subscriptable" error. * All callers of current_line_num() now handle current_line_num() returning None. * PyFrameObjectPtr.current_line() now also catchs IndexError on getting a line from the Python source file.
* Stop using deprecated logging API in Sphinx suspicious checker (GH-9875)Pablo Galindo2018-10-151-4/+6
|
* fix dangling keyfunc examples in documentation of heapq and sorted (#1432)Wolfgang Maier2018-10-152-7/+7
| | | | | | * fix dangling mention of key=str.lower in heapq doc * Fix dangling mention of keyfunc example for sorted()
* bpo-34844: logging.Formatter enhancement - Ensure style and format string ↵BNMetrics2018-10-156-22/+403
| | | | matches in logging.Formatter (GH-9703)
* bpo-34974: Do not replace unexpected errors in bytes() and bytearray(). ↵Serhiy Storchaka2018-10-144-5/+24
| | | | | | | (GH-9852) bytes and bytearray constructors converted unexpected exceptions (e.g. MemoryError and KeyboardInterrupt) to TypeError.
* bpo-34939: Allow annotated global names in module namespace (GH-9844)Pablo Galindo2018-10-143-0/+17
| | | | | | | Allow annotated global names in the module namespace after the symbol is declared as global. Previously, only symbols annotated before they are declared as global (i.e. inside a function) were allowed. This change allows symbols to be declared as global before the annotation happens in the global scope.
* bpo-34521: Add NEWS entry for changes in GH-9613 (GH-9850)Pablo Galindo2018-10-141-0/+3
| | | | * Add News entry for the change in multiprocessing.reduction.recvfds made in GH-9613.
* Update compound_stmts.rst (#9864)Andrés Delfino2018-10-141-4/+4
|
* bpo-34941: Fix searching Element subclasses. (GH-9766)Serhiy Storchaka2018-10-143-12/+31
| | | | Methods find(), findtext() and findall() of xml.etree.ElementTree.Element were not able to find chldren which are instances of Element subclasses.
* bpo-33656: Move pyshell ctypes import inside try block. (GH-9858)Terry Jan Reedy2018-10-141-3/+3
| | | | A Windows build with _tkinter, tkinter, and idlelib but without ctypes is unlikely but apparently possible.
* bpo-34970: Protect tasks weak set manipulation in asyncio.all_tasks() (GH-9837)Andrew Svetlov2018-10-132-2/+7
| | | https://bugs.python.org/issue34970
* Add new tests for bytes and bytearray constructors. (GH-9843)Serhiy Storchaka2018-10-131-3/+43
| | | | Covered all special cases: bytes, tuple, list, differend kinds of iterables and iterators.