[Python-Dev] User + sys time bigger than real time, in case of no real parallelism

2017-02-04 Thread Marco Buttu
I am really sorry for the OT :-( I asked elsewhere but without any answer :-( I can not figure out why in this short example the user+sys time is bigger than real time. The example executes the task() functions twice, with each execution in a separate thread. The task() just increment 10**6 tim

[Python-Dev] Review request: optimizing typing ABC caches

2017-02-04 Thread Ivan Levkivskyi
There is a PR implementing typing ABC cache optimization: https://github.com/python/typing/pull/383 The main idea is straightforward: subscripted generic ABCs like Iterable[int], Iterable[str], etc. should not have separate ABC caches (positive and negative), since they all are equivalent to plain