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 <rep...@bugs.python.org>
<http://bugs.python.org/issue28988>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to