Message265468
> What problem does replacing __displayhook__ provoke?
I don't know for sure.
But the documentation says "These objects contain the original values of displayhook and excepthook at the start of the program." So, other code in stdlib may assume something about __displayhook__ value. I.e. it writes the values it gets to sys.stdout. (Apparently, doctest thinks so.) Such assumptions should be documented, before people can override __displayhook__ safely.
> What solution do you propose instead of 8048, which fixed a bug?
IMHO, it's not a bug. Why not override sys.displayhook just for doctests in this application?
PS:
Sorry for late answer, somehow I haven't got mail notification after your reply. |
|
Date |
User |
Action |
Args |
2016-05-13 12:04:04 | Sergey.Kirpichev | set | recipients:
+ Sergey.Kirpichev, georg.brandl, r.david.murray |
2016-05-13 12:04:04 | Sergey.Kirpichev | set | messageid: <1463141044.17.0.296311935682.issue26092@psf.upfronthosting.co.za> |
2016-05-13 12:04:04 | Sergey.Kirpichev | link | issue26092 messages |
2016-05-13 12:04:03 | Sergey.Kirpichev | create | |
|