[issue43628] Incorrect argument errors for random.getstate()

2021-03-25 Thread Yang Feng
New submission from Yang Feng : In documentation of random.getstate(), it says: “random.getstate() Return an object capturing the current internal state of the generator. This object can be passed to setstate() to restore the state.” random.getstate() takes 0 argument and return the current

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-10 Thread Yang Feng
Yang Feng added the comment: Could you please tell me your secret method of getting the minimal script? I will try to provide minimal ones in our following work. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43190] < test.support > check_free_after_iterating( ) causes core dump in handling iteration.

2021-02-10 Thread Yang Feng
New submission from Yang Feng : In the following program, we call check_free_after_iterating( ) twice, in the second time, we recursively call function test_free_after_iterating(). Python interpreter crashes. +++ import unittest import test.support

[issue43189] decorator function run_with_locale() crashes Python interpreter

2021-02-10 Thread Yang Feng
New submission from Yang Feng : We use run_with_locale() as decorator function, then we recursively call test_float__format__locale in the following example. Python interpreter crashes. +++ from test.support import run_with_locale @run_with_locale

[issue43188] multiple operations of dict causes core dump of Python interpreter.

2021-02-10 Thread Yang Feng
New submission from Yang Feng : In the following programs, we call check_reentrant_insertion("s") twice, after multiple of update and clear of dict, the Python interpreter crashes. +++ def check_reentrant_insertion(mutate): clas

[issue43187] Dict creation in recursive function cause interpreter crashes.

2021-02-10 Thread Yang Feng
New submission from Yang Feng : In the following programs, dict is created in recursive calls. Then a core dump is reported by Python interpreter. +++ def test_equal_operator_modifying_operand(): class X(): def __del__(DictTest

[issue43186] Recursive call causes core dump in assertRaises

2021-02-10 Thread Yang Feng
New submission from Yang Feng : In following teststr.py, class MyString is nestedly instanced in method __getattr__(). This script will lead to a "core dump" in Python interpreter. My Python version is 3.9.1 and my operating system is Ubuntu 16.04.

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-10 Thread Yang Feng
New submission from Yang Feng : Seeing the following program, in the second assertRaises(), function "test_invalid_adpcm_state()" is recursively called. Then a fatal Python error shows up and the Python interpreter crashes. ++ import unitt