From: <Ale...@di...> - 2002-03-21 02:19:32
|
Thanks, Kevin ! I knew it must be something simple, but I definitely couldn't find it after a quick look of the python documentation. As a matter of fact, I looked at the documentation python.org and I didn't find any mention of the things that you mention. Could you please give me a hint, where stuff like that can be looked up ? (I guess, other than the source) Thanks, Alex Kotchnev Diversified Information Technologies Kevin Butler <kbutler@campuspip To: Ale...@di... eline.com> cc: jyt...@li... Subject: Re: [Jython-users] Printing without a newline 03/20/2002 09:06 PM Please respond to kbutler Ale...@di... wrote: >This is probably more of a python question, but I am really puzzled... > >How can I use "print" without getting the newline added after each item I >am printing.. I mean that I ended up doing it with System.out.print >("afadfa")... but it seems far from obvious to me.. I checked the >documentation for python, and I coldn't find it right off the bat.. > print "asdf", but that does add a space - if that isn't acceptable, sys.stdout.write(): >>> print "asdf",;print "zxcv" asdf zxcv >>> sys.stdout.write( "asdf" );print "zxcv" asdfzxcv kb |