A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-September/082498.html below:

[Python-Dev] What this code should do?

[Python-Dev] What this code should do? [Python-Dev] What this code should do?Amaury Forgeot d'Arc amauryfa at gmail.com
Fri Sep 19 18:26:05 CEST 2008
Hello Maciej,

Maciej Fijalkowski wrote:
> Hello,
>
> I'm a little clueless about exact semantics of following snippets:
>
> http://paste.pocoo.org/show/85698/
>
> is this fine?
> or shall I fill the bug?
> (the reason to ask is because a) django is relying on this b) pypy
> implements it differently)

Note that python 3.0 has a different behaviour; in the first sample, it prints:
A (<class 'NameError'> ...
B (<class 'ZeroDivisionError'>, ...

See the subtle differences between
http://docs.python.org/dev/library/sys.html#sys.exc_info
http://docs.python.org/dev/3.0/library/sys.html#sys.exc_info

-- 
Amaury Forgeot d'Arc
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4