Re: [Python-Dev] Missing functions [Was: Re: Experiment an opt-in new C API for Python? (leave current API unchanged)]

2018-11-22 Thread Matěj Cepl
On 2018-11-22, 10:13 GMT, Petr Viktorin wrote: > Yes, AFAIK that is the least bad solution. > I did something very similar here: > https://github.com/encukou/py3c/blob/master/include/py3c/fileshim.h Thank you. Matěj ___ Python-Dev mailing list Python-

Re: [Python-Dev] Missing functions [Was: Re: Experiment an opt-in new C API for Python? (leave current API unchanged)]

2018-11-22 Thread Petr Viktorin
On 11/21/18 4:11 PM, Matěj Cepl wrote: On 2018-11-21, 14:54 GMT, Benjamin Peterson wrote: In Python 3, there is no underlying FILE* because the io module is implemented using fds directly rather than C stdio. OK, so the proper solution is to kill all functions which expect FILE Indeed. This