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

Matěj Cepl mcepl at cepl.eu
Wed Nov 21 10:11:54 EST 2018


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, and if you are anal retentive about stability of API, then 
you have to fake it by creating FILE structure around the 
underlying fd handler as I did in M2Crypto, right?

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mcepl at ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
If you have a problem and you think awk(1) is the solution, then
you have two problems.
   -- David Tilbrook (at least 1989, source of the later famous
      jwz rant on regular expressions).



More information about the Python-Dev mailing list