Skip to content

Instantly share code, notes, and snippets.

@CFSworks
Created August 25, 2017 02:58

Revisions

  1. CFSworks created this gist Aug 25, 2017.
    7 changes: 7 additions & 0 deletions segfault_pypy_numpy.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/usr/bin/env pypy
    import numpy as np

    if __name__ == '__main__':
    while True:
    array = np.zeros([3], dtype=int)
    np.argwhere(array.sum() == 0)