[Tutor] Exceptions and its error messages

lumbricus@gmx.net lumbricus at gmx.net
Sun Aug 28 21:55:52 CEST 2005


Hello!

Don't know if someone wrote this already.

>But how knowing all error messages from some module?
>Is there any way of knowing from python interactive line?

>>> for i in dir(__builtins__):
>>>     if i.endswith("Error"): print i

HTH and Greets, J"o!


-- 
Wir sind jetzt ein Imperium und wir schaffen uns
unsere eigene Realita:t. Wir sind die Akteure der 
Geschichte, und Ihnen, Ihnen allen bleibt nichts,
als die Realita:t zu studieren, die wir geschaffen haben.
        -- Karl Rove zu Ron Suskind (NYT)

GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl


More information about the Tutor mailing list