summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* gh-79096: Protect cookie file created by {LWP,Mozilla}CookieJar.save() ↵Pascal Wittmann2022-06-071-0/+1
| | | | | | | | | | | | | | | | | | | (GH-93463) Note: This change is not effective on Microsoft Windows. Cookies can store sensitive information and should therefore be protected against unauthorized third parties. This is also described in issue #79096. The filesystem permissions are currently set to 644, everyone can read the file. This commit changes the permissions to 600, only the creater of the file can read and modify it. This improves security, because it reduces the attack surface. Now the attacker needs control of the user that created the cookie or a ways to circumvent the filesystems permissions. This change is backwards incompatible. Systems that rely on world-readable cookies will breake. However, one could argue that those are misconfigured in the first place.
* gh-86986: bump min sphinx version to 3.2 (GH-93337)Davide Rizzo2022-06-071-0/+1
|
* bpo-42658: Use LCMapStringEx in ntpath.normcase to match OS behaviour for ↵AN Long2022-06-061-0/+3
| | | | case-folding (GH-32010)
* gh-93475: Expose FICLONE and FICLONERANGE constants in fcntl (#93478)Illia Volochii2022-06-061-0/+2
|
* gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534)Christian Heimes2022-06-061-0/+2
| | | WASI does not have the ``chmod(2)`` syscall yet.
* gh-89973: Fix re.error in the fnmatch module. (GH-93072)Serhiy Storchaka2022-06-051-0/+3
| | | | | | Character ranges with upper bound less that lower bound (e.g. [c-a]) are now interpreted as empty ranges, for compatibility with other glob pattern implementations. Previously it was re.error.
* gh-90473: wasmtime does not support absolute symlinks (GH-93490)Christian Heimes2022-06-052-0/+3
|
* gh-93442: Make C++ version of _Py_CAST work with 0/NULL. (#93500)Neil Schemenauer2022-06-051-0/+3
| | | | | | | | | | | | Add C++ overloads for _Py_CAST_impl() to handle 0/NULL. This will allow C++ extensions that pass 0 or NULL to macros using _Py_CAST() to continue to compile. Without this, you get an error like: invalid ‘static_cast’ from type ‘int’ to type ‘_object*’ The modern way to use a NULL value in C++ is to use nullptr. However, we want to not break extensions that do things the old way. Co-authored-by: serge-sans-paille
* gh-92886: Fix test that fails when running with `-O` in `test_imaplib.py` ↵jackh-ncl2022-06-041-0/+1
| | | | (#93237)
* GH-93444: remove redundant fields from basicblock: b_nofallthrough, b_exit, ↵Irit Katriel2022-06-031-0/+1
| | | | b_return (GH-93445)
* gh-93156 - fix negative indexing into absolute `pathlib.PurePath().parents` ↵Barney Gale2022-06-031-0/+2
| | | | | | | | | | | (GH-93273) When a `_PathParents` object has a drive or a root, the length of the object is *one less* than than the length of `self._parts`, which resulted in an off-by-one error when `path.parents[-n]` was fed through to `self._parts[:-n - 1]`. In particular, `path.parents[-1]` was a malformed path object with spooky properties. This is addressed by adding `len(self)` to negative indices.
* gh-93382: Cache result of `PyCode_GetCode` in codeobject (GH-93383)Ken Jin2022-06-031-0/+1
| | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* gh-68966: Make mailcap refuse to match unsafe filenames/types/params (GH-91993)Petr Viktorin2022-06-031-0/+4
|
* gh-92932: dis._unpack_opargs should handle EXTENDED_ARG_QUICK (gh-92945)Dong-hee Na2022-06-031-0/+3
|
* gh-93356: Lay out exception handling code at end of code unit (GH-92769)Irit Katriel2022-06-021-0/+1
|
* gh-93418: Fix an assert when an f-string expression is followed by an '=', ↵Eric V. Smith2022-06-011-0/+2
| | | | but no closing brace. (gh-93419)
* gh-90300: split --help output into separate options (#30331)Éric2022-06-012-2/+28
| | | | | | Make --help output shorter and add new help options. --help-env, --help-xoptions and --help-all command-line options are added to complement --help.
* gh-92597: Ensure that AST nodes without explicit end positions can be ↵Pablo Galindo Salgado2022-05-311-0/+2
| | | | compiled (GH-93359)
* gh-93143: Avoid NULL check in LOAD_FAST based on analysis in the compiler ↵Dennis Sweeney2022-05-311-0/+1
| | | | (GH-93144)
* gh-69093: Fix Setup.local.in rule for _sqlite3 (GH-93380)Christian Heimes2022-05-311-0/+1
|
* gh-93283: Improve error message for f-string with invalid conversion ↵Serhiy Storchaka2022-05-311-0/+2
| | | | character (GH-93349)
* GH-93354: Use exponential backoff to avoid excessive specialization ↵Mark Shannon2022-05-311-0/+3
| | | | attempts. (GH-93355)
* GH-93312: Add os.PIDFD_NONBLOCK flag (#93313)Kumar Aditya2022-05-311-0/+3
|
* gh-93345: Fix a crash in substitution of nested TypeVar after TypeVarTuple ↵Serhiy Storchaka2022-05-311-0/+2
| | | | | | (GH-93346) For example: tuple[*Ts, list[T]][int, str, bool]
* bpo-42272: fix misleading warning filter message/module docs (#23172)Kevin Locke2022-05-301-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-42272: improve message/module warning filter docs "The Warnings Filter" section of the warnings module documentation describes the message and module filters as "a string containing a regular expression". While that is true when they are arguments to the filterwarnings function, it is not true when they appear in -W or $PYTHONWARNINGS where they are matched literally (after stripping any starting/ending whitespace). Update the documentation to note when they are matched literally. Also clarify that module matches the "fully-qualified module name", rather than "module name" which is ambiguous. skip news (since this is a doc fix) Signed-off-by: Kevin Locke <kevin@kevinlocke.name> * bpo-42272: remove bad submodule warning filter doc The `error:::mymodule[.*]` example in the "Describing Warning Filters" section of the warnings module documentation does not behave as the comment describes. Since the module portion of the filter string is interpreted literally, it would match a module with a fully-qualified name that is literally `mymodule[.*]`. Unfortunately, there is not a way to match '"module" and any subpackages of "mymodule"' as documented, since the module part of a filter string is matched literally. Instead, update the filter and comment to match only "mymodule". skip news (since this is a doc fix) Signed-off-by: Kevin Locke <kevin@kevinlocke.name> * bpo-42272: add warning filter doc changes to NEWS Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
* bpo-41287: Handle `doc` argument of `property.__init__` in subclasses (#23205)Sergei Izmailov2022-05-291-0/+1
| | | | | Fixes #85459 Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-92240 : Include release dates for "What's New In Python 3.X" (#92937)georgically2022-05-291-0/+2
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-92839: fixed typo in _bisectmodule.c (line 131) (#92849)oda-gitso2022-05-281-0/+1
|
* bpo-40514: Drop EXPERIMENTAL_ISOLATED_SUBINTERPRETERS (gh-93185)Eric Snow2022-05-271-0/+2
| | | | | | | This was added for bpo-40514 (gh-84694) to test out a per-interpreter GIL. However, it has since proven unnecessary to keep the experiment in the repo. (It can be done as a branch in a fork like normal.) So here we are removing: * the configure option * the macro * the code enabled by the macro
* gh-93297: Make asyncio task groups prevent child tasks from being GCed (#93299)Yury Selivanov2022-05-271-0/+1
|
* bpo-46951: Order contents of zipapps (GH-31713)hfinucane2022-05-271-0/+1
| | | So that builds are more reproducible.
* GH-93207: Remove HAVE_STDARG_PROTOTYPES configure check for stdarg.h (#93215)Kumar Aditya2022-05-271-0/+3
|
* gh-93223: More aggressive Jump-To-Jump elimination (GH-93229)Dennis Sweeney2022-05-271-0/+1
|
* gh-60074: add new stable API function PyType_FromMetaclass (GH-93012)Wenzel Jakob2022-05-272-0/+10
| | | | | | | | Added a new stable API function ``PyType_FromMetaclass``, which mirrors the behavior of ``PyType_FromModuleAndSpec`` except that it takes an additional metaclass argument. This is, e.g., useful for language binding tools that need to store additional information in the type object.
* gh-92898: Enhance _testcppext test on cast to PyObject* (#93111)Victor Stinner2022-05-261-0/+2
| | | | * Add StrongRef class. * Rename and reformat functions of the _Py_CAST() implementation.
* gh-93217: fix some issues in man page and --help (#93219)Éric2022-05-261-3/+16
|
* gh-91513: Add 'asyncio' taskName to logging LogRecord attributes. (GH-93193)jackh-ncl2022-05-261-0/+1
|
* gh-90817: Deprecate explicitly locale.resetlocale() (#93196)Victor Stinner2022-05-251-0/+3
| | | | The function was already deprecated in Python 3.11 since it calls locale.getdefaultlocale() which was deprecated in Python 3.11.
* gh-92777: Add LOAD_METHOD_LAZY_DICT (GH-92778)Ken Jin2022-05-251-0/+1
|
* gh-93202: Always use %zd printf formatter (#93201)Victor Stinner2022-05-251-0/+4
| | | | | | | | | | | | | | | | Python now always use the ``%zu`` and ``%zd`` printf formats to format a size_t or Py_ssize_t number. Building Python 3.12 requires a C11 compiler, so these printf formats are now always supported. * PyObject_Print() and _PyObject_Dump() now use the printf %zd format to display an object reference count. * Update PY_FORMAT_SIZE_T comment. * Remove outdated notes about the %zd format in PyBytes_FromFormat() and PyUnicode_FromFormat() documentations. * configure no longer checks for the %zd format and no longer defines PY_FORMAT_SIZE_T macro in pyconfig.h. * pymacconfig.h no longer undefines PY_FORMAT_SIZE_T: macOS 10.4 is no longer supported. Python 3.12 now requires macOS 10.6 (Snow Leopard) or newer.
* gh-93040 Wrap unused parameters in Objects/obmalloc.c with Py_UNUSED (#93175)oda-gitso2022-05-251-0/+1
|
* gh-91924: Fix __lltrace__ for non-UTF-8 stdout encoding (#93199)Victor Stinner2022-05-251-0/+2
| | | | | | | | Fix __lltrace__ debug feature if the stdout encoding is not UTF-8. If the stdout encoding is not UTF-8, the first call to lltrace_resume_frame() indirectly sets lltrace to 0 when calling unicode_check_encoding_errors() which calls encodings.search_function().
* gh-92728: Restore re.template, but deprecate it (GH-93161)Miro Hrončok2022-05-252-0/+4
| | | | | | Revert "bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)" This reverts commit b09184bf05b07b77c5ecfedd4daa846be3cbf0a9.
* gh-92658: Add Hyper-V socket support (GH-92755)Jordan Borean2022-05-241-0/+1
|
* gh-93033: Use wmemchr in stringlib (GH-93034)goldsteinn2022-05-241-0/+1
| | | | | Generally comparable perf for the "good" case where memchr doesn't return any collisions (false matches on lower byte) but clearly faster with collisions.
* gh-93065: Fix HAMT to iterate correctly over 7-level deep trees (GH-93066)Yury Selivanov2022-05-232-0/+6
| | | | | | | Also while there, clarify a few things about why we reduce the hash to 32 bits. Co-authored-by: Eli Libman <eli@hyro.ai> Co-authored-by: Yury Selivanov <yury@edgedb.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-83245: Raise BadZipFile instead of ValueError when reading a corrupt ZIP ↵Sam Ezeh2022-05-231-0/+2
| | | | | | file (GH-32291) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-93010: InvalidHeaderError used but nonexistent (#93015)oda-gitso2022-05-231-0/+1
| | | | | * fix issue 93010 Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-93061: Mark as artificial: backwards jump after async for (GH-93062)Dennis Sweeney2022-05-231-0/+1
|
* gh-93103: Deprecate global configuration variable (#93104)Victor Stinner2022-05-231-0/+4
| | | | | Deprecate global configuration variables, like Py_IgnoreEnvironmentFlag, in the documentation: the Py_InitializeFromConfig() API should be instead.