Monthly Archives: March 2014

Python : How to flush output of print

Using the sys module, just type: import sys sys.stdout.flush()import sys sys.stdout.flush()

Posted in Python | Tagged | Leave a comment

python argparse issues with the help argument (TypeError: %o format: a number is required, not dict)

Even though Python has a great documentation, once in a while you get stuck on a single problem more than expected. It happenned to me today with the argparse module, which I thought I knew enough to quickly code a … Continue reading

Posted in Python | Tagged | 35 Comments