[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Include
classobject.h,2.33,2.34
M.-A. Lemburg
mal@lemburg.com
Thu, 04 Jan 2001 20:32:15 +0100
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/