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
George Shuklin added the comment:
Unfixed crash of code interpreter? This is sad.
--
___
Python tracker
<http://bugs.python.org/issue30734>
___
___
Python-bug
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('
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