from __future__ import print_function
print = lambda x: sys.stdout.write("%s\n" % x)
Is a nice cheap and dirty hack.
More Related Contents:
- Are global variables thread-safe in Flask? How do I share data between requests?
- Redirecting stdout and stderr to a PyQt4 QTextEdit from a secondary thread
- Thread Safety in Python’s dictionary
- How to make built-in containers (sets, dicts, lists) thread safe?
- Is the += operator thread-safe in Python?
- Is the Session object from Python’s Requests library thread safe?
- Simplest way for PyQT Threading
- Are urllib2 and httplib thread safe?
- Queue.Queue vs. collections.deque
- Are Python built-in containers thread-safe?
- Are Generators Threadsafe?
- How to share a variable between 2 threads
- python dictionary is thread safe?
- How do I read image data from a URL in Python?
- In Python, how do I read the exif data for an image?
- What is the problem with shadowing names defined in outer scopes?
- Can anyone explain python’s relative imports? [duplicate]
- Same output in different workers in multiprocessing
- How to encode UTF8 filename for HTTP headers? (Python, Django)
- ValueError: invalid literal for int() with base 10: ‘stop’
- matplotlib error – no module named tkinter
- Date difference in minutes in Python
- Find symmetric pairs quickly in numpy
- How to create a list with the characters of a string? [duplicate]
- how to kill process and child processes from python?
- Change console font in Windows
- How do I read a fixed width format text file in pandas?
- pyodbc the sql contains 0 parameter markers but 1 parameters were supplied’ ‘hy000’
- How do I draw text at an angle using python’s PIL?
- tkinter Canvas Scrollbar with Grid?