1. Pypy
  2. Untitled project
  3. pypy

Source

pypy / pypy / rpython / exceptiondata.py

Author Commit Message Date Builds
Armin Rigo
The llinterp cannot convert random exception classes from random pure Python runs. When we get one, convert it to UnknownException.
Branches
kill-someobject
Armin Rigo
kill a hack that is a few hours old, for a change
Branches
kill-someobject
Armin Rigo
A bunch more.
Branches
kill-someobject
Armin Rigo
Slow progress. Did not find a better way than listing by hand the exceptions in make_raise_noarg().
Branches
kill-someobject
Armin Rigo
Also crash early on NotImplementedError in debug builds.
Alexander Schremmer
(cfbolz, xoraxax): Remove extfunctable and suggested_primitive support. Refactored exttypeinfo-usage of rstack to use a hint on the opaquetype. Ignored a weird hack in the extfunctable regarding ntpath.isabs because there is str in str support in rpython now.
Antonio Cuni
fix exceptiontransformer to work with ootype
Antonio Cuni
(antocuni, nik) Fixed a bug that prevented OSError to be raised in ootypesystem.
Carl Friedrich Bolz
issue141: testing implemented issubclass checks using relative numbering including some more isinstance tests. This required quite some fixes in various places because of exceptions.
Samuele Pedroni
re-attach standardexceptions to ExceptionData as a class attribute
Armin Rigo
Reorganized the low-level representation of "external types" to take advantage of the memory management that GcStruct provides. Now an object like a thread.lock is implemented as a GcStruct with a single field "obj" that is an inlined Opaque object. * updated lltype.py to allow Opaque objects to be inlined in structures. * allow thread.rpython.exttable to register a new standard exception, thread.error, raised by the release() method of locks. * thread.rpython.ll_thread: each function is divided in two functions, one that does the mallocing of the GcStruct for locks, or that reads the "obj" field of the GcStruct, and another that is t…
Armin Rigo
Oups, forgot to check this in.
Armin Rigo
Only put standard exceptions in the pyexcclass2exc() table.
Armin Rigo
Can now raise OSError from C code. Actually much easier than expected... if you remember that we can just have an ll_raise_OSError() helper defined by the RTyper.
Armin Rigo
Add support for instance variables in standard exception classes. Implemented OSError.errno. This required some bugfixes in insert_link_conversion().
Christian Tismer
removed the import aster-risk :-)
Armin Rigo
Recursive prebuilt instances in the rtyper. Commented out a debugging print statement. The annotator now says 'readonly=False' for attributes that exist on prebuilt instances, which allows 'readonly' to be used as a flag to know if the attribute must be attached to the instance or to the class.
Armin Rigo
Force the except blocks to receive a standardized exception type and value. This allows the code generators to assume they know the low-level type of the data coming in, to do the 'raise'.
Armin Rigo
Force some standard exceptions to exist and be translated.
Armin Rigo
Bordering on the insane, here is the start of rtyper support for exceptions, including converting from an exception set by CPython to an instance of the corresponding RPython class. More general fun with strange code all around the place.