Vinay Sajip <vinay_sa...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue9948> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com