Results 1 to 6 of 6

Thread: Python execution

  1. #1
    Join Date
    Oct 2007
    Location
    Kentucky, USA
    Beans
    731
    Distro
    Ubuntu

    Python execution

    Does Python read scripts dirctly from the harddrive or from memory?
    Which is more important in obtaining the truth, "what" or "why"? Trick question. They are of equal importance.
    Freely ye have received, freely give.

  2. #2
    Join Date
    Nov 2010
    Location
    India
    Beans
    4,827
    Distro
    Ubuntu Development Release

    Re: Python execution

    yeah you have to change to the directory where you got the script and if you have custom modules make sure that those modules are also in correct path .
    Raja

    రాజ శేఖర్ రెడ్డి

  3. #3
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Python execution

    Quote Originally Posted by ki4jgt View Post
    Does Python read scripts dirctly from the harddrive or from memory?
    Initially, yes. Once the script has been loaded though, it continues in memory until it dies.

  4. #4
    Join Date
    Aug 2005
    Location
    The Local Group
    Beans
    631

    Re: Python execution

    Quote Originally Posted by ki4jgt View Post
    Does Python read scripts dirctly from the harddrive or from memory?
    I'm guessing you're confused about something on a deeper level, so I suggest trying to ask your question in a different way.

  5. #5
    Join Date
    Oct 2007
    Location
    Kentucky, USA
    Beans
    731
    Distro
    Ubuntu

    Re: Python execution

    Quote Originally Posted by MG&TL View Post
    Initially, yes. Once the script has been loaded though, it continues in memory until it dies.
    Quote Originally Posted by Lux Perpetua View Post
    I'm guessing you're confused about something on a deeper level, so I suggest trying to ask your question in a different way.
    Dumb question. If I had thought about it it would have been obvious. Python based server programs wouldn't have the resources to reread the program every time they had to execute something facepalm.
    Which is more important in obtaining the truth, "what" or "why"? Trick question. They are of equal importance.
    Freely ye have received, freely give.

  6. #6
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,297
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Python execution

    Quote Originally Posted by MG&TL View Post
    Initially, yes. Once the script has been loaded though, it continues in memory until it dies.
    Unless paging or something like that happens... But of course the paging would happen on the Python process, not on the script per se.
    「明後日の夕方には帰ってるからね。」


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •