get-a-cup-of-coffee slow (fwd) (fwd) 
Author Message
 get-a-cup-of-coffee slow (fwd) (fwd)

Grant R. Griffin wrote
   >>> l=[0,1,2,3,4]
   >>> f=open('e', 'w')
   >>> f.write(l)
   Traceback (most recent call last):
     File "<stdin>", line 1, in ?
   TypeError: read-only character buffer, list

One could, of course, do the below:

  >>> l = [0,1,2,3,4]
  >>> f = open('e','w')
  >>> f.write(''.join(map(str,l)))

Yours, Lulu...



Tue, 27 Jan 2004 14:35:28 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. get-a-cup-of-coffee slow (fwd)

2. get-a-cup-of-coffee slow

3. (Fwd) (Fwd) Re: Band Matrices

4. (Fwd) MESSAGE ON PHONE SCAM (fwd)

5. [Fwd: envienla (fwd)]

6. Fwd: [LogoForum] Re: (Fwd) [apcs] Karel Goes Fishing!

7. Fwd: NetRexx language now available (fwd)

8. [Fwd: Re: RubyInline 1.0.4 Released! (fwd)]

9. Ruby Impressions (fwd) (fwd)

10. There's got to be an easy way to do this (fwd) (fwd)

11. utility to display the contents of a pickle (fwd) (fwd)

12. Announcing DOS port availability (fwd) (Was: Announcing DOS port availability (fwd))

 

 
Powered by phpBB® Forum Software