Message335814
| Author | vinay.sajip |
|---|---|
| Recipients | Riccardo Magliocchetti, vinay.sajip |
| Date | 2019-02-18.11:15:56 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1550488556.24.0.370219573304.issue36015@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
I'm not sure this is a problem with logging. The code immediately preceding the failure is:
name = getattr(self.stream, 'name', '')
if name:
name += ' '
So, the failure occurs because the stream has a name attribute which is not a string. Even if sys.stderr itself is an unbuffered file, why is its 'name' attribute not a string? I don't imagine the name would be actually used for I/O, and having it set to an integer is a surprise.
I propose to close this (and the associated PR) unless a good reason is given why we have to support non-string names here. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-02-18 11:15:56 | vinay.sajip | set | recipients: + vinay.sajip, Riccardo Magliocchetti |
| 2019-02-18 11:15:56 | vinay.sajip | set | messageid: <1550488556.24.0.370219573304.issue36015@roundup.psfhosted.org> |
| 2019-02-18 11:15:56 | vinay.sajip | link | issue36015 messages |
| 2019-02-18 11:15:56 | vinay.sajip | create | |