New submission from Ram Rachum: A while ago I was debugging through code that uses the `logging` module, and I was looking at `Logger` objects and possibly other kinds of objects (maybe handlers? It was a while ago.)
I was frustrated because I was trying to figure out what a particular logger was, but typing `logger` in the shell just showed the opaque `<logging.Logger object at 0x0000000002293550>`. I would like to know the name of the logger without bothering to do `logger.name`. I suggest that we do a run over the `logging` module and see which classes could have a helpful `__repr__` added to them. I might have time to do this, but first I want to know whether there is a general agreement that such a patch would be welcome. ---------- components: Library (Lib) messages: 271646 nosy: cool-RR, vinay.sajip priority: normal severity: normal status: open title: Implement `__repr__` methods for logging.Logger and others type: enhancement versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27650> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com