Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Now your solution looks very promising @miraculixx. If you care to paste the full script I'would be very glad to accept your answer because I highly doubt I can implement it myself. This answer definitely deserves upvotes. Commented Nov 28, 2018 at 11:46
  • 1
    @robots.txt glad you like it :-) link to the full script as a gist added (this way the answer here can stay brief i.e. point out only the differences to your script) Commented Nov 28, 2018 at 11:53
  • Let's wait as long as the bounty is on. Accepted your solution already @miraculixx. Commented Nov 28, 2018 at 12:11
  • Why did you decide to use threading.local instead of a Queue? Commented Nov 12, 2019 at 22:25
  • 1
    Thread-local data is data whose values are thread specific (source: python3 docs) -- that's what we want here to store the driver instance once per thread. A queue would not help as we don't want to pass data between multiple processes, in fact the opposite. Commented Nov 12, 2019 at 23:28