-
Notifications
You must be signed in to change notification settings - Fork 646
Grumpy panics when it can't fulfill an allocation #166
Comments
I think CPython would raise MemoryError in this case but I'm not sure that we can do the same here: there doesn't appear to be a way to catch failed memory allocations in Go. |
make
on corner case
CPython does raise a memory error, but not by catching a failed
We can have similar checks in Grumpy. |
|
Hmmm, so the panic is from |
Oh that's interesting. So CPython does not raise MemoryError when malloc() fails? |
It does raise Go also does checks like these, hence the panic from |
This python code
cause
in seq.go to be panicked. I can't think of a way to handle that.
The text was updated successfully, but these errors were encountered: