Message263756
| Author |
abarry |
| Recipients |
abarry, martin.panter, serhiy.storchaka, vstinner |
| Date |
2016年04月19日.18:07:28 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1461089248.31.0.193422926075.issue26801@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Hmm, if `sys.__stdout__` was deleted (or set to `None`), this would also raise an `AttributeError` when calling `shutil.get_terminal_size`, so I think that even if `os.get_terminal_size` is guaranteed to be always present (which it's not, IIUC), catching `AttributeError` would prevent that bug, too.
Should I write a unit test for that too? Even though this one theorically covers it as well, I wouldn't want people in the future to think they can safely remove `except AttributeError` from the code. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年04月19日 18:07:28 | abarry | set | recipients:
+ abarry, vstinner, martin.panter, serhiy.storchaka |
| 2016年04月19日 18:07:28 | abarry | set | messageid: <1461089248.31.0.193422926075.issue26801@psf.upfronthosting.co.za> |
| 2016年04月19日 18:07:28 | abarry | link | issue26801 messages |
| 2016年04月19日 18:07:28 | abarry | create |
|