You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No worries! Unfortunately, the library will simply not work on Python 3.x. I take advantage of some Python 2.7 specific "features" -- namely the fact that old-style python classes have calls to dunder methods (__init__, for example) routed through the __getattr__ method. I would recommend working with concurrent.futures directly in general -- it's an excellent library and quite a bit more transparent. Tomorrow is mainly a thought experiment to see how low I could make the barrier to switching to a threaded model.
The function with the decoration @threads returns an object of the class Tomorrow even when I return an integer or some other type from the function.
Sample code
Output
The text was updated successfully, but these errors were encountered: