Python Forum
Multiprocessing my Loop/Iteration (Try...Except)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiprocessing my Loop/Iteration (Try...Except)
#4
Hi,

Quote: I know there is no multiprocessing in it. I didn't post it, because there was always an error.
Let's say it like this: if there would have been no error, there would have been no reason to post here ;-)
The point is: even wrong code is a better starting point than no code at all. So please post your code here.

Quote: I tried the apply function, but it didn't work. Could you show me how the apply method works?
What did you try? Show the code. "It did not work" is not helpful as an error message.

Quote: try..except is the only thing I know. Is there any other option?
except accepts an argument to catch certain exceptions, e.g. except IndexError would catch index errors only, no syntax errors or name errors or ...
These are Python basics, so I'd recommend to read again the official documentation or the corresponding section in the tutorial on this.

Regards, noisefloor
Reply


Messages In This Thread
RE: Multiprocessing my Loop/Iteration (Try...Except) - by noisefloor - Jun-19-2019, 09:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Inconsistent loop iteration behavior JonWayn 2 1,012 Dec-10-2022, 06:49 AM
Last Post: JonWayn
  PyRun_SimpleFile calling multiprocessing Python Class cause endless init loop Xeno 2 1,067 Sep-19-2022, 02:32 AM
Last Post: Xeno
  Pool multiprocessing - know current status in loop? korenron 0 1,655 Jul-28-2021, 08:49 AM
Last Post: korenron
  saving each iteration of a loop sgcgrif3 3 6,780 Jul-27-2021, 01:02 PM
Last Post: DeaD_EyE
  python multiprocessing import Pool, cpu_count: causes forever loop | help to remove Hassibayub 0 1,885 Jun-18-2020, 05:27 PM
Last Post: Hassibayub
  String slicing and loop iteration divyansh 9 4,821 Jun-07-2020, 10:29 PM
Last Post: divyansh
  Changing a variable's name on each iteration of a loop rix 6 84,990 Jan-03-2020, 07:06 AM
Last Post: perfringo
  Parallel iteration with for loop Josh_Python890 1 2,190 Jul-19-2019, 11:50 PM
Last Post: metulburr
  parallel for loop with multiprocessing dervast 0 2,032 Jul-04-2019, 03:16 PM
Last Post: dervast
  First for loop stops after first iteration Divanova94 10 8,977 May-01-2019, 04:27 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020