[issue36507] frozenset type breaks ZFC

2019-04-02 Thread George Shuklin
New submission from George Shuklin : ZFC (https://en.wikipedia.org/wiki/Zermelo%E2%80%93Fraenkel_set_theory) defines numbers as nested empty sets. 0 is {} 1 is {{}} 2 is {{{}}} Sets can not be nested in python (as they are mutable), so next best type is frozen set. Unfortunately, nested

[issue30734] 200000 indexes crashes eval and python (without eval)

2017-06-25 Thread George Shuklin
George Shuklin added the comment: Unfixed crash of code interpreter? This is sad. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue30734] 200000 indexes crashes eval and python (without eval)

2017-06-22 Thread George Shuklin
New submission from George Shuklin: If there is too many indexes python crashes: a[0][0][0][0] segfault at 7ffd25fe6ff8 ip 564528c8cfe6 sp 7ffd25fe7000 error 6 in python2.7[564528b6a000+324000] code to generate code: >>> i="[0]"*20 >>> file('/t

[issue29511] Add 'find' as build-in method for lists

2017-02-09 Thread George Shuklin
New submission from George Shuklin: I found that Python provides 'find()' and 'in' methods for strings, but lacking same functionality for lists. Because strings and lists are very similar, it's reasonable to expect same function available for both. Here long and rather ugly hack list