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

2008-09-04 Thread Brett Cannon
On Thu, Sep 4, 2008 at 3:39 PM, <[EMAIL PROTECTED]> wrote: > On 10:18 pm, [EMAIL PROTECTED] wrote: >> >> That's why catch_warning keeps track of the warnings filter too, so >> you can call warnings.simplefilter("always") within the context >> manager and the filter state will be restored. > > Than

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

2008-09-04 Thread glyph
On 10:35 pm, [EMAIL PROTECTED] 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 sou

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

2008-09-04 Thread glyph
On 10:18 pm, [EMAIL PROTECTED] wrote: That's why catch_warning keeps track of the warnings filter too, so you can call warnings.simplefilter("always") within the context manager and the filter state will be restored. Thanks for the pointer - this is interesting. I misunderstood the way the wa

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

2008-09-04 Thread Brett Cannon
On Thu, Sep 4, 2008 at 3:11 PM, <[EMAIL PROTECTED]> wrote: > > With the 2.6 final release impending, the Twisted community buildbot is > still red, , but there only seems to be one real issue: > the warn_explicit change. This seems like it could be a pretty minor bit of > mai

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

2008-09-04 Thread Benjamin Peterson
On Thu, Sep 4, 2008 at 5:11 PM, <[EMAIL PROTECTED]> wrote: > > With the 2.6 final release impending, the Twisted community buildbot is > still red, , but there only seems to be one real issue: > the warn_explicit change. This seems like it could be a pretty minor bit of > mai

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

2008-09-04 Thread glyph
With the 2.6 final release impending, the Twisted community buildbot is still red, , but there only seems to be one real issue: the warn_explicit change. This seems like it could be a pretty minor bit of maintenance to clear up on our end, if Python provided the appropri