[EMAIL PROTECTED] wrote:
Author: ale
Date: Sat May 14 02:19:17 2005
New Revision: 12253
Modified:
pypy/dist/pypy/tool/_enum_exceptions.py
Log:
added arguments checking.
There are checks for correct number of arguments and correct types (for the
case I understand an exact nuber of arguments
I haven't run any test - it is too late for that. Will do in the morning
Looks well done!
After all, looking at this stuff again, I still like the
approach, although it is limited in a way that you write
a program that actually tries to catch stuff that you know
already.
Originally, I planned to catch all the __str__ formatting
methods by probing them, too. But this seems to be very
hard, especially in the only relevant case of unicode.
I'd like to keep the code alive. Perhaps we can find
an application for other cases. Especially the __init__
tracking seems to be working very well and could be extended.
ciao -- chris
--
Christian Tismer :^) <mailto:[EMAIL PROTECTED]>
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/
_______________________________________________
[email protected]
http://codespeak.net/mailman/listinfo/pypy-dev