[Python-3000] Adaptation and type declarations

Georg Brandl g.brandl at gmx.net
Mon Apr 10 22:35:01 CEST 2006


Chaz. wrote:
> If you are going this far, why not also support a throws() modifier (or 
> whatever you might call it).
> 
> Right now I do something like:
> 
> @throws(IOError)
> def foo(...) :
> 
> as a way to indicate that foo() can throw a specific exception.
> 
> I might suggest
> 
> def foo(...) throws(...) :

Oh, and as we go, we could require that code that calls such a function
explicitly handles that exceptions.

Changing the language's name to Javthon seems favorable, too ;)

Georg



More information about the Python-3000 mailing list