A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-June/054235.html below:

[Python-Dev] refcounting vs PyModule_AddObject

[Python-Dev] refcounting vs PyModule_AddObject [Python-Dev] refcounting vs PyModule_AddObjectSkip Montanaro skip at pobox.com
Wed Jun 15 14:57:00 CEST 2005
    Michael> So I went looking for other instances of the same problem.  I
    Michael> didn't find any (though I don't understand how _csv.c gets away
    Michael> with line 1579)...

Same reason the Py_INCREF of ProfileError isn't necessary I think.
PyDict_New() returns a new reference which is passed onto
PyModule_AddObject().  No Py_DECREF of the dialects dict occurs, so it exits
reference-neutral w.r.t. the dialects object.

Skip
More information about the Python-Dev mailing list

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