Tim Peters <tim.one@comcast.net> writes: > So I'm unclear on what we're trying to optimize when a tp_clear nukes less > than the corresponding tp_traverse visits. I suppose "code space" is one > decent answer to that. In the case of type objects, it's not a matter of optimization but of correctness. If you were clearing all slots of a type object, you'd lose state that is still needed later on; see the comment for typeobject.c:2.150. Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4