##// END OF EJS Templates
Provide cleaner names for raw print utilities.
Fernando Perez -
Show More
@@ -278,17 +278,22 b" def temp_pyfile(src, ext='.py'):"
278 278 return fname, f
279 279
280 280
281 def rprint(*args, **kw):
282 """Raw print to sys.__stdout__"""
281 def raw_print(*args, **kw):
282 """Raw print to sys.__stdout__, otherwise identical interface to print()."""
283 283
284 284 print(*args, sep=kw.get('sep', ' '), end=kw.get('end', '\n'),
285 285 file=sys.__stdout__)
286 286 sys.__stdout__.flush()
287 287
288 288
289 def rprinte(*args, **kw):
290 """Raw print to sys.__stderr__"""
289 def raw_print_err(*args, **kw):
290 """Raw print to sys.__stderr__, otherwise identical interface to print()."""
291 291
292 292 print(*args, sep=kw.get('sep', ' '), end=kw.get('end', '\n'),
293 293 file=sys.__stderr__)
294 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