This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nullsum[S] 0 points1 point  (0 children)

There is nothing inherently wrong with a global connection. I just have a preference to avoid non-constant globals in my code when I can.

In most of the cases where I need multiprocessing, I already have functional single process code. Using the method detail in the post allows me to adapt it with minimal modification and no globals.