Serhiy Storchaka added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25026>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to