python under the hood

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tpochep@mail.ru

    #1

    python under the hood

    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 :) )

  • Fredrik Lundh

    #2
    Re: python under the hood

    tpochep@mail.ru wrote:
    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.)
    reading this might help:



    </F>



    Comment

    • A.T.Hofkamp

      #3
      Re: python under the hood

      On 2006-10-20, tpochep@mail.ru <tpochep@mail.r uwrote:
      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&Embed ding 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

      Comment

      • John Salerno

        #4
        Re: python under the hood

        tpochep@mail.ru wrote:
        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! :)

        Comment

        Working...