[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: -yselivanov ___ Python tracker <http://bugs.python.org/issue25895> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28158] Implement LOAD_GLOBAL opcode cache

2016-09-14 Thread Yury Selivanov
New submission from Yury Selivanov: The attached patch implements an opcode cache for LOAD_GLOBAL opcode, making it 2x faster. The idea is to use the new co_extra field of code objects & PEP 509 to attach a cache structure pointing directly to the resolved global name. When global

[issue26182] Deprecation warnings for the future async and await keywords in Python 3.6

2016-09-14 Thread Yury Selivanov
Yury Selivanov added the comment: I had to rewrite the patch to make sure it reports correct position and covers all cases where using async/await should trigger a warning. Brett, could you please take a look at the patch? -- Added file: http://bugs.python.org/file44669/issue_26182

[issue26081] Implement asyncio Future in C to improve performance

2016-09-14 Thread Yury Selivanov
Yury Selivanov added the comment: INADA, would you be able to address my last review comments? Also, I'm wondering what if we could implement __del__ and __repr__ in C too, so that we could drop BaseFuture class? -- ___ Python tracker

[issue27906] Socket accept exhaustion during high TCP traffic

2016-09-14 Thread Yury Selivanov
Yury Selivanov added the comment: > @Yury, do you think you could get to this before b1 goes out? It's a pure > optimization (and a good one!). LGTM. Will commit tomorrow. -- assignee: -> yselivanov ___ Python tracker <http:

[issue26081] Implement asyncio Future in C to improve performance

2016-09-14 Thread Yury Selivanov
Yury Selivanov added the comment: > Implementing __del__ and __repr__ in C is bit hard task to me. > I can't do it in this week. (maybe I can't do it in this month too.) NP. I'll take a look myself after you upload the next i

[issue28158] Implement LOAD_GLOBAL opcode cache

2016-09-14 Thread Yury Selivanov
Yury Selivanov added the comment: > Does this prolongate the lifetime of cached global objects? No. I store borrowed references. The idea is that if the state of globals/builtins dict has changed, we invalidate the cache. -- ___ Python trac

[issue28158] Implement LOAD_GLOBAL opcode cache

2016-09-14 Thread Yury Selivanov
Yury Selivanov added the comment: Serhiy, feel free to review the patch. Guido and Ned okayed it to be committed before 3.6b2. Currently the patch only optimizes one opcode -- LOAD_GLOBAL, but cveal_cache.h file provides the infrastructure to easily implement more opcode caches. I can

[issue27391] server_hostname should only be required when checking host names

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: > The feature is pretty much required these days. We have the feature. What Jim was asking is to make server_hostname argument optional when check_hostname is False in the ssl context -- ___ Python tracker &l

[issue27391] server_hostname should only be required when checking host names

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: > It's a bad idea. I thought so too :) I was actually going to ask you to review this request. In any case, feel free to close this issue. -- ___ Python tracker <http://bugs.python.org

[issue26182] Deprecation warnings for the future async and await keywords in Python 3.6

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: I'm going to commit the patch now (I'm going on vacation tomorrow, and I want to watch the buildbots). -- ___ Python tracker <http://bugs.python.o

[issue26182] Deprecation warnings for the future async and await keywords in Python 3.6

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: Merged. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue27906] Socket accept exhaustion during high TCP traffic

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: > > On the asyncio side, with debug turned on, we see nothing. > Does someone see a way to log a message in such case? Maybe only in debug > mode? I'm not sure we can do anything here. @kevinconway, did you try to find out if it'

[issue28174] asyncio: Handle when SO_REUSEPORT isn't properly supported

2016-09-15 Thread Yury Selivanov
New submission from Yury Selivanov: Proxy issue for https://github.com/python/asyncio/pull/418 -- assignee: yselivanov components: asyncio messages: 276606 nosy: gvanrossum, yselivanov priority: normal severity: normal stage: resolved status: open title: asyncio: Handle when

[issue28174] asyncio: Handle when SO_REUSEPORT isn't properly supported

2016-09-15 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed type: -> enhancement ___ Python tracker <http://bugs.python.org/issue28174> ___ ___

[issue26654] asyncio is not inspecting keyword arguments of functools.partial

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: Merged! Thank you! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue26858] android: setting SO_REUSEPORT fails

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: This issue was fixed in #28174. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue24511] Add methods for async protocols

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: I think we can close this one. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue24510] Make _PyCoro_GetAwaitableIter a public API

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one as no one has requested this for 2 years. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue26909] Asyncio: Pipes and socket IO is very slow

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one. Thank you Mark for discovering the issue and suggesting a solution (still hope we'll commit your patch in 3.7). Thank you INADA Naoki for the patch! -- resolution: -> fixed stage: -> resolved status: ope

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: I'm not sure this is still relevant for the latest asyncio in 3.6. Robert, could you please test if this is still the case? -- ___ Python tracker <http://bugs.python.org/is

[issue26050] Add new StreamReader.readuntil() method

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: Looks like we already have docs for readuntil. Mark, could you please check if we have some docs missing (or just close the issue)? -- ___ Python tracker <http://bugs.python.org/issue26

[issue27665] Make create_server able to listen on several ports

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: I think this has been already fixed. Please reopen if I missed something. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue27415] regression: BaseEventLoop.create_server does not accept port=None

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: Looks like this is fixed now. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28176] Fix callbacks race in asyncio.SelectorLoop.sock_connect

2016-09-15 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed ___ Python tracker <http://bugs.python.org/issue28176> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue28176] Fix callbacks race in asyncio.SelectorLoop.sock_connect

2016-09-15 Thread Yury Selivanov
New submission from Yury Selivanov: Proxy issue for https://github.com/python/asyncio/pull/366 -- assignee: yselivanov components: asyncio messages: 276628 nosy: gvanrossum, yselivanov priority: normal severity: normal stage: resolved status: open title: Fix callbacks race in

[issue27759] selectors incorrectly retain invalid file descriptors

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: I've fixed the remaining review comments & committed the patch. Thank you Mark! BTW, this also fixes http://bugs.python.org/issue27386. -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: It looks like this was fixed by #27759!. Jim, could you please verify? -- ___ Python tracker <http://bugs.python.org/issue27

[issue26797] Segafault in _PyObject_Alloc

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one. Haven't seen this in a while, probably it was a bug in libuv. -- resolution: -> works for me stage: test needed -> resolved status: open -> closed ___ Python tracker <http:

[issue28158] Implement LOAD_GLOBAL opcode cache

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: I'm going to commit this patch tomorrow. -- ___ Python tracker <http://bugs.python.org/issue28158> ___ ___ Python-bugs-l

[issue28128] Improve the warning message for invalid escape sequences

2016-09-15 Thread Yury Selivanov
Yury Selivanov added the comment: BTW, this will also help to make warnings more friendly in #26182. -- ___ Python tracker <http://bugs.python.org/issue28

[issue28213] asyncio SSLProtocol _app_transport is private

2016-09-20 Thread Yury Selivanov
Yury Selivanov added the comment: -1 on exposing app_protocol. It's an implementation detail, starttls should be implemented in asyncio (and while it's not, it's ok to use '_app_protocol'. -- ___ Python tracker <http:

[issue28240] Enhance the timeit module

2016-09-21 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: -yselivanov ___ Python tracker <http://bugs.python.org/issue28240> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-09-26 Thread Yury Selivanov
Yury Selivanov added the comment: Isn't 3.4 in security fixes only mode? -- status: pending -> open ___ Python tracker <http://bugs.python.org/issue27386> ___

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-09-26 Thread Yury Selivanov
Yury Selivanov added the comment: > Jim ask for a backport. Sorry Jim, was replying from my email client, didn't see all messages. > This is arguably a security issue because it's a DoS vector. Yeah, I can see why. I can commit this to 3.4 in a week. Christian, feel free t

[issue28283] test_sock_connect_sock_write_race() of test.test_asyncio.test_selector_events fails randomly on FreeBSD

2016-09-27 Thread Yury Selivanov
Yury Selivanov added the comment: Berker, I think it's an OK workaround. The test is kind of unstable, to the point of me thinking to just remove it (keeping the rest of the patch applied). Feel free to apply it. -- ___ Python tracker

[issue28283] test_sock_connect_sock_write_race() of test.test_asyncio.test_selector_events fails randomly on FreeBSD

2016-09-27 Thread Yury Selivanov
Yury Selivanov added the comment: > I dislike the idea of a test for a race condition which skips itself if it fails to reproduce the race condition :-/ I like the idea of removing he unit test. OK, let's remove the test. I can do that myself in a couple

