[issue9948] findCaller is slow and loses case information on Windows
Vinay Sajip
report at bugs.python.org
Sun Sep 26 23:41:34 CEST 2010
Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
> That is very undocumented behaviour and relying on that sounds like a terrible idea.
Agreed, I'm just fretting about it ...
> First of all that should not be a global setting, secondly this is currently not possible in logging either.
True, but you have pointed out in the past that this *is* a problem - so it would be good to solve it.
> A better solution would be to do what warnings does and making it possible provide a stacklevel to the caller finder.
I'm not that familiar with how warnings does it, but I will take a look.
Thanks for the suggestions.
BTW re. your patch - where you say "os.co_filename", do you mean "co.co_filename"?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9948>
_______________________________________
More information about the Python-bugs-list
mailing list