[issue3405] Add support for the new data option supported by event generate (Tk 8.5)

2012-04-03 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue3405> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1584] Mac OS X: building with X11 Tkinter

2012-04-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is there actual? -- nosy: +asvetlov versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue1

[issue3033] tkFont added displayof where necessary

2012-04-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: I've updated the patch. If nobody object I'll commit it soon. -- nosy: +asvetlov versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file25110/issue3033.diff

[issue1584] Mac OS X: building with X11 Tkinter

2012-04-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thank you, Ned. -- ___ Python tracker <http://bugs.python.org/issue1584> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14470] Remove using of w9xopen in subprocess module

2012-04-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: Brian, please don't forget to cleanup subprocess code when you will be ready to. -- assignee: -> brian.curtin ___ Python tracker <http://bugs.python.org

[issue12723] Provide an API in tkSimpleDialog for defining custom validation functions

2012-04-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think we have to reject this issue. Adding generic validation make sense, but adding just permanent check for non-empty string is wrong. -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue12

[issue6181] Tkinter.Listbox several minor issues

2012-04-04 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue6181> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11734] Add half-float (16-bit) support to struct module

2012-04-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Tests passed, looks good. Code is also looks ok. Documentation is out-of-date. Patch cannot be applied to struct.rst from default branch. Compilation generates warning messages on gcc 4.6.1: /home/andrew/projects/py3k/Modules/_struct.c: In function

[issue11734] Add half-float (16-bit) support to struct module

2012-04-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: I used half-float in GPU programming and from my perspective it was just native. There are no half-float in C, right. But there are half-floats used in NVIDIA libraries for example and I like to think used format is native and platform-depended in general

[issue11734] Add half-float (16-bit) support to struct module

2012-04-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Antoine, agree with you after explanation. -- ___ Python tracker <http://bugs.python.org/issue11734> ___ ___ Python-bugs-list m

[issue1053687] PyOS_InputHook not called in IDLE subprocess

2012-04-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Closing as wan't fix. -- assignee: kbk -> asvetlov resolution: -> wont fix stage: test needed -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.pyt

[issue14496] Wrong name in idlelib/tabbedpages.py

2012-04-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: The patch looks good. Can you describe manual steps to reproduce the issue? -- assignee: -> asvetlov nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issu

[issue3033] tkFont added displayof where necessary

2012-04-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Closing as fixed -- assignee: -> asvetlov resolution: -> fixed stage: patch review -> committed/rejected ___ Python tracker <http://bugs.python.o

[issue3033] tkFont added displayof where necessary

2012-04-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks to Guilherme Polo. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue3033> ___ ___ Python-

[issue6225] Fixing several minor bugs in Tkinter.Canvas and one in Misc._configure

2012-04-05 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue6225> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6167] Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args

2012-04-05 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue6167> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-05 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue9141> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14496] Wrong name in idlelib/tabbedpages.py

2012-04-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue1542677] IDLE shell gives different len() of unicode strings compared to Python shell

2012-04-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Closing as won't fix. -- assignee: kbk -> asvetlov nosy: +asvetlov resolution: -> wont fix stage: test needed -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.pyt

[issue1047540] Turtle.py hangs Idle

2012-04-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Closing as not reproducible for 3.3. The bug is too minor to worry about 2.7 and 3.2 even if it present (all works for me by the way). Please reopen if you will get described issue. -- assignee: -> asvetlov nosy: +asvetlov resolution: ->

