Getting rid of extra spaces in print
Cliff Crawford
cjc26 at nospam.cornell.edu
Sun May 28 07:55:45 EDT 2000
* Laurent Martin <laurent at lfmm.org> menulis:
| [..]
| Unfortunately the 'print' function adds an extra space between my
| characters. I've found a solution on Deja.com: to set
| sys.stdout.softspace to 0 before each call to print. This works but is
| there a simpler and more elegant solution to this problem?
Use sys.stdout.write instead of print.
--
cliff crawford -><- http://www.people.cornell.edu/pages/cjc26/
Synaesthesia now! icq 68165166
More information about the Python-list
mailing list