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/082258.html below:

[Python-Dev] 'warnings' module changes still breaking Twisted, still looking for a fix

[Python-Dev] 'warnings' module changes still breaking Twisted, still looking for a fixglyph at divmod.com glyph at divmod.com
Fri Sep 5 00:46:41 CEST 2008
On 10:35 pm, brett at python.org wrote:
>It is not hard to force an import of
>warnings to use the pure Python version and totally ignore the C
>implementation. See test_warnings on how to pull that off. Then you
>can do your hack of overriding warn_explicit().

Benjamin Peterson's recommendation sounds like the winner (since we need 
to do *something* different in 2.6 anyway).  Forcing the import leads to 
a bunch of import-ordering problems, since the testing tool itself wants 
to emit warnings, and self-test, and then it has to import the module 
_and_ set an attribute on the SUT module...

Thanks for the tip, though.
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