This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients benjamin.peterson, fweimer, gregory.p.smith, twouters
Date 2018-04-19.04:25:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1524111941.44.0.682650639539.issue33312@psf.upfronthosting.co.za>
In-reply-to
Content
Yeah, I've run into this before. The "correct" thing to do is use C99 VLAs. Unfortunately, that doesn't work for PyDictKeysObject because it really wants a union of VLAs but that isn't supported. The best I could do is making a struct for every possible member of the union. See the attached patch. I didn't land it because it's gross. OTOH, undefined behavior is bad, so I'm okay landing this if you don't find it too revolting.
History
Date User Action Args
2018-04-19 04:25:41benjamin.petersonsetrecipients: + benjamin.peterson, twouters, gregory.p.smith, fweimer
2018-04-19 04:25:41benjamin.petersonsetmessageid: <1524111941.44.0.682650639539.issue33312@psf.upfronthosting.co.za>
2018-04-19 04:25:41benjamin.petersonlinkissue33312 messages
2018-04-19 04:25:39benjamin.petersoncreate