[issue21245] Logging Logger.exception documentation

2014-04-15 Thread Cameron Lee

New submission from Cameron Lee:

The documentation doesn't indicate that the Logger.exception method can accept 
kwargs like the other logging methods (Logger.debug, Logger.info, etc...) such 
as exc_info, stack_info, and extra.

https://docs.python.org/2.7/library/logging.html#logging.Logger.exception

The method signature is documented as: 

Logger.exception(msg, *args)

It should be:

Logger.exception(msg, *args, **kwargs)

It appears that this functionality was added in between Python 2.7.3 and 2.7.4 
(http://bugs.python.org/issue15541) but that the documentation was never 
changed for the newer versions.

--
assignee: docs@python
components: Documentation
messages: 216379
nosy: Cameron.Lee, docs@python
priority: normal
severity: normal
status: open
title: Logging Logger.exception documentation
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker 
<http://bugs.python.org/issue21245>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21245] Logging Logger.exception documentation

2014-04-15 Thread Cameron Lee

Cameron Lee added the comment:

Are you sure that Python 3.2 and Python 3.3 don't need updated documentation? I 
don't know for sure if these two version have the code change or not but the 
http://bugs.python.org/issue15541 seems to indicate that 3.2 at least does.

Thanks for the amazing response!

--

___
Python tracker 
<http://bugs.python.org/issue21245>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com