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/2016-October/146639.html below:

[Python-Dev] PyWeakref_GetObject() borrows its reference from... whom?

[Python-Dev] PyWeakref_GetObject() borrows its reference from... whom? [Python-Dev] PyWeakref_GetObject() borrows its reference from... whom?Greg Ewing greg.ewing at canterbury.ac.nz
Mon Oct 10 18:27:46 EDT 2016
Nathaniel Smith wrote:
> IIRC to handle
> this gilectomy adds per-object mutexes that you have to hold whenever
> you're mucking around with that object's internals.

What counts as "mucking around with the object's internals",
though?

If I do the C equivalent of:

    x = somedict[5]
    x.dosomething()

am I mucking around with the internals of somedict?
Intuitively, I would not think so. But the way
PyDict_GetItem currently works, this would be
dangerous.

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