Comments (2)
Attached PR gh-116947 should help to discover heap types which don't implement traverse.
For example, the make
command lists 52 heap types which don't implement tp_traverse:
- _blake2.blake2b
- _blake2.blake2s
- _bz2.BZ2Compressor
- _bz2.BZ2Decompressor
- _curses_panel.panel
- functools._lru_list_elem
- _hashlib.HASH
- _hashlib.HASHXOF
- _hashlib.HMAC
- _lzma.LZMACompressor
- _lzma.LZMADecompressor
- posix.DirEntry
- posix.ScandirIterator
- _random.Random
- select.epoll
- select.poll
- _sha3.sha3_224
- _sha3.sha3_256
- _sha3.sha3_384
- _sha3.sha3_512
- _sha3.shake_128
- _sha3.shake_256
- _ssl.Certificate
- _testcapi.HeapCType
- _testcapi.HeapCTypeSetattr
- _testcapi.HeapCTypeSubclass
- _testcapi.HeapCTypeSubclassWithFinalizer
- _testcapi.HeapCTypeWithBuffer
- _testcapi.HeapCTypeWithDict
- _testcapi.HeapCTypeWithDict2
- _testcapi.HeapCTypeWithNegativeDict
- _testcapi.HeapCTypeWithWeakref
- _testcapi.HeapCTypeWithWeakref2
- _testcapi.HeapDocCType
- _testcapi.NullTpDocType
- _testcapi._test_structmembersType_NewAPI
- _testimportexec.Str
- _testlimitedcapi.LimitedVectorCallClass
- _thread._localdummy
- _thread._ThreadHandle
- _tkinter.Tcl_Obj
- _tkinter.tkapp
- _tkinter.tktimertoken
- _tokenize.TokenizerIter
- _xxinterpchannels.ChannelID
- xxlimited_35.Null
- xxlimited_35.Str
- xxlimited.Str
- _xxsubinterpreters.CrossInterpreterBufferView
- zlib.Compress
- zlib.Decompress
- zlib._ZlibDecompressor
from cpython.
See also issue gh-116915 "test_capi leaks references" and PR gh-116934 "Make _thread._ThreadHandle support GC" which fix it.
from cpython.
Related Issues (20)
- Name lookup in annotation scopes in classes does not work with non-dict globals
- support bytes/bytearray in complex() constructor HOT 2
- Python 3.13.0b1: suboptimal `pdb._post_mortem` behavior if `.pdbrc` exists HOT 4
- Improve accuracy of `ntpath.normpath()` & `ntpath.abspath()` HOT 5
- Treat Fraction as a real value in mixed arithmetic operations with complex HOT 2
- ``test_venv`` prints unnecessary information HOT 4
- Honor PyOS_InputHook in the new REPL HOT 4
- " , " Grammatical confusion! ----- , 语法的迷惑 ! HOT 5
- sysconfig values for `platstdlib` do not appear to be accurate
- [C API] Add a public Py_nullptr macro (rename private _Py_NULL) HOT 4
- [C API] Split large object.h file: create refcount.h HOT 1
- pyrepl help (pydoc): "exit" does not exit, whereas "quit" does HOT 1
- Spill the stack pointer across calls in the interpreter.
- Utilize last character gap for two-way periodic needles
- During decompression python tries to read sys.maxsize - which fail on start with MemoryError in case of any resource memory limit set.
- Wrong `follow_symlinks` default fallback implementation HOT 5
- Error exiting the new REPL with Ctrl+Z on Windows HOT 2
- [3.12] Lambda generators cause assertion failure: `python: Objects/genobject.c:400: gen_close: Assertion `exception_handler_depth > 0' failed.`
- Improve ``NameError`` message when non-mangled name exists in the global scope HOT 9
- Flaky test `test_asyncio_repl_is_ok` in `test_repl` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpython.