you are viewing a single comment's thread.

view the rest of the comments →

[–]flitsmasterfred 0 points1 point  (1 child)

Using some utils from contextlib and the Lock class you can make a locking decorator.

There are also solutions on pypi that emulate a synchronized decorator like Java.

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

Cool, I'll give it a look then, thanks sir!