On Wed, 24 Jan 2001, Greg Ewing <greg@cosc.canterbury.ac.nz> wrote: > This could be incorporated into PyDict. Instead of storing keys and > values in the same array, keep them in separate arrays and only > allocate the values array the first time someone stores a value other > than 1. Cool idea, but even cooler (would catch more idioms, that is) is "the first time someone stores something not 'is' something in the dict, allocate the values array". This would catch small numbers, None and identifier-looking strings, for the measly cost of one pointer/dict object. -- Moshe Zadka <sig@zadka.site.co.il> This is a signature anti-virus. Please stop the spread of signature viruses! Fingerprint: 4BD1 7705 EEC0 260A 7F21 4817 C7FC A636 46D0 1BD6
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