[Python-Dev] PEP 509 (original) (raw)

Ethan Furman ethan at stoneleaf.us
Tue Jan 12 18:50:56 EST 2016


On 01/12/2016 03:24 PM, Victor Stinner wrote:

2016-01-12 23:24 GMT+01:00 Ethan Furman wrote:

Even if not exposed at the Python layer, it's still exposed when working at the C layer. Is version any less confusing there? (I only work in C when working on Python, and only occasionally, so my question is real.)

Fields of the PyDictObject must be prefixed with "ma_". If you read the prior art of the PEP, you will see that Antoine Pitrou also proposed the "ma_version" name. The existing version on types used the "version_tag" name. Maybe I should pick this one.

Dunder names like version is not used in the C language.

Do you expect "version" to be somehow "protected" or "private"?

Nope, I just don't want to be misdirected when I see the name. :) I think ma_version (or ma_seqnum) will be fine.

-- Ethan



More information about the Python-Dev mailing list