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/2011-May/111315.html below:

[Python-Dev] Borrowed and Stolen References in API

[Python-Dev] Borrowed and Stolen References in API [Python-Dev] Borrowed and Stolen References in APIGreg Ewing greg.ewing at canterbury.ac.nz
Tue May 10 02:13:47 CEST 2011
Nick Coghlan wrote:

> One interesting aspect is that from the caller's point of view, a
> *new* reference to the relevant behaves like a borrowed reference for
> input parameters, but like a stolen reference for output parameters
> and return values.

I think it's less confusing to use the term "new" only for
output/return values, and "stolen" only for input values.

Inputs are either "borrowed" or "stolen" (by the callee).

Outputs are either "new" (to the caller) or "borrowed"
(by the caller).

(Or maybe the terms for outputs should be "given" and "lent"?-)

-- 
Greg
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