Serhiy Storchaka added the comment:

The curses module also has many conditionally implemented functions.

I think Argument Clinic can detect preprocessor instructions 
(#if/#ifdef/#ifndef/#else/#endif) and generate needed #if/#endif in generated 
file. This would be more robust than explicitly repeat condition in clinic 
declaration, because external conditions can be changed.

----------
nosy: +serhiy.storchaka

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

Reply via email to