[pypy-dev] do we still need to generate applevel _exceptions.py?
Christian Tismer
tismer at stackless.com
Sun May 8 20:35:50 CEST 2005
holger krekel wrote:
> Hi pypy-dev,
>
> We have pypy/lib/_exceptions.py which is a generated applevel
> definition and gets translated to pypy/module/exceptionsinterp.py
> by Christian fine geninterp mechanism. Now to fix some remaining
> compliancy bugs it seems easy to fix the applevel exceptions definition
> unless there is a need to still be able to regenerate that as well.
> I'd guess the latter is not neccessary anymore so is it fine
> to just fix pypy/lib/_exceptions.py and regenerate? And what
> was the incantation again to regenerate the exceptionsinterp.py
> again (did i miss some piece of documentation somewhere)?
I think we can continue to generate the exceptions. For migration
to future versions, it finds subtle argument additions quite nicely.
The only complicancy problems that I see are the __str__ methods.
There are just a few to be implemented by hand.
A mechanism to supply these methods is inside the generator.
As an example there is already one such method implemented,
see the end of pypy/tool/_enumerate_exceptions.py
About interpleveling the things, I agree with Armin that
this should be cache-generated, soon. Will look into that.
ciao - chris
--
Christian Tismer :^) <mailto:tismer at stackless.com>
tismerysoft GmbH : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
More information about the pypy-dev
mailing list