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/2006-April/064503.html below:

[Python-Dev] traceback.py still broken in 2.5a2

[Python-Dev] traceback.py still broken in 2.5a2 [Python-Dev] traceback.py still broken in 2.5a2Guido van Rossum guido at python.org
Thu Apr 27 21:01:15 CEST 2006
On 4/27/06, Phillip J. Eby <pje at telecommunity.com> wrote:
> At 11:38 AM 4/27/2006 -0700, Guido van Rossum wrote:
> >The change below was rolled back because it broke other stuff. But IMO
> >it is actually necessary to fix this,
>
> Huh?  The change you showed wasn't reverted AFAICT; it's still on the trunk.

Sorry. I meant a different change in the same piece of code.

> >  otherwise those few exceptions
> >that don't derive from Exception won't be printed correctly by the
> >traceback module:
>
> It looks like the original change (not the change you listed) should've
> been using "issubclass(etype, BaseException)".  (I only reverted the
> removal of 'isinstance()', which was causing string exceptions to break.)
>
> Anyway, looks like a four-letter fix (i.e. add "Base" there), unless there
> was some other problem I'm missing?

Correct, that's the fix I'm looking for.

--
--Guido van Rossum (home page: http://www.python.org/~guido/)
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