Guido van Rossum wrote: > > > > - extern DL_IMPORT(PyObject *) PyInstance_DoBinOp(PyObject *, PyObject *, > > > - char *, char *, > > > - PyObject * (*)(PyObject *, > > > - PyObject *)); > > > - > > > - extern DL_IMPORT(int) > > > - PyInstance_HalfBinOp(PyObject *, PyObject *, char *, PyObject **, > > > - PyObject * (*)(PyObject *, PyObject *), int); > > > > Wouldn't it be safer to provide emulation APIs for these ? There > > might be code out there using these APIs. > > No. These were never intended to be part of the API (and it was a > mistake that they used DL_IMPORT()). They had to be extern because > they were defined in one file and used in another. I'm glad they're > gone. They are so obscure that I'd be *very* surprised if anybody was > using them, and even more if they even *wanted* emulation under the > new scheme -- I'd expect them to eagerly convert their code to using > new-style numbers right away. I'll see whether I can get mxDateTime working with the new scheme later this year -- it would be really great to do away with the coercion hack I was using until now :-) -- Marc-Andre Lemburg ______________________________________________________________________ Company: http://www.egenix.com/ Consulting: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4