Bug 2222449
| Summary: | python 3.12: sys.getrefcount always yields (unsigned int)-1 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jerry James <loganjerry> |
| Component: | python3.12 | Assignee: | Python Maintainers <python-maint> |
| Status: | CLOSED NOTABUG | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | cstratak, mhroncok, python-maint, python-packagers-sig, rjones, swt, thrnciar, vstinner |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-07-12 21:37:57 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jerry James
2023-07-12 19:22:13 UTC
Reproducible also with 3.12.0~b4-1.fc39. Reproducible also with /usr/bin/python3.12d Related to PEP 683? https://peps.python.org/pep-0683/ I think it's expected behavior with "immortal" objects such as str instances, based on my reading of the PEP? Indeed that seems to be the case. >>> x = 1 >>> sys.getrefcount(x) 4294967295 >>> x = 100000000000000 >>> sys.getrefcount(x) 2 Then it is the swig test that is wrong. I'll report this to swig upstream. Thank you, everyone! |