Re: Long strings as function parameters

2005-01-10 Thread Nick Coghlan
Jeremy Bowers wrote: I had thought there was an obvious class in the standard library to assist with this, but I must have been wrong. buffer is the closest current contender, but I believe it's on the outer due to some problems with its implementation. I think the intention is to eventually have

Re: Long strings as function parameters

2005-01-10 Thread Terry Reedy
"Dan Bishop" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In Python, *every* expression is a pointer. Minor but to me important nit: this should start "In the CPython implementation of Python" ... Humans can understand and execute Python code without knowing about computer me

Re: Long strings as function parameters

2005-01-09 Thread Jeremy Bowers
On Sun, 09 Jan 2005 08:36:04 -0800, onlyonemc wrote: > I would like to have functions that operate on long strings, 10-100 MB. In > C I would of course pass a pointer to the string for a quick function > call. What is an efficient way to do this in python? Cheers, > -mark Others have pointed ou

Re: Long strings as function parameters

2005-01-09 Thread Dan Bishop
[EMAIL PROTECTED] wrote: > I would like to have functions that operate on long strings, 10-100 MB. > In C I would of course pass a pointer to the string for a quick > function call. What is an efficient way to do this in python? > Cheers, In Python, *every* expression is a pointer. This fact is

Re: Long strings as function parameters

2005-01-09 Thread Irmen de Jong
[EMAIL PROTECTED] wrote: I would like to have functions that operate on long strings, 10-100 MB. In C I would of course pass a pointer to the string for a quick function call. What is an efficient way to do this in python? Err, just pass the string to the function? In Python, all function argument

Long strings as function parameters

2005-01-09 Thread onlyonemc
I would like to have functions that operate on long strings, 10-100 MB. In C I would of course pass a pointer to the string for a quick function call. What is an efficient way to do this in python? Cheers, -mark -- http://mail.python.org/mailman/listinfo/python-list