[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2012-04-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: What's about test which pass bytes to Popen? Should it be deprecated and should Popen accept only unicode strings only — I mean `str` type? As I know the trend of py3k to get rid of bytes in filesystem

[issue8515] idle "Run Module" (F5) does not set __file__ variable

2012-04-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks to all. Bruce Frederiksen, you are mentioned in Misc/ACK Tal Einat, if you want to make a patch which will use `execfile` instead of current approach — you are welcome. Please file new issue. -- assignee: -> asvetlov resolution: ->

[issue7057] tkinter doc: more 3.x updates

2012-04-05 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- assignee: gpolo -> asvetlov ___ Python tracker <http://bugs.python.org/issue7057> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2012-04-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: If fylesystem doesn't support unicode (only Windows directly does as I know) str filename should to be converted by `sys.getfilesystemencoding()`. `os.exec` family already does it as well as other fs functions — but they are supports bytes also.

[issue14304] Implement utf-8-bmp codec

2012-04-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: Tkinter (as Tcl itself) has no support of non-BMP characters in any form. It looks like support of UTF-16 without surrogates. I like to implement codec for that which will process different error modes (strict, replace, ignore etc) as well as others codecs

[issue12723] Provide an API in tkSimpleDialog for defining custom validation functions

2012-04-16 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- resolution: -> rejected status: open -> closed ___ Python tracker <http://bugs.python.org/issue12723> ___ ___ Python-bugs-

[issue14576] IDLE cannot connect to subprocess - New solution

2012-04-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: I guess IdleConf should to have flag like 'writable'. If user environment points to invalid location (or there are no write access) this flag should be set. It flag can affect IDLE configuration dialog: user should be notified what him changes w

[issue14304] Implement utf-8-bmp codec

2012-04-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: The way is named 'codec'. -- ___ Python tracker <http://bugs.python.org/issue14304> ___ ___ Python-bugs-list mailing

[issue32972] unittest.TestCase coroutine support

2019-05-17 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +13301 ___ Python tracker <https://bugs.python.org/issue32972> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32972] unittest.TestCase coroutine support

2019-05-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: https://github.com/python/cpython/pull/13386 is a new attempt to solve the feature request -- ___ Python tracker <https://bugs.python.org/issue32

[issue29883] asyncio: Windows Proactor Event Loop UDP Support

2019-05-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +13349 ___ Python tracker <https://bugs.python.org/issue29883> ___ ___ Python-bugs-list mailin

[issue35721] _UnixSubprocessTransport leaks socket pair if Popen fails

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

[issue36932] asyncio-task.rst could use proper deprecated-removed directive

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

[issue36981] asyncio transport.write() memory out

2019-05-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: The correct approach is using Protocol.pause_writing() / Protocol.resume_writing() callbacks. No trivial, though. See `StreamWriter.drain()` for example of implementation. -- ___ Python tracker <ht

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm sorry but I cannot tell why you are using `pause_writing` incorrectly without looking on the code. -- ___ Python tracker <https://bugs.python.org/is

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: No. It doesn't work this way. pause_writing is a protocol callback called from transport when the internal buffer is full. In reaction to this callback the producer should stop calling transport.write() and resume writing after getting `resume_wr

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: No. pause_writing/resume_writing are protocol callbacks called by transport. User code should respond to these callbacks by stopping sending data to transport (transport.write()). The logic is a little complicated but it is ok for very low-level asyncio API

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please re-read my previous comment. If you use asyncio incorrectly -- yes, you can run out of memory. The proper usage of pause_readind()/resume_reading() resolves the issue. -- ___ Python tracker <ht

[issue36996] unittest.mock.patch decorator doesn't work with async functions

2019-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thank you very much for raising the question. @patch(...) creates _patch class instance. For decoration _patch.__call__ is used. def __call__(self, func): if isinstance(func, type): return self.decorate_class(func) return

[issue34616] implement "Async exec"

2019-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Great! -- ___ Python tracker <https://bugs.python.org/issue34616> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37006] Add top level await statement support for doctest

2019-05-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please keep in mind: not only asyncio can be used to execute async/await code. For example, trio has completely different implementation but utilizes async functions as well. Probably we need to customize it, maybe by inheriting AsyncioDocTestRunner from

[issue37015] Fix asyncio mock wranings

2019-05-22 Thread Andrew Svetlov
New submission from Andrew Svetlov : After merging https://github.com/python/cpython/pull/9296 asyncio test suite prints a lot of warnings like Exception ignored in: Traceback (most recent call last): File "/home/andrew/projects/cpython/Lib/warnings.py", li

[issue37015] Fix asyncio mock warnings

2019-05-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- title: Fix asyncio mock wranings -> Fix asyncio mock warnings ___ Python tracker <https://bugs.python.org/issue37015> ___ ___ Py

[issue37006] Add top level await statement support for doctest

2019-05-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with Nathaniel. There is no need to rush now. -- ___ Python tracker <https://bugs.python.org/issue37006> ___ ___ Pytho

[issue37008] make unittest.mock.mock_open honor next()

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

[issue37008] make unittest.mock.mock_open honor next()

2019-05-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.7 ___ Python tracker <https://bugs.python.org/issue37008> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37015] Fix asyncio mock warnings

2019-05-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: xtreak thanks for investigation. I have no time to work on it now, sorry. Maybe the next week. Anyway, the problem can be fixed even in python beta stage if we don't do it earlier. -- ___ Python tracker &

[issue36045] builtins.help function is not much help with async functions

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

[issue36921] Deprecate yield from and @coroutine in asyncio

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

[issue36802] Revert back StreamWriter awrite/aclose but provide await writer.write() and await writer.close()

2019-05-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed status: open -> closed ___ Python tracker <https://bugs.python.org/issue36802> ___ ___ Python-bugs-list

[issue37035] Don't log OSError exceptions in asyncio transports

2019-05-24 Thread Andrew Svetlov
New submission from Andrew Svetlov : Currently asyncio uses `loop.call_exception_handler()` for logging *fatal* exceptions from underlying sockets before calling protocol.connection_lost(). There is a list of exceptions that are not logged: BrokenPipeError, ConnectionResetError

[issue37035] Don't log OSError exceptions in asyncio transports

2019-05-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Update. Currently, exceptions from the ignore list are still logged in debug mode. The proposal doesn't change this behavior. -- ___ Python tracker <https://bugs.python.org/is

[issue37035] Don't log OSError exceptions in asyncio transports

2019-05-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +13460 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue37035> ___ ___ Py

[issue37042] wait_for(coro, timeout=0) memleak

2019-05-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the report. If the problem is in asyncio.wait_for() function the real network code can be stripped for the leakage example and replaced with `await asyncio.sleep()`. Would you try to boil down the snippet by converting it into a code that I can

[issue37042] wait_for(coro, timeout=0) memleak

2019-05-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Nice, thanks! -- ___ Python tracker <https://bugs.python.org/issue37042> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34613] asyncio.StreamReader initialization documentation incorrectly declare limit as None

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

[issue36686] Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not clear how to inherit stdin, stdout or stderr in the subprocess

2019-05-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pull Request is welcome! -- ___ Python tracker <https://bugs.python.org/issue36686> ___ ___ Python-bugs-list mailing list Unsub

[issue34148] Fatal read error on socket transport

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed by issue37035 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Don't log OSError exceptions in asyncio transports ___ Pytho

[issue37027] Return a safe proxy over a socket from get_extra_info('socket')

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

[issue37035] Don't log OSError exceptions in asyncio transports

2019-05-27 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +13501 pull_request: https://github.com/python/cpython/pull/13594 ___ Python tracker <https://bugs.python.org/issue37

[issue37035] Don't log OSError exceptions in asyncio transports

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset a79b6c578fcd2ea8be29440fdd8a998e5527200f by Andrew Svetlov in branch '3.7': [3.7] bpo-37035: Don't log OSError (GH-13548) (#13594) https://github.com/python/cpython/commit/a79b6c578fcd2ea8be29440fd

[issue37035] Don't log OSError exceptions in asyncio transports

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

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

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed by #36889 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed superseder: -> Merge StreamWriter and StreamReader into just asyncio.Stream ___ Python tra

[issue36840] Add stream.abort() async method

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed by #36889 -- resolution: -> fixed stage: -> resolved status: open -> closed superseder: -> Merge StreamWriter and StreamReader into just asyncio.Stream ___ Python tracker <https://

[issue26270] Support for read()/write()/select() on asyncio

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: The suggestion is using streams as a high-level API. I see no real proposals in this issue. select()/read()/write() is not suitable interface, sorry. Closing, feel free to create a new issue if you come up with a concrete proposal

[issue34655] Support sendfile in asyncio streams API

2019-05-27 Thread Andrew Svetlov
New submission from Andrew Svetlov : Done by #36889 -- resolution: -> fixed stage: -> resolved status: open -> closed superseder: -> Merge StreamWriter and StreamReader into just asyncio.Stream ___ Python tracker <https://

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

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: FlowControlMixing is a private API class. The class is not intended for the usage outside of asyncio. If you found it useful for you please feel free to copy-paste the class from asyncio sources into your project. The reason is: we want to keep freedom for

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

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: #36889 deprecates using FlowXontrolMixin outside of asyncio -- ___ Python tracker <https://bugs.python.org/issue34993> ___ ___

[issue35040] [functools] provide an async-compatible version of functools.lru_cache

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Brett please elaborate. Do you want to incorporate async_lru library into CPython Core? -- ___ Python tracker <https://bugs.python.org/issue35

[issue26270] Support for read()/write()/select() on asyncio

2019-05-27 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue35279] asyncio uses too many threads by default

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: asyncio uses bare concurrent.futures.ThreadPoolExecutor. Tha question is: should asyncio reduce the number of threads in the pool or concurrent.futures should change the default value? -- ___ Python tracker

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

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

