summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-38644: Rephrase What's New entry (GH-18461)Victor Stinner2020-02-111-2/+3
|
* bpo-39245: Switch to public API for Vectorcall (GH-18460)Petr Viktorin2020-02-1156-194/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The bulk of this patch was generated automatically with: for name in \ PyObject_Vectorcall \ Py_TPFLAGS_HAVE_VECTORCALL \ PyObject_VectorcallMethod \ PyVectorcall_Function \ PyObject_CallOneArg \ PyObject_CallMethodNoArgs \ PyObject_CallMethodOneArg \ ; do echo $name git grep -lwz _$name | xargs -0 sed -i "s/\b_$name\b/$name/g" done old=_PyObject_FastCallDict new=PyObject_VectorcallDict git grep -lwz $old | xargs -0 sed -i "s/\b$old\b/$new/g" and then cleaned up: - Revert changes to in docs & news - Revert changes to backcompat defines in headers - Nudge misaligned comments
* bpo-39500: Document PyUnicode_IsIdentifier() function (GH-18397)Victor Stinner2020-02-114-15/+47
| | | | PyUnicode_IsIdentifier() does not call Py_FatalError() anymore if the string is not ready.
* bpo-1635741: Port _codecs extension module to multiphase initialization (PEP ↵Hai Shi2020-02-112-3/+8
| | | | | 489) (GH-18065) https://bugs.python.org/issue1635741
* bpo-38374: Remove weakref.ReferenceError from docs (GH-18452)Roger Hurwitz2020-02-112-9/+0
| | | | | | | | | | Reflecting changes to the code, removed weakref.ReferenceError from weakref.rst and exceptions.rst. Issue submitter provided evidence that the `weakref.ReferenceError` alias for `ReferenceError` was removed from the code in 2007. Working with @gvanrossum at PyCascades CPython sprint we looked at the code and confirmed that `weakref.ReferenceError` was no longer in `weakref.py`. Based on that analysis I removed references `weakref.ReferenceError` from the two documents where it was still being referenced: `weakref.rst` and `exceptions.rst`. https://bugs.python.org/issue38374
* bpo-39600: Adjust code, add idlelib/NEWS item (GH-18449)Terry Jan Reedy2020-02-112-4/+4
| | | Complete previous patch.
* bpo-38325: Skip non-BMP tests of test_winconsoleio (GH-18448)Victor Stinner2020-02-102-0/+7
| | | Skip tests on non-BMP characters of test_winconsoleio.
* bpo-39417: Fix broken link to guide to building venvs (GH-18432)Ogi Moore2020-02-101-1/+1
|
* Correct the documented default encoding (GH-18429)Eric Wieser2020-02-101-1/+1
| | | | | | | | | | | | | From the source for `PyUnicode_Decode`, the implementation is: ``` if (encoding == NULL) { return PyUnicode_DecodeUTF8Stateful(s, size, errors, NULL); } ``` which is pretty clearly not defaulting to ASCII. --- I assume this needs neither a news entry nor bpo link.
* bpo-13826: Clarify Popen constructor example (GH-18438)Tim D. Smith2020-02-101-2/+8
| | | | | | | | | | Clarifies that the use of `shlex.split` is more instructive than normative, and provides a simpler example. https://bugs.python.org/issue13826
* bpo-39594: Fix typo in os.times documentation (GH-18443)Roger Hurwitz2020-02-101-4/+2
| | | | | There was an extra space in the url markup, causing the documentation not rendered properly. https://bugs.python.org/issue39594
* Issue3950: Fix docs for default locale used by gettext to match ↵Carl2020-02-101-2/+2
| | | | | implementation (#18435) documentation for default locale directory Doc/library/gettext.rst changed to match gettext implementation line 63.
* Remove redundant references in struct doc (GH-18053)Christophe Nanteuil2020-02-101-2/+2
|
* bpo-39369 Doc: Update mmap readline method documentation (GH-17957)Wellington Pardim2020-02-102-1/+3
| | | | | | | | | | * Update mmap readline method documentation Update mmap `readline` method description. The fact that the `readline` method does update the file position should not be ignored since this might give the impression for the programmer that it doesn't update it. * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-39600, IDLE: Remove duplicated font names (GH-18430)Victor Stinner2020-02-102-2/+4
| | | In the font configuration window, remove duplicated font names.
* Remove note saying patch is straightforward (#18431)Brian Curtin2020-02-101-2/+1
| | | | | | | While `unittest.mock.patch` is a great thing, it is not straightforward. If it were straightforward there wouldn't be such a huge amount of documentation for it, and frankly, when myself and others who I've read about often struggle to figure out what on earth `patch()` wants, coming to the docs to read that it's straightforward is not helpful.
* bpo-39586: Deprecate distutils bdist_msi command (GH-18415)Hugo van Kemenade2020-02-107-3/+31
|
* bpo-39128: Added happy_eyeballs_delay, interleave to function signature ↵idomic2020-02-101-2/+3
| | | | (GH-18315)
* Grammar fix in tutorial (GH-18425)Don Kirkby2020-02-101-1/+1
|
* bpo-39590: make deque.__contains__ and deque.count hold strong references ↵sweeneyde2020-02-093-0/+17
| | | | (GH-18421)
* bpo-39573: Use Py_TYPE() macro in ctypes.h (GH-18411)Dong-hee Na2020-02-081-2/+2
|
* Doc: sys.__unraisablehook__ and bytearray.hex separators are new in 3.8 ↵Saiyang Gou2020-02-082-3/+15
| | | | | | | | (GH-17884) Minor fix in documentation: - `sys.__unraisablehook__` is new in version 3.8 - Optional `sep` and `bytes_per_sep` parameters for `bytearray.hex` is also supported in Python 3.8 (just like `bytes.hex`)
* closes bpo-39575: Change -lgcov to --coverage. (GH-18382)Fangrui Song2020-02-071-1/+1
| | | | This allows clang to get rid of the dependency on libgcov. When linking, GCC passes -lgcov while clang passes the path to libclang_rt.profile-$arch.a
* bpo-39579: Fix Attribute end_col_offset to point at the current node (GH-18405)Lysandros Nikolaou2020-02-073-2/+12
|
* bpo-39350: Fix fractions for int subclasses (GH-18375)Victor Stinner2020-02-074-7/+34
| | | | | | | Fix regression in fractions.Fraction if the numerator and/or the denominator is an int subclass. The math.gcd() function is now used to normalize the numerator and denominator. math.gcd() always return a int type. Previously, the GCD type depended on numerator and denominator.
* bpo-39573: Use Py_SET_SIZE() function (GH-18402)Victor Stinner2020-02-0716-86/+95
| | | | Replace direct acccess to PyVarObject.ob_size with usage of the Py_SET_SIZE() function.
* bpo-39502: Fix 64-bit Python PyTime_localtime() on AIX (GH-18285)Michael Felt2020-02-072-1/+3
| | | Fix time.localtime() on 64-bit AIX to support years before 1902 and after 2038.
* bpo-39573: Add Py_SET_SIZE() function (GH-18400)Victor Stinner2020-02-075-2/+15
| | | Add Py_SET_SIZE() function to set the size of an object.
* bpo-38644: Add Py_EnterRecursiveCall() to python3.def (GH-18399)Victor Stinner2020-02-071-0/+2
| | | | Add Py_EnterRecursiveCall and Py_LeaveRecursiveCall functions to python3.def.
* bpo-39573: Use Py_TYPE() macro in object.c (GH-18398)Victor Stinner2020-02-071-12/+8
| | | | Replace direct acccess to PyVarObject.ob_size with usage of the Py_SIZE() macro.
* bpo-35134: Create Include/cpython/listobject.h (GH-18395)Victor Stinner2020-02-075-43/+64
| | | | | | | | | Move listobject.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/listobject.h header file. Add cpython/ header files to Makefile.pre.in and pythoncore project of PCbuild. Add _PyList_CAST() macro.
* bpo-39573: Add Py_SET_TYPE() function (GH-18394)Victor Stinner2020-02-0724-48/+77
| | | Add Py_SET_TYPE() function to set the type of an object.
* bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393)Victor Stinner2020-02-0726-40/+40
| | | Replace direct access to PyObject.ob_type with Py_TYPE().
* bpo-39573: Use Py_TYPE() macro in Objects directory (GH-18392)Victor Stinner2020-02-0720-109/+109
| | | Replace direct access to PyObject.ob_type with Py_TYPE().
* bpo-39573: Use Py_TYPE() macro in Python and Include directories (GH-18391)Victor Stinner2020-02-0712-39/+39
| | | Replace direct access to PyObject.ob_type with Py_TYPE().
* bpo-39491: Mention Annotated in get_origin() docstring (GH-18379)Jakub Stasiak2020-02-071-2/+2
| | | I forgot to do it in https://github.com/python/cpython/pull/18260.
* bpo-39573: Use Py_TYPE() in abstract.c (GH-18390)Victor Stinner2020-02-071-94/+94
| | | Replace direct access to PyObject.ob_type with Py_TYPE().
* bpo-39571: Fix clang warning on PyTypeObject typedef (GH-18385)Victor Stinner2020-02-071-2/+2
| | | Only define PyTypeObject type once.
* bpo-39573: Add Py_SET_REFCNT() function (GH-18389)Victor Stinner2020-02-077-14/+30
| | | | Add a Py_SET_REFCNT() function to set the reference counter of an object.
* bpo-39573: Use Py_REFCNT() macro (GH-18388)Victor Stinner2020-02-069-38/+42
| | | | Replace direct acccess to PyObject.ob_refcnt with usage of the Py_REFCNT() macro.
* bpo-39534: Doc: Clarify return in finally (GH-18324)Julien Palard2020-02-061-9/+27
|
* What's New in Python 3.9: sort improved modules (GH-18383)Victor Stinner2020-02-061-36/+36
|
* bpo-39542: Document limited C API changes (GH-18378)Victor Stinner2020-02-061-7/+42
|
* bpo-39274: Ensure Fraction.__bool__() returns a bool (GH-18017)Sebastian Berg2020-02-063-1/+41
| | | | | Some numerator types used (specifically NumPy) decides to not return a Python boolean for the "a != b" operation. Using the equivalent call to bool() guarantees a bool return also for such types.
* bpo-39245: Make Vectorcall C API public (GH-17893)Petr Viktorin2020-02-065-66/+89
| | | | | | | | | | | | | | | | | * Add backcompat defines and move non-limited API declaration to cpython/ This partially reverts commit 2ff58a24e8a1c7e290d025d69ebaea0bbead3b8c which added PyObject_CallNoArgs to the 3.9+ stable ABI. This should not be done; there are enough other call APIs in the stable ABI to choose from. * Adjust documentation Mark all newly public functions as added in 3.9. Add a note about the 3.8 provisional names. Add notes on public API. * Put PyObject_CallNoArgs back in the limited API * Rename PyObject_FastCallDict to PyObject_VectorcallDict
* bpo-38823: Fix refleaks in _ast initialization error path (GH-17276)Brandt Bucher2020-02-062-184/+372
|
* bpo-38149: Call sys.audit() only once per call for glob.glob(). (GH-18360)Serhiy Storchaka2020-02-062-1/+3
|
* bpo-39555: Fix distutils test to handle _d suffix on Windows debug build ↵Steve Dower2020-02-061-2/+2
| | | | (GH-18357)
* bpo-39127: Make _Py_HashPointer's argument be const (GH-17690)Andy Lester2020-02-052-2/+2
|
* bpo-39559: Remove unused, undocumented argument from uuid.getnode (GH-18369)Shantanu2020-02-052-1/+2
|