Mega Code Archive

 
Categories / Python / Development
 

Map string to sys stout write

import sys showall = (lambda x: map(sys.stdout.write, x)) t = showall(['spam\n', 'toast\n', 'eggs\n'])