[issue42266] LOAD_ATTR cache does not fully replicate PyObject_GetAttr behavior

2020-11-04 Thread Kevin Modzelewski
New submission from Kevin Modzelewski : The problem is that the descriptor-ness of a type-level attribute is only checked at opcache-set time, not at opcache-hit time. $ python3.8 test.py 2 $ ./python --version Python 3.10.0a2+ $ git rev-parse --short HEAD 789359f47c $ ./python test.py 1

[issue26718] super.__init__ leaks memory if called multiple times

2016-04-08 Thread Kevin Modzelewski
New submission from Kevin Modzelewski: The super() __init__ function fills in the fields of a super object without checking if they were already set. If someone happens to call __init__ again, the previously-set references will end up getting forgotten and leak memory. For example: import

[issue26659] slice() leaks memory when part of a cycle

2016-03-28 Thread Kevin Modzelewski
New submission from Kevin Modzelewski: The slice type doesn't participate in GC, which means that if you happen to create a cycle involving a slice, that cycle will never get freed. Here's an example: def f(): l = [] l.append(slice(l)) # Will consume memory without bound: while True

[issue24731] Incorrect assert in str_subtype_new

2015-12-01 Thread Kevin Modzelewski
Kevin Modzelewski added the comment: Awesome, thanks! -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24731> ___ ___ Python-bugs-

[issue24731] Incorrect assert in str_subtype_new

2015-07-26 Thread Kevin Modzelewski
New submission from Kevin Modzelewski: (Using python 3 terminology) str_subtype_new is the function that creates instances of any subtypes of bytes (ie is called by bytes_new if the requested type is not PyBytes_Type -- looks like this function's name comes from python 2). Its approach