Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-92986: Fix ast.unparse when ImportFrom.level is None (#92992) | Shantanu | 2022-09-05 | 3 | -1/+8 | |
| | | | | | This doesn't happen naturally, but is allowed by the ASDL and compiler. We don't want to change ASDL for backward compatibility reasons (#57645, #92987) | |||||
* | gh-96587: Raise `SyntaxError` for PEP654 on older `feature_version` (#96588) | Nikita Sobolev | 2022-09-05 | 4 | -2/+15 | |
| | ||||||
* | gh-84095: Fill documentation gap regarding user-defined objects. (GH-96574) | Vinay Sajip | 2022-09-05 | 1 | -0/+19 | |
| | ||||||
* | gh-96538: Move some type-checking out of bisect.bisect() loops (GH-96539) | Dennis Sweeney | 2022-09-05 | 2 | -16/+143 | |
| | ||||||
* | gh-93973: Add all_errors to asyncio.create_connection (#93974) | Pamela Fox | 2022-09-05 | 4 | -2/+54 | |
| | | | | Co-authored-by: Oleg Iarygin <dralife@yandex.ru> | |||||
* | ceval.c's GETITEM should have asserts, not set exceptions (GH-96518) | Dennis Sweeney | 2022-09-04 | 1 | -2/+8 | |
| | ||||||
* | Docs: alphabetically order sqlite3.Cursor attrs (#96565) | Erlend E. Aasland | 2022-09-04 | 1 | -30/+31 | |
| | ||||||
* | gh-95778: Correctly pre-check for int-to-str conversion (#96537) | Mark Dickinson | 2022-09-04 | 4 | -7/+107 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Converting a large enough `int` to a decimal string raises `ValueError` as expected. However, the raise comes _after_ the quadratic-time base-conversion algorithm has run to completion. For effective DOS prevention, we need some kind of check before entering the quadratic-time loop. Oops! =) The quick fix: essentially we catch _most_ values that exceed the threshold up front. Those that slip through will still be on the small side (read: sufficiently fast), and will get caught by the existing check so that the limit remains exact. The justification for the current check. The C code check is: ```c max_str_digits / (3 * PyLong_SHIFT) <= (size_a - 11) / 10 ``` In GitHub markdown math-speak, writing $M$ for `max_str_digits`, $L$ for `PyLong_SHIFT` and $s$ for `size_a`, that check is: $$\left\lfloor\frac{M}{3L}\right\rfloor \le \left\lfloor\frac{s - 11}{10}\right\rfloor$$ From this it follows that $$\frac{M}{3L} < \frac{s-1}{10}$$ hence that $$\frac{L(s-1)}{M} > \frac{10}{3} > \log_2(10).$$ So $$2^{L(s-1)} > 10^M.$$ But our input integer $a$ satisfies $|a| \ge 2^{L(s-1)}$, so $|a|$ is larger than $10^M$. This shows that we don't accidentally capture anything _below_ the intended limit in the check. <!-- gh-issue-number: gh-95778 --> * Issue: gh-95778 <!-- /gh-issue-number --> Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org> | |||||
* | no-issue: Fix typo in 3.11.0a7.rst (gh-96547) | Ikko Ashimine | 2022-09-04 | 1 | -1/+1 | |
| | | | accross -> across | |||||
* | gh-68163: Correct conversion of Rational instances to float (GH-25619) | Sergey B Kirpichev | 2022-09-04 | 4 | -4/+36 | |
| | | | | | | | * gh-68163: Correct conversion of Rational instances to float Also document that numerator/denominator properties are instances of Integral. Co-authored-by: Mark Dickinson <dickinsm@gmail.com> | |||||
* | gh-93884: Improve test coverage of `PyNumber_ToBase` (GH-93932) | Charlie Zhao | 2022-09-04 | 2 | -8/+25 | |
| | | | | | | | Link to #93884 * Test with some large negative and positive values(out of range of a longlong,i.e.[-2\*\*63, 2\*\*63-1]) * Test with objects of non-int type Automerge-Triggered-By: GH:mdickinson | |||||
* | gh-95778: remove unneeded doc note on float.as_integer_ratio (#96553) | Gregory P. Smith | 2022-09-04 | 1 | -7/+0 | |
| | | | Per mdickinson@'s comment on the main branch PR. | |||||
* | doc typo: spell limitation (#96542) | Mehrdad Moradizadeh | 2022-09-04 | 1 | -1/+1 | |
| | ||||||
* | gh-90195: Unset logger disabled flag when configuring it. (GH-96530) | Vinay Sajip | 2022-09-03 | 2 | -0/+30 | |
| | ||||||
* | gh-89087: Update logging.QueueHandler documentation to clarify record… ↵ | Vinay Sajip | 2022-09-03 | 1 | -0/+14 | |
| | | | | (GH-96527) | |||||
* | gh-75500: Update idlelib/help.html (#96523) | Terry Jan Reedy | 2022-09-03 | 1 | -7/+8 | |
| | ||||||
* | GH-96458: Statically initialize utf8 representation of static strings (#96481) | Kumar Aditya | 2022-09-03 | 6 | -165/+139 | |
| | ||||||
* | gh-45108: Improve docstring and testing of ZipFile.testfile() (GH-96233) | Serhiy Storchaka | 2022-09-03 | 3 | -12/+13 | |
| | ||||||
* | [Enum] bump version tag on HTTP status category indicators (GH-96508) | Alexandru Mărășteanu | 2022-09-02 | 1 | -1/+1 | |
| | ||||||
* | bpo-30419: DOC: Update missing information in bdb docs (#1687) | Cheryl Sabella | 2022-09-02 | 2 | -65/+133 | |
| | | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Martin Panter <vadmium@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> | |||||
* | gh-95180: Add `TaskGroup` and `Runner` to AsyncIO API Index (#95189) | siph | 2022-09-02 | 1 | -9/+20 | |
| | | | | | Also rearrange some items in the list. Co-authored-by: Thomas Grainger <tagrain@gmail.com> | |||||
* | gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96499) | Gregory P. Smith | 2022-09-02 | 28 | -20/+803 | |
| | | | | | | | | | | | | | | | | Integer to and from text conversions via CPython's bignum `int` type is not safe against denial of service attacks due to malicious input. Very large input strings with hundred thousands of digits can consume several CPU seconds. This PR comes fresh from a pile of work done in our private PSRT security response team repo. Signed-off-by: Christian Heimes [Red Hat] <christian@python.org> Tons-of-polishing-up-by: Gregory P. Smith [Google] <greg@krypto.org> Reviews via the private PSRT repo via many others (see the NEWS entry in the PR). <!-- gh-issue-number: gh-95778 --> * Issue: gh-95778 <!-- /gh-issue-number --> I wrote up [a one pager for the release managers](https://docs.google.com/document/d/1KjuF_aXlzPUxTK4BMgezGJ2Pn7uevfX7g0_mvgHlL7Y/edit#). Much of that text wound up in the Issue. Backports PRs already exist. See the issue for links. | |||||
* | Allow whitespace around a slash in fraction string inputs (GH-96496) | Raymond Hettinger | 2022-09-02 | 4 | -4/+7 | |
| | ||||||
* | gh-96168: Improve sqlite3 dict_factory example (#96457) | Erlend E. Aasland | 2022-09-01 | 1 | -18/+9 | |
| | | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> | |||||
* | gh-93554: Conditional jump opcodes only jump forward (GH-96318) | Irit Katriel | 2022-09-01 | 13 | -448/+298 | |
| | ||||||
* | gh-96455: update example in exception_handling_notes.txt to the 3.11RC ↵ | Irit Katriel | 2022-09-01 | 1 | -25/+28 | |
| | | | | bytecode (GH-96456) | |||||
* | gh-93678: apply remove_redundant_jumps in optimize_cfg (GH-96274) | Irit Katriel | 2022-09-01 | 2 | -14/+36 | |
| | ||||||
* | gh-96143: subprocess API %s/universal_newlines=/text=/g. (GH-96468) | Gregory P. Smith | 2022-09-01 | 1 | -4/+4 | |
| | | | | | minor missed test cleanup to use the modern API from the big review. Automerge-Triggered-By: GH:gpshead | |||||
* | GH-96079 Fix missing field name for _AnnotatedAlias (#96080) | Anh71me | 2022-08-31 | 3 | -1/+6 | |
| | ||||||
* | gh-96408: Document difference between set-like view and sets. (GH-96439) | Piotr Kaznowski | 2022-08-31 | 1 | -1/+5 | |
| | ||||||
* | gh-89258: Add a getChildren() method to logging.Logger. (GH-96444) | Vinay Sajip | 2022-08-31 | 4 | -0/+47 | |
| | | | Co-authored-by: Éric <merwok@netwok.org> | |||||
* | gh-96414: Inline code examples in sqlite3 docs (#96442) | Erlend E. Aasland | 2022-08-31 | 15 | -349/+380 | |
| | ||||||
* | gh-95865: Speed up urllib.parse.quote_from_bytes() (GH-95872) | Dennis Sweeney | 2022-08-31 | 2 | -1/+2 | |
| | ||||||
* | Remove the binary_subscr_dict_error label (GH-96443) | Brandt Bucher | 2022-08-30 | 1 | -11/+4 | |
| | ||||||
* | gh-96408: Test set operation on items dict view. (GH-96438) | Filip Łajszczak | 2022-08-30 | 1 | -0/+18 | |
| | ||||||
* | Docs: normalise sqlite3 placeholder how-to heading (#96413) | Erlend E. Aasland | 2022-08-30 | 1 | -2/+2 | |
| | ||||||
* | gh-96143: Add some comments and minor fixes missed in the original PR (#96433) | Pablo Galindo Salgado | 2022-08-30 | 4 | -1/+17 | |
| | | | | | | | | | * gh-96132: Add some comments and minor fixes missed in the original PR * Update Doc/using/cmdline.rst Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | |||||
* | Automatically update more GitHub projects. (#94921) | Ezio Melotti | 2022-08-30 | 1 | -4/+12 | |
| | | | | | | | | | | | * Automatically update the `asyncio` GitHub project. * Use a matrix to add issues to projects. * Remove trailing whitespace. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> | |||||
* | gh-95149: Enhance `http.HTTPStatus` with properties that indicate the HTTP ↵ | Alexandru Mărășteanu | 2022-08-30 | 5 | -1/+93 | |
| | | | | status category (GH-95453) | |||||
* | Fix regeneration of global objects through the Windows build files (GH-96394) | Kumar Aditya | 2022-08-30 | 1 | -1/+8 | |
| | ||||||
* | gh-95987: Fix `repr` of `Any` type subclasses (#96412) | Nikita Sobolev | 2022-08-30 | 3 | -1/+10 | |
| | ||||||
* | gh-96143: Allow Linux perf profiler to see Python calls (GH-96123) | Pablo Galindo Salgado | 2022-08-30 | 24 | -2/+1412 | |
| | | | | | | | :warning: :warning: Note for reviewers, hackers and fellow systems/low-level/compiler engineers :warning: :warning: If you have a lot of experience with this kind of shenanigans and want to improve the **first** version, **please make a PR against my branch** or **reach out by email** or **suggest code changes directly on GitHub**. If you have any **refinements or optimizations** please, wait until the first version is merged before starting hacking or proposing those so we can keep this PR productive. | |||||
* | GH-95245: Document use of `MANAGED` flags instead of offsets. (GH-96044) | Mark Shannon | 2022-08-30 | 4 | -79/+78 | |
| | ||||||
* | gh-95337: update TypeVarTuple example (#95338) | Adrian Garcia Badaracco | 2022-08-30 | 1 | -8/+13 | |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | |||||
* | gh-96349: fix minor performance regression initializing threading.Event ↵ | Daniel Giger | 2022-08-30 | 2 | -9/+4 | |
| | | | | (gh-96350) | |||||
* | gh-95413: Remove references to deprecated CGI library (#95414) | partev | 2022-08-30 | 2 | -3/+3 | |
| | ||||||
* | Docs: Improve clarity for bytes.hex() (#95257) | Tim Burke | 2022-08-30 | 1 | -3/+4 | |
| | ||||||
* | Doc: Update Py_TPFLAGS_HAVE_FINALIZE in docs (GH-96273) | da-woods | 2022-08-30 | 1 | -3/+6 | |
| | | | It is now deprecated and the docs should reflect that. | |||||
* | gh-96385: Correctly raise error on `[*T, *V]` substitution (GH-96386) | Nikita Sobolev | 2022-08-30 | 3 | -1/+7 | |
| | ||||||
* | gh-46845: clean up unused DK_IXSIZE (GH-96405) | Matthias Görgens | 2022-08-30 | 1 | -9/+0 | |
| |