Sourabh Kalal writes:
> how we can access the value from using id..
> like x=10
> id(x)
> 3235346364
>
> how i can read value 10 using id 3235346364
You should not do this (read the value instead by looking at "x") --
unless you are debugging at "C" level. For "C" level debugging,
there is a set
On Monday, January 23, 2017 at 5:59:42 PM UTC, Sourabh Kalal wrote:
> how we can access the value from using id..
> like x=10
> id(x)
> 3235346364
>
> how i can read value 10 using id 3235346364
What are you trying to achieve here? If you'd explain that rather than how
you're trying to achieve
On Tue, Jan 24, 2017 at 7:26 AM, Skip Montanaro
wrote:
> On Mon, Jan 23, 2017 at 2:17 PM, Chris Angelico wrote:
>>> There. *Now* you have an address. Hack to your heart's content.
>>
>> No, you now have a hexadecimal representation of an integer.
>
> You missed my attempt at levity, I think.
Ah
On Mon, Jan 23, 2017 at 2:17 PM, Chris Angelico wrote:
>> There. *Now* you have an address. Hack to your heart's content.
>
> No, you now have a hexadecimal representation of an integer.
You missed my attempt at levity, I think.
S
--
https://mail.python.org/mailman/listinfo/python-list
On 01/23/2017 10:49 AM, Sourabh Kalal wrote:
> how we can access the value from using id..
> like x=10
> id(x)
> 3235346364
>
> how i can read value 10 using id 3235346364
Many objects in python such as numbers like 10 or strings are immutable;
they can never be altered once called into existance
On Tue, Jan 24, 2017 at 6:05 AM, Skip Montanaro
wrote:
> On Mon, Jan 23, 2017 at 12:49 PM, Chris Angelico wrote:
>>
>> On Tue, Jan 24, 2017 at 4:49 AM, Sourabh Kalal wrote:
>> > how we can access the value from using id..
>> > like x=10
>> > id(x)
>> > 3235346364
>> >
>> > how i can read value 1
Sourabh Kalal wrote:
> how we can access the value from using id..
> like x=10
> id(x)
> 3235346364
>
> how i can read value 10 using id 3235346364
Use ctypes:
$ python3
Python 3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more
On Mon, Jan 23, 2017 at 12:49 PM, Chris Angelico wrote:
>
> On Tue, Jan 24, 2017 at 4:49 AM, Sourabh Kalal wrote:
> > how we can access the value from using id..
> > like x=10
> > id(x)
> > 3235346364
> >
> > how i can read value 10 using id 3235346364
>
> No, you can't. That isn't a memory addre
On 1/23/2017 12:49 PM, Sourabh Kalal wrote:
how we can access the value from using id..
like x=10
id(x)
3235346364
how i can read value 10 using id 3235346364
*In Python*, you cannot. Ids are mainly for internal use of
implementations. Implementors also use them to test their implementation
On Tue, Jan 24, 2017 at 4:49 AM, Sourabh Kalal wrote:
> how we can access the value from using id..
> like x=10
> id(x)
> 3235346364
>
> how i can read value 10 using id 3235346364
No, you can't. That isn't a memory address - it's just a unique
identifier. Python doesn't have memory addresses.
C
how we can access the value from using id..
like x=10
id(x)
3235346364
how i can read value 10 using id 3235346364
--
https://mail.python.org/mailman/listinfo/python-list
Ognjen Bezanov wrote:
>
>I'm trying to see if there is any way I can make Python share data
>between two hosts using DMA transfers over a firewire connection, so
>avoiding the need for another layer on top such as IPv4 + Python sockets.
>
>Thanks to some old python bindings which I updated to py
On Nov 10, 3:32 am, Ognjen Bezanov wrote:
> Hey,
>
> Thanks for all the responses guys. In hindsight I probably should have
> explained why on earth I'd need the physical address from an interpreted
> language.
>
> I'm trying to see if there is any way I can make Python share data
> between two ho
Ognjen Bezanov wrote:
Hey,
Thanks for all the responses guys. In hindsight I probably should have
explained why on earth I'd need the physical address from an
interpreted language.
I'm trying to see if there is any way I can make Python share data
between two hosts using DMA transfers over
On Tue, Nov 10, 2009 at 6:32 AM, Ognjen Bezanov wrote:
> Hey,
>
> Thanks for all the responses guys. In hindsight I probably should have
> explained why on earth I'd need the physical address from an interpreted
> language.
>
> I'm trying to see if there is any way I can make Python share data bet
Hey,
Thanks for all the responses guys. In hindsight I probably should have
explained why on earth I'd need the physical address from an interpreted
language.
I'm trying to see if there is any way I can make Python share data
between two hosts using DMA transfers over a firewire connection,
On Nov 9, 4:47 pm, Ognjen Bezanov wrote:
> Hello all,
>
> Say I have a python variable:
>
> a = "hello"
>
> Is it possible for me to get the physical address of that variable (i.e.
> where it is in RAM)?
>
> I know that id(a) will give me it's memory address, but the address
> given does not seem
Benjamin Kaplan wrote:
On Mon, Nov 9, 2009 at 7:47 PM, Ognjen Bezanov wrote:
Hello all,
Say I have a python variable:
a = "hello"
Is it possible for me to get the physical address of that variable (i.e.
where it is in RAM)?
I know that id(a) will give me it's memory address, but the addr
Ognjen Bezanov wrote:
Hello all,
Say I have a python variable:
a = "hello"
Is it possible for me to get the physical address of that variable (i.e.
where it is in RAM)?
I know that id(a) will give me it's memory address, but the address
given does not seem to correlate with the physical me
On Mon, Nov 9, 2009 at 7:47 PM, Ognjen Bezanov wrote:
> Hello all,
>
> Say I have a python variable:
>
> a = "hello"
>
> Is it possible for me to get the physical address of that variable (i.e.
> where it is in RAM)?
>
> I know that id(a) will give me it's memory address, but the address given
> d
Hello all,
Say I have a python variable:
a = "hello"
Is it possible for me to get the physical address of that variable (i.e.
where it is in RAM)?
I know that id(a) will give me it's memory address, but the address
given does not seem to correlate with the physical memory. Is this even
pos
21 matches
Mail list logo