[issue28368] Refuse monitoring processes if the child watcher has no loop attached

2016-10-05 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue28368> ___ ___ Python-bugs-list

[issue28368] Refuse monitoring processes if the child watcher has no loop attached

2016-10-05 Thread Yury Selivanov
New submission from Yury Selivanov: Proxy issue for https://github.com/python/asyncio/pull/391 -- assignee: yselivanov components: asyncio messages: 278148 nosy: gvanrossum, yselivanov priority: normal severity: normal stage: resolved status: open title: Refuse monitoring processes if

[issue28369] Raise RuntimeError when transport's FD is used with add_reader etc

2016-10-05 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue28369> ___ ___ Python-bugs-list

[issue28369] Raise RuntimeError when transport's FD is used with add_reader etc

2016-10-05 Thread Yury Selivanov
New submission from Yury Selivanov: Proxy issue for https://github.com/python/asyncio/pull/420 -- assignee: yselivanov components: asyncio messages: 278152 nosy: gvanrossum, yselivanov priority: normal severity: normal stage: resolved status: open title: Raise RuntimeError when

[issue28370] Speedup asyncio.StreamReader.readexactly

2016-10-05 Thread Yury Selivanov
New submission from Yury Selivanov: Proxy for https://github.com/python/asyncio/pull/395 -- assignee: yselivanov components: asyncio messages: 278154 nosy: gvanrossum, yselivanov priority: normal severity: normal stage: resolved status: open title: Speedup

[issue28370] Speedup asyncio.StreamReader.readexactly

2016-10-05 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue28370> ___ ___ Python-bugs-list

[issue28371] Deprecate passing asyncio.Handles to run_in_executor

2016-10-05 Thread Yury Selivanov
New submission from Yury Selivanov: Proxy issue for https://github.com/python/asyncio/issues/334 -- assignee: yselivanov components: asyncio messages: 278156 nosy: gvanrossum, yselivanov priority: normal severity: normal stage: resolved status: open title: Deprecate passing

[issue28371] Deprecate passing asyncio.Handles to run_in_executor

2016-10-05 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue28371> ___ ___ Python-bugs-list

[issue28372] Fix asyncio to support formatting of non-python coroutines

2016-10-05 Thread Yury Selivanov
New submission from Yury Selivanov: Like the ones that were compiled with Cython. -- assignee: yselivanov components: asyncio messages: 278159 nosy: gvanrossum, yselivanov priority: normal severity: normal stage: resolved status: open title: Fix asyncio to support formatting of non

[issue28372] Fix asyncio to support formatting of non-python coroutines

2016-10-05 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue28372> ___ ___ Python-bugs-list

[issue23749] asyncio missing wrap_socket (starttls)

2016-10-05 Thread Yury Selivanov
Yury Selivanov added the comment: With the latest change it's possible to implement starttls as a separate package on PyPI, or even by copying/pasting a small snipped of code in your project. It's expected that we'll figure out the API design for starttls during 3.6, so that w

[issue27168] Comprehensions and await need more unittests

2016-10-05 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one. We added a lot of tests as part of the PEP 530 implementation. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue24697] Add CoroutineReturn and CoroutineExit builtin exceptions for coroutines

2016-10-05 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one. Seems we can live just fine without these new exceptions. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue25292] ssl socket gets into broken state when client exits during handshake

2016-10-05 Thread Yury Selivanov
Yury Selivanov added the comment: Christian, would you be able to look into this before b2? -- ___ Python tracker <http://bugs.python.org/issue25292> ___ ___ Pytho

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-10-06 Thread Yury Selivanov
Yury Selivanov added the comment: Alright, I've backported the fix to 3.4. Closing this. -- stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.

[issue27392] Add a server_side keyword parameter to create_connection

2016-10-06 Thread Yury Selivanov
Yury Selivanov added the comment: AFAICT this issue was resolved in https://github.com/python/asyncio/pull/378. Closing this one. Thanks, Jim! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python track

[issue27972] Confusing error during cyclic yield

2016-10-06 Thread Yury Selivanov
Yury Selivanov added the comment: This is an interesting mind twister. The key problem is that `self.runner_task` is blocked on *itself*: so Task._fut_waiter is set to the Task. Therefore when the task is being cancelled, `Task.cancel` simply recurses. One way to solve this is to prohibit

