[issue32436] Implement PEP 567

2018-01-23 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +5138 stage: commit review -> patch review ___ Python tracker ___ ___ Python-bugs-list m

[issue32641] test_context and test_asyncio crash on Windows 7

2018-01-23 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +5139 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32641] test_context and test_asyncio crash on Windows 7

2018-01-23 Thread Yury Selivanov
Yury Selivanov added the comment: In an off-list conversation with David, it was confirmed that the buildbot in question runs on an old hardware without SSE4.2 support. I decided to simply stop using native popcount instructions as there's no detectable performance difference when using them

[issue32436] Implement PEP 567

2018-01-23 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset b7a80d543e1e94475ab9c8214f7a9eab4e63c9ab by Yury Selivanov in branch 'master': bpo-32436: Don't use native popcount() (also fixes bpo-32641) (#5292) https://github.com/python/cpython/commit/b7a80d543e1e94475ab9c8214f7a9eab4e63c9ab -- _

[issue32641] test_context and test_asyncio crash on Windows 7

2018-01-23 Thread Yury Selivanov
Yury Selivanov added the comment: I've pushed a commit that should fix the buildbot. Please reopen if it doesn't. -- ___ Python tracker ___

[issue32641] test_context and test_asyncio crash on Windows 7

2018-01-23 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset b7a80d543e1e94475ab9c8214f7a9eab4e63c9ab by Yury Selivanov in branch 'master': bpo-32436: Don't use native popcount() (also fixes bpo-32641) (#5292) https://github.com/python/cpython/commit/b7a80d543e1e94475ab9c8214f7a9eab4e63c9ab -- re

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-01-23 Thread Guido van Rossum
Guido van Rossum added the comment: Are we clear on the proposal now? It would be good to have this implemented in beta 1. Eric's long message looks good to me (though I have to admit the logic around __hash__ confuses me, but I've spent two long days at PyCascades, and I trust Eric's judgmen

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2018-01-23 Thread Nathaniel Smith
Nathaniel Smith added the comment: Please insert the usual caveats around how reliable benchmarking is impossible. (Last month when I tried this with a previous version of the patch, the interpreter that had the patch applied -- and thus was doing slightly *more* work -- was consistently a fe

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2018-01-23 Thread Nathaniel Smith
Nathaniel Smith added the comment: Yury also asked me to try running a generator/coroutine microbenchmark from PEP 492 (https://www.python.org/dev/peps/pep-0492/#async-await). I'm attaching the actual script for that as well (pep492bench.py), since I had to add a few lines to actually run the

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2018-01-23 Thread Yury Selivanov
Yury Selivanov added the comment: Guido, This is another feature for native coroutines that Nathaniel proposes for 3.7. Here's a summary (this issue has too many messages): 1. It adds a new mechanism to detect un-awaited coroutines (i.e. when a user forgets to use await). 2. To enable the m

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2018-01-23 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue32642] add support for path-like objects in sys.path

2018-01-23 Thread Chris Jerdonek
New submission from Chris Jerdonek : This issue is to suggest enhancing sys.path to recognize path-like objects, per PEP 519. I recently ran into an issue where a path was getting added to sys.path, but the corresponding imports weren't working as they should, even though sys.path showed the

[issue32643] Make Task._step, Task._wakeup and Future._schedule_callback methods private

2018-01-23 Thread Yury Selivanov
New submission from Yury Selivanov : I propose to drop support for overloading Task._step, Task._wakeup, and Future._schedule_callbacks. This makes the implementation easier for us to maintain and optimize. It also makes it easier for alternative asyncio event loops and interops with other as

[issue32643] Make Task._step, Task._wakeup and Future._schedule_callback methods private

2018-01-23 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +5140 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-01-23 Thread Eric Snow
Eric Snow added the comment: Sounds good, Ned. Thanks for taking a look. I should have everything finished up by Friday, so I'm hopeful for landing the change before the deadline. I may have a few minor tweaks to make after that, but I'll discuss that with you before making any changes if

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

2018-01-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Incidentally, why did this manifest as a segfault rather than a compilation error? -- nosy: +benjamin.peterson ___ Python tracker ___

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2018-01-23 Thread Nathaniel Smith
Nathaniel Smith added the comment: Thanks for the summary, Yury! One quick note: > Effectively, the previously merged origin-tracking API (the one with which we > replaced set_coroutine_wrapper) achieves the same goal. I would say the two features are complementary. This feature (unawaited t

[issue32644] unittest.mock.call len() error

2018-01-23 Thread Snakevil
New submission from Snakevil : In some testcase, an instance of unittest.mock.call was generated as: call('solution', 'foo', {'__spots__': {}, '__event__': None, '__solution__': None}) The third argument is an instance of a derived component from dict. In this issue, result of len() is 2 but

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2018-01-23 Thread Guido van Rossum
Guido van Rossum added the comment: No. I just mailed Yury with an explanation. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue9949] os.path.realpath on Windows does not follow symbolic links

2018-01-23 Thread Étienne Dupuis
Étienne Dupuis added the comment: Referenced here: https://stackoverflow.com/questions/4640/python-os-path-realpath-for-symlink-in-windows. -- nosy: +Étienne Dupuis ___ Python tracker

<    1   2