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

Alan Gauld alan.gauld at freenet.co.uk
Wed Mar 22 09:32:58 CET 2006


> 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 specific memory location or do you
simply want to fill a data table with values? If the latter then
Python can help if you need direct memory access you will
need to use C I think..

Alan G
Author of the learn to program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld




More information about the Tutor mailing list