Python internals question

Marc 'BlackJack' Rintsch bj_666 at
Tue Jul 15 17:44:26 CEST 2008

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. The assignment operator simply creates an association 
> between a name and a value. This is different from C, for example, in 
> which a name (variable) represents a fixed size and location in memory..."
> As an old mainframe programmer, I understand the way C does things with 
> variable but this text got me wondering how Python handles this 
> "association" between variable name and value at the lower level. Is it 
> like a fifo list?

Why a fifo list?  Names don't remember the values and types they are bound
to over time, there's just one binding at any time if a name exists. 
Internally you can think of a pointer to a struct that represents the

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list