Show More
@@ -278,17 +278,22 b" def temp_pyfile(src, ext='.py'):" | |||||
278 | return fname, f |
|
278 | return fname, f | |
279 |
|
279 | |||
280 |
|
280 | |||
281 | def rprint(*args, **kw): |
|
281 | def raw_print(*args, **kw): | |
282 | """Raw print to sys.__stdout__""" |
|
282 | """Raw print to sys.__stdout__, otherwise identical interface to print().""" | |
283 |
|
283 | |||
284 | print(*args, sep=kw.get('sep', ' '), end=kw.get('end', '\n'), |
|
284 | print(*args, sep=kw.get('sep', ' '), end=kw.get('end', '\n'), | |
285 | file=sys.__stdout__) |
|
285 | file=sys.__stdout__) | |
286 | sys.__stdout__.flush() |
|
286 | sys.__stdout__.flush() | |
287 |
|
287 | |||
288 |
|
288 | |||
289 | def rprinte(*args, **kw): |
|
289 | def raw_print_err(*args, **kw): | |
290 | """Raw print to sys.__stderr__""" |
|
290 | """Raw print to sys.__stderr__, otherwise identical interface to print().""" | |
291 |
|
291 | |||
292 | print(*args, sep=kw.get('sep', ' '), end=kw.get('end', '\n'), |
|
292 | print(*args, sep=kw.get('sep', ' '), end=kw.get('end', '\n'), | |
293 | file=sys.__stderr__) |
|
293 | file=sys.__stderr__) | |
294 | sys.__stderr__.flush() |
|
294 | sys.__stderr__.flush() | |
|
295 | ||||
|
296 | ||||
|
297 | # Short aliases for quick debugging, do NOT use these in production code. | |||
|
298 | rprint = raw_print | |||
|
299 | rprinte = raw_print_err |
General Comments 0
You need to be logged in to leave comments.
Login now