Re: [Tutor] how to set a value to a block of memory

2006-03-22 Thread Alan Gauld
> How can i set a value to a bytes of block of memory. In C, i think they > use > memset like this. Python is a high level programming language and does not support direct memory access in the way that C does. Can you explain why you think you need to do this? Is it essential to access a specifi

Re: [Tutor] how to set a value to a block of memory

2006-03-21 Thread Danny Yoo
> On Tue, 21 Mar 2006, Kent Johnson wrote: > > > How can i set a value to a bytes of block of memory. In C, i think > > > they use memset like this. Whoops, sorry about that Kent! I completely messed up the attribution when cutting-and-pasting.

Re: [Tutor] how to set a value to a block of memory

2006-03-21 Thread Danny Yoo
On Tue, 21 Mar 2006, Kent Johnson wrote: > > How can i set a value to a bytes of block of memory. In C, i think > > they use memset like this. Hi Sophon, Secondary question: why are you trying to do this? Are you trying to represent a collection or "array" of things? Some concepts in C aren

Re: [Tutor] how to set a value to a block of memory

2006-03-21 Thread Kent Johnson
Keo Sophon wrote: > Hi all, > > How can i set a value to a bytes of block of memory. In C, i think they use > memset like this. Python does not support direct access to memory, you will need to use another language or maybe a C extension to Python to do this. Kent

[Tutor] how to set a value to a block of memory

2006-03-21 Thread Keo Sophon
Hi all, How can i set a value to a bytes of block of memory. In C, i think they use memset like this. Thanks, Sophon ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor