Skip to content

gh-41779: Allow defining the __dict__ and __weakref__ __slots__ for any class - #141755

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:special-slots-with-items3
Nov 19, 2025
Merged

serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:special-slots-with-items3

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Nov 19, 2025 •

Copy link
Copy Markdown
Member

@encukou encukou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, thank you!

Comment thread Lib/test/test_descr.py Resolved
Comment thread Lib/test/test_descr.py Resolved
Comment thread Objects/typeobject.c Resolved
Co-authored-by: Petr Viktorin <encukou@gmail.com>
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) November 19, 2025 16:47
@serhiy-storchaka
serhiy-storchaka merged commit 4bcab46 into python:main Nov 19, 2025
@bedevere-bot

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Debian root 3.x (tier-1) has failed when building commit 4bcab46.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/345/builds/12724) and take a look at the build logs.
  4. Check if the failure is related to this commit (4bcab46) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/345/builds/12724

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/__init__.py", line 847, in gc_collect
    gc.collect()
    ~~~~~~~~~~^^
ResourceWarning: unclosed file <_io.FileIO name=13 mode='wb' closefd=True>


Traceback (most recent call last):
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/__init__.py", line 847, in gc_collect
    gc.collect()
    ~~~~~~~~~~^^
ResourceWarning: unclosed file <_io.FileIO name=11 mode='wb' closefd=True>
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Nov 19, 2025
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
ashm-dev pushed a commit to ashm-dev/cpython that referenced this pull request Dec 8, 2025
@serhiy-storchaka
serhiy-storchaka deleted the special-slots-with-items3 branch July 1, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants