python under the hood

T

tpochep

Hello.

Is there any good information about python's internals and semantic? I
mean "under the hood".
For example, I want to understant what do these strings

x = 10
y = 10
x = 20

mean (memory allocation for object? ctors? etc.)
Unfortynatly, I'm too lazy to read python's source code :) (and I
guess, it's not very easy :) )
 
A

A.T.Hofkamp

Hello.

Is there any good information about python's internals and semantic? I
mean "under the hood".

Not exactly 'under the hood', but very close is the Python/C API.
You can learn a great deal by reading the Extending&Embedding manual as well as
the Python/C API reference manual.
Unfortynatly, I'm too lazy to read python's source code :) (and I
guess, it's not very easy :) )

After the above, some parts should be familiar. The functions in the Python/C
API are also being used inside Python.

I also found the source code pretty understandable, although I read only a
small part of it.

Albert
 
J

John Salerno

Hello.

Is there any good information about python's internals and semantic? I
mean "under the hood".
For example, I want to understant what do these strings

x = 10
y = 10
x = 20

mean (memory allocation for object? ctors? etc.)
Unfortynatly, I'm too lazy to read python's source code :) (and I
guess, it's not very easy :) )

I found both Learning Python and Python in a Nutshell (both O'Reilly) to
be really good at covering some of the details of what's happening in
the language. Assuming you want to read whole books about it! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top