printing something without a newline OR a space after it?

Alex Hunsley lard at tardis.ed.ac.molar.uk
Thu Jun 3 15:55:32 CEST 2004


Matteo Dell'Amico wrote:

> Alex Hunsley wrote:
> 
>> .. whereas I want no newline and no space:
>>
>>
>>   stuff here,more
>>
>> How is this done?
> 
> 
> sys.stdout.write('foo')
> 

thankyou!

alex




More information about the Python-list mailing list