Re: [Python-Dev] Clarification for concurrent.futures.Future

2016-10-28 Thread Guido van Rossum
It means that the API for setting results/exceptions is essentially private and may change. So if you use this you risk that your code will break randomly at some point in the future when you upgrade Python. ___ Python-Dev mailing list Python-Dev@python.o

[Python-Dev] Clarification for concurrent.futures.Future

2016-10-28 Thread Mark Spruiell
The docs for this class state: "Future instances are created by Executor.submit() and should not be created directly except for testing." https://docs.python.org/3/library/concurrent.futures.html#future-objects We have a need for a thread-safe future type in our extension but this statement make