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 serhiy.storchaka
Recipients koobs, larry, serhiy.storchaka
Date 2015-09-08.08:06:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441699597.53.0.464316912063.issue25026@psf.upfronthosting.co.za>
In-reply-to
Content
No, the clinic code is not updated at build time. Your should either update clinic code just after patching Modules/fcntlmodule.c (Python 3 is needed), or update clinic code at patch creation time and include changes of generated clinic files in the patch.

Generated clinic files contain a code for argument parsing (PyArg_ParseTuple...).

I don't know if there is easy way to make this change conditionally for FreeBSD/OSX. The only way that I know is writing custom converters.

Perhaps the original commit log is outdated. What was the type of code at the time of this log? Now it is unsigned int and this doesn't make sign extension when casted to unsigned long. While the code parameter is in the range 0..0xffffffff, unpatched code shouldn't have any visible effects.
History
Date User Action Args
2015-09-08 08:06:37serhiy.storchakasetrecipients: + serhiy.storchaka, larry, koobs
2015-09-08 08:06:37serhiy.storchakasetmessageid: <1441699597.53.0.464316912063.issue25026@psf.upfronthosting.co.za>
2015-09-08 08:06:37serhiy.storchakalinkissue25026 messages
2015-09-08 08:06:37serhiy.storchakacreate