[issue19455] LoggerAdapter class lacks documented "setLevel" method
Changes by Eric Hanchrow : -- components: Library (Lib) nosy: Eric.Hanchrow priority: normal severity: normal status: open title: LoggerAdapter class lacks documented "setLevel" method type: behavior versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue19455> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19063] Python 3.3.3 encodes emails containing non-ascii data as 7bit
Eric Hanchrow added the comment: Put the following into a file named "repro.py", then type "python repro.py" at your shell. You'll see ``AttributeError: 'CustomAdapter' object has no attribute 'setLevel'`` import logging logging.basicConfig () class CustomAdapter(logging.LoggerAdapter): def process(self, msg, kwargs): return '[%s] %s' % (self.extra['connid'], msg), kwargs logger = logging.getLogger(__name__) adapter = CustomAdapter(logger, {'connid': '1234'}) adapter.setLevel (logging.WARN) adapter.warning ("Ahoy matey") -- nosy: +Eric.Hanchrow ___ Python tracker <http://bugs.python.org/issue19063> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19063] Python 3.3.3 encodes emails containing non-ascii data as 7bit
Eric Hanchrow added the comment: Gaah, please ignore that last message; I accidentally pasted it into the wrong page :-( -- ___ Python tracker <http://bugs.python.org/issue19063> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19455] LoggerAdapter class lacks documented "setLevel" method
New submission from Eric Hanchrow: Put the following into a file named "repro.py", then type "python repro.py" at your shell. You'll see ``AttributeError: 'CustomAdapter' object has no attribute 'setLevel'`` import logging logging.basicConfig () class CustomAdapter(logging.LoggerAdapter): def process(self, msg, kwargs): return '[%s] %s' % (self.extra['connid'], msg), kwargs logger = logging.getLogger(__name__) adapter = CustomAdapter(logger, {'connid': '1234'}) adapter.setLevel (logging.WARN) adapter.warning ("Ahoy matey") -- ___ Python tracker <http://bugs.python.org/issue19455> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19455] LoggerAdapter class lacks documented "setLevel" method
Eric Hanchrow added the comment: I should have been clearer: the problem is that the docs (http://docs.python.org/2/library/logging.html#logging.LoggerAdapter) say In addition to the above, LoggerAdapter supports the following methods of Logger, i.e. debug(), info(), warning(), error(), exception(), critical(), log(), isEnabledFor(), getEffectiveLevel(), setLevel(), hasHandlers(). So the code and the docs disagree. -- ___ Python tracker <http://bugs.python.org/issue19455> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19455] LoggerAdapter class lacks documented "setLevel" method
Eric Hanchrow added the comment: Thanks! On Wed, Oct 30, 2013 at 5:36 PM, Vinay Sajip wrote: > > Vinay Sajip added the comment: > > Okay, I see. I can't add the methods to the code (as feature additions aren't > allowed in micro releases, and 2.7 is the last 2.x release). So I'll update > the documentation. > > -- > > ___ > Python tracker > <http://bugs.python.org/issue19455> > ___ -- ___ Python tracker <http://bugs.python.org/issue19455> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19063] Python 3.3.3 encodes emails containing non-ascii data as 7bit
Changes by Eric Hanchrow : -- nosy: -Eric.Hanchrow ___ Python tracker <http://bugs.python.org/issue19063> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15873] datetime: add ability to parse RFC 3339 dates and times
Changes by Eric Hanchrow : -- nosy: +Eric.Hanchrow ___ Python tracker <http://bugs.python.org/issue15873> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com