2011/12/13 Armin Rigo
> No, the behavior _is_ undefined. The comment you cited says that it
> cannot crash the Python interpreter; additionally, it makes a
> best-effort attempt at catching such accesses and raising ValueError.
> But I think I can build a strange-looking example where you mutate
Hi,
On Tue, Dec 13, 2011 at 11:37, Amaury Forgeot d'Arc wrote:
>> "When sorting a list using the sort() method, attempting to inspect or
>> mutate the content of the list will result in undefined behaviour."
>
> (...)
> So behaviour is not undefined at all...
No, the behavior _is_ undefined. Th
2011/12/12 Victor Stinner
> "When sorting a list using the sort() method, attempting to inspect or
> mutate the content of the list will result in undefined behaviour."
But is this even true? in listobject.c::listsort(), since 2002,
/* The list is temporarily made empty, so that mutations perfo
IEEE/ISO are working on a draft document about Python vulunerabilities:
http://grouper.ieee.org/groups/plv/DocLog/300-399/360-thru-379/22-WG23-N-0372/n0372.pdf
(in the context of a larger effort to classify vulnerabilities in all
languages: ISO/IEC TR 24772:2010, available from ISO at no cost a