[issue34687] asyncio: is it time to make ProactorEventLoop as the default event loop?

2018-09-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think the only way to make sure that proactor event loop is stable -- starting to use it everywhere on Windows. Let's do it. -- ___ Python tracker <https://bugs.python.org/is

[issue34793] Remove support for "with (await asyncio.lock):"

2018-09-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: I don't care too much. Maybe removal is just fine. `with await ...` looks awkward anyway -- ___ Python tracker <https://bugs.python.org/is

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2018-09-26 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue34679> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2018-09-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: In my opinion, we should don't change the behavior. Signal handlers should be processed in main thread at the end, that's how Python works for regular synchronous API. Mentioning it in the doc makes sense. Would you make a pu

[issue34830] functools.partial is weak referncable

2018-09-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: ``` In [1]: import weakref In [2]: class A: ...: __slots__

[issue34830] functools.partial is weak referncable

2018-09-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think yes. -- ___ Python tracker <https://bugs.python.org/issue34830> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34849] Drop logging when asyncio waits in selector.select()

2018-09-29 Thread Andrew Svetlov
New submission from Andrew Svetlov : The waiting is the pretty normal case: no IO is performed and no immediate activities are scheduled. Therefore logging such cases is just a noise. -- components: asyncio messages: 326702 nosy: asvetlov, yselivanov priority: normal severity: normal

[issue34849] Drop logging when asyncio waits in selector.select()

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

[issue34476] asyncio.sleep(0) not documented

2018-09-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: `asyncio.sleep()` always pauses the current task and switches execution to another one. `asyncio.sleep(0)` has no special meaning (but it has internal optimization for the case). Basically the same as `time.sleep(0)` for multithreaded program. I doubt if

[issue34476] asyncio.sleep(0) not documented

2018-09-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Adding "`asyncio.sleep()` always pauses the current task and switches execution to another one" sounds totally reasonable to me (without mentioning zero `delay` special case). Would you make a pu

[issue34476] asyncio.sleep(0) not documented

2018-10-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset cd602b8af2d14ff686261eeb18b80f718bb16550 by Andrew Svetlov (Hrvoje Nikšić) in branch 'master': bpo-34476: Document that asyncio.sleep() always suspends. (#9643) https://github.com/python/cpython/commit/cd602b8af2d14ff686261eeb18b80f

[issue34476] asyncio.sleep(0) not documented

2018-10-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 655608a1112e592cd6a9155ebe774dd285f561f3 by Andrew Svetlov (Miss Islington (bot)) in branch '3.7': bpo-34476: Document that asyncio.sleep() always suspends. (GH-9643) (#9654) https://github.com/python/cpyt

[issue34476] asyncio.sleep(0) not documented

2018-10-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34476] asyncio.sleep(0) not documented

2018-10-01 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue34476> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33117] asyncio example uses non-existing/documented method

2018-10-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: @xtreak is right, `run_coroutine_threadsafe()` returns `concurrent.futures.Future` object. Personally, I like the fact that `fut.result()` is called with timeout parameter to reflect the fact of the different object type. -- resolution: -> no

[issue34728] deprecate *loop* argument for asyncio.sleep

2018-10-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: My understanding is: `loop` argument passed to sleep should be always the same as returned from `get_running_loop()`. Passing it explicitly can be considered as microoptimization but `get_running_loop()` is pretty fast now, no need for such micro-opts. On

[issue34014] loop.run_in_executor should propagate current contextvars

2018-10-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: I vote on not changing `run_in_executor` behavior if we cannot make it work with `ProcessPoolExecutor`. If a new API will solve the problem -- that's fine. Until it landed the explicit context propagation is the satisfactory sol

[issue34885] asyncio documention has lost its paragraph about cancellation

2018-10-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yuri, can you take a look? -- ___ Python tracker <https://bugs.python.org/issue34885> ___ ___ Python-bugs-list mailin

[issue34014] loop.run_in_executor should propagate current contextvars

2018-10-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: I prefer (4) but can live with (3) It is a new feature for Python 3.8 anyway, no need to rush -- ___ Python tracker <https://bugs.python.org/issue34

[issue34875] Change .js mime to "text/javascript"

2018-10-03 Thread Andrew Svetlov
Change by Andrew Svetlov : -- title: Change .js mime to "test/javascript" -> Change .js mime to "text/javascript" ___ Python tracker <https://

[issue34875] Change .js mime to "text/javascript"

2018-10-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: By RCF 4329 https://tools.ietf.org/html/rfc4329#page-9 text/javascript is obsoleted, application/javascript is a part of the standard. WhatWg is a controversial group. Their specs don't always follow official standards but Python does. Sorry, I s

[issue34875] Change .js mime to "text/javascript"

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

[issue34875] Change .js mime to "text/javascript"

2018-10-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: We can return to the question when (and if) the draft will be accepted. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34890] Support functools.partial in inspect.is*function() checks

2018-10-04 Thread Andrew Svetlov
New submission from Andrew Svetlov : isfunction() processes both `isfunction(func)` and `isfunction(partial(func, arg))` correctly. But `iscoroutinefunction()` misses this functionality. We can implement it easy by adding a check for `isinstance(func, partial)` and applying a coroutine

[issue34825] Add more entries to os module to pathlib reference table

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

[issue34825] Add more entries to os module to pathlib reference table

2018-10-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 29c40c73143fee3612147959779b6927cd1be7e1 by Andrew Svetlov (Miss Islington (bot)) in branch '3.7': bpo-34825: Add more entries to os to pathlib reference table (GH-9608) (#9717) https://github.com/python/cpyt

[issue30588] Missing documentation for codecs.escape_decode

2018-10-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: -1 Internal function means: you can use it on your risk but the function can be changed or even removed in any Python release. I see no point in documenting and making it public. -- nosy: +asvetlov ___ Python

[issue34795] loop.sock_recv failure because of delayed callback handling

2018-10-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yuri, do you mean `socket._io_refs` manipulations? -- ___ Python tracker <https://bugs.python.org/issue34795> ___ ___ Pytho

[issue34795] loop.sock_recv failure because of delayed callback handling

2018-10-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looks like a hack but we have no choice -- ___ Python tracker <https://bugs.python.org/issue34795> ___ ___ Python-bugs-list m

[issue34849] Drop logging when asyncio waits in selector.select()

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

[issue34929] Extract asyncio sendfile tests into a separate test file

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: Tests, asyncio nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Extract asyncio sendfile tests into a separate test file versions: Python 3.8 ___ Python tracker <ht

[issue34929] Extract asyncio sendfile tests into a separate test file

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

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

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- assignee: -> asvetlov components: +asyncio nosy: +yselivanov versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issu

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

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

[issue34383] asyncio passes SSL certificate error to loop.call_exception_handler()

2018-10-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Duplicate of #34630 -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34445] asyncio support in doctests

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue34445> ___ ___ Python-bugs-list

[issue34911] Allow Cookies for Secure WebSockets

2018-10-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4c339970570d07916bee6ade51f4e9781d51627a by Andrew Svetlov (Paul Bailey) in branch 'master': bpo-34911: Added support for secure websocket cookies (GH-9734) https://github.com/python/cpython/commit/4c339970570d07916bee6ade51f4e9

[issue34911] Allow Cookies for Secure WebSockets

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

[issue34937] Extract asyncio tests for sock_*() methods into a separate test file

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: Tests, asyncio nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Extract asyncio tests for sock_*() methods into a separate test file versions: Python 3.8 ___ Python tracker

[issue34937] Extract asyncio tests for sock_*() methods into a separate test file

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

[issue31715] Add mimetype for extension .mjs

2018-10-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 0854b92cd25613269d21de3cb5239379ddc0f2fb by Andrew Svetlov (Bradley Meck) in branch 'master': bpo-31715 Add mimetype for extension .mjs (#3908) https://github.com/python/cpython/commit/0854b92cd25613269d21de3cb5239379ddc0f2fb -

[issue31715] Add mimetype for extension .mjs

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.or

[issue34937] Extract asyncio tests for sock_*() methods into a separate test file

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

[issue34758] http.server module sets incorrect mimetype for WebAssembly files

2018-10-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 199a280af540e3194405eb250ca1a8d487f6a4f7 by Andrew Svetlov (travisoneill) in branch 'master': bpo-34758: add .wasm to recognized file extensions in mimetypes module (GH-9464) https://github.com/python/cpyt

[issue34758] http.server module sets incorrect mimetype for WebAssembly files

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.7 ___ Python tracker <https://bugs.python.or

[issue34929] Extract asyncio sendfile tests into a separate test file

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

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2018-10-09 Thread Andrew Svetlov
Change by Andrew Svetlov : -- assignee: -> asvetlov ___ Python tracker <https://bugs.python.org/issue30064> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue34795] loop.sock_recv failure because of delayed callback handling

2018-10-09 Thread Andrew Svetlov
Change by Andrew Svetlov : -- assignee: -> asvetlov ___ Python tracker <https://bugs.python.org/issue34795> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue23554] EchoServerClientProtocol class should be called EchoServerProtocol

2018-10-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree, EchoServer is the better name -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue23554> ___ ___ Pytho

[issue23554] EchoServerClientProtocol class should be called EchoServerProtocol

2018-10-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Cool! Thanks! -- ___ Python tracker <https://bugs.python.org/issue23554> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34970] Protect all_tasks manipulation in asyncio.all_tasks()

2018-10-13 Thread Andrew Svetlov
New submission from Andrew Svetlov : Traceback (most recent call last): File "C:\Users\max\AppData\Local\Programs\Python\Python37\lib\threading.py", line 917, in _bootstrap_inner self.run() File "D:\Proj\antwork\code\antwork_backend\server\data_handlers\order\playbac

[issue34970] Protect tasks weak set manipulation in asyncio.all_tasks()

2018-10-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- title: Protect all_tasks manipulation in asyncio.all_tasks() -> Protect tasks weak set manipulation in asyncio.all_tasks() ___ Python tracker <https://bugs.python.org/issu

[issue34970] Protect tasks weak set manipulation in asyncio.all_tasks()

2018-10-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: The issue is hard to reproduce, the problem happens on an implicit garbage collector run during iteration over `_all_tasks` weakset. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34970] Protect tasks weak set manipulation in asyncio.all_tasks()

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

[issue34970] Protect tasks weak set manipulation in asyncio.all_tasks()

2018-10-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ned, would be nice to have this trivial bugfix in 3.7.1. The problem happens if wakes up on weakset iteration. The chance is very low, it leads to a flaky scary bug. -- stage: patch review -> ___ Python trac

[issue34968] loop.call_soon_threadsafe should be documented to be re-entrant-safe too

2018-10-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree. Docs update sounds good. Nathaniel, would you create a docs patch? -- ___ Python tracker <https://bugs.python.org/issue34

[issue34971] add support for tls/ssl sessions in asyncio

2018-10-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: TLS session support is awesome. IFAIK ssl_proto.py is under heavy reconstruction now. Please coordinate your work with Yuri. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34970] Protect tasks weak set manipulation in asyncio.all_tasks()

2018-10-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Let's wait for Yuri opinion. -- ___ Python tracker <https://bugs.python.org/issue34970> ___ ___ Python-bugs-list m

[issue32052] Provide access to buffer of asyncio.StreamReader

2018-10-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Exposing internal buffer means committing on a new API contract forever. I feel a need for reacher read*() API but pretty sure that making internal buffer public is a bad idea. With BufferedProtocol it could be even worse: SLAB allocators can spit a buffer

[issue34970] Protect tasks weak set manipulation in asyncio.all_tasks()

2018-10-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 5dbb1b7df1d9ecaa6b5344028cd1777502cf5c73 by Andrew Svetlov (Miss Islington (bot)) in branch '3.7': bpo-34970: Protect tasks weak set manipulation in asyncio.all_tasks() (GH-9837) (GH-9849) https://github.com/python/cpyt

[issue34970] Protect tasks weak set manipulation in asyncio.all_tasks()

2018-10-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ned, the fix has landed on both master and 3.7 Your turn, please. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34970] Protect tasks weak set manipulation in asyncio.all_tasks()

2018-10-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Cool! Thanks, Ned -- ___ Python tracker <https://bugs.python.org/issue34970> ___ ___ Python-bugs-list mailing list Unsub

[issue34975] start_tls() difficult when using asyncio.start_server()

2018-10-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for raising the problem. I'm in the middle of streams API refactoring. https://github.com/asvetlov/cpython/blob/async-streams/Lib/asyncio/streams.py#L801-L812 is a draft. A help is very appreciated. Would you pick up this snippet and make a

[issue34993] asyncio.streams.FlowControlMixin should be part of the API

2018-10-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: 1. Trio has *stappled* streams for the case, especially useful for starting TLS session over stdin/stdout. We can master something too. 2. FlowControlMixin was always considered a **private** API. Would be nice to add an underscore prefix to the name if not

[issue35014] asyncio subprocess accepts string as parameter which lead to UnicodeEncodeError

2018-10-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: List of strings works on both my local Linux box and CPython test suite. Please provide more info about the error. Stacktrace can help -- ___ Python tracker <https://bugs.python.org/issue35

[issue35014] asyncio subprocess accepts string as parameter which lead to UnicodeEncodeError

2018-10-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think you'll get the same error on `subprocess.run()` call if your current locale is not UTF-8. I don't recall the details but the Intenet has a lot info about setting locale per user and s

[issue35019] Minor Bug found in asyncio - Python 3.5.3

2018-10-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: It could be a nice feature but I imagine about adding ipaddress objects support to all python APIs. It could be done in a similar way as pathlib integration (os.fspath() and family). -- ___ Python tracker <ht

[issue35019] Minor Bug found in asyncio - Python 3.5.3

2018-10-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: I mean if we implement something like PathLike [1] but for IP addresses to socket module and teach all socket APIs to accept IPLike objects along with str -- no asyncio change is required. 1. https://docs.python.org/3/library/os.html#os.PathLike

[issue35040] functools.lru_cache does not work with coroutines

2018-10-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: A coroutine detection is a relatively slow check. I don't think we need to do it in `functools.lru_cache`. There is a specialized asyncio compatible version: https://github.com/aio-libs/async_lru Please u

[issue35065] Reading received data from a closed TCP stream using `StreamReader.read` might hang forever

2018-10-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Hi Vincent! No, the hang is not intended behavior. Thanks for the report. I'll assign the issue to myself to don't miss the bug; but if you have a patch with a fix -- please don't hesitate to make a Pull

[issue35179] Limit max sendfile chunk to 0x7ffff000

2018-11-06 Thread Andrew Svetlov
New submission from Andrew Svetlov : On Linux maximum data size for sendfile call is 0x7000: sendfile() will transfer at most 0x7000 (2,147,479,552) bytes, returning the number of bytes actually transferred. (This is true on both 32-bit and 64-bit systems.) Limiting max block

[issue35179] Limit max sendfile chunk to 0x7ffff000

2018-11-06 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +Library (Lib), asyncio -macOS nosy: +yselivanov ___ Python tracker <https://bugs.python.org/issue35179> ___ ___ Pytho

[issue35179] Limit max sendfile chunk to 0x7ffff000

2018-11-06 Thread Andrew Svetlov
Change by Andrew Svetlov : -- nosy: +giampaolo.rodola -ned.deily, ronaldoussoren ___ Python tracker <https://bugs.python.org/issue35179> ___ ___ Python-bug

[issue35179] Limit max sendfile chunk to 0x7ffff000

2018-11-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: My initial thought was that os.sendfile() raises OSError on sending more than 0x7fff_f000 but I was wrong. I've checked it, everything works as Victor described. Thank you guys for the feedback. -- resolution: -> not a bug stage: -&g

[issue35065] Reading received data from a closed TCP stream using `StreamReader.read` might hang forever

2018-11-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset fd512d76456b65c529a5bc58d8cfe73e4a10de7a by Andrew Svetlov (Vincent Michel) in branch 'master': bpo-35065: Remove `StreamReaderProtocol._untrack_reader` (#10212) https://github.com/python/cpython/commit/fd512d76456b65c529a5bc58d8cfe7

[issue35065] Reading received data from a closed TCP stream using `StreamReader.read` might hang forever

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

[issue34885] asyncio documention has lost its paragraph about cancellation

2018-11-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think the issue can be closed -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2018-11-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +9699 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue30064> ___ ___ Py

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2018-11-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 74387926072abf338a4c1cec1bf0501fc65bbee5 by Andrew Svetlov in branch 'master': bpo-30064: Refactor sock_* asyncio API (#10419) https://github.com/python/cpython/commit/74387926072abf338a4c1cec1bf050

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

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

[issue35269] A possible segfault involving a newly-created coroutine

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

[issue35269] A possible segfault involving a newly-created coroutine

2018-11-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks, Zackery! -- ___ Python tracker <https://bugs.python.org/issue35269> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18699] What is Future.running() for in PEP 3148 / concurrent.futures.Future?

2013-08-12 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue18699> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18750] ''' % [1] doens't fail

2013-08-15 Thread Andrew Svetlov
New submission from Andrew Svetlov: I think this is a bug. Can be reproduced on all Pythons (from 2.6 to 3.4a). Maybe should be fixed for 3.4 only as backward incompatible change. -- messages: 195263 nosy: asvetlov priority: normal severity: normal status: open title: '''

[issue18750] '' % [1] doens't fail

2013-08-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: For dict it is correct from my perspective. "" % {'a': 'b'} tries to substitute format specs like "%(a)s" and does nothing if spec is not present. But list case like "" % [1] confuse me. --

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2013-08-19 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- dependencies: +add function to os module for getting path to default shell ___ Python tracker <http://bugs.python.org/issue16

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2013-08-19 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue16255> ___ ___ Python-bugs-list m

[issue17213] ctypes loads wrong version of C runtime, leading to error message box from system

2013-08-23 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17213> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18823] Idle: use pipes instead of sockets to talk with user subprocess

2013-08-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue18823> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17908] Unittest runner needs an option to call gc.collect() after each test

2013-08-27 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17908> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11798] Test cases not garbage collected after run

2013-08-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looks good but review comments worth to be applied or rejected with reasonable note. -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue11

[issue11798] Test cases not garbage collected after run

2013-08-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Matt, I've added new patch. Will commit it after tomorrow if nobody object. -- Added file: http://bugs.python.org/file31483/issue11798.diff ___ Python tracker <http://bugs.python.org/is

[issue11798] Test cases not garbage collected after run

2013-08-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Matt, would you sign licence agreement http://www.python.org/psf/contrib/ ? The Python Software Fondation is asking all contributors to sign it. Thanks. -- ___ Python tracker <http://bugs.python.org/issue11

[issue11798] Test cases not garbage collected after run

2013-08-28 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue11798> ___ ___ Python-bugs-list

[issue11798] Test cases not garbage collected after run

2013-08-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry. Tests are fixed now. -- ___ Python tracker <http://bugs.python.org/issue11798> ___ ___ Python-bugs-list mailing list Unsub

[issue18550] internal_setblocking() doesn't check return value of fcntl()

2013-08-29 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue18550> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18882] Add threading.main_thread() function

2013-08-30 Thread Andrew Svetlov
New submission from Andrew Svetlov: We need public API for getting main thread object. See also http://comments.gmane.org/gmane.comp.python.devel/141370 -- messages: 196521 nosy: asvetlov, haypo, pitrou priority: normal severity: normal status: open title: Add threading.main_thread

[issue18882] Add threading.main_thread() function

2013-08-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Patch with code and tests is attached. Test fails when program forks from thread other than the main one. -- keywords: +patch Added file: http://bugs.python.org/file31519/issue18882.diff ___ Python tracker <h

[issue18882] Add threading.main_thread() function

2013-08-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: signal module reinitializes main_thread variable in PyOS_AfterFork, threading does nothing with forking. -- ___ Python tracker <http://bugs.python.org/issue18

[issue18882] Add threading.main_thread() function

2013-08-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: http://bugs.python.org/issue16500 is required to make work after fork from thread other than the main one. -- dependencies: +Add an 'atfork' module ___ Python tracker <http://bugs.python.o

<    13   14   15   16   17   18   19   20   21   22   >