[issue28988] Switch dict and set structures to PyVarObject

Serhiy Storchaka report at bugs.python.org
Fri Dec 16 10:01:07 EST 2016


New submission from Serhiy Storchaka:

In issue28959 Raymond said that a dict structure can be switched to PyVarObject. Victor guessed that it makes sense to switch a set structure too. Proposed patch implements this. The layout of a dict structure is not changed. The number of used and filled entries in a set structure are swapped, therefore extensions that use PySet_GET_SIZE or access fields of PySetObject directly (both are not in a stable API) should be recompiled.

I don't see a benefit from this patch except some unification.

----------
assignee: rhettinger
components: Extension Modules
files: dict-set-var-object.patch
keywords: patch
messages: 283404
nosy: haypo, rhettinger, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Switch dict and set structures to PyVarObject
type: enhancement
versions: Python 3.7
Added file: http://bugs.python.org/file45925/dict-set-var-object.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28988>
_______________________________________


More information about the Python-bugs-list mailing list