[issue26081] Implement asyncio Future in C to improve performance

2016-10-06 Thread Yury Selivanov
Yury Selivanov added the comment: The most recent patch segfaults... Will try to debug. -- ___ Python tracker <http://bugs.python.org/issue26081> ___ ___ Pytho

[issue26081] Implement asyncio Future in C to improve performance

2016-10-06 Thread Yury Selivanov
Yury Selivanov added the comment: INADA, would you be able to take a look? -- ___ Python tracker <http://bugs.python.org/issue26081> ___ ___ Python-bugs-list m

[issue27972] Confusing error during cyclic yield

2016-10-06 Thread Yury Selivanov
Yury Selivanov added the comment: > It's pretty perverse. But how would you detect this case? In Task._step, we can check if the future the task is about to await on is "self". -- ___ Python tracker <http://bugs.

[issue27972] Confusing error during cyclic yield

2016-10-06 Thread Yury Selivanov
Yury Selivanov added the comment: > Is that enough? What if the recursion involves several tasks waiting for each other in a cycle? I'm not sure... Maybe it's OK when two tasks await on each other, I think the current Task implementation should be able to handle that. The prob

[issue26081] Implement asyncio Future in C to improve performance

2016-10-08 Thread Yury Selivanov
Yury Selivanov added the comment: I quickly looked over the patch and I think it's good. If anything we still have time to hunt down any bugs or even revert this before 3.6 final. INADA, feel free to commit it before Monday to 3.6 and default bra

[issue26081] Implement asyncio Future in C to improve performance

2016-10-09 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you, INADA! Next task -- optimize asyncio.Task in C in 3.7. Another 10-15% performance improvement. -- ___ Python tracker <http://bugs.python.org/issue26

[issue26081] Implement asyncio Future in C to improve performance

2016-10-09 Thread Yury Selivanov
Yury Selivanov added the comment: I mean another optimization possibility. -- ___ Python tracker <http://bugs.python.org/issue26081> ___ ___ Python-bugs-list m

[issue28399] Remove UNIX socket from FS before binding

2016-10-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue28399> ___ ___ Python-bugs-list

[issue28399] Remove UNIX socket from FS before binding

2016-10-09 Thread Yury Selivanov
New submission from Yury Selivanov: Proxy for https://github.com/python/asyncio/pull/441 -- assignee: yselivanov components: asyncio messages: 278367 nosy: gvanrossum, yselivanov priority: normal severity: normal stage: resolved status: open title: Remove UNIX socket from FS before

[issue26081] Implement asyncio Future in C to improve performance

2016-10-09 Thread Yury Selivanov
Yury Selivanov added the comment: Yes, I think it's a good idea. -- ___ Python tracker <http://bugs.python.org/issue26081> ___ ___ Python-bugs-list m

[issue27972] Confusing error during cyclic yield

2016-10-09 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you for reporting this! Closing the issue. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28428] Rename _futures module to _asyncio

2016-10-14 Thread Yury Selivanov
Yury Selivanov added the comment: No news entry is necessary for this. -- ___ Python tracker <http://bugs.python.org/issue28428> ___ ___ Python-bugs-list mailin

[issue28448] C implemented Future doesn't work on Windows

2016-10-17 Thread Yury Selivanov
Yury Selivanov added the comment: > C implemented Future should allow overriding _schedule_callbacks. I'm not so sure about this. Maybe we can just fix _WaitCancelFuture somehow? -- ___ Python tracker <http://bugs.python.org

[issue28452] Remove _asyncio._init_module function

2016-10-17 Thread Yury Selivanov
Yury Selivanov added the comment: LGTM -- ___ Python tracker <http://bugs.python.org/issue28452> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28471] Python 3.6b2 crashes with "Python memory allocator called without holding the GIL"

2016-10-18 Thread Yury Selivanov
New submission from Yury Selivanov: The following Python program causes a segfault in Python 3.6b2: import socket import asyncio loop = asyncio.get_event_loop() sock = socket.socket() sock.close() async def client(): reader, writer = await

[issue28471] Python 3.6b2 crashes with "Python memory allocator called without holding the GIL"

2016-10-18 Thread Yury Selivanov
Yury Selivanov added the comment: I have a patch already, writing a unittest. -- ___ Python tracker <http://bugs.python.org/issue28471> ___ ___ Python-bugs-list m

