[issue35380] Enable TCP_NODELAY for proactor event loop

2018-12-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 3bc0ebab17bf5a2c29d2214743c82034f82e6573 by Andrew Svetlov in branch 'master': bpo-35380: Enable TCP_NODELAY for proactor event loop (#10867) https://github.com/python/cpython/commit/3bc0ebab17bf5a2c29d2214743c820

[issue35357] unittest.mock.call can't represent calls to a method called 'parent'

2018-12-03 Thread Andrew Dunai
Change by Andrew Dunai : -- keywords: +patch pull_requests: +10110 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35357> ___ ___ Py

[issue35380] Enable TCP_NODELAY for proactor event loop

2018-12-03 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +10111 ___ Python tracker <https://bugs.python.org/issue35380> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35380] Enable TCP_NODELAY for proactor event loop

2018-12-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset fe91e9ba08a8854e2149398386702828fe3c0038 by Andrew Svetlov (Miss Islington (bot)) in branch '3.7': [3.7] bpo-35380: Enable TCP_NODELAY for proactor event loop (GH-10867) (GH-10872) https://github.com/python/cpyt

[issue35394] Add __slots__ = () to asyncio protocols

2018-12-03 Thread Andrew Svetlov
New submission from Andrew Svetlov : Protocols have no members. Adding empty slots doesn't harm any existing code but it allows to write proper protocol implementation with slot-based class. -- components: asyncio messages: 330986 nosy: asvetlov, yselivanov priority: normal sev

[issue35395] Typo in asyncio eventloop documentation

2018-12-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: Would you create a PR with a fix? -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue35395> ___ ___ Python-bug

[issue35395] Typo in asyncio eventloop documentation

2018-12-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, you did already -- ___ Python tracker <https://bugs.python.org/issue35395> ___ ___ Python-bugs-list mailing list Unsub

[issue35395] Typo in asyncio eventloop documentation

2018-12-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks Naglis -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.or

[issue35394] Add __slots__ = () to asyncio protocols

2018-12-04 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +10127 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35394> ___ ___ Py

[issue35380] Enable TCP_NODELAY for proactor event loop

2018-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset bfb881849f588cd2046776fb431c3045781c8214 by Andrew Svetlov in branch '3.6': [3.6] bpo-35380: Enable TCP_NODELAY for proactor event loop (GH-10867). (GH-10874) https://github.com/python/cpython/commit/bfb881849f588cd2046776fb431c30

[issue35380] Enable TCP_NODELAY for proactor event loop

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

[issue31715] Add mimetype for extension .mjs

2018-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Christian Heimes is right: it is a new feature, not a bug fix. I regret too often when I cannot backport a brilliant patch to old Python version but this is the price of API stability. You can try to convince release managers (Benjamin and Ned, I've

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2018-12-09 Thread Andrew Tennikoff
Change by Andrew Tennikoff : -- nosy: +atenni ___ Python tracker <https://bugs.python.org/issue23078> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35394] Add __slots__ = () to asyncio protocols

2018-12-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 5344501ad166c1380be452644a863a4679c4291b by Andrew Svetlov in branch 'master': bpo-35394: Add empty slots to abstract asyncio protocols (#10889) https://github.com/python/cpython/commit/5344501ad166c1380be452644a863a

[issue35465] Document add_signal_handler

2018-12-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: The proposal sounds great! Would you prepare a pull request for docs update? -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue35

[issue35465] [asyncio] Document loop.add_signal_handler

2018-12-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +asyncio nosy: +yselivanov ___ Python tracker <https://bugs.python.org/issue35465> ___ ___ Python-bugs-list mailin

[issue31446] _winapi.CreateProcess (used by subprocess) is not thread-safe

2018-12-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.8 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue31446> ___ ___ Python-bugs-list mailin

[issue35481] Run Tasks cannot Concurrent

2018-12-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: A task should have `await` inside to give to loop a chance to switch to another task (or get canceled). It is not an asyncio bug but a part of specified behavior. Your code could be modified as async def readdev(dev): while True: buf=os.read

[issue35268] Windows 10 asyncio reading continously stdin and stdout Stockfish

2018-12-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, the bug tracker is for working on Python bugs, not on bugs of your programs written with Python. The behavior of subprocesses running is tested intensively, scenarios like you described works well. I don't know sockfish protocol but highly l

[issue35511] Some methods of profile.Profile are not supported but the docs doesn't mention it.

2018-12-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset b912f9342e7a37d170ba659c13c959115c11545a by Andrew Svetlov (Beomsoo Kim) in branch 'master': bpo-35511: Trivial docs updates for profile and resource library modules. (GH-11124) https://github.com/python/cpyt

[issue35511] Some methods of profile.Profile are not supported but the docs doesn't mention it.

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

[issue35415] fileno argument to socket.socket is not validated

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

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Hmm, I forgot kqueue usage details: it operated not only with int flags but more complex structures. Giampaolo, thanks for pointing on! Please let me sleep on it. -- ___ Python tracker <https://bugs.python.

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

2018-12-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset b5c8cfa1da17c6f3acac80a0afca7f7104fb9589 by Andrew Svetlov (Vladimir Matveev) in branch 'master': bpo-23057: add loop self socket as wakeup fd for signals (#11135) https://github.com/python/cpyt

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

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

[issue35394] Add __slots__ = () to asyncio protocols

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

[issue35579] Typo in in asyncio-task documentation

2018-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: You are correct. Would you make a patch? -- ___ Python tracker <https://bugs.python.org/issue35579> ___ ___ Python-bugs-list m

[issue35580] Windows IocpProactor: CreateIoCompletionPort 4th arg 0xffffffff -- why is this value the default?

2018-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: The value type is DWORD. 0x is a maximum allowed value for DWORD. 0 implies something like 8 for Intel i7. I don't remember the reason (the value was present is very first proactor implementation and never changed after it). Maybe giving Wind

[issue35579] Typo in in asyncio-task documentation

2018-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sure! -- ___ Python tracker <https://bugs.python.org/issue35579> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35585] Speedup Enum lookup

2018-12-25 Thread Andrew Svetlov
New submission from Andrew Svetlov : Construction enums by-value (e.g. http.HTTPStatus(200)) performs two dict lookups: if value in cls._value2member_map_: return cls._value2member_map_[value] Changing the code to just return cls._value2member_map_[value] with catching

[issue35585] Speedup Enum lookup

2018-12-25 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch, patch pull_requests: +10568, 10569 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35585] Speedup Enum lookup

2018-12-25 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +10568 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35585> ___ ___ Py

[issue35589] BaseSelectorEventLoop.sock_sendall() performance regression: extra copy of data

2018-12-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the report! -- assignee: -> asvetlov ___ Python tracker <https://bugs.python.org/issue35589> ___ ___ Python-

[issue35579] Typo in in asyncio-task documentation

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

[issue35585] Speedup Enum lookup

2018-12-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 705b5998035739b1794a862123d3dc6e339a14d0 by Andrew Svetlov (Miss Islington (bot)) in branch '3.7': Speed-up building enums by value, e.g. http.HTTPStatus(200) (GH-11318) (GH-11324) https://github.com/python/cpyt

[issue35585] Speedup Enum lookup

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

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2018-12-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: What Python version do you use? -- ___ Python tracker <https://bugs.python.org/issue33350> ___ ___ Python-bugs-list mailin

[issue35620] asyncio test failure on appveyor

2018-12-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Do you mean an environment modification? 1 test altered the execution environment: test_asyncio -- ___ Python tracker <https://bugs.python.org/issue35

[issue35589] BaseSelectorEventLoop.sock_sendall() performance regression: extra copy of data

2019-01-02 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +10823 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35589> ___ ___ Py

[issue35589] BaseSelectorEventLoop.sock_sendall() performance regression: extra copy of data

2019-01-02 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch, patch pull_requests: +10823, 10824 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35589] BaseSelectorEventLoop.sock_sendall() performance regression: extra copy of data

2019-01-02 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch, patch, patch pull_requests: +10823, 10824, 10825 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

2019-01-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 67ba547cf001d6b975cf6900aaf2bd5508dc6a87 by Andrew Svetlov (Vladimir Matveev) in branch 'master': bpo-23057: Use 'raise' to emulate ctrl-c in proactor tests (#11274) https://github.com/p

[issue29515] socket module missing IPPROTO_IPV6, IPPROTO_IPV4 on Windows

2019-01-06 Thread Andrew Brezovsky
Andrew Brezovsky added the comment: Can confirm this is still a problem in latest versions of 3.5, 3.6, and 3.7 Any progress made on this? -- nosy: +abrezovsky ___ Python tracker <https://bugs.python.org/issue29

[issue35635] asyncio.create_subprocess_exec() only works in main thread

2019-01-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: The limitation is a consequence of how Linux works. Unix has no cross-platform API for non-blocking waiting for child process finish except handling SIGCHILD signal. On the other hand signal handlers in Python should work in the main thread. Your trick with

[issue35568] Expose the C raise() function in the signal module, for use on Windows

2019-01-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +Library (Lib) resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue35580] Windows IocpProactor: CreateIoCompletionPort 4th arg 0xffffffff -- why is this value the default?

2019-01-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: >From my understanding the question is: replace 0x with 0 or 1? I don't know much about IOCP, 0 sounds safer for me. -- ___ Python tracker <https://bugs.python.org

[issue34148] Fatal error on SSL transport

2019-01-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +11251 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34148> ___ ___ Py

[issue34148] Fatal error on SSL transport

2019-01-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch, patch, patch pull_requests: +11251, 11252, 11253 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue34148] Fatal error on SSL transport

2019-01-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch, patch pull_requests: +11251, 11252 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35749] Ignore exception if event loop wakeup pipe is full

2019-01-16 Thread Andrew Svetlov
New submission from Andrew Svetlov : Asyncio uses a pipe to wakeup event loop in cases of 1. Signal handlers (set_wakeup_fd) 2. Calling asyncio code from another thread In both cases, it sends b'\0' to the pipe to wake up a loop. If the pipe is full OSError is raised. asyncio

[issue35749] Ignore exception if event loop wakeup pipe is full

2019-01-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +asyncio nosy: +yselivanov type: -> enhancement versions: +Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issu

[issue35749] Ignore exception if event loop wakeup pipe is full

2019-01-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +11254 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35749> ___ ___ Py

[issue35749] Ignore exception if event loop wakeup pipe is full

2019-01-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch, patch pull_requests: +11254, 11255 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35749] Ignore exception if event loop wakeup pipe is full

2019-01-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch, patch, patch pull_requests: +11254, 11255, 11256 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35749] Rewrite asyncio signal handler

2019-01-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: Victor, thanks for the message. I forgot mentioned changes. You are right, the issue is "theoretical", I didn't see problems with current implementation. The self-pipe buffer is pretty big, a chance to reach its limit is relatively low. But a

[issue35749] Rewrite asyncio signal handler

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

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2019-01-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think yes. People will be notified about depreciation earlier, even after 3.8 release not everybody switches to a new version fast. For example, I still use 3.6 for my job now (but we are planning to switch to 3.7 in a month or two). Adding

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2019-01-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: Not sure. IMHO it is not a *notable* change worth to be mentioned in https://docs.python.org/3/whatsnew/3.7.html#notable-changes-in-python-3-7-2 -- ___ Python tracker <https://bugs.python.org/issue35

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

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

[issue35812] Don't log an exception from the main coroutine in asyncio.run()

2019-01-23 Thread Andrew Svetlov
New submission from Andrew Svetlov : We use `asyncio.run()` (well, a backported to python3.6 private copy) in our application. The problem is: when `asyncio.run(main_coro(args))` raises an exception it is both raised to a caller and passed to `loop.call_exception_handler()` by

[issue35913] asyncore: allow handling of half closed connections

2019-02-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: My personal opinion is: we should accept bug fixes for asyncore but stop adding new features to the module. asyncio supersedes asyncore in all aspects. -- nosy: +asvetlov ___ Python tracker <ht

[issue35913] asyncore: allow handling of half closed connections

2019-02-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: Technically the change seems correct, we have the same logic for asyncio half-closed streams. But I want to raise the flag again: why we are adding new functionality to the *deprecated* module? It violates our on deprecation policy, isn'

[issue35913] asyncore: allow handling of half closed connections

2019-02-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: The change adds a new public method. The method should be added to documentation also. Documentation requires `.. versionadded:: 3.8` tag. It doesn't look like *just a bugfix* but a feature. -- ___ Python tr

[issue32363] Deprecate task.set_result() and task.set_exception()

2019-02-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: I agree with Yuri. `Task.set_exception()` (let's assume it works) is very dangerous: if cancellation exception doesn't bubble up from coroutine code there is a very high chance to get broken invariants and not-released resources. The same si

[issue35812] Don't log an exception from the main coroutine in asyncio.run()

2019-02-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35812> ___ ___ Python-bugs-list

[issue35812] Don't log an exception from the main coroutine in asyncio.run()

2019-02-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Nevermind. Actually, I used a backport `asyncio.run()` to Python 3.6. I saw the problem because of the difference between `asyncio.all_task()` and `asyncio.Task.all_task()`. The former return only active tasks but the later returns done tasks also

[issue29649] struct.pack_into check boundary error message didn't respect offset

2017-03-03 Thread Andrew Nester
Andrew Nester added the comment: Thanks! Just added PR fixing this. -- nosy: +andrewnester ___ Python tracker <http://bugs.python.org/issue29649> ___ ___ Pytho

[issue29649] struct.pack_into check boundary error message didn't respect offset

2017-03-03 Thread Andrew Nester
Changes by Andrew Nester : -- pull_requests: +354 ___ Python tracker <http://bugs.python.org/issue29649> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29649] struct.pack_into check boundary error message didn't respect offset

2017-03-03 Thread Andrew Nester
Andrew Nester added the comment: yeah, I also thought about this too. Something like 'pack_into requires a buffer of at least 6 bytes (size is 1, offset is 5)' -- ___ Python tracker <http://bugs.python.o

[issue29649] struct.pack_into check boundary error message didn't respect offset

2017-03-03 Thread Andrew Nester
Andrew Nester added the comment: thanks Serhiy! just implemented your variant in my PR. -- ___ Python tracker <http://bugs.python.org/issue29649> ___ ___ Pytho

[issue29657] os.symlink: FileExistsError shows wrong message

2017-03-03 Thread Andrew Nester
Andrew Nester added the comment: I've been investigating this issue and did not come up with some easy solution. So the problem is: os_symlink uses `path_error2` to throw exception. the order of file arguments now is src then dest. For provided example src is `a` and dest is `sym_link`.

[issue29649] struct.pack_into check boundary error message ignores offset

2017-03-05 Thread Andrew Nester
Andrew Nester added the comment: Thanks Serhiy! Just implemented new error messages in my PR for case you mentioned. -- ___ Python tracker <http://bugs.python.org/issue29

[issue29863] Add a COMPACT constant to the json module

2017-03-20 Thread Andrew Nester
Changes by Andrew Nester : -- pull_requests: +657 ___ Python tracker <http://bugs.python.org/issue29863> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29649] struct.pack_into check boundary error message ignores offset

2017-03-24 Thread Andrew Nester
Andrew Nester added the comment: any updates on this issue? looks like PR is ready to go -- ___ Python tracker <http://bugs.python.org/issue29649> ___ ___ Pytho

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-03-24 Thread Andrew Nester
Andrew Nester added the comment: any updates? -- ___ Python tracker <http://bugs.python.org/issue29573> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-03-24 Thread Andrew Nester
Andrew Nester added the comment: any updates? -- ___ Python tracker <http://bugs.python.org/issue29553> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-04-02 Thread Andrew Nester
Andrew Nester added the comment: >From my perspective current behaviour is a bit frustrate that's why it would >be nice to have this issue fixed, but I would say it's critic one. At the same time it doesn't introduce any BC breaking

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-05-12 Thread Andrew Nester
Andrew Nester added the comment: so any feedback on this? -- ___ Python tracker <http://bugs.python.org/issue29553> ___ ___ Python-bugs-list mailing list Unsub

[issue29863] Add a COMPACT constant to the json module

2017-05-12 Thread Andrew Nester
Andrew Nester added the comment: any conclusion on this? looks like it's a bit stuck -- nosy: +andrewnester ___ Python tracker <http://bugs.python.org/is

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-05-12 Thread Andrew Nester
Andrew Nester added the comment: any conclusion on this? looks like it's a bit stuck -- ___ Python tracker <http://bugs.python.org/issue29573> ___ ___ Pytho

[issue30392] default webbrowser macOS Sierra 10.12.5

2017-05-17 Thread Andrew Jaffe
Changes by Andrew Jaffe : -- components: Library (Lib), macOS nosy: Andrew.Jaffe, ned.deily, ronaldoussoren priority: normal severity: normal status: open title: default webbrowser macOS Sierra 10.12.5 type: behavior versions: Python 2.7, Python 3.6

[issue30392] default webbrowser not used on macOS Sierra 10.12.5

2017-05-17 Thread Andrew Jaffe
Changes by Andrew Jaffe : -- title: default webbrowser macOS Sierra 10.12.5 -> default webbrowser not used on macOS Sierra 10.12.5 ___ Python tracker <http://bugs.python.org/issu

[issue30392] default webbrowser not used on macOS Sierra 10.12.5

2017-05-17 Thread Andrew Jaffe
New submission from Andrew Jaffe: On the newly-released macOS Sierra 10.12.5, the default web browser which is meant to returned by webbrowser.get() gives an error. Specifically: >>> import webbrowser >>> br = webbrowser.get() >>> br.open("http://p

[issue30392] default webbrowser not used on macOS Sierra 10.12.5

2017-05-17 Thread Andrew Jaffe
Andrew Jaffe added the comment: A few more details: - I believe this worked correctly under previous macOS versions (but I don't currently have access to any such machines). - This behaviour is identical under 3.6.1 and 2.7.13 (untested elsewhere) - Behaviour first noticed under Ju

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-17 Thread Andrew Jaffe
Changes by Andrew Jaffe : -- title: default webbrowser not used on macOS Sierra 10.12.5 -> default webbrowser fails on macOS Sierra 10.12.5 ___ Python tracker <http://bugs.python.org/issu

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-18 Thread Andrew Jaffe
Andrew Jaffe added the comment: The same behaviour also happens under Apple's system Python 2.7.10. Perhaps this implies a macOS bug or deliberate behaviour change? (I couldn't find anything obviously appropriate in the list of security fixes f

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-19 Thread Andrew Jaffe
Andrew Jaffe added the comment: This seems to be a bug in the `osascript` application in the latest macOS 10.12.5: $ osascript < open location "http://python.org"; > EOF 0:33: execution error: "http://python.org"; doesn’t understand the “open

[issue30416] constant folding opens compiler to quadratic time hashing

2017-05-20 Thread Andrew Dalke
New submission from Andrew Dalke: Others have reported issues like #21074 where the peephole compiler generates and discards large strings, and #30293 where it generates multi-MB integers and stores them in the .pyc. This is a different issue. The code: def tuple20(): return 1

[issue21074] Too aggressive constant folding

2017-05-21 Thread Andrew Dalke
Andrew Dalke added the comment: I know this issue was closed many years ago, and I don't propose re-opening it. I write this comment because some of the earlier comments here make it sound like only a foolish or perverse programmer might be affected by this 'too aggressive consta

[issue30416] constant folding opens compiler to quadratic time hashing

2017-05-21 Thread Andrew Dalke
Andrew Dalke added the comment: A complex solution is to stop constant folding when there are more than a few levels of tuples. I suspect there aren't that many cases where there are more than 5 levels of tuples and where constant creation can't simply be assigned and used a

[issue21074] Too aggressive constant folding

2017-05-22 Thread Andrew Dalke
Andrew Dalke added the comment: I do not think quoting the Zen of Python helps anything. As I wrote, "it gives different answers depending on where one draws the line." This includes "practicality beats purity". >From my viewpoint, the peephole optimizer isn't

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-23 Thread Andrew Jaffe
Andrew Jaffe added the comment: Yes, it's a weird bug. see http://www.andrewjaffe.net/blog/2017/05/python-bug-hunt.html for more of the story so far. I have already filed a radar, and I hope this will get fixed at Apple, but it's a bug we need to live with for a while one way or

[issue30440] document peephole optimizer effects

2017-05-23 Thread Andrew Dalke
Changes by Andrew Dalke : -- nosy: -dalke ___ Python tracker <http://bugs.python.org/issue30440> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30440] document peephole optimizer effects

2017-05-23 Thread Andrew Dalke
New submission from Andrew Dalke: The peephole optimizer is an overall benefit to Python but it has some side-effects that occasionally cause problems. These are well-known in the issue tracker, but there is no other documentation which will help a Python programmer figure out which

[issue21074] Too aggressive constant folding

2017-05-23 Thread Andrew Dalke
Andrew Dalke added the comment: Again, I do not propose any changes to the existing optimizer. I do not need anything changed for my code to work. My goal is to counter-balance comments which suggest that perfectly normal code is somehow folly and arcane. These caused me some bewilderment and

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-24 Thread Andrew Jaffe
Andrew Jaffe added the comment: I'll also note that my bug report (radar) has been marked as "DUPLICATE OF 31898264 (OPEN)". So Apple is aware of the bug, and possibly not completely ignoring it. However, the opacity of the system is such that there is no way to get any furt

[issue36087] ThreadPoolExecutor max_workers none issue

2019-02-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please use the correct documentation version for Python 3.4. https://docs.python.org/3.4/library/concurrent.futures.html doesn't mention the pool size auto-selection. The feature was added in Python 3.5 only. Also, Python 3.4 reached the end-of-life,

[issue36098] asyncio: ssl client-server with "slow" read

2019-02-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the report. We definitely have to fix `AttributeError`. Unfortunately, SSL implementation in asyncio is very tricky. Yuri has an experimental asyncio ssl replacement in his uvloop project rewritten from scratch. There is a plan to port it into

[issue29515] socket module missing IPPROTO_IPV6, IPPROTO_IPV4 on Windows

2019-03-05 Thread Andrew Brezovsky
Andrew Brezovsky added the comment: I lean towards it being considered a bug fix. First, the lack of parity between Windows and Linux-based OSs causes confusion. Second, the current workaround to hard-code the value in is far from best practice

[issue29515] socket module missing IPPROTO_IPV6, IPPROTO_IPV4 on Windows

2019-03-05 Thread Andrew Brezovsky
Andrew Brezovsky added the comment: I see your point. Then perhaps only a subset of the more vital ones get added to previous releases? #define IPPROTO_IPV4 IPPROTO_IPV4 #define IPPROTO_IPV6 IPPROTO_IPV6 #define IPPROTO_TCP IPPROTO_TCP #define IPPROTO_UDP IPPROTO_UDP #define IPPROTO_ICMP

<    11   12   13   14   15   16   17   18   19   20   >