[issue14446] Remove deprecated tkinter functions

2012-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: See issue #3035 for details. -- ___ Python tracker <http://bugs.python.org/issue14446> ___ ___ Python-bugs-list mailin

[issue5136] Deprecating (and removing) "globalcall", "merge" and "globaleval"

2012-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Attaching the patch to make depredations. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file25082/issue5136.diff ___ Python tracker <http://bugs.python.org/iss

[issue14446] Remove deprecated tkinter functions

2012-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Also see #5136 for deprecated C Functions from _tkinter.c That set have to go away in 3.4 as well as deprecations from tkinter/__init__.py -- ___ Python tracker <http://bugs.python.org/issue14

[issue5136] Deprecating (and removing) "globalcall", "merge" and "globaleval"

2012-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pushed deprecation warnings into default branch. #14446 updated to add those function to remove list for 3.4 release. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -&g

[issue5136] Deprecating (and removing) "globalcall", "merge" and "globaleval"

2012-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks to Guilherme Polo for idea and to Éric Araujo for review. -- ___ Python tracker <http://bugs.python.org/issue5

[issue11437] IDLE crash on startup with typo in config-keys.cfg

2012-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: I reproduced the bug. Roger Serwy, your patch looks working, but can you describe: 1. Why do you need `self.known_invalid` list? 2. Why do you always extend that list (`known_invalid` variable is just shared alias for `self.known_invalid` member, not list

[issue11437] IDLE crash on startup with typo in config-keys.cfg

2012-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ok -- ___ Python tracker <http://bugs.python.org/issue11437> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5680] Command-line arguments when running in IDLE

2012-03-31 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- assignee: -> asvetlov ___ Python tracker <http://bugs.python.org/issue5680> ___ ___ Python-bugs-list mailing list Unsubscri

[issue11437] IDLE crash on startup with typo in config-keys.cfg

2012-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: You right. That was my concern. -- ___ Python tracker <http://bugs.python.org/issue11437> ___ ___ Python-bugs-list mailin

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

2012-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: I like Eric's proposition, e.g. raising error if (list, shell=True) or (str, shell=False) If nobody object I can try to make initial patch for that. -- ___ Python tracker <http://bugs.python.org/i

[issue14440] Close background process if IDLE closes abnormally.

2012-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Terry, sorry. That's definitely posix-specific bug. I'll make a patch assuming Windows works well with killing IDLE. To be polite I'll describe used signal names shortly. SIGKILL, SIGTERM, SIGINT and SIGQUIT are used to stop process. — SIGK

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

2012-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Nick's library is awesome and I +1 to include it into stdlib if Nick is ready to do. But also I like to prevent obviously bad usage of popen. We cannot and don't want to remove popen shell=True param, so let's add raising exception for use

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

2012-04-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: After trying to make a patch I found what current test suite itself has calls like (str, shell=False), (bytes, shell=True) and (['shell command'], shell=True). We can: 1. Implement Eric's suggestion with fixing/removing broken tests. 2. Add

[issue14440] Close background process if IDLE closes abnormally.

2012-04-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: We can install signal handlers for everything what can stop process but I prefer to pass IDLE pid to subintepreter and periodically check for prime process existing. -- ___ Python tracker <http://bugs.python.

[issue14470] Remove use of w9xopen in subporcess module

2012-04-01 Thread Andrew Svetlov
New submission from Andrew Svetlov : As Python 3.3 declare: Windows 2000 and Windows platforms which set COMSPEC to command.com are no longer supported due to maintenance burden. We need to drop corresponding code from subprocess. -- keywords: easy messages: 157321 nosy: asvetlov

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

2012-04-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: BTW we need to drop win9x and win2000 support, see #14470 -- ___ Python tracker <http://bugs.python.org/issue7839> ___ ___ Pytho

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

2012-04-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm +1 for going though deprecation process for Popen args to make parameters combination clean and obvious. -- ___ Python tracker <http://bugs.python.org/i

[issue14470] Remove use of w9xopen in subporcess module

2012-04-01 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- components: +Library (Lib), Windows priority: normal -> critical ___ Python tracker <http://bugs.python.org/issue14470> ___ _

[issue14470] Remove using of w9xopen in subporcess module

2012-04-01 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- title: Remove use of w9xopen in subporcess module -> Remove using of w9xopen in subporcess module ___ Python tracker <http://bugs.python.org/issu

[issue802310] tkFont may reuse font names

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

[issue802310] tkFont may reuse font names

2012-04-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: I've pushed fix inspired by Guilherme's suggestion. Fix has been applied to 3.3 only because: 1. It changes font name generation schema 2. It's definitelly minor issue as exists starting from 2003. Thanks. -- resolution: -> fixed s

[issue6015] Tkinter Scrollbar in OS X 10.5

2012-04-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: Can anybody confirm this bug for OS X? -- nosy: +asvetlov, ned.deily type: performance -> behavior versions: +Python 3.3 -Python 2.6 ___ Python tracker <http://bugs.python.org/iss

[issue14480] os.kill on Windows should accept zero as signal

2012-04-03 Thread Andrew Svetlov
New submission from Andrew Svetlov : Starting from 3.2 Python supports os.kill for Windows. It process signal.CTRL_C_EVENT and signal.CTRL_BREAK_EVENT, and kills pid for all other signals. Posix allows to pass zero signal to check pid for existing. It will be nice to keep that behavior for

[issue14484] missing return in win32_kill?

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

[issue14440] Close background process if IDLE closes abnormally.

2012-04-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: I still prefer to check in subprocess for parent proc existing. -- ___ Python tracker <http://bugs.python.org/issue14

[issue14480] os.kill on Windows should accept zero as signal

2012-04-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: There are no `kill` function in Windows API. >From my perspective win32_kill was added to emulate posix sibling if possible. >If not — better to give another Windows native name to that function. Really don't see good solution. Maybe better wha

[issue12979] tkinter.font.Font object not usable as font option

2012-04-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: The test from ilikepython is incorrect, but after changing to: import tkinter import tkinter.font root = tkinter.Tk() w = tkinter.Frame(root) f = tkinter.font.Font(root, family='Arial', size=30) label = tkinter.Label(w, text="Hello"

[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.

[issue14102] argparse: add ability to create a man page

2012-04-14 Thread Andrew Regner
Changes by Andrew Regner : -- nosy: +adregner ___ Python tracker <http://bugs.python.org/issue14102> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[issue14432] Bug in generator if the generator in created in a C thread

2012-04-16 Thread Andrew Suffield
Andrew Suffield added the comment: I think I've tripped over a variation on this theme using pyqt and 2.7: When working in a QThread, the PyGILState_Ensure call when transitioning control from Qt to python will frequently allocate a new thread state - because every time control retur

[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

[issue14602] OSX Build Target

2012-04-16 Thread Andrew Thompson
New submission from Andrew Thompson : I could not get Python3 to build on my OSX 10.6.8 box as per the instructions on the website (or those in the README). It "configures" , but does not "make" : IOError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.4" but

[issue14602] OSX Build Target

2012-04-16 Thread Andrew Thompson
Changes by Andrew Thompson : -- assignee: -> ronaldoussoren components: +Macintosh nosy: +ronaldoussoren type: -> compile error ___ Python tracker <http://bugs.python.org/i

[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

<    8   9   10   11   12   13   14   15   16   17   >