Help wanted for testing async support #4
Labels
bug
Something isn't working
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Milestone
Help wanted!
The interaction between
unpythonicand theasyncstuff that was added in Python 3.5 is totally untested, because I haven't used, and I'm not even that familiar with, that part of Python myself.Reading Brett Cannon's explanation, I surmise the async features are intended mainly for "microthreading" typical server loads, which mostly wait on I/O, but must scale to thousands of simultaneous requests. Coming from numerical background where the load is practically always CPU- or memory-bound, I haven't found much use for such constructs, since there the GIL makes them uninteresting. Multiprocessing, Cython + OpenMP, or MPI, exactly one task per core, done.
So, discussion and test cases are more than welcome!
If interested, please post a comment here, or open a PR if you have some tests you'd like to suggest. See directories
unpythonic/testandunpythonic/syntax/testfor examples. (Any test modules in these directories are autodetected byruntests.py.)Note that I have absolutely no idea in which kind of use cases
unpythonicandasyncwould appear together - that is exactly why this is help wanted.If you have such a use case and especially if it doesn't work, please share!
(As of 0.14.1, the current level of
asyncsupport inunpythonicis a blind guess. The macros recognize the AST nodes for the async stuff, but since I'm not quite sure what should be done with them, they try to do something similar as to the same "basic" (no async) node. Needless to say, there are probably bugs.)The text was updated successfully, but these errors were encountered: