473,378 Members | 1,330 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How to access an absolute address through Python?

Can it be done, and if yes - how?

Feb 11 '07 #1
9 2564
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...
Feb 11 '07 #2
On Feb 11, 2:21 pm, Maël Benjamin Mettler <m...@mediamonger.chwrote:
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.

Feb 11 '07 #3
In <11*********************@k78g2000cwa.googlegroups. com>, volcano wrote:
On Feb 11, 2:21 pm, Maël Benjamin Mettler <m...@mediamonger.chwrote:
>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
Feb 11 '07 #4
On Feb 11, 2:46 pm, Marc 'BlackJack' Rintsch <bj_...@gmx.netwrote:
In <1171197574.776135.96...@k78g2000cwa.googlegroups. com>, volcano wrote:
On Feb 11, 2:21 pm, Maël Benjamin Mettler <m...@mediamonger.chwrote:
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

Feb 11 '07 #5
volcano wrote:
On Feb 11, 2:46 pm, Marc 'BlackJack' Rintsch <bj_...@gmx.netwrote:
....
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
Feb 11 '07 #6
volcano wrote:
On Feb 11, 2:46 pm, Marc 'BlackJack' Rintsch <bj_...@gmx.netwrote:
[...]
>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

Feb 11 '07 #7
On Feb 11, 3:46 pm, Steve Holden <s...@holdenweb.comwrote:
volcano wrote:
On Feb 11, 2:46 pm, Marc 'BlackJack' Rintsch <bj_...@gmx.netwrote:
[...]
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

Steve, Fred, thank you. This is exactly what I have done, though I did
hope for shortcut. Life is tough:)!

Feb 11 '07 #8
Steve Holden <st***@holdenweb.comwrites:
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.
Feb 11 '07 #9
On 2007-02-11, volcano <Ma*********@gmail.comwrote:
Can it be done,
Yes.
and if yes - how?
/proc/kmem

--
Grant Edwards grante Yow! Nipples, dimples,
at knuckles, NICKLES,
visi.com wrinkles, pimples!!
Feb 11 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Samuel Schulenburg | last post by:
Who should I contact about accessing my account on Starship. I need to obtain a new password and access process. I think i am having a memory lapse as it has been over a year sense I have had a...
15
by: Nick K. | last post by:
I recently began maintenance work on a production web server that is located in the root directory of a web server. I moved this into a sub web on my local web server in order to do work on it. I...
6
by: David Siroky | last post by:
Hi! When I "compile" my python files with "python -OO ...." into pyo files then they still contain absolute paths of the source files which is undesirable for me. How can I deal with that? ...
0
by: TheCoder | last post by:
I am making a D-base with web conectivity for my class project. I have everything working but the subit button sends the data to the correct fields but afterwards it wants to reproduce new blank...
24
by: David Mathog | last post by:
If this: int i,sum; int *array; for(sum=0, i=0; i<len; i++){ sum += array; } is converted to this (never mind why for the moment):
33
by: Benjamin M. Stocks | last post by:
Hello all, I've heard differing opinions on this and would like a definitive answer on this once and for all. If I have an array of 4 1-byte values where index 0 is the least signficant byte of a...
3
by: pooba53 | last post by:
I have a VB .NET 2003 application that communicates with an Access db. I am deploying the application using the Wizard that creates an install package and it IS properly grabbing the Access db and...
0
by: sgtmarcjones | last post by:
How do I access a dropdownlist that is nested within a Formview ItemTemplate Gridview Template? I want to see a label (lgbTimeKeep ! TextValue of ddlName dropdownlist) instead of a dropdownlist...
6
by: Jon Slaughter | last post by:
do I have to prefix every absolute path with document root to get it to work? For some reason I thought that prefixing a path with '/' or './' with make it absolute w.r.t to document root but I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.