C API eqivalent of object.__new__

Jacek Generowicz jacek.generowicz at cern.ch
Mon Oct 4 04:05:05 EDT 2004


aleaxit at yahoo.com (Alex Martelli) writes:

> Jacek Generowicz <jacek.generowicz at cern.ch> wrote:
>    ...
> > I was indeed starting to think about PyObject_Call* approaches to
> > this, but didn't want to go down that path without making sure that I
> > haven't missed some function that was specifically designed to do it.
> > 
> > If _you_ don't know of one, then I'll take that to mean that I
> > shouldn't waste more time looking for it :-)
> > 
> > Thanks.
> 
> You're welcome, but wrong (even though very kind!-) in assuming I
> necessarily know every nook and cranny of Python's C API

I assume no such thing. I merely think that if you are not aware of
it, then the probability is sufficiently high that I haven't missed
something glaringly obvious just because of my incompetence in the
field of RingTFM ;-)

Also, if the PyObject_Call* approach is good enough for you, then the
chances are fairly high that it will be good enough for me.

> "Make it work, make it right, make it fast", as Kent Beck says!-).

I've been quoting (a variation on) this to all and sundry, and
attributing it to KB for a few years now, but I've completely
forgotten where I came across it. Do you know its origin ?



More information about the Python-list mailing list