Python 2.5.1 (r251:54863, Sep 13 2007, 09:06:49)
[GCC 4.2.1 20070828 (prerelease) (4.2.1-6mdv2008.0)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class InfiniteException(Exception):
... def __init__(self):
... raise InfiniteException()
...
>>> raise InfiniteException()
Traceback (most recent call last):
File "", line 1, in
File "", line 3, in __init__
[ ... beaucoup de lignes plus loin ... ]
File "", line 3, in __init__
RuntimeError: maximum recursion depth exceeded
>>>
[^] # Re: Suffit de demander
Posté par Antoine . En réponse au journal Qu'est-ce que bien gérer les erreurs dans ses programmes ?. Évalué à 1.
Python 2.5.1 (r251:54863, Sep 13 2007, 09:06:49)
[GCC 4.2.1 20070828 (prerelease) (4.2.1-6mdv2008.0)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class InfiniteException(Exception):
... def __init__(self):
... raise InfiniteException()
...
>>> raise InfiniteException()
Traceback (most recent call last):
File "", line 1, in
File "", line 3, in __init__
[ ... beaucoup de lignes plus loin ... ]
File "", line 3, in __init__
RuntimeError: maximum recursion depth exceeded
>>>