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

2016年10月10日 15:30:24 -0700

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
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to