[New-bugs-announce] [issue34741] Get rid of tp_getattro and tp_setattro in pyexpat.xmlparser

Serhiy Storchaka report at bugs.python.org
Wed Sep 19 10:38:57 EDT 2018


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

Currently pyexpat.xmlparser has the tp_getattro and tp_setattro slot for handling some attributes. The proposed PR replaces it with tp_members and tp_getset.

Benefits: constant time access, names of these attributes are added to the result of help(), no need of the __dir__() method, better structured code.

----------
components: Extension Modules
messages: 325769
nosy: eli.bendersky, scoder, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Get rid of tp_getattro and tp_setattro in pyexpat.xmlparser
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34741>
_______________________________________


More information about the New-bugs-announce mailing list