Alexander Belopolsky wrote: >As an exercise in using the new set C API, I've replaced the >"interned" dictionary in stringobject.c with a set. Surprisingly, >what I thought would be a simple exercise, took several hours to >implement and debug. Two problems are worth mentioning: > >1. I had to add a function to setobject.h to retrieve a pointer to an >object stored in a set. I could not find a way to do it using current >API (short of iterating through the set of course). > >2. I had to change the PyString_Fini() and PySet_Fini() in >Py_Finalize() because cleaning "interned" set cannot be done after the >set module is finalized. > >If there is any interest, I will submit a patch, but it does not seem >to affect performance in any meaningful way. > > I would be curious to see your patch. Raymond
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