[issue28471] Python 3.6b2 crashes with "Python memory allocator called without holding the GIL"

2016-10-18 Thread Yury Selivanov
Yury Selivanov added the comment: Attaching a patch to fix this. Please review. -- keywords: +patch Added file: http://bugs.python.org/file45136/issue28471.patch ___ Python tracker <http://bugs.python.org/issue28

[issue28471] Python 3.6b2 crashes with "Python memory allocator called without holding the GIL"

2016-10-18 Thread Yury Selivanov
Yury Selivanov added the comment: > LGTM, thanks Yury! NP :) Should this be committed to 3.6/default, or in 3.5 too? -- ___ Python tracker <http://bugs.python.org/issu

[issue28471] Python 3.6b2 crashes with "Python memory allocator called without holding the GIL"

2016-10-18 Thread Yury Selivanov
Yury Selivanov added the comment: > In release mode, the check is disabled by default (can be enabled at runtime), and I don't think that the code can crash. It actually crashed in release mode for me. Maybe the exact location of SF was different, but whatever... Anyways, closing t

[issue28471] Python 3.6b2 crashes with "Python memory allocator called without holding the GIL"

2016-10-18 Thread Yury Selivanov
Yury Selivanov added the comment: > I'm curious. I tested in release mode, the example does crash: Well, since the GIL wasn't properly acquired, it's only a matter of time until something else crashes. -- ___ Python tracker <h

[issue26685] Raise errors from socket.close()

2016-10-18 Thread Yury Selivanov
Yury Selivanov added the comment: I think this patch should be reverted. It breaks backwards compatibility: import socket sock0 = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0) sock = socket.socket( socket.AF_INET, socket.SOCK_STREAM, 0, sock0.fileno()) sock0

[issue26685] Raise errors from socket.close()

2016-10-18 Thread Yury Selivanov
Yury Selivanov added the comment: IOW, what is happening in uvloop: 1. A user has a Python socket object and passes it asyncio (run with uvloop) API. 2. uvloop extracts the FD of the socket, and passes it to low-level libuv. 3. At some point of time, libuv closes the FD. 4. When user tries

[issue26685] Raise errors from socket.close()

2016-10-18 Thread Yury Selivanov
Yury Selivanov added the comment: Another example: some asyncio (run with uvloop) code: conn, _ = lsock.accept() f = loop.create_task( loop.connect_accepted_socket( proto_factory, conn)) # More code loop.run_forever

[issue26685] Raise errors from socket.close()

2016-10-18 Thread Yury Selivanov
Yury Selivanov added the comment: My proposal: ignore EBADF in socket.close(). It means that the socket is closed already. It doesn't matter why. -- ___ Python tracker <http://bugs.python.org/is

[issue26685] Raise errors from socket.close()

2016-10-18 Thread Yury Selivanov
Yury Selivanov added the comment: Maybe we should fix asyncio. Maybe if a user passes an existing socket object into loop.create_connection, it should duplicate the socket. -- ___ Python tracker <http://bugs.python.org/issue26

[issue26685] Raise errors from socket.close()

2016-10-19 Thread Yury Selivanov
Yury Selivanov added the comment: After thinking about this problem for a while, I arrived to the conclusion that we need to fix asyncio. Essentially, when a user passes a socket object to the event loop API like 'create_server', they give up the control of the socket to the loop.

[issue26685] Raise errors from socket.close()

2016-10-19 Thread Yury Selivanov
Yury Selivanov added the comment: > Ah, you became reasonable :-D Come on... :) > Would you mind to open an issue specific for asyncio? I'll open an issue on GH today to discuss with you/Guido/asyncio devs. -- ___ Python tra

[issue26685] Raise errors from socket.close()

2016-10-19 Thread Yury Selivanov
Yury Selivanov added the comment: >> Would you mind to open an issue specific for asyncio? > I'll open an issue on GH today to discuss with you/Guido/asyncio devs. Guido, Victor, please take a look: https://github.com/python/as

[issue26010] document CO_* constants

2016-10-20 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you Stephane for bumping this issue up. I've committed the patch. I've documented CO_ASYNC_GENERATOR in more detail, and I also added "versionadded" tags to CO_COROUTINE and CO_ITERABLE_COROUTINE. -- r

[issue28492] C implementation of asyncio.Future doesn't set value of StopIteration correctly

