API question -- decref after adding to dictionary?
Michael P. Reilly
arcege at shore.net
Fri Aug 6 16:25:05 CEST 1999
Fred L. Drake <fdrake at cnri.reston.va.us> wrote:
: Rich Salz writes:
: > The API documentation doesn't seem to say what the functions do to
: > object references. Am I missing it, or do I really have to read the
: This is a matter of completeness; the API docs just aren't "there"
: yet in this regard, and the time to devote to adding the information
: hasn't been available.
: In the meanwhile, I'd certainly be glad to receive patches which
: added the information to the API reference.
: I do hope that this isn't a deciding factor as to whether you use
: Python. The discussions of reference counting in the API and
: Extending & Embedding manuals do try to explain the approaches taken
: in Python and reduce the pain significantly. I've written a number of
: C extensions myself, including one very early in my experience with
: Python, and haven't had a lot of difficulty with it. (Note: I did
: *not* say I haven't had any difficulties!)
Fred, I haven't given up on my own extention writing section, just gotten
delayed researching the C++ side of it. Should I just drop it?
More information about the Python-list