[Python-ideas] Minimalist `except` syntax.

geremy condra debatem1 at gmail.com
Sun Oct 18 19:22:28 CEST 2009


On Sun, Oct 18, 2009 at 6:22 AM, cool-RR <cool-rr at cool-rr.com> wrote:
> Often I do:
> try:
>     some_suite()
> except SomeError:
>     pass
> What I suggest is that instead we'll have this:
> try:
>     some_suite()
> except SomeError
> What do you think?
> Ram.

try: some_suite()
except SomeError: pass

works now. not really sure I see the point in going
through the changes required in order to remove
the word 'pass' from the end. Anything I'm missing?

Geremy Condra



More information about the Python-ideas mailing list