2016-10-20 Thread Yury Selivanov
New submission from Yury Selivanov: Specifically when the result of the Future is tuple. -- components: asyncio messages: 279070 nosy: gvanrossum, inada.naoki, yselivanov priority: normal severity: normal status: open title: C implementation of asyncio.Future doesn't set val

[issue28492] C implementation of asyncio.Future doesn't set value of StopIteration correctly

2016-10-20 Thread Yury Selivanov
Yury Selivanov added the comment: Inada-san, please take a look at my commit if you have time. -- resolution: -> fixed stage: -> commit review status: open -> closed type: -> behavior ___ Python tracker <http://bugs.python

[issue28448] C implemented Future doesn't work on Windows

2016-10-20 Thread Yury Selivanov
Yury Selivanov added the comment: Latest patch looks good. -- ___ Python tracker <http://bugs.python.org/issue28448> ___ ___ Python-bugs-list mailing list Unsub

[issue28493] Typo in _asynciomodule.c

2016-10-20 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks, Stéphane! Fixed. -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> enhancement ___ Python tracker <http://bugs.python

[issue28492] C implementation of asyncio.Future doesn't set value of StopIteration correctly

2016-10-21 Thread Yury Selivanov
Changes by Yury Selivanov : -- stage: commit review -> resolved ___ Python tracker <http://bugs.python.org/issue28492> ___ ___ Python-bugs-list mailing list Un

[issue28430] asyncio: C implemeted Future cause Tornado test fail

2016-10-21 Thread Yury Selivanov
Yury Selivanov added the comment: The patch looks good. 2 things: - It appears it also touches Misc/NEWS a bit too much. Please make sure to not to commit that. - I'd also add a comment explaining why we ignore values passed to FI.send() and simply send None. The reason is how F

[issue28213] asyncio SSLProtocol _app_transport is private

2016-10-21 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one. I don't think we want to expose/document _app_transport. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.pyth

[issue28212] Closing server in asyncio is not efficient

2016-10-21 Thread Yury Selivanov
Yury Selivanov added the comment: > Seems that its not so hard - in loop.remove_reader add If you have a patch in mind, please create a PR on github.com/python/asyncio -- ___ Python tracker <http://bugs.python.org/issu

[issue28500] pep 525/asyncio: Handle when async generators are GCed from another thread

2016-10-21 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue28500> ___ ___ Python-bugs-list

[issue28500] pep 525/asyncio: Handle when async generators are GCed from another thread

2016-10-21 Thread Yury Selivanov
New submission from Yury Selivanov: Proxy for https://github.com/python/asyncio/pull/447 -- assignee: yselivanov components: asyncio messages: 279154 nosy: gvanrossum, yselivanov priority: normal severity: normal stage: resolved status: open title: pep 525/asyncio: Handle when async

[issue26923] asyncio.gather drops cancellation

2016-10-21 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you, Johannes! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue26796] BaseEventLoop.run_in_executor shouldn't specify max_workers for default Executor

2016-10-21 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you, Hans! -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.6, Python 3.7 ___ Python tracker <http://bugs.python.or

[issue28414] SSL match_hostname fails for internationalized domain names

2016-10-21 Thread Yury Selivanov
Yury Selivanov added the comment: Christian, what's the status on this one? -- ___ Python tracker <http://bugs.python.org/issue28414> ___ ___ Python-bugs-l

[issue28544] Implement asyncio.Task in C

2016-10-27 Thread Yury Selivanov
New submission from Yury Selivanov: The attached patch implements asyncio.Task in C. Besides that, it also implements Argument Clinic for C Future. Performance improvement on a simple echo server implementation using asyncio.streams: Python Future & Task | C Future & Py Task

[issue28544] Implement asyncio.Task in C

2016-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: Also, with this patch uvloop becomes ~3-5% faster too. -- ___ Python tracker <http://bugs.python.org/issue28544> ___ ___ Pytho

[issue28544] Implement asyncio.Task in C

2016-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: > Yury, would you like to merge this before 3.6b3? Yes! > I'll look this as soon as possible. Thanks a lot! -- ___ Python tracker <http://bugs.python.

[issue28544] Implement asyncio.Task in C

2016-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: Guido, Ned, thanks! Andrew already glanced through the code, let's see what Inada-san says. I'm uploading an updated patch addressing Andrew's review. -- Added file: http://bugs.python.org/file452

<    25   26   27   28   29   30   31   >