[issue39822] Use NULL instead of None for empty attrib in C implementation of Element

2020-03-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39822] Use NULL instead of None for empty attrib in C implementation of Element

2020-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset dccd41e29fb9e75ac53c04ed3b097f51f8f65c4e by Serhiy Storchaka in branch 'master': bpo-39822: Use NULL instead of None for empty attrib in Element. (GH-18735) https://github.com/python/cpython/commit/dccd41e29fb9e75ac53c04ed3b097f51f8f65c4e --

[issue39822] Use NULL instead of None for empty attrib in C implementation of Element

2020-03-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18092 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18735 ___ Python tracker ___

[issue39822] Use NULL instead of None for empty attrib in C implementation of Element

2020-03-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently None is used instead of an empty directory for the attrib field in the C implementation of Element in ElementTree. It is a pure optimization: an empty dict takes a memory and its creation has a cost. The proposed PR makes NULL be using instead