Skip to content

Instantly share code, notes, and snippets.

@asauber
Created November 5, 2019 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asauber/94e151e51fc6a307f03aa3a012c633da to your computer and use it in GitHub Desktop.
Save asauber/94e151e51fc6a307f03aa3a012c633da to your computer and use it in GitHub Desktop.
Python MemoryError
>>> bytes(int.from_bytes(bytes("buurrito".encode("ascii")), byteorder='little') ^ int.from_bytes(bytes("sushi".encode("ascii")), byteorder='little'))
python3(15111,0x1035955c0) malloc: can't allocate region
*** mach_vm_map(size=8031159600630075392) failed (error code=3)
python3(15111,0x1035955c0) malloc: *** set a breakpoint in malloc_error_break to debug
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
MemoryError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment