Source

pypy / pypy / interpreter / error.py

Author Commit Message Labels Comments Date
Armin Rigo
Update to cffi/dd928004c3bf (release-0.4).
Armin Rigo
Import and fix cffi/a988b91f31fc.
Ronan Lamy
merge translation-cleanup
Ronan Lamy
Kill ObjSpace.full_exceptions
Branches
translation-cleanup
Armin Rigo
Change "raise ValueError" that should no longer occur into simple "assert" statements.
Ronan Lamy
Use FlowingError only in the flow space
Branches
translation-cleanup
Maciej Fijalkowski
test, fix and a bit of refactoring.
Maciej Fijalkowski
remove str_w as a multimethod
Branches
kill-unary-multimethods
Armin Rigo
Test and fix. Thanks Trundle for the test. The fix is done in error.py instead, by calling exception_is_valid_class_w() after calling exception_getclass(), as was already done in one place.
Antonio Cuni
_application_traceback might be a transparent proxy; in this case, we don't need to mark the frame as escaped, because the tb is a purely applevel object: even in the case it has indirect access to the frame, it's because the frame escaped somewhere else, and thus it's already marked
Branches
invalidate-virtualrefs
Antonio Cuni
rpython fixes
Branches
invalidate-virtualrefs
Armin Rigo
Add an interface get_traceback()/set_traceback() on OperationError. The frame is marked as escaping only if we call get_traceback(), or if the exception escapes the current frame.
Branches
invalidate-virtualrefs
Amaury Forgeot d'Arc
Try a slightly different interface, class name can be "module.name"
Branches
interplevel-exception-classes
Amaury Forgeot d'Arc
New function: error.new_exception_class(space, name, w_base)
Branches
interplevel-exception-classes
Alex Gaynor
More error checking in signal.setitimer.
Armin Rigo
Translation fix.
Armin Rigo
* improve wrap_oserror() and add tests. * make mmap.error a subclass of EnvironmentError, instead of equal to EnvironmentError.
Amaury Forgeot d'Arc
When EINTR is raised, the application has received a signal; give the signal handlers a chance to run. I'm not sure how to test this in RPython. CPython has the same call in PyErr_SetFromErrno(). This change should unblock test_io.py.
Amaury Forgeot d'Arc
Oops, I did it completely backwards. exceptions were oddly formatted in py.py and AppTests.
Branches
fast-forward
Amaury Forgeot d'Arc
Redo 1de01c8ed895 a bit differently in a more backward-compatible way.
Branches
fast-forward
Amaury Forgeot d'Arc
Change OperationError.errorstr() to format errors like exc_type.__name__: repr(exc_value) this function is mostly used by write_unraisable(), which now looks more like CPython.
Branches
fast-forward
Amaury Forgeot d'Arc
hg merge default
Branches
fast-forward
Armin Rigo
Make the "default" argument of getname() optional. Remove usage of the '?' at least in the interpreter/ and the objspace/ directories.
Andreas Stührk
Raising a string as exception is not allowed anymore.
Branches
fast-forward
Maciej Fijalkowski
also try to handle windows error, sketchy, no tests on linux
Maciej Fijalkowski
Simplify a bit error handling. Leverage the fact that OSError can accept filename as 3rd arg
Armin Rigo
Argh!
Armin Rigo
A function to raise OSError with the correct 'filename' attribute. Use it in os.stat() to test it.
Armin Rigo
Merge the branch/faster-raise-2: * move exceptions to interp-level. * add helpers space.exception_getclass() & co. * other similar small fixes all over the place.
Maciej Fijalkowski
make normalize_exception unroll_safe
  1. Prev
  2. 1
  3. 2
  4. 3
  5. Next