terminate execfile

Discussion in 'Python' started by Teja, Oct 14, 2006.

  1. Teja

    Teja Guest

    How to terminate execfile() in the middle of its execution. Any
    pointers ???
    Its very urgent please........


    Thanks
    Teja.P
    Teja, Oct 14, 2006
    #1
    1. Advertising

  2. Teja

    Teja Guest

    Teja wrote:

    > How to terminate execfile() in the middle of its execution. Any
    > pointers ???
    > Its very urgent please........
    >
    >
    > Thanks
    > Teja.P


    Can I raise an interrupt using PyErr_SetInterrupt??? Is so , does any
    one know how to do it?
    Teja, Oct 14, 2006
    #2
    1. Advertising

  3. Teja

    Paddy Guest

    Teja wrote:
    > Teja wrote:
    >
    > > How to terminate execfile() in the middle of its execution. Any
    > > pointers ???
    > > Its very urgent please........
    > >
    > >
    > > Thanks
    > > Teja.P

    >
    > Can I raise an interrupt using PyErr_SetInterrupt??? Is so , does any
    > one know how to do it?

    I presume there is only one thread of execution here, so the file being
    execfiled would have to recognise an error condition and raise an
    un-caught exception.

    - Paddy.
    Paddy, Oct 14, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jonathan
    Replies:
    2
    Views:
    526
    Steven Taschuk
    Aug 10, 2003
  2. Enrique

    execfile return values

    Enrique, Oct 3, 2003, in forum: Python
    Replies:
    2
    Views:
    1,527
    Dennis Lee Bieber
    Oct 3, 2003
  3. Roman Suzi

    PEP263 and execfile()

    Roman Suzi, Nov 17, 2003, in forum: Python
    Replies:
    4
    Views:
    292
    Martin v. =?iso-8859-15?q?L=F6wis?=
    Nov 18, 2003
  4. William Trenker

    Using weakref with execfile?

    William Trenker, Dec 21, 2003, in forum: Python
    Replies:
    1
    Views:
    273
    Martin v. Loewis
    Dec 22, 2003
  5. Bo Jacobsen

    Can't load bytecode with execfile ?

    Bo Jacobsen, Jan 26, 2005, in forum: Python
    Replies:
    1
    Views:
    344
    Nick Coghlan
    Jan 26, 2005
Loading...

Share This Page