Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #90650

Re: Feature Request: Reposition Execution

From Christian Gollwitzer <auriocus@gmx.de>
Newsgroups comp.lang.python
Subject Re: Feature Request: Reposition Execution
Date 2015-05-15 08:06 +0200
Organization A noiseless patient Spider
Message-ID <mj42an$6v9$1@dont-email.me> (permalink)
References (1 earlier) <mailman.354.1431345441.12865.python-list@python.org> <4568f$5552602d$5419aafe$61337@news.ziggo.nl> <miuual$nek$1@dont-email.me> <5553145b$0$11119$c3e8da3@news.astraweb.com> <79f34$55556ef0$5419aafe$39323@news.ziggo.nl>

Show all headers | View raw


Am 15.05.15 um 05:58 schrieb Skybuck Flying:
> Thanks for the ideas, I haven't tried them yet.
>
> I wonder if they will work in a multi-threaded fashion.
>
> I doubt it.
>
> The run_script runs in it's own thread.

It would be of enormous help if you would create a minimal script just 
like the above for your situation. What does it mean, runs in a thread? 
How do you achieve that from Jython?

> The exception would have to be raise from another thread. (The other
> thread check for errors and needs to abort the run script).

Well usually you can pass messages between the threads, wait for 
termination etc. I've got no experience with threading in Jython; 
however this site
http://www.jython.org/jythonbook/en/1.0/Concurrency.html
suggests that there is a large number of primitives available to do that.

Concerning "Resume", what do you expect: A) starting afresh from the 
beginning or B) continue the execution at the point where the exception 
was thrown? Because A) is/should be  easy, B) could be impossible

	Christian

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Feature Request: Reposition Execution "Skybuck Flying" <skybuck2000@hotmail.com> - 2015-05-11 13:46 +0200
  Re: Feature Request: Reposition Execution Dave Angel <davea@davea.name> - 2015-05-11 07:57 -0400
    Re: Feature Request: Reposition Execution Marko Rauhamaa <marko@pacujo.net> - 2015-05-11 15:02 +0300
    Re: Feature Request: Reposition Execution Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-11 22:35 +1000
      Re: Feature Request: Reposition Execution Dave Angel <davea@davea.name> - 2015-05-11 09:21 -0400
      Re: Feature Request: Reposition Execution Grant Edwards <invalid@invalid.invalid> - 2015-05-11 14:27 +0000
    Re: Feature Request: Reposition Execution "Skybuck Flying" <skybuck2000@hotmail.com> - 2015-05-12 22:18 +0200
      Re: Feature Request: Reposition Execution Christian Gollwitzer <auriocus@gmx.de> - 2015-05-13 09:27 +0200
        Re: Feature Request: Reposition Execution Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-13 19:07 +1000
          Re: Feature Request: Reposition Execution "Skybuck Flying" <skybuck2000@hotmail.com> - 2015-05-15 05:58 +0200
            Re: Feature Request: Reposition Execution Christian Gollwitzer <auriocus@gmx.de> - 2015-05-15 08:06 +0200

csiph-web