[issue20537] logging exc_info parameter should accept exception instances

2014-09-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9d54903a84b5 by Vinay Sajip in branch 'default': Closes #20537: logging methods now accept an exception instance as well as a Boolean value or exception tuple. Thanks to Yury Selivanov for the patch. https://hg.python.org/cpython/rev/9d54903a84b5 -

[issue20537] logging exc_info parameter should accept exception instances

2014-09-12 Thread Yury Selivanov
Yury Selivanov added the comment: Vinay, Please take a look at the second patch -- 'logging_02.patch' -- with updated docs -- Added file: http://bugs.python.org/file36614/logging_02.patch ___ Python tracker _

[issue20537] logging exc_info parameter should accept exception instances

2014-02-07 Thread Vinay Sajip
Vinay Sajip added the comment: Yes - or I would have said something :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue20537] logging exc_info parameter should accept exception instances

2014-02-07 Thread Yury Selivanov
Yury Selivanov added the comment: > I believe it's too late for feature changes in 3.4, so removing it from > versions. Alright. Was worth a try ;) > It would be good if the patch addressed documentation changes, too :-) Sure, I'll add the documentation, when we start working on 3.5. Are you

[issue20537] logging exc_info parameter should accept exception instances

2014-02-06 Thread Vinay Sajip
Vinay Sajip added the comment: It would be good if the patch addressed documentation changes, too :-) -- ___ Python tracker ___ ___ Py

[issue20537] logging exc_info parameter should accept exception instances

2014-02-06 Thread Vinay Sajip
Vinay Sajip added the comment: I believe it's too late for feature changes in 3.4, so removing it from versions. -- assignee: -> vinay.sajip versions: -Python 3.4 ___ Python tracker _

[issue20537] logging exc_info parameter should accept exception instances

2014-02-06 Thread Yury Selivanov
New submission from Yury Selivanov: A bunch of logging methods accept optional parameter exc_info, that is supposed to be either 'True' or a tuple of three elements (type, exc, tb). If, however, someone passes an actual exception instance, Logger._log function will interpret it as True and get