why writing list to file puts each item from list on seperate line?



if i use the code below to write a list to a file

list = (food, price, store)
data.append(list)
f = open(r"test.txt", 'a')
f.write ( os.linesep.join( list ) )


it outputs to a file like this

apple
..49
star market

and i want it to do

apple, .49. star market

any ideas

.



Relevant Pages

  • Re: _How_ much??!
    ... but the most dazzling thing about it is that Apple have the sheer ... bloody cheek to imply this is a price drop! ... I think the wording is as the American web site where presumeably there is a ... They've now completely changed that paragraph on the UK store. ...
    (uk.comp.sys.mac)
  • Re: Why no Macs at Costco?
    ... Even if Costco can't change the price -they have ... I wouldn't buy a Mac from anywhere but the Apple store. ... The bozos at Costco and Best Buy and Future Shop, my gawd, they don't know Macs, ...
    (comp.sys.mac.misc)
  • Re: iLife 06 now or wait for iLife 08 in Oct.???????
    ... offering them on eBay for $20 to $30 over list price plus shipping. ... aren't within the vicinity of an Apple store you can get them via the ... On-line Apple Store at discount with free shipping. ... Same price for iLife and iWork. ...
    (comp.sys.mac.apps)
  • Re: New iPhone 3G - 199 Bucks
    ... Apple is well on its way to ... And all it took was lowering the price from ass-rape range into only ... The application store likely has a *lot* to do with it... ... When thinking changes your mind, ...
    (comp.sys.mac.advocacy)
  • Re: why writing list to file puts each item from list on seperate line?
    ... and list = (food, price, store) ...
    (comp.lang.python)