• Kirill Smelkov's avatar
    bigfile/py: Raise MemoryError for ENOMEM errno · 2cf9073f
    Kirill Smelkov authored
    Currently we always raise RuntimeError for problems, which is
    more-or-less ok for humans, but soon we'll need to distinguish "no
    memory" errors from other error conditions in upper layers in code.
    
    Introduce helper function for choosing appropriate exception type for an
    error - MemoryError for when errno=ENOMEM and RuntimeError otherwise,
    and use it where appropriate.
    
    ( Unfortunately Python does not provide such a helper... )
    2cf9073f
Name
Last commit
Last update
3rdparty Loading commit data...
bigarray Loading commit data...
bigfile Loading commit data...
demo Loading commit data...
include/wendelin Loading commit data...
lib Loading commit data...
t Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
CHANGES Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...
wendelin.py Loading commit data...