[Zope-dev] Re: Python warnings behavior and stacklevel=2
Florent Guillaume
fg at nuxeo.com
Mon Feb 13 10:41:54 EST 2006
Julien Anguenot wrote:
> Tim Peters wrote:
>> [Julien Anguenot]
>>> I'm having some problems with the warnings module behavior.
>>> (Python-2.4.2 and Zope-2.9 trunk)
>>>
>>> [... traceback ... ]
>>>
>>> - Line 71
>>> Module zLOG, line 140, in LOG
>>> Module warnings, line 61, in warn
>>> Module warnings, line 67, in warn_explicit
>>> TypeError: unsubscriptable object
>>>
I've had this too, and I believe it appears if you have a frame referencing
a python script (or maybe an external method) in the stack.
Florent
--
Florent Guillaume, Nuxeo (Paris, France) Director of R&D
+33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
More information about the Zope-Dev
mailing list