[issue35246] asyncio.create_subprocess_exec doesn't accept pathlib.Path like subprocess does

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: All we need is `program = os.fspath(program)` in base_events.py subprocess_exec() method. Is anybody volunteered to make a patch (with test and docs update, sure)? -- ___ Python tracker <https://bugs.python.

[issue35246] asyncio.create_subprocess_exec doesn't accept pathlib.Path like subprocess does

2019-05-27 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue35246> ___ ___ Python-bugs-list mailin

[issue35279] asyncio uses too many threads by default

2019-05-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm ok with changing the default threads number limit. Not sure about numbers. If you want to limit to 16-20 that may be ok but `cpu_count + 4` doesn't work in this case. On cloud servers, I see 128 or even more cores very often. 160+4 is not tha

[issue36996] unittest.mock.patch decorator doesn't work with async functions

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

[issue36933] sys.set_coroutine_wrapper documented as to be removed in 3.8 (still there)

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

[issue35279] asyncio uses too many threads by default

2019-05-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: > how about min(32, cpu_count+4)? I think it produces reasonable good numbers for any CPU count. Do you have time for preparing a pull request? -- ___ Python tracker <https://bugs.python.org/issu

[issue29883] asyncio: Windows Proactor Event Loop UDP Support

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

[issue29883] asyncio: Windows Proactor Event Loop UDP Support

