How can you copy (clone) a string?

Greg Ewing see at my.signature
Wed Oct 4 19:38:37 EDT 2000


Peter.Rupp at ual.com wrote:
> 
> What I'm trying to do is determine how large a user process can be
> before it runs out of memory.

>>> a = 1000 * 'a' 
>>> b = 1000 * 'a'
>>> id(a)
1052344
>>> id(b)
1091800
>>> 

Loop until done.

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list