Message80822
| Author |
vstinner |
| Recipients |
ezio.melotti, vstinner |
| Date |
2009年01月30日.15:43:16 |
| SpamBayes Score |
1.1576255e-06 |
| Marked as misclassified |
No |
| Message-id |
<1233330199.81.0.327157172192.issue5110@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
To be clear, this issue only affects the interpreter.
> 2) use ascii(), but it adds extra "" around the output
It doesn't ass extra "" if you replace repr() by ascii() in the
interpreter code (sys.displayhook)?
> The best solution is probably to change the default error-handler
> of the Python3 interactive interpreter to 'backslashreplace'
> in order to avoid this behavior, (...)
Hum, it implies that sys.stdout has a different behaviour in the
interpreter and when running a script. We can expect many bugs ports
from newbies "the example works in the terminal/IDLE, but not in my
script, HELP!". So I prefer ascii(). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年01月30日 15:43:20 | vstinner | set | recipients:
+ vstinner, ezio.melotti |
| 2009年01月30日 15:43:19 | vstinner | set | messageid: <1233330199.81.0.327157172192.issue5110@psf.upfronthosting.co.za> |
| 2009年01月30日 15:43:18 | vstinner | link | issue5110 messages |
| 2009年01月30日 15:43:17 | vstinner | create |
|