summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-40958: Avoid buffer overflow in the parser when indexing the current ↵Pablo Galindo2020-06-163-13/+13
| | | | line (GH-20875)
* bpo-40989: Make _PyTraceMalloc_NewReference() internal (GH-20915)Victor Stinner2020-06-162-4/+6
| | | | Make the _PyTraceMalloc_NewReference() function fully internal: remove it from the public C API and don't export it anymore.
* bpo-40993: Don't run Travis CI coverage on PRs (GH-20916)Victor Stinner2020-06-161-0/+12
| | | | C and Python coverage jobs of Travis CI are no longer run on pull requests, only on branches like master.
* Remove old comment in string_parser.c (GH-20906)Pablo Galindo2020-06-161-5/+0
|
* bpo-19569: Add a macro to suppress deprecation warnings (GH-9004)Zackery Spytz2020-06-162-0/+22
| | | Co-authored-by: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
* bpo-40985: Show correct SyntaxError text when last line has a LINECONT ↵Lysandros Nikolaou2020-06-163-4/+13
| | | | | | | | (GH-20888) When a file ends with a line that contains a line continuation character the text of the emitted SyntaxError is empty, contrary to the old parser, where the error text contained the text of the last line.
* closes bpo-28557: error message for bad raw readinto (GH-7496)David Szotten2020-06-154-0/+27
| | | Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-40989: PyObject_INIT() becomes an alias to PyObject_Init() (GH-20901)Victor Stinner2020-06-1517-117/+113
| | | | | | | | | | | | | | The PyObject_INIT() and PyObject_INIT_VAR() macros become aliases to, respectively, PyObject_Init() and PyObject_InitVar() functions. Rename _PyObject_INIT() and _PyObject_INIT_VAR() static inline functions to, respectively, _PyObject_Init() and _PyObject_InitVar(), and move them to pycore_object.h. Remove their return value: their return type becomes void. The _datetime module is now built with the Py_BUILD_CORE_MODULE macro defined. Remove an outdated comment on _Py_tracemalloc_config.
* bpo-36020: Require vsnprintf() to build Python (GH-20899)Victor Stinner2020-06-154-44/+14
| | | | | | | | The C99 functions snprintf() and vsnprintf() are now required to build Python. PyOS_snprintf() and PyOS_vsnprintf() no longer call Py_FatalError(). Previously, they called Py_FatalError() on a buffer overflow on platforms which don't provide vsnprintf().
* bpo-36020: Remove snprintf macro in pyerrors.h (GH-20889)Victor Stinner2020-06-156-31/+26
| | | | | | | | | | On Windows, #include "pyerrors.h" no longer defines "snprintf" and "vsnprintf" macros. PyOS_snprintf() and PyOS_vsnprintf() should be used to get portable behavior. Replace snprintf() calls with PyOS_snprintf() and replace vsnprintf() calls with PyOS_vsnprintf().
* bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491)Xavier Fernandez2020-06-156-7/+8
|
* bpo-40448: ensurepip: Do not use cache (GH-19812)Krzysztof Konopko2020-06-154-9/+12
| | | | | | | | | | | | | | | ensurepip optionally installs or upgrades 'pip' and 'setuptools' using the version of those modules bundled with Python. The internal PIP installation routine by default temporarily uses its cache, if it exists. This is undesirable as Python builds and installations may be independent of the user running the build, whilst PIP cache location is dependent on the user's environment and outside of the build environment. At the same time, there's no value in using the cache while installing bundled modules. This change disables PIP caching when used in ensurepip.
* bpo-1635741: Port _dbm module to multiphase initialization (GH-20848)Dong-hee Na2020-06-153-147/+201
|
* bpo-34226: fix cgi.parse_multipart without content_length (GH-8530)roger2020-06-153-2/+21
| | | | | | | | | In Python 3.7 the behavior of parse_multipart changed requiring CONTENT-LENGTH header, this fix remove this header as required and fix FieldStorage read_lines_to_outerboundary, by not using limit when it's negative, since by default it's -1 if not content-length and keeps substracting what was read from the file object. Also added a test case for this problem.
* bpo-40910: PyConfig_Clear() clears _orig_argv (GH-20886)Victor Stinner2020-06-151-0/+2
| | | bpo-40910, bpo-40953: PyConfig_Clear() clears _orig_argv.
* Improve readability and style in parser files (GH-20884)Pablo Galindo2020-06-152-119/+160
|
* bpo-29782: Consolidate _Py_Bit_Length() (GH-20739)Niklas Fiekas2020-06-156-36/+100
| | | | | | | | | | In GH-2866, _Py_Bit_Length() was added to pymath.h for lack of a better location. GH-20518 added a more appropriate header file for bit utilities. It also shows how to properly use intrinsics. This allows reconsidering bpo-29782. * Move the function to the new header. * Changed return type to match __builtin_clzl() and reviewed usage. * Use intrinsics where available. * Pick a fallback implementation suitable for inlining.
* bpo-40836: Add docstring to logging.fatal() and logging.Logger.fatal() ↵Rémi Lapeyre2020-06-151-2/+10
| | | | | (GH-20563) Automerge-Triggered-By: @vsajip
* Fix trailing whitespace in keyword.py (GH-20881)Pablo Galindo2020-06-151-2/+2
|
* Include soft keywords in keyword.py (GH-20877)Pablo Galindo2020-06-153-5/+19
|
* bpo-40890: Fix compiler warning in dictobject.c (GH-20876)Pablo Galindo2020-06-151-3/+2
|
* Fixes dead links to Django's logging config docs (GH-20823)kevin seelbach2020-06-141-2/+2
| | | | | Fixes two outdated URLs to point at the current "stable" version of Django's logging documentation. Automerge-Triggered-By: @vsajip
* bpo-30064: Fix slow asyncio sock test (GH-20868)Fantix King2020-06-141-14/+20
| | | | | | | | | | | | | Using a log2n way to fill a much smaller buffer, and receiving in a cleaner way with EOF. The failing test was reproducible using the following command thanks to @aeros : ```bash ./python -m test test_asyncio.test_sock_lowlevel --match test_sock_client_racing -j100 -F -v ``` According to test results, we may still need to bump the timeout: https://github.com/python/cpython/blob/5aad027db9618f22f6fa2274e05dd50f928d2ed7/Lib/test/test_asyncio/test_sock_lowlevel.py#L256-L257
* Some reformatting (suggested by Black) and minor factoring. (GH-20865)Raymond Hettinger2020-06-141-31/+29
|
* bpo-40855: Fix ignored mu and xbar parameters (GH-20835)Raymond Hettinger2020-06-133-2/+18
|
* bpo-37674: Tweak imp module deprecation note in the docs (GH-20480)Zackery Spytz2020-06-131-1/+1
|
* Minor code clean-ups (GH-20838)Raymond Hettinger2020-06-131-89/+110
|
* bpo-40957: Fix refleak in _Py_fopen_obj() (GH-20827)Christian Heimes2020-06-132-0/+2
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-40834: Fix truncate when sending str object with channel (GH-20555)An Long2020-06-133-1/+5
|
* Remove redundant var in PyErr_NewException() (GH-20850)Hai Shi2020-06-131-2/+0
|
* bpo-37556 Extend help to include latest overrides (GH-14701)Steve (Gadget) Barnes2020-06-122-1/+11
| | | | | Modify the help in cpython/PC/launcher.c to show users that "latest" can be overridden by shebang, PY_PYTHON[n] or py.ini files. Also show that script [args] is optional by enclosing in square brackets. Automerge-Triggered-By: @zooba
* Minor change on threading.Thread.native_id documentation. (GH-18129)Antoine2020-06-121-5/+4
| | | | | | | | | Remove duplication in `threading.Thread.native_id` documentation, so resulting documentation is more consistent with the `threading.Thread.ident`. Issue initially raised [here](https://github.com/python/python-docs-fr/pull/1122#discussion_r369236634) (in French). No issue associated to this PR. Automerge-Triggered-By: @csabella
* bpo-40164: Update Windows OpenSSL to 1.1.1g (GH-20834)Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2020-06-125-8/+9
|
* bpo-40964: disable remote IMAP tests (GH-20836)Christian Heimes2020-06-122-0/+5
| | | | | | Remote host cyrus.andrew.cmu.edu is blocking incoming connections and is causing test suite to fail. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-40890: Add `mapping` property to dict views (GH-20749)Dennis Sweeney2020-06-125-3/+58
|
* bpo-40955: Fix memory leak in subprocess module (GH-20825)Christian Heimes2020-06-122-0/+2
| | | | | | | | | | ``` Direct leak of 8 byte(s) in 1 object(s) allocated from: #0 0x7f008bf19667 in __interceptor_malloc (/lib64/libasan.so.6+0xb0667) #1 0x7f007a0bee4a in subprocess_fork_exec /home/heimes/dev/python/cpython/Modules/_posixsubprocess.c:774 #2 0xe0305b in cfunction_call Objects/methodobject.c:546 ``` Signed-off-by: Christian Heimes <christian@python.org>
* Update lexical_analysis.rst (GH-17508)Géry Ogam2020-06-121-1/+1
| | | | | Use Sphinx role markup for `str.format`. Automerge-Triggered-By: @csabella
* bpo-33944: site: Add site-packages tracing in verbose mode (GH-12110)native-api2020-06-124-0/+24
|
* bpo-40950: Port nis module to multiphase initialization (GH-20811)Dong-hee Na2020-06-122-45/+105
|
* bpo-40939: Clean and adapt the peg_generator directory after deleting the ↵Pablo Galindo2020-06-126-304/+30
| | | | old parser (GH-20822)
* Remove unnecessary grammar decorations and change header (GH-20819)Pablo Galindo2020-06-111-2/+1
|
* bpo-40626: Support HDF5 in mimetypes (GH-20042)MARK SCHWAB2020-06-112-0/+2
| | | | | | | Add hdf5 with .h5 file extension See 'Recommendations' section for mime types from the HDF group: https://www.hdfgroup.org/2018/06/citations-for-hdf-data-and-software/ Patch by Mark Schwab.
* bpo-29620: iterate over a copy of sys.modules (GH-4800)kernc2020-06-113-1/+19
| | | | | | | unittest.TestCase.assertWarns no longer raises a RuntimeException when accessing a module's ``__warningregistry__`` causes importation of a new module, or when a new module is imported in another thread. Patch by Kernc.
* bpo-40939: Remove some extra references to PYTHONOLDPARSER (GH-20815)Pablo Galindo2020-06-112-5/+1
| | | Automerge-Triggered-By: @pablogsal
* bpo-40939: Remove the old parser (GH-20768)Pablo Galindo2020-06-1153-35928/+24397
| | | This commit removes the old parser, the deprecated parser module, the old parser compatibility flags and environment variables and all associated support code and documentation.
* bpo-40275: Move TransientResource to test_urllib2net (GH-20812)Victor Stinner2020-06-114-48/+37
| | | | | | Move TransientResource, time_out, socket_peer_reset and ioerror_peer_reset from test.support to test_urllib2net. Remove "import errno" from test.support.
* bpo-40939: Remove PEG parser easter egg (__new_parser__) (#20802)Lysandros Nikolaou2020-06-114-47/+10
| | | It no longer serves a purpose (there's only one parser) and having "new" in any name will eventually look odd. Also, it impinges on a potential sub-namespace, `__new_...__`.
* bpo-40275: Add warnings_helper submodule in test.support (GH-20797)Hai Shi2020-06-113-267/+288
|
* bpo-40275: test.supports imports lazily fnmatch, glob, struct (GH-20810)Victor Stinner2020-06-111-3/+4
|
* bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807)Victor Stinner2020-06-114-13/+23
| | | | | | | | | | | Followup of bpo-40854, there is one remaining usage of PLATLIBDIR which should be replaced by config->platlibdir. test_sys checks that sys.platlibdir attribute exists and is a string. Update Makefile: getpath.c and sysmodule.c no longer need PLATLIBDIR macro, PyConfig.platlibdir member is used instead. Co-authored-by: Sandro Mani <manisandro@gmail.com>