Indeed. I'll not let the chance to toss some loose change around go
by.
>> I guess what Lance wanted to see is a simple way to print
>> a string without a following space or newline.
>>
>> One answer is to use os.write (?), which is not as elegant/
>> simple/straightforward as just 'print'.
>> While I like the python syntax (and many other features) better,
>> I wish python had the logic of Perl regarding the 'print' interface,
>> Namely: don't 'print' what you haven't been asked to.
As usual, I seem to use python differently than everyone else. I dont
see 'print' as a very useful command for getting output to the user of
something written in python. When I am using python interactively,
which is getting rare, I find it good to have print; but when I am
writing code that will be run as an independant program I use the
file write() methods exclusively.
Given that, interactively, it is as easy to only type 'foo' as it is
'print foo', I'd say that the main purpose for the print command is to
make it easier for the learning/novice user to display output.
-- John Redford (AKA GArrow) | 3,600 hours of tape. jredford@lehman.com | 5 cans of Scotchguard.