Re: Python internals

2008-07-16 Thread Scott David Daniels
Peter Anderson wrote: Thanks everyone! Just a quick correction - "as the original poster is" is a bit of a jump that does not reflect my original question. I DO understand how C and other programming languages handle variables internally (the bits of actual memory reserved, etc. etc.) and that

Re: Python internals

2008-07-16 Thread Ben Finney
Peter Anderson <[EMAIL PROTECTED]> writes: > If Python doesn't do it like C and the others then what mechanism does > it use You've already been pointed to it, but here it is again: http://effbot.org/zone/python-objects.htm> -- \ “I may disagree with what you say, but I will defend to

Re: Python internals question

2008-07-15 Thread Peter Anderson
Helmut Jarausch wrote: Please have a look at ... http://rg03.wordpress.com/2007/04/21/semantics-of-python-variable-names-from-a-c-perspective/ Helmut, I found the second reference (the one above) very useful thank you. Most other respondents to my original question did not seem to underst

Re: Python internals

2008-07-15 Thread Peter Anderson
Ben Finney wrote: Larry Bates <[EMAIL PROTECTED]> writes: The term "pointer" carries much extra baggage for a programmer thinking of C (as the original poster is)... Thanks everyone! Just a quick correction - "as the original poster is" is a bit of a jump that does not reflect my original qu

Re: Python internals

2008-07-15 Thread Larry Bates
Ben Finney wrote: Larry Bates <[EMAIL PROTECTED]> writes: Names are pointers in Python that point to values in memory. The term "pointer" carries much extra baggage for a programmer thinking of C (as the original poster is). Python names give no access to the "address" of the value, and don't

Re: Python internals

2008-07-15 Thread Ben Finney
Larry Bates <[EMAIL PROTECTED]> writes: > Names are pointers in Python that point to values in memory. The term "pointer" carries much extra baggage for a programmer thinking of C (as the original poster is). Python names give no access to the "address" of the value, and don't need to be "de-refe

Re: Python internals

2008-07-15 Thread MRAB
On Jul 15, 2:50 pm, Peter Anderson <[EMAIL PROTECTED]> wrote: > Hi!  I am slowly teaching myself Python.  I was reading David Beazley's > excellent book "Python - Essential Reference"; in particular about > variables.  Let me quote: > > "Python is a dynamically typed language in which names can rep

Re: Python internals

2008-07-15 Thread Terry Reedy
Peter Anderson wrote: Hi! I am slowly teaching myself Python. I was reading David Beazley's excellent book "Python - Essential Reference"; in particular about variables. Let me quote: "Python is a dynamically typed language in which names can represent values of different types during th

Re: Python internals

2008-07-15 Thread Jan Claeys
Op Tue, 15 Jul 2008 09:29:58 -0500, schreef Larry Bates: > Names are pointers in Python that point to values in memory. But "pointers" doesn't have the same meaning as in "C" here. Memory in Python is not (necessarily) an "array of bytes"; how & where the values are stored in "physical memory"

Re: Python internals question

2008-07-15 Thread Marc 'BlackJack' Rintsch
On Tue, 15 Jul 2008 23:54:46 +1000, Peter Anderson wrote: > "Python is a dynamically typed language in which names can represent > values of different types during the execution of a program. In fact the > names used in the program are really just labels for various quantities > and objects. Th

Re: Python internals question

2008-07-15 Thread Helmut Jarausch
Peter Anderson wrote: Hi! I am slowly teaching myself Python. I was reading David Beazley's excellent book "Python - Essential Reference"; in particular about variables. Let me quote: "Python is a dynamically typed language in which names can represent values of different types during the exe

Re: Python internals

2008-07-15 Thread Larry Bates
Peter Anderson wrote: Hi! I am slowly teaching myself Python. I was reading David Beazley's excellent book "Python - Essential Reference"; in particular about variables. Let me quote: "Python is a dynamically typed language in which names can represent values of different types during the

Python internals question

2008-07-15 Thread Peter Anderson
Hi! I am slowly teaching myself Python. I was reading David Beazley's excellent book "Python - Essential Reference"; in particular about variables. Let me quote: "Python is a dynamically typed language in which names can represent values of different types during the execution of a program. In

Python internals

2008-07-15 Thread Peter Anderson
Hi! I am slowly teaching myself Python. I was reading David Beazley's excellent book "Python - Essential Reference"; in particular about variables. Let me quote: "Python is a dynamically typed language in which names can represent values of different types during the execution of a program.

Python internals paper or book

2008-06-13 Thread Pau Freixes
Hi list, I'm thinking to spend my last credits* into my Universitiy writing a unofficial and brief python internal paper. I'm crasy love with Python, non only because it's a stupidly easy language, because when I'm programming I have the opportunity to think how is implemented :) My idea is write

Re: Python internals and parser

2005-06-23 Thread harold fellermann
Hi, On 22.06.2005, at 23:18, Michael Barkholt wrote: > Is there any detailed documentation on the structure of Pythons > internals, > besides the source code itself? > > More specifically I am looking for information regarding the C parser, > since > I am looking into the viability of using it i

Re: Python internals and parser

2005-06-22 Thread Terry Reedy
"Michael Barkholt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there any detailed documentation on the structure of Pythons > internals, > besides the source code itself? In detail, in one place, no. There are bits and pieces in the C API docs and the Lib man chapters on

Python internals and parser

2005-06-22 Thread Michael Barkholt
Hi Is there any detailed documentation on the structure of Pythons internals, besides the source code itself? More specifically I am looking for information regarding the C parser, since I am looking into the viability of using it in another project that needs to parse python code (and I would li