summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-37337: Add _PyObject_VectorcallMethod() (GH-14228)Jeroen Demeyer2019-06-287-33/+105
|
* bpo-37432: Doc: Fix signature of PyObject_Del() (GH-14430)Hai Shi2019-06-281-1/+1
|
* closes bpo-37437: Update vendorized expat to 2.2.7. (GH-14436)Benjamin Peterson2019-06-287-32/+22
|
* bpo-37390: Add audit event table to documentations (GH-14406)Steve Dower2019-06-2734-113/+266
| | | Also updates some (unreleased) event names to be consistent with the others.
* bpo-30345: travis: use -Og with --with-pydebug (GH-14423)Inada Naoki2019-06-271-1/+2
|
* closes bpo-37420: Handle errors during iteration in os.sched_setaffinity. ↵Brandt Bucher2019-06-273-0/+6
| | | | (GH-14414)
* Replace deprecation warning with RuntimeError (GH-14397)Andrew Svetlov2019-06-272-4/+8
|
* bpo-33926: enable GDB tests on Travis CI (GH-14395)Jeroen Demeyer2019-06-271-2/+2
|
* bpo-35389: platform.platform() calls libc_ver() without executable (GH-14418)Victor Stinner2019-06-271-1/+1
| | | | | | | When libc_ver() is called with an executable, the os.confstr('CS_GNU_LIBC_VERSION') fast-path cannot be taken. Modify platform.platform() to call libc_ver() without executable, instead of calling libc_ver(sys.executable), since sys.executable is already the default value.
* bpo-37421: Fix test_shutil: don't leak temporary files (GH-14416)Victor Stinner2019-06-262-2/+4
| | | | | | | * Fix typo in supports_file2file_sendfile(); ensure that dst is removed * Fix test_copytree_custom_copy_function(): remove dst tree. Use support.rmtree() rather than shutil.rmtree() to remove temporary directories: support tries harder.
* bpo-37376: pprint support for SimpleNamespace (GH-14318)Carl Bordum Hansen2019-06-266-0/+98
| | | https://bugs.python.org/issue37376
* bpo-37419: Fix possible segfaults when passing large sequences to ↵Zackery Spytz2019-06-261-1/+1
| | | | | os.posix_spawn() (GH-14409) Use Py_ssize_t instead of int for i.
* bpo-29412: Fix indexError when parsing a header value ending unexpectedly ↵Abhilash Raj2019-06-263-0/+22
| | | | | | | (GH-14387) * patched string index out of range error in get_word function of _header_value_parser.py and created tests in test__header_value_parser.py for CFWS. * Raise HeaderParseError instead of continuing when parsing a word.
* bpo-37417: Fix error handling in bytearray.extend. (GH-14407)Brandt Bucher2019-06-263-0/+11
|
* bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394)Victor Stinner2019-06-262-24/+56
| | | | | | | | Fix test_wsgiref.testEnviron() to no longer depend on the environment variables (don't fail if "X" variable is set). testEnviron() now overrides os.environ to get a deterministic environment. Test full TestHandler.environ content: not only a few selected variables.
* bpo-37163: Make the obj argument of dataclasses.replace() a positional-only. ↵Serhiy Storchaka2019-06-263-2/+3
| | | | (GH-14390)
* bpo-37414: Remove sys.callstats() (GH-14398)Victor Stinner2019-06-264-77/+9
| | | | | Remove the undocumented sys.callstats() function. Since Python 3.7, it was deprecated and always returned None. It required a special build option CALL_PROFILE which was already removed in Python 3.7.
* Improve Windows commands in tutorial (GH-14379)Steve Dower2019-06-262-12/+10
|
* bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396)Victor Stinner2019-06-265-59/+88
| | | | | | | | | The os.getcwdb() function now uses the UTF-8 encoding on Windows, rather than the ANSI code page: see PEP 529 for the rationale. The function is no longer deprecated on Windows. os.getcwd() and os.getcwdb() now detect integer overflow on memory allocations. On Unix, these functions properly report MemoryError on memory allocation failure.
* bpo-37406: sqlite3 raises TypeError for wrong operation type (GH-14386)Victor Stinner2019-06-266-16/+11
| | | | | The sqlite3 module now raises TypeError, rather than ValueError, if operation argument type is not str: execute(), executemany() and calling a connection.
* bpo-37388: Add PyUnicode_Decode(str, 0) fast-path (GH-14385)Victor Stinner2019-06-251-0/+4
| | | Add a fast-path to PyUnicode_Decode() for size equals to 0.
* bpo-37388: Development mode check encoding and errors (GH-14341)Victor Stinner2019-06-2510-6/+315
| | | | | | | | | In development mode and in debug build, encoding and errors arguments are now checked on string encoding and decoding operations. Examples: open(), str.encode() and bytes.decode(). By default, for best performances, the errors argument is only checked at the first encoding/decoding error, and the encoding argument is sometimes ignored for empty strings.
* bpo-37244: Fix test_multiprocessing.test_resource_tracker() (GH-14288)Pierre Glaser2019-06-251-6/+15
| | | Increase robustness of test_resource_tracker(): retry for 60 seconds.
* bpo-36888, test_multiprocessing: Increase test_parent_process timeout (GH-14286)Pierre Glaser2019-06-251-3/+3
|
* bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. (GH-14119)Abhilash Raj2019-06-253-1/+21
| | | | | | | * bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. When certain malformed messages have content-type set to 'mulitpart/*' but still have a single part body, iter_attachments can raise AttributeError. This patch fixes it by returning a None value instead when the body is single part.
* bpo-37400: Fix test_os.test_chown() (GH-14374)Victor Stinner2019-06-252-11/+10
| | | | Use os.getgroups() rather than grp.getgrall() to get groups. Rename also the test to test_chown_gid().
* bpo-20443: _PyConfig_Read() gets the absolute path of run_filename (GH-14053)Victor Stinner2019-06-2510-42/+211
| | | | | | | | | | | | Python now gets the absolute path of the script filename specified on the command line (ex: "python3 script.py"): the __file__ attribute of the __main__ module, sys.argv[0] and sys.path[0] become an absolute path, rather than a relative path. * Add _Py_isabs() and _Py_abspath() functions. * _PyConfig_Read() now tries to get the absolute path of run_filename, but keeps the relative path if _Py_abspath() fails. * Reimplement os._getfullpathname() using _Py_abspath(). * Use _Py_isabs() in getpath.c.
* bpo-37392: Update the dir(sys) in module tutorial (GH-14365)Xtreak2019-06-251-16/+20
|
* bpo-37400: pythoninfo logs getpwuid and getgrouplist (GH-14373)Victor Stinner2019-06-251-30/+65
| | | | test.pythoninfo now also logs pwd.getpwuid(os.getuid()) and os.getgrouplist(). Extract also os.getrandom() test to run it first.
* Fix minor spelling error in What's new for Python 3.8 (GH-14371)Pablo Galindo2019-06-251-1/+1
|
* bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304)Serhiy Storchaka2019-06-254-6/+36
| | | | | | | * The UTF-8 incremental decoders fails now fast if encounter a sequence that can't be handled by the error handler. * The UTF-16 incremental decoders with the surrogatepass error handler decodes now a lone low surrogate with final=False.
* bpo-37393: Fix deprecation warnings in test_ntpath. (GH-14357)Zackery Spytz2019-06-251-2/+0
| | | | eval() was being called an extra time without a filter for deprecation warnings.
* bpo-36546: Mark first argument as position only (GH-14363)Raymond Hettinger2019-06-252-1/+5
|
* bpo-37394: Fix pure Python implementation of the queue module (GH-14351)Pablo Galindo2019-06-253-51/+111
|
* bpo-35224: Add What's new entry for evaluation order in dict comprehensions ↵Pablo Galindo2019-06-251-0/+8
| | | | (GH-14319)
* bpo-37392: Remove sys.setcheckinterval() (GH-14355)Victor Stinner2019-06-259-148/+14
| | | | | | | Remove sys.getcheckinterval() and sys.setcheckinterval() functions. They were deprecated since Python 3.2. Use sys.getswitchinterval() and sys.setswitchinterval() instead. Remove also check_interval field of the PyInterpreterState structure.
* bpo-4963: Fix for initialization and non-deterministic behavior issues in ↵David K. Hess2019-06-244-120/+188
| | | | mimetypes (GH-3062)
* bpo-25361: Enable SSE2 instructions for Windows 32-bit build (GH-12438)animalize2019-06-242-1/+1
|
* bpo-35360: Update Windows builds to use SQLite 3.28.0 (GH-14179)animalize2019-06-244-3/+4
|
* bpo-36889: Document asyncio Stream and StreamServer (GH-14203)Xtreak2019-06-243-65/+280
|
* bpo-32627: Fix compile error when conflicting `_uuid` headers included ↵ziheng2019-06-242-3/+7
| | | | (GH-11751)
* Get rid of exception traceback printing in asyncio tests (GH-14343)Andrew Svetlov2019-06-241-2/+2
|
* bpo-37363: Add audit events for a range of modules (GH-14301)Steve Dower2019-06-2437-18/+165
|
* bpo-37359: Fix regrtest --cleanup (GH-14336)Victor Stinner2019-06-241-1/+1
|
* bpo-36974: inherit tp_vectorcall_offset unconditionally (GH-13858)Jeroen Demeyer2019-06-244-7/+18
|
* bpo-37359: Add --cleanup option to python3 -m test (GH-14332)Victor Stinner2019-06-245-14/+65
| | | | | * regrtest: Add --cleanup option to remove "test_python_*" directories of previous failed test jobs. * Add "make cleantest" to run "python3 -m test --cleanup".
* bpo-37345: Add formal UDPLITE support (GH-14258)Gabe Appleton2019-06-244-0/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At the moment you can definitely use UDPLITE sockets on Linux systems, but it would be good if this support were formalized such that you can detect support at runtime easily. At the moment, to make and use a UDPLITE socket requires something like the following code: ``` >>> import socket >>> a = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 136) >>> b = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 136) >>> a.bind(('localhost', 44444)) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.setsockopt(136, 10, 16) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.setsockopt(136, 10, 32) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.setsockopt(136, 10, 64) >>> b.sendto(b'test'*256, ('localhost', 44444)) ``` If you look at this through Wireshark, you can see that the packets are different in that the checksums and checksum coverages change. With the pull request that I am submitting momentarily, you could do the following code instead: ``` >>> import socket >>> a = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDPLITE) >>> b = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDPLITE) >>> a.bind(('localhost', 44444)) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.set_send_checksum_coverage(16) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.set_send_checksum_coverage(32) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.set_send_checksum_coverage(64) >>> b.sendto(b'test'*256, ('localhost', 44444)) ``` One can also detect support for UDPLITE just by checking ``` >>> hasattr(socket, 'IPPROTO_UDPLITE') ``` https://bugs.python.org/issue37345
* bpo-37348: optimize decoding ASCII string (GH-14283)Inada Naoki2019-06-242-34/+53
| | | `_PyUnicode_Writer` is a relatively complex structure. Initializing it is significant overhead when decoding short ASCII string.
* bpo-35224: Bump the pyc magic number by 1 instead of by 10 in last ↵Pablo Galindo2019-06-232-3/+3
| | | | modification (GH-14320)
* bpo-35224: Bump the pyc magic number after the change in MAP_ADD (GH-14313)Pablo Galindo2019-06-222-122/+124
|