Ionite
d7e7f79ca7
gh-100637: Fix int and bool __sizeof__ calculation to include the 1 element ob_digit array for 0 and False ( #100663 )
...
Fixes behaviour where int (and subtypes like bool) __sizeof__ under-reports true size as it did not take into account the size 1 `ob_digit` array for the zero int.
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2023-01-02 21:11:49 +00:00
Rupa Lahiri
9dee973166
gh-100676: Improve description for venv --upgrade-deps (GH-100678)
2023-01-02 12:17:58 +00:00
Kumar Aditya
7feb6d2f85
fix `grammer` -> `grammar` typo in expressions.rst (GH-100683)
...
Automerge-Triggered-By: GH:AlexWaygood
2023-01-02 03:49:06 -08:00
Alexander Shadchin
254ab42240
Fix deprecation doc for `PyEval_InitThreads` ( #100667 )
2023-01-02 16:43:55 +05:30
Shantanu
edfbf56f4c
gh-100428: Make int documentation more accurate ( #100436 )
...
- Remove first link to lexical definition of integer literal, since it
doesn't apply (differs in handling of leading zeros, base needs to be
explicitly specified, unicode digits are allowed)
- Better describe handling of leading zeros, unicode digits, underscores
- Base 0 does not work exactly as like a code literal, since it allows
Unicode digits. Link code literal to lexical definition of integer
literal.
2023-01-01 19:14:18 -08:00
Erlend E. Aasland
b7a68ab824
gh-99953: Purge mention of numeric param style from sqlite3 docs ( #100630 )
...
The PEP-249 numeric style has never been supported by sqlite3.
2023-01-01 23:26:23 +01:00
dependabot[bot]
2366b27565
build(deps): bump actions/stale from 6 to 7 ( #100656 )
2023-01-01 23:49:10 +02:00
Jason R. Coombs
447d061bc7
gh-97930: Apply changes from importlib_resources 5.10. (GH-100598)
2023-01-01 11:07:32 -05:00
Géry Ogam
ba1342ce99
gh-87980: Fix the error message for disallowed __weakref__ slots ( #25362 )
...
Fix the error message for disallowed `__weakref__` slots.
2023-01-01 21:11:33 +05:30
ram vikram singh
1aab269d4a
gh-100201: Document behavior with a bare `yield` statement ( #100416 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-01-01 21:06:13 +05:30
Mehrdad Moradizadeh
1d1480fefc
gh-96773 Fix documentation of socket backlog ( #96778 )
2023-01-01 20:36:17 +05:30
Gabriele N. Tornetta
d52d4942cf
gh-100649: Update native_thread_id after fork (gh-100650)
...
Update native_thread_id after fork
2023-01-01 23:20:38 +09:00
Shantanu
e83f88a455
gh-100488: Add is_integer method to fractions.Fraction ( #100489 )
2023-01-01 01:44:48 -07:00
Shantanu
71159a8e07
gh-100546: Remove incorrect positional-only marker from eval ( #100547 )
...
All the arguments are positional-only.
The current status after #99476 seems to be to not use positional-only
markers in documentation, hence I've simply removed it.
2022-12-31 17:59:31 -07:00
Terry Jan Reedy
1f6c87ca7b
IDLE - fix module browser test ( #100647 )
2022-12-31 19:01:44 -05:00
Mark Hansen
baf234971f
Fix `pydtrace.d` path comment in `Include/pydtrace.h` ( #28539 )
2022-12-31 22:40:25 +05:30
Sandeep Subramanian
ac7a0a9f9e
GH-87002: fix caching documentation in `struct` module ( #24164 )
2022-12-31 22:27:58 +05:30
Owain Davies
98308dbeb1
gh-100633 Tutorial: Fix dataclasses import ( #100638 )
...
import dataclass not dataclasses from dataclasses
2022-12-31 10:23:18 +00:00
tqxia
636e9dd23f
gh-94808: Improve coverage of dictresize (GH-100619)
2022-12-31 18:15:30 +09:00
Paolo Lammens
f59c7f8edd
GH-85979: Clarify specification of `object.__await__` ( #22320 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-12-31 11:54:04 +05:30
Raymond Hettinger
4ebaae8aed
Improve comments in itertools uniquification recipes (GH-100631)
2022-12-30 20:36:38 -06:00
Éric
46521826cb
gh-95778: add doc missing in some places (GH-100627)
2022-12-30 13:21:15 -08:00
mathieui
f4fcfdf8c5
gh-100616: Document 'attr' parameter for window.vline() in curses module ( #24961 )
...
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-12-30 08:35:04 -08:00
Nikita Sobolev
79c10b7da8
gh-99433: Fix `doctest` failure on `types.MethodWrapperType` ( #99434 )
2022-12-30 17:25:01 +05:30
Gregory P. Smith
894f2c3c16
gh-100228: Warn from os.fork() if other threads exist. ( #100229 )
...
Not comprehensive, best effort warning. There are cases when threads exist on some platforms that this code cannot detect. macOS when API permissions allow and Linux with a readable /proc procfs present are the currently supported cases where a warning should show up reliably.
Starting with a DeprecationWarning for now, it is less disruptive than something like RuntimeWarning and most likely to only be seen in people's CI tests - a good place to start with this messaging.
2022-12-29 14:41:39 -08:00
Zachary Ware
2df82db485
gh-100540: Remove obsolete Modules/_ctypes/darwin/ dlfcn shim (GH-100541)
...
As far as I can tell, this hasn't been actually used since Mac OS X 10.2.
2022-12-29 16:13:28 -06:00
ram vikram singh
7223d50b97
gh-100583: Improve the `pydoc` documentation ( #100590 )
2022-12-29 20:47:20 +05:30
Nikita Sobolev
76856366d3
gh-100600: Fix "coroutine was never awaited" warning in `test_coroutines` ( #100601 )
2022-12-29 20:43:38 +05:30
Samet YASLAN
f10f503b24
gh-100585: Fixed a bug where importlib.resources.as_file was leaving file pointers open (GH-100586)
...
* gh-100585: Fixed open fp bug in the imporlib module
* Added news for gh-100585
2022-12-28 16:31:43 -05:00
JustAnotherArchivist
cf1c098180
GH-100101: Clarify documentation of zip's strict option (GH-100103)
2022-12-28 13:24:50 -08:00
Raymond Hettinger
c4c5790120
Restore early-out to factor(). Strengthen tests. (GH-100591)
2022-12-28 12:29:27 -08:00
Hugo van Kemenade
9eca7235af
gh-94172: Update docs for params removed in 3.12 ( #100431 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-12-28 14:43:19 -05:00
Zachary Ware
025b5c3780
gh-100540: Remove unused Modules/_ctypes/libffi_osx/ (GH-100543)
...
It was an ancient, modified copy of libffi that has not been in use
since GH-22855.
2022-12-28 13:38:52 -06:00
Zachary Ware
25590eb5de
gh-100540: Remove obsolete '--with-system-ffi' configure option (GH-100544)
...
It has had no effect on non-macOS platforms for a long time, and has had
the non-obvious effect of invoking `pkg_config` and not setting
`-DUSING_APPLE_OS_LIBFFI` on macOS since GH-22855.
2022-12-28 13:36:03 -06:00
Zachary Ware
fd4b55ff17
gh-100540: Remove unnecessary '-DMACOSX' for ctypes on macOS (GH-100542)
...
The define was only used to protect a `#pragma clang diagnostic`
setting, which is already better guarded by `__clang__` anwyay.
2022-12-28 12:06:58 -06:00
Nikita Sobolev
5e1adb4f88
gh-100577: Replace `assert(0)` with `Py_UNREACHABLE` in `symtable.c` ( #100579 )
2022-12-28 21:01:53 +05:30
Chris Withers
457c1f4a19
Fix mock code coverage. ( #100580 )
2022-12-28 12:36:26 +00:00
Raymond Hettinger
2d52406835
Improve factor() recipe and fix its tests (GH-100576)
2022-12-28 03:13:58 -08:00
Chris Withers
984894a9a2
Remove skipped test in test for async mocks. ( #100559 )
...
Remove skipped test.
See discussion on https://github.com/python/cpython/pull/25326 .
Fix is apparently here, but no-one is confident to review and land: https://github.com/python/cpython/pull/25347 .
2022-12-28 10:55:50 +00:00
Kumar Aditya
6835184a44
GH-100192: fix `asyncio` subprocess tests to pass env vars to subprocess ( #100569 )
2022-12-28 11:16:04 +05:30
Stanley
b95b1b3b25
gh-55688: Add note about ending backslashes for raw strings ( #94768 )
...
Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
2022-12-28 00:30:42 -05:00
Kumar Aditya
5369bba8c5
add tests for `asyncio` transport sockets ( #100263 )
2022-12-28 10:07:55 +05:30
Nikita Sobolev
3da71ff0f2
Fix copy-paste error in `Tools/clinic.py` ( #100560 )
2022-12-28 09:57:57 +05:30
Kumar Aditya
7cf164ad5e
GH-100342: check for allocation failure in AC `*args` parsing ( #100343 )
2022-12-28 09:46:28 +05:30
Kumar Aditya
e97afefda5
GH-100192: add more `asyncio` subprocess tests ( #100194 )
2022-12-28 09:42:16 +05:30
Guido van Rossum
08e5594cf3
GH-98831: Modernize a ton of simpler instructions ( #100545 )
...
* load_const and load_fast aren't families for now
* Don't decref unmoved names
* Modernize GET_ANEXT
* Modernize GET_AWAITABLE
* Modernize ASYNC_GEN_WRAP
* Modernize YIELD_VALUE
* Modernize POP_EXCEPT (in more than one way)
* Modernize PREP_RERAISE_STAR
* Modernize LOAD_ASSERTION_ERROR
* Modernize LOAD_BUILD_CLASS
* Modernize STORE_NAME
* Modernize LOAD_NAME
* Modernize LOAD_CLASSDEREF
* Modernize LOAD_DEREF
* Modernize STORE_DEREF
* Modernize COPY_FREE_VARS (mark it as done)
* Modernize LIST_TO_TUPLE
* Modernize LIST_EXTEND
* Modernize SET_UPDATE
* Modernize SETUP_ANNOTATIONS
* Modernize DICT_UPDATE
* Modernize DICT_MERGE
* Modernize MAP_ADD
* Modernize IS_OP
* Modernize CONTAINS_OP
* Modernize CHECK_EXC_MATCH
* Modernize IMPORT_NAME
* Modernize IMPORT_STAR
* Modernize IMPORT_FROM
* Modernize JUMP_FORWARD (mark it as done)
* Modernize JUMP_BACKWARD (mark it as done)
2022-12-27 17:11:03 -08:00
Nikita Sobolev
3dc48dabd4
gh-100553: Improve accuracy of sqlite3.Row iter test ( #100555 )
2022-12-28 01:58:05 +01:00
Nikita Sobolev
b0ea28913e
Remove `NoneType` redefinition from `clinic.py` ( #100551 )
2022-12-27 21:41:39 +05:30
Pieter Eendebak
b3da698952
gh-94603: micro optimize list.pop (gh-94604)
2022-12-27 19:55:54 +09:00
Nikita Sobolev
ce39aaffee
gh-99509: Add `__class_getitem__` to `multiprocessing.queues.Queue` ( #99511 )
2022-12-26 20:50:55 -08:00