[Python-Dev] A new dict for Xmas? (original) (raw)
Maciej Fijalkowski fijall at gmail.com
Sat Dec 17 12:53:05 CET 2011
- Previous message: [Python-Dev] A new dict for Xmas?
- Next message: [Python-Dev] A new dict for Xmas?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Dec 16, 2011 at 11:32 PM, Terry Reedy <tjreedy at udel.edu> wrote:
On 12/16/2011 5:03 AM, Mark Shannon wrote:
Of course using slots saves more memory, but people don't use them much. Do you think the stdlib should be using slots more?
Note that unlike some other more advanced approaches, slots do change semantics. There are many cases out there where people would stuff arbitrary things on stdlib objects and this works fine without slots, but will stop working as soon as you introduce them. A change from no slots to using slots is not only a performance issue.
Cheers, fijal
- Previous message: [Python-Dev] A new dict for Xmas?
- Next message: [Python-Dev] A new dict for Xmas?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]