2019-05-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: You are welcome, Victor! Thank you very much, Adam! -- ___ Python tracker <https://bugs.python.org/issue29883> ___ ___ Pytho

[issue35246] asyncio.create_subprocess_exec doesn't accept pathlib.Path like subprocess does

2019-05-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Aha, I see. You are right. Let's drop checks for cmd/program/args types but left to subprocess do these checks. This approach avoiding complex checking/converting logic in asyncio itself and reduces code duplic

[issue36686] Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not clear how to inherit stdin, stdout or stderr in the subprocess

2019-05-28 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed versions: -Python 3.5, Python 3.6, Python 3.7, Python 3.9 ___ Python tracker <https://bugs.python.org/issu

[issue36709] Asyncio SSL keep-alive connections raise errors after loop close.

2019-05-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: >From my understanding, the correct code should close all transports and wait >for their connection_lost() callbacks before closing the loop. -- ___ Python tracker <https://bugs.python.org/i

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-05-28 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +13530 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13630 ___ Python tracker <https://bugs.python.org/issu

[issue36373] asyncio.gather: no docs for deprecated loop parameter

2019-05-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: *Passing* loop to gather should be deprecated. *Using* loop by *internal logic* is pretty fine, we do it in asyncio everywhere. Yuri, I think we should deprecate explicit loop everywhere in non-deprecated asyncio API by Python 3.8. We can do it even in

[issue35246] asyncio.create_subprocess_exec doesn't accept pathlib.Path like subprocess does

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

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

2019-05-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Let's postpone to 3.9 I recall at least reports for aioredis, aiomysql and aiokafka for these deprecation warnings. Sure, fix is trivial (and will be applied to next release of libs) but I pretty sure there are many other usages. -- ver

[issue32972] unittest.TestCase coroutine support

2019-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Done. Let's keep the issue open until the documentation will be committed -- ___ Python tracker <https://bugs.python.org/is

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for letting me know. Investigating. BrokenPipeError is not related, I had a plan to fix such messages during the beta phase. -- ___ Python tracker <https://bugs.python.org/issue36

[issue36373] asyncio.gather: no docs for deprecated loop parameter

2019-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: A champion is welcome :) -- ___ Python tracker <https://bugs.python.org/issue36373> ___ ___ Python-bugs-list mailing list Unsub

[issue36709] Asyncio SSL keep-alive connections raise errors after loop close.

2019-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: I would say that if requests a designed from scratch more idiomatic way could be with requests.Session() as session: session.get('https://example.com/') or session = requests.Session() session.get('https://example.com/') sessi

[issue33918] Hooking into pause/resume of iterators/coroutines

2019-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: decimal was changed from threading.local to contextvar usage. The module is "safe" not only for asyncio but for threading, trio etc. unittest.mock doesn't use explicit context all for patching. It changes global interpreter-wide objec

[issue33918] Hooking into pause/resume of iterators/coroutines

2019-05-29 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue33918> ___ ___

[issue36373] asyncio.gather: no docs for deprecated loop parameter

2019-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thank you. The change is pretty straightforward. There is no need to jumbo PR, you can split the work into PR-per-module if it is more comfortable to you. I'm ok with reviewing any approach. -- ___ P

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-05-29 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue36373> ___ ___ Python-bugs-list mailin

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-05-29 Thread Andrew Svetlov
Change by Andrew Svetlov : -- title: asyncio.gather: no docs for deprecated loop parameter -> Deprecate explicit loop parameter in all public asyncio APIs ___ Python tracker <https://bugs.python.org/issu

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-05-29 Thread Andrew Svetlov
Change by Andrew Svetlov : -- title: asyncio.gather: no docs for deprecated loop parameter -> Deprecate explicit loop parameter in all public asyncio APIs ___ Python tracker <https://bugs.python.org/issu

[issue36794] asyncio.Lock documentation in Py3.8 lacks parts presented in documentation in Py3.6

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

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Wow! Thanks for the report. Internally it is pretty close to freebsd problem. The test is unstable, not asyncio code itself. The test uses future objects to synchronize client and server socket processing but looks like there are race conditions still

[issue37015] Fix asyncio mock warnings

2019-05-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

<    6   7   8   9   10   11   12   13   14   15   >