[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- assignee: -> asvetlov nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue25749> ___ ___ Python-bugs-list mai

[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker <https://bugs.python.org/issue25749> ___ ___ Python-bugs-list mailin

[issue26188] Provide more helpful error message when `await` is called inside non-`async` method

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Nothing to do. Python parser always report with such text on syntax error, there is nothing special for async/await -- nosy: +asvetlov resolution: -> wont fix stage: -> resolved status: open -> closed _

[issue27746] ResourceWarnings in test_asyncio

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in master already. -- nosy: +asvetlov resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue27665] Make create_server able to listen on several ports

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Let's don't -- all combinations of hosts, ports, sock objects makes a mess already. I suggest not complicate already complex signature and just close the issue as "won't fix". Multiple server objects never was a problem. -

[issue25675] doc for BaseEventLoop.run_in_executor() says its a coroutine, but it is not

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: It was always awaitable object, in Python 3.7 the method was converted into genuine coroutine. -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue25

[issue25675] doc for BaseEventLoop.run_in_executor() says its a coroutine, but it is not

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue25675> ___ ___

[issue24539] StreamReaderProtocol.eof_received() should return True to keep the transport open

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Done two years ago. -- nosy: +asvetlov resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue25074] Bind logger and waninigs modules for asyncio __del__ methods

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: `remove_signal_handler()` should do nothing if `sys.is_finalizing()` is true. -- assignee: -> asvetlov nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issu

[issue24795] Make event loops with statement context managers

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Superseded by `asyncio.run()` function. P.S. Context manager is not a solution because `loop.shutdown_asyncgens()` should be called before `loop.close()` and the method is a coroutine. -- nosy: +asvetlov resolution: -> wont fix stage: -> re

[issue15852] typos in curses argument error messages

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32395] asyncio.StreamReader.readuntil is not general enough

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Support multiple separators looks easy, I don't expect any performance impact. Like we already have it for strings: s.startswith(('\n', '\r')) Regexps are more expensive thing, callbacks are kind of evil. Let's add a patch for mu

[issue32321] functools.reduce has a redundant guard or needs a pure Python fallback

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: See discussion in https://bugs.python.org/issue12428 (especially the last message) -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue32

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +4848 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue26133> ___ ___ Py

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Implemented PR 4956 following Victor's suggestion. -- ___ Python tracker <https://bugs.python.org/issue26133> ___ ___ Pytho

[issue26357] asyncio.wait loses coroutine return value

2017-12-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Let's close as "wont fix". If user need an identity for awaited coroutine -- he/she should return it as part of coroutine result. -- nosy: +asvetlov resolution: -> wont fix stage: -> resolved s

[issue28212] Closing server in asyncio is not efficient

2017-12-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Superseded by https://bugs.python.org/issue32391 -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Add StreamWriter.wait_closed() ___ Python tracker <https://

[issue30996] add coroutine AbstractEventLoop.sock_close

2017-12-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Well, removing the reader on future cancellation makes sense. Can be done by add_done_callback(). Yury, what do you think? -- nosy: +asvetlov versions: +Python 3.7 ___ Python tracker <https://bugs.python.

[issue32323] urllib.parse.urlsplit() must not lowercase() IPv6 scope value

2017-12-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset fdb148f949e3ae66036b75163ff68042d19cf0fc by Andrew Svetlov (Miss Islington (bot)) in branch '3.6': bpo-32323: urllib.parse.urlsplit() must not lowercase() IPv6 scope value (GH-4867) (#4959) https://github.com/python/cpyt

[issue32323] urllib.parse.urlsplit() must not lowercase() IPv6 scope value

2017-12-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: RFC doesn't specify a case for Zone ID, let's keep it untouched (no lowercasing) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.8 ___ Pyt

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4a02543cf97e8cbf9293741379f977b85531e4c2 by Andrew Svetlov in branch 'master': bpo-26133: Dont unsubscribe signals in UNIX even loop on interpreter shutdown (#4956) https://github.com/python/cpyt

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 3bc68cff5b821e83ee5df8b8cd13f4f54151b406 by Andrew Svetlov (Miss Islington (bot)) in branch '3.6': bpo-26133: Dont unsubscribe signals in UNIX even loop on interpreter shutdown (GH-4956) (#4962) https://github.com/python/cpyt

[issue31821] pause_reading() doesn't work from connection_made()

2017-12-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue31821> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32115] Ignored SIGCHLD causes asyncio.Process.wait to hang forever

2017-12-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thank for bug report. Do you know other widespread tools with this problem? plan9port sounds too esoteric to me. -- nosy: +asvetlov versions: +Python 3.6, Python 3.7 -Python 3.5 ___ Python tracker <ht

[issue32410] Implement loop.sock_sendfile method

2017-12-22 Thread Andrew Svetlov
New submission from Andrew Svetlov : The method should be low-level coroutine, implemented on loops with native sendfile support only (UnixEventLoop). The signature should be close to socket.sendfile() method Next step is implementing loop.sendfile(transport, ...) with fallback to sending by

[issue32410] Implement loop.sock_sendfile method

2017-12-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +4866 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32410> ___ ___ Py

[issue32396] Implement method to write/read to serials without blocking on windows with asyncio

2017-12-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looking on serial port support in twisted (https://github.com/twisted/twisted/blob/trunk/src/twisted/internet/_win32serialport.py) I see that it is implemented by OVERLAPPED structure and ReadFile/WriterFile calls. On other hand loop.sock_send() in

[issue32357] Optimize asyncio.iscoroutine() and loop.create_task() for non-native coroutines

2017-12-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4878 ___ Python tracker <https://bugs.python.org/issue32357> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32415] Add Task.get_loop() and Future.get_loop()

2017-12-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree -- ___ Python tracker <https://bugs.python.org/issue32415> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32418] Implement Server.get_loop() method

2017-12-23 Thread Andrew Svetlov
New submission from Andrew Svetlov : Future and Task will have the method (bpo-32415) AbstractServer and Server should support it too. -- components: Library (Lib), asyncio messages: 308963 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Implement

[issue29780] Interpreter hang on self._epoll.poll(timeout, max_ev)

2017-12-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: I see no hang in attached snapshot but notmal behavior. asyncio iterates over epoll.poll constantly waiting for network events or timeout. Closing the issue. -- nosy: +asvetlov resolution: -> works for me stage: -> resolved status: open -&g

[issue26666] File object hook to modify select(ors) event mask

2017-12-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Out of asynio library scope. -- nosy: +asvetlov resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32327] Make asyncio methods documented as coroutines - coroutines.

2017-12-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4885 ___ Python tracker <https://bugs.python.org/issue32327> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4891 ___ Python tracker <https://bugs.python.org/issue26133> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4f146f9ed133b9ad56d4ee7a653396836af34067 by Andrew Svetlov in branch 'master': bpo-26133: Clear signals list on interpreter finalizing (#5002) https://github.com/python/cpython/commit/4f146f9ed133b9ad56d4ee7a653396

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 5ff5d1167de88eb37265dcaf1396d12617a0ace7 by Andrew Svetlov (Miss Islington (bot)) in branch '3.6': bpo-26133: Clear signals list on interpreter finalizing (GH-5002) (#5003) https://github.com/python/cpyt

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6, Python 3.7 -Python 3.5 ___ Python tracker <https://bugs.python.or

[issue31721] assertion failure in FutureObj_finalize() after setting _log_traceback to True

2017-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: _log_traceback is a private property and asyncio implementation detail, you should never touch it. -- nosy: +asvetlov resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracke

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-25 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4899 ___ Python tracker <https://bugs.python.org/issue26133> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset a8f4e15f3d33084862ddd3a7d58cd00034e94f16 by Andrew Svetlov in branch 'master': bpo-26133: Fix typos (#5010) https://github.com/python/cpython/commit/a8f4e15f3d33084862ddd3a7d58cd0

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 32518b439b9590cce0ef0639e558dc1ce2e152bb by Andrew Svetlov (Miss Islington (bot)) in branch '3.6': bpo-26133: Fix typos (GH-5010) (#5014) https://github.com/python/cpython/commit/32518b439b9590cce0ef0639e558dc

[issue32437] UnicodeError: 'IDNA does not round-trip'

2017-12-28 Thread Andrew Svetlov
Change by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue32437> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32424] Rename copy() to __copy__() in xml.etree.ElementTree.Element Python implementation

2017-12-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with Srinivas -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue32424> ___ ___ Python-bugs-list mailin

[issue17305] IDNA2008 encoding missing

2017-12-28 Thread Andrew Svetlov
Change by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue17305> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32424] Rename copy() to __copy__() in xml.etree.ElementTree.Element Python implementation

2017-12-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: pypy for example has Element.copy() -- ___ Python tracker <https://bugs.python.org/issue32424> ___ ___ Python-bugs-list mailin

[issue32424] Rename copy() to __copy__() in xml.etree.ElementTree.Element Python implementation

2017-12-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: I mean dropping `.copy()` breaks not only compatibility between pure python versions but also between pypy releases and pypy/CPython code. That's why I suggest to keep `.copy()` as an alias for `__c

[issue32424] Rename copy() to __copy__() in xml.etree.ElementTree.Element Python implementation

2017-12-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: For derivative Python implementation there is a standard strategy: they uses a copy of CPython standard library. Tthat's why any new module should have a pure Python implementation and that's why https://www.python.org/dev/peps/pep-0399/ exists.

[issue32424] Rename copy() to __copy__() in xml.etree.ElementTree.Element Python implementation

2017-12-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yes. For designing from scratch copy() is not necessary but if we have it for decade -- better to unify pure Python and C implementation by adding missing methods. -- ___ Python tracker <https://bugs.python.

[issue32418] Implement Server.get_loop() method

2017-12-30 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4933 ___ Python tracker <https://bugs.python.org/issue32418> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32418] Implement Server.get_loop() method

2017-12-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset ffcb4c0165827d0a48ea973cc88bc134c74879fb by Andrew Svetlov in branch 'master': bpo-32418: Postfix, raise NotImplementdError and close resources in tests (#5052) https://github.com/python/cpython/commit/ffcb4c0165827d0a48ea973cc88bc1

[issue32418] Implement Server.get_loop() method

2017-12-30 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32474] argparse nargs should support string wrapped integers too

2018-01-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: -1 -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue32474> ___ ___ Python-bugs-list mailing list Unsub

[issue32472] Mention of __await__ missing in Coroutine Abstract Methods

2018-01-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: `Coroutine` is inherited from `Awaitable`, that's why inherited abstract `__await__` method is present. It **is** consistent with the rest of the document: e.g. Mapping has no `__len__` method but inherits it from Collection which in turn is inherited

[issue30782] Allow limiting the number of concurrent tasks in asyncio.as_completed

2018-01-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Third parties are not python core devs responsibility. I don't aware about existing library with such functionality. -- ___ Python tracker <https://bugs.python.org/is

[issue33565] strange tracemalloc results

2018-05-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: Victor, could you take a look? -- nosy: +asvetlov, vstinner ___ Python tracker <https://bugs.python.org/issue33565> ___ ___

[issue22848] Subparser help does not respect SUPPRESS argument

2018-05-18 Thread Andrew Gaul
Change by Andrew Gaul : -- nosy: +gaul ___ Python tracker <https://bugs.python.org/issue22848> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33544] Asyncio Event.wait() is a hold over from before awaitable, and should be awaitable

2018-05-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: -1 for the proposal -- ___ Python tracker <https://bugs.python.org/issue33544> ___ ___ Python-bugs-list mailing list Unsub

[issue26819] _ProactorReadPipeTransport pause_reading()/resume_reading() broken if called before any read is perfored

2018-05-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4151061855b571bf8a7579daa7875b8e243057b9 by Andrew Svetlov (CtrlZvi) in branch 'master': bpo-26819: Prevent proactor double read on resume (#6921) https://github.com/python/cpython/commit/4151061855b571bf8a7579daa7875b

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset a84d0b361a26c05c6fadc6640591ec3feee5bfb5 by Andrew Svetlov (Vlad Starostin) in branch 'master': bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450) https://github.com/python/cpython/commit/a84d0b361a26c05c6fadc6640591ec

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset b8b800090ff0954117a26ffcb501307823f3d33a by Andrew Svetlov (Miss Islington (bot)) in branch '3.7': bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450) (#7022) https://github.com/python/cpyt

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, no. The feature was requested many times but was constantly rejected. By this, you are adding a BLOCKING call to your async function. At least it leads to log warning about too long callback execution. Moreover, I suspect that `run_until_complete

[issue33037] Skip sending/receiving after SSL transport closing

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue23749] asyncio missing wrap_socket (starttls)

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is the issue done? -- ___ Python tracker <https://bugs.python.org/issue23749> ___ ___ Python-bugs-list mailing list Unsub

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +6673 ___ Python tracker <https://bugs.python.org/issue33263> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33546] asyncio.Condition should become awaitable in 3.9

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: No, condition variables don't work this way. The proper code looks like: async with cond: while not : await cond.wait() It cannot be collapsed to just `await cond`. -- resolution: -> rejected stage: -> resolved s

[issue33544] Asyncio Event.wait() is a hold over from before awaitable, and should be awaitable

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33238] AssertionError on await of Future returned by asyncio.wrap_future

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Raising `InvalidStateError` sounds perfect. Would you make a pull request? -- ___ Python tracker <https://bugs.python.org/issue33

[issue33238] AssertionError on await of Future returned by asyncio.wrap_future

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.8 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue33238> ___ ___ Python-bugs-list mailing list Unsub

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 7208bfb64b74f31f9704be3f01f26861c9cf092b by Andrew Svetlov in branch '3.6': [3.6] bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450) (#7025) https://github.com/python/cpython/commit/7208bfb64b74f31f9704be3f01f268

[issue33263] Asyncio server enters an invalid state after a request with SO_LINGER

2018-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33531] test_asyncio: test_subprocess test_stdin_broken_pipe() failure on Travis CI

2018-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed failed sendfile tests on Windows (at least I hope so). -- ___ Python tracker <https://bugs.python.org/issue33531> ___ ___

[issue33624] Implement subclass hooks for asyncio abstract classes

2018-05-23 Thread Andrew Svetlov
New submission from Andrew Svetlov : To make clean inheritance hierarchy of objects implemented by third-party loop implementations. Now is impossible to implement AbstractServer in C or Cython. See also https://github.com/MagicStack/uvloop/issues/131 -- components: asyncio messages

[issue33605] Detect accessing event loop from a different thread outside of _debug

2018-05-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Heh, should we sacrifice performance? Documentation for asyncio explicitly states that the only safe interthreading call is `call_soon_threadsafe()`. If people use multithreaded environments with asyncio (Why? Usually `run_in_executor()` doesn't re

[issue26819] _ProactorReadPipeTransport pause_reading()/resume_reading() broken if called before any read is perfored

2018-05-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 749afe81ec0a4b92ad6b89a67c82f2c04f79c5ac by Andrew Svetlov (CtrlZvi) in branch '3.6': [3.6] bpo-26819: Prevent proactor double read on resume (GH-6921) (#7110) https://github.com/python/cpython/commit/749afe81ec0a4b92ad6b89a67c82f2

[issue26819] _ProactorReadPipeTransport pause_reading()/resume_reading() broken if called before any read is perfored

2018-05-25 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue17305] IDNA2008 encoding is missing

2018-05-28 Thread Andrew Svetlov
Change by Andrew Svetlov : -- title: IDNA2008 encoding missing -> IDNA2008 encoding is missing ___ Python tracker <https://bugs.python.org/issue17305> ___ _

[issue33654] asyncio: transports don't support switching between Protocol and BufferedProtocol

2018-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 2179022d94937d7b0600b0dc192ca6fa5f53d830 by Andrew Svetlov (Yury Selivanov) in branch 'master': bpo-33654: Support protocol type switching in SSLTransport.set_protocol() (#7194) https://github.com/python/cpyt

[issue33238] AssertionError on await of Future returned by asyncio.wrap_future

2018-05-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 0a28c0d12ee7201de039ced4d815f57f1f8fd48c by Andrew Svetlov (jhaydaman) in branch 'master': bpo-33238: Add InvalidStateError to concurrent.futures. (GH-7056) https://github.com/python/cpython/commit/0a28c0d12ee7201de039ced4d815f5

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-05-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: I used SNDBUF to enforce send buffer overloading. It is not required by sendfile tests but I thought that better to have non-mocked way to test such situations. We can remove the socket buffers size manipulation at all without any problem

[issue33238] AssertionError on await of Future returned by asyncio.wrap_future

2018-05-30 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33792] asyncio: how to set a "Proactor event loop" policy? Issue with asyncio.run()

2018-06-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looks like we need a proactor policy class. -- ___ Python tracker <https://bugs.python.org/issue33792> ___ ___ Python-bug

[issue33743] test_asyncio raises a deprecation warning

2018-06-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Working on it -- ___ Python tracker <https://bugs.python.org/issue33743> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33743] test_asyncio raises a deprecation warning

2018-06-07 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +7105 ___ Python tracker <https://bugs.python.org/issue33743> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33743] test_asyncio raises a deprecation warning

2018-06-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Master already has the fix, added by 7ed61e9431e -- versions: -Python 3.8 ___ Python tracker <https://bugs.python.org/issue33

[issue33743] test_asyncio raises a deprecation warning

2018-06-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Aha, I see. Thanks -- ___ Python tracker <https://bugs.python.org/issue33743> ___ ___ Python-bugs-list mailing list Unsub

[issue33301] Add __contains__ to pathlib

2018-06-18 Thread Andrew Berger
Andrew Berger added the comment: I can make these changes. Would probably add a .exists method to PurePath, using the _normal_accessor.stats staticmethod, then call that in __contains__ -- nosy: +aberger5b ___ Python tracker <ht

[issue33174] error building the _sha3 module with Intel 2018 compilers

2018-06-19 Thread Andrew Edmondson
Andrew Edmondson added the comment: I made the patch. I'm not sure it's suitable to commit back as it is, as it unrolls a macro but there seems to be a choice of macro in the code (depending on certain conditions). The problem is that icc can't handle a line that is so long

[issue33174] error building the _sha3 module with Intel 2018 compilers

2018-06-19 Thread Andrew Edmondson
Andrew Edmondson added the comment: See https://software.intel.com/en-us/forums/intel-c-compiler/topic/780574 -- ___ Python tracker <https://bugs.python.org/issue33

[issue33301] Add __contains__ to pathlib

2018-06-19 Thread Andrew Berger
Andrew Berger added the comment: I think the idea is that either a subdir or file could be valid inputs. So `Path('/usr/bar') in Path('/etc/foo')` return True if `Path('/etc/foo/usr/bar')` is either a dir or file. As for PurePath, I did overlook that accessi

[issue34075] asyncio: We should prohibit setting a ProcessPoolExecutor in with set_default_executor

2018-07-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree, restricting to ThreadPoolExecutor sounds reasonable. A custom executor may have the same problem as ProcessPoolExecutor. Moreover it can work under same scenarios but crash with other third-party libs

[issue34113] LLTRACE segv

2018-07-14 Thread Andrew Valencia
New submission from Andrew Valencia : Build with -DLLTRACE, then: >>> __lltrace__ = 1 >>> a = [1, 2, 3] 0: 100, 0 push 1 3: 100, 1 push 2 6: 100, 2 push 3 9: 103, 3 pop 3 pop 2 pop 1 push [1, 2, 3] 12: 90, 0 pop [1, 2, 3] 15: 100, 3 push None 18: 83 pop None >>>

[issue33833] ProactorEventLoop raises AssertionError

2018-07-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 9045199c5aaeac9b52537581be127d999b5944ee by Andrew Svetlov (twisteroid ambassador) in branch 'master': bpo-33833: Fix ProactorSocketTransport AssertionError (#7893) https://github.com/python/cpyt

[issue33833] ProactorEventLoop raises AssertionError

2018-07-30 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34447] ttk.TreeView (and maybe other functions) is overzealous in converting item values to ints

2018-08-20 Thread Andrew Barnert
New submission from Andrew Barnert : See this StackOverflow question for a repro case: https://stackoverflow.com/questions/51941260/ If you store a string that looks like an int in a TreeView's values, then call widget.item(row), the dict's 'values' value has that string

[issue34622] Extract asyncio exceptions into a separate file

2018-09-10 Thread Andrew Svetlov
New submission from Andrew Svetlov : Their public import paths are still the same, e.g. `asyncio.CancelledError`. The change pursuits a better asyncio internal code structure. -- messages: 324952 nosy: asvetlov priority: normal severity: normal status: open title: Extract asyncio

[issue34622] Extract asyncio exceptions into a separate file

2018-09-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +asyncio nosy: +yselivanov versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue34622> ___ ___ Pytho

[issue34622] Extract asyncio exceptions into a separate file

2018-09-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +8591 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34622> ___ ___ Py

[issue33986] asyncio: Typo in documentation: BaseSubprocessTransport -> SubprocessTransport

2018-09-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Superseded by #33649 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> asyncio docs overhaul ___ Python tracker <https://bugs.python

[issue34630] Don't log ssl cert errors in asyncio

2018-09-11 Thread Andrew Svetlov
New submission from Andrew Svetlov : It is reported as a regular exception, not need to log it (as we skip logging of connection errors already). -- messages: 325032 nosy: asvetlov priority: normal severity: normal status: open title: Don't log ssl cert errors in as

<    15   16   17   18   19   20   21   22   23   24   >