Re: How to access an absolute address through Python?
On 2007-02-11, volcano <[EMAIL PROTECTED]> wrote: > Can it be done, Yes. > and if yes - how? /proc/kmem -- Grant Edwards grante Yow! Nipples, dimples, at knuckles, NICKLES, visi.comwrinkles, pimples!! -- http://mail.python.org/mailman/listinfo/python-list
Re: How to access an absolute address through Python?
Steve Holden <[EMAIL PROTECTED]> writes: > > My goal is to sync program with external equipment through a register > > defined as an absolute physical address. I know how to do it from C - > > was curious if it may be done from Python. Can it be done? > > > No. You'd have to use a compiled extension. Well, you don't necessarily have to deal with the C API or ctypes; it may be enough to invoke an external program that accesses the necessary memory address. -- http://mail.python.org/mailman/listinfo/python-list
Re: How to access an absolute address through Python?
On Feb 11, 3:46 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > volcano wrote: > > On Feb 11, 2:46 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > [...] > >> What's your goal? What do you expect at the memory address you want to > >> access? > > >> Ciao, > >> Marc 'BlackJack' Rintsch > > > My goal is to sync program with external equipment through a register > > defined as an absolute physical address. I know how to do it from C - > > was curious if it may be done from Python. Can it be done? > > No. You'd have to use a compiled extension. > > regards > Steve > -- > Steve Holden +44 150 684 7255 +1 800 494 3119 > Holden Web LLC/Ltd http://www.holdenweb.com > Skype: holdenwebhttp://del.icio.us/steve.holden > Blog of Note: http://holdenweb.blogspot.com > See you at PyCon?http://us.pycon.org/TX2007 Steve, Fred, thank you. This is exactly what I have done, though I did hope for shortcut. Life is tough:)! -- http://mail.python.org/mailman/listinfo/python-list
Re: How to access an absolute address through Python?
volcano wrote: > On Feb 11, 2:46 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: [...] >> What's your goal? What do you expect at the memory address you want to >> access? >> >> Ciao, >> Marc 'BlackJack' Rintsch > > My goal is to sync program with external equipment through a register > defined as an absolute physical address. I know how to do it from C - > was curious if it may be done from Python. Can it be done? > No. You'd have to use a compiled extension. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://del.icio.us/steve.holden Blog of Note: http://holdenweb.blogspot.com See you at PyCon? http://us.pycon.org/TX2007 -- http://mail.python.org/mailman/listinfo/python-list
Re: How to access an absolute address through Python?
volcano wrote: > On Feb 11, 2:46 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: ... > My goal is to sync program with external equipment through a register > defined as an absolute physical address. I know how to do it from C - > was curious if it may be done from Python. Can it be done? > > Thanks, Mark Your best bet will be to create a C library callable from Python to do it for you. There may be such a beast in existence already, but it should not be hard at all to do, given the simplicity of the requirements. -- -- Fred of UrlBit.Us -- http://UrlBit.Us - Bite those URLs down to size! Posted Via Usenet.com Premium Usenet Newsgroup Services -- ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY ** -- http://www.usenet.com -- http://mail.python.org/mailman/listinfo/python-list
Re: How to access an absolute address through Python?
On Feb 11, 2:46 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, volcano wrote: > > On Feb 11, 2:21 pm, Maël Benjamin Mettler <[EMAIL PROTECTED]> wrote: > >> volcano schrieb: > > >> > Can it be done, and if yes - how? > > >> Define address. Are you talking about URLs? File paths? Postal > >> addresses? Memory addresses? Whatever addresses? > >> I'm afraid the people on this list can't read your thoughts... > > > I presumed that "absolute" address somehow qualifies my question. If > > it is not - I was talking about physical computer memory, on PC - to > > be more specific. > > In pure Python it's not possible and even in C it might be difficult to > get an absolute *physical* memory address unless you run DOS. Modern > operating systems tend to use some virtualisation of memory. :-) > > What's your goal? What do you expect at the memory address you want to > access? > > Ciao, > Marc 'BlackJack' Rintsch My goal is to sync program with external equipment through a register defined as an absolute physical address. I know how to do it from C - was curious if it may be done from Python. Can it be done? Thanks, Mark -- http://mail.python.org/mailman/listinfo/python-list
Re: How to access an absolute address through Python?
In <[EMAIL PROTECTED]>, volcano wrote: > On Feb 11, 2:21 pm, Maël Benjamin Mettler <[EMAIL PROTECTED]> wrote: >> volcano schrieb: >> >> > Can it be done, and if yes - how? >> >> Define address. Are you talking about URLs? File paths? Postal >> addresses? Memory addresses? Whatever addresses? >> I'm afraid the people on this list can't read your thoughts... > > I presumed that "absolute" address somehow qualifies my question. If > it is not - I was talking about physical computer memory, on PC - to > be more specific. In pure Python it's not possible and even in C it might be difficult to get an absolute *physical* memory address unless you run DOS. Modern operating systems tend to use some virtualisation of memory. :-) What's your goal? What do you expect at the memory address you want to access? Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list
Re: How to access an absolute address through Python?
On Feb 11, 2:21 pm, Maël Benjamin Mettler <[EMAIL PROTECTED]> wrote: > volcano schrieb: > > > Can it be done, and if yes - how? > > Define address. Are you talking about URLs? File paths? Postal > addresses? Memory addresses? Whatever addresses? > I'm afraid the people on this list can't read your thoughts... I presumed that "absolute" address somehow qualifies my question. If it is not - I was talking about physical computer memory, on PC - to be more specific. -- http://mail.python.org/mailman/listinfo/python-list
Re: How to access an absolute address through Python?
volcano schrieb: > Can it be done, and if yes - how? > Define address. Are you talking about URLs? File paths? Postal addresses? Memory addresses? Whatever addresses? I'm afraid the people on this list can't read your thoughts... -- http://mail.python.org/mailman/listinfo/python-list
How to access an absolute address through Python?
Can it be done, and if yes - how? -- http://mail.python.org/mailman/listinfo/python-list