[issue37278] test_asyncio: ProactorLoopCtrlC leaks one reference

2019-06-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Maybe. Agree with your decision to close bpo-34520 as duplicate. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37281] asyncio Task._fut_waiter done callback

2019-06-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: See bpo-32363 -- ___ Python tracker <https://bugs.python.org/issue37281> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37278] test_asyncio: ProactorLoopCtrlC leaks one reference

2019-06-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Welcome! Thanks for the fix! -- ___ Python tracker <https://bugs.python.org/issue37278> ___ ___ Python-bugs-list mailin

[issue37202] Future.cancelled is not set to true immediately after calling Future.cancel

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

[issue37081] Test with OpenSSL 1.1.1c

2019-06-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Duplicate of #35998 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29 ___ Python tra

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +13939 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14080 ___ Python tracker <https://bugs.python.org/issu

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

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

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the review, Victor! I have had to fix it much earlier :( -- ___ Python tracker <https://bugs.python.org/issue35

[issue37290] Mistranslation (Japanese)

2019-06-15 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37279] asyncio sendfile sends extra data in the last chunk in fallback mode

2019-06-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset ef2152354f03a165c5e3adb53e2276934fabd50a by Andrew Svetlov in branch 'master': bpo-37279: Fix asyncio sendfile support when extra data are sent in fallback mode. (GH-14075) https://github.com/python/cpyt

[issue37280] Use threadpool for reading from file for sendfile fallback mode

2019-06-15 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +13956 pull_request: https://github.com/python/cpython/pull/14102 ___ Python tracker <https://bugs.python.org/issue37

[issue37279] asyncio sendfile sends extra data in the last chunk in fallback mode

2019-06-15 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +13957 pull_request: https://github.com/python/cpython/pull/14103 ___ Python tracker <https://bugs.python.org/issue37

[issue37279] asyncio sendfile sends extra data in the last chunk in fallback mode

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

[issue37280] Use threadpool for reading from file for sendfile fallback mode

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

[issue37279] asyncio sendfile sends extra data in the last chunk in fallback mode

2019-06-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset e5d67f1e31381d28b24f6e1c0f8388d9bf0bfc5f by Andrew Svetlov in branch '3.7': [3.7] bpo-37279: Fix asyncio sendfile support when extra data are sent in fallback mode. (GH-14075). (GH-14103) https://github.com/python/cpyt

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ooops. Looks like a real problem, not test-only :( -- ___ Python tracker <https://bugs.python.org/issue35998> ___ ___ Pytho

[issue37294] ProcessPoolExecutor fails with super

2019-06-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: The use case is weird. I don't think we need to do something with the issue. -- nosy: +gvanrossum ___ Python tracker <https://bugs.python.org/is

[issue37294] ProcessPoolExecutor fails with super

2019-06-15 Thread Andrew Svetlov
Change by Andrew Svetlov : -- nosy: -gvanrossum ___ Python tracker <https://bugs.python.org/issue37294> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36403] AsyncIterator on 3.7: __aiter__ no longer honors finally blocks

2019-06-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: >From my understanding yield inside __aiter__ is a forbidden construction. Even >if parser allows it the statement doesn't make any sense. I'm very interested to hear Yuri opinion. -- ___ Python

[issue37299] RuntimeWarning is NOT raised

2019-06-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: The solution is called static analyzers and "type hints". Mypy detects the absence of "await" pretty well. In turn, CPython does the best in runtime mode for detecting not-awaited awaitables when possible. I think we should close the issu

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: No idea what to do. SSL support is obviously broken. Current code is too complex to maintain. Yuri has a full reimplementation of ssl_proto.py in uvloop. It *seem* to work and can be backported. I'm sick now, can be ready to work back in a day o

[issue34506] Traceback logged when SSL handshake fails

2019-06-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: I believe the issue is a duplicate for #37035 at least regarding traceback logging. It can be closed, OSError exceptions are not logged anymore. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34506] Traceback logged when SSL handshake fails

2019-06-17 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Don't log OSError exceptions in asyncio transports ___ Python tracker <https://bugs.p

[issue37299] RuntimeWarning is NOT raised

2019-06-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: > If a RuntimeWarning is warranted when a temporary variable is used, it's > warranted when the value is used directly, without a temporary variable. No, it's not. If "1/0" is present in never executed code block Python don

[issue37334] Add a cancel method to asyncio Queues

2019-06-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sounds like `.close()` is better name for described behavior. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37343] pip: Warn on vulnerable packages

2019-06-19 Thread Andrew Pennebaker
New submission from Andrew Pennebaker : Compared to pip, NPM warns users when a dependency subtree about to be installed, includes known vulnerabilities. This helps devs catch security issues earlier, so they can update or replace critical dependencies. Similarly, the dependency-check pip

[issue37345] Add formal support for UDPLITE protococl

2019-06-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Adding new constants like socket.IPPROTO_UDPLITE is fine. The question is: why we need a new function? There is no set_send_checksum_coverage() on C level IIRC -- nosy: +asvetlov ___ Python tracker <ht

[issue37345] Add formal support for UDPLITE protococl

2019-06-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: We have no setsockopt() shortcut helpers. socket.setblocking() uses fcntl() internally. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37345] Add formal support for UDPLITE protococl

2019-06-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry. Please drop helper methods but keep IPPROTO_UDPLITE, UDPLITE_SEND_CSCOV, UDPLITE_RECV_CSCOV constants. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37357] mbox From line wrongly detected

2019-06-21 Thread Andrew Bernard
New submission from Andrew Bernard : When parsing an mbox file, the Python mailbox library is confused by the presence of lines starting with 'From' in the body of the text. A new fragmentary message item is created, but this is wrong. The following sample code and input demonst

[issue37357] mbox From line wrongly detected

2019-06-21 Thread Andrew Bernard
Change by Andrew Bernard : -- resolution: -> not a bug ___ Python tracker <https://bugs.python.org/issue37357> ___ ___ Python-bugs-list mailing list Un

[issue37357] mbox From line wrongly detected

2019-06-21 Thread Andrew Bernard
Andrew Bernard added the comment: Not really a bug. Results from problems with the loose mbix format and lack of standards. Nothing Python can do about it. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37345] Add formal support for UDPLITE protocol

2019-06-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: -Python 3.8 ___ Python tracker <https://bugs.python.org/issue37345> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37345] Add formal support for UDPLITE protocol

2019-06-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: 3.8 is in beta stage, public API is frozen -- ___ Python tracker <https://bugs.python.org/issue37345> ___ ___ Python-bug

[issue37323] test_asyncio: test_debug_mode_interop() fails using -Werror

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

[issue37334] Add a cancel method to asyncio Queues

2019-06-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with Caleb. The more I think the more I doubt about the proposal. Cancellation is for tasks, not for queues or locks. When should I cancel a queue but cannot cancel a task? -- ___ Python tracker <ht

[issue37373] Configuration of windows event loop for libraries

2019-06-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: > Is it possible to implement add_reader/writer in ProactorEventLoop? Sorry, no. There is no way IIUC. Regarding a request for selecting event loop by a library. 1. You can call asyncio.set_event_loop_policy() already. 2. From my understanding, there is

[issue37373] Configuration of windows event loop for libraries

2019-06-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: I doubt if we should split a proactor loop into two objects in two threads. I see no strong objections but have a feeling that we'll get other problems in this way. asyncio is just not designed for this mode. The proposal looks like a very dirty hac

[issue37373] Configuration of windows event loop for libraries

2019-06-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: I don't like to have not required parts like thread pool, time handlers, and the exception handler executed in the auxiliary thread. What's about an alternative proposal: embed into ProactorEventLoop not entire SelectorEventLoop but selectors.Sele

[issue37345] Add formal support for UDPLITE protocol

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

[issue36732] test_asyncio: test_huge_content_recvinto() fails randomly

2019-06-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: There is an interesting discussion: https://stackoverflow.com/questions/14499593/can-the-infamous-error-netname-deleted-error-be-considered-an-error-at-all "[WinError 64] The specified network name is no longer available" is raised on pending

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

2019-06-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +14164 pull_request: https://github.com/python/cpython/pull/14344 ___ Python tracker <https://bugs.python.org/issue35

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

2019-06-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 6793cce155f8875b10efd746cb0b34cb72263af7 by Andrew Svetlov (Xtreak) in branch 'master': bpo-36889: Document asyncio Stream and StreamServer (GH-14203) https://github.com/python/cpython/commit/6793cce155f8875b10efd746cb0b34

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

2019-06-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks, Karthikeyan! The only thing that needs to be documented is Stream class itself. Would you finish this job, please? -- ___ Python tracker <https://bugs.python.org/issue36

[issue37398] contextlib.ContextDecorator decorating async functions

2019-06-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: I wonder why do you need it? What is your use case? A code snippet can help a lot. -- ___ Python tracker <https://bugs.python.org/issue37

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

2019-06-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yes, Stream doc should be a combination of StreamReader and StreamWriter with small changes/additions. StreamReader and StreamWriter should be kept in the doc. Regarding docstrings: there is no strong requirement (we don't provide docstrings for all as

[issue37398] contextlib.ContextDecorator decorating async functions

2019-06-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, I still have no idea what is the code for PerfTimer class. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37398] contextlib.ContextDecorator decorating async functions

2019-06-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Got you. iscoroutinefunction() is not reliable: it detects async functions only but fails if we have a regular function that returns awaitable object. I think AsyncContextDecorator is needed here to explicitly point that you want to wrap async function

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Adding a new state for "not running and not pending but something in between" is useless, it can make .running() result a little more accurate but doesn't improve the real functionality. The easy "fix" is documentation updatin

[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-06-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Use asyncio transports or streams. sock_recv() is a low-level API with a very limited audience. wrapped ssl socket provides a synchronous interface only. Perhaps we should raise an exception if SSLSocket is passed into asyncio functions

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: I don't mind, sorry. Feel free to make a pull request with the fix though. -- ___ Python tracker <https://bugs.python.org/is

[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-06-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is it ok to have File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py", line 76 in __call__ so many times? Looks very

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

2019-06-26 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +14211 pull_request: https://github.com/python/cpython/pull/14397 ___ Python tracker <https://bugs.python.org/issue36

[issue36689] docs: os.path.commonpath raises ValueError for different drives

2019-06-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yes, sure -- nosy: +asvetlov resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

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

2019-06-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 0d671c04c39b52e44597491b893eb0b6c86b3d45 by Andrew Svetlov in branch 'master': bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread (GH-14344) https://github.com/python/cpyt

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

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

[issue37199] Test suite fails when Ipv6 is unavailable

2019-06-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset c2cda638d63b98f5cf9a8ef13e15aace2b7e3f0b by Andrew Svetlov (Zackery Spytz) in branch 'master': bpo-37199: Fix test failures when IPv6 is unavailable or disabled (#14480) https://github.com/python/cpyt

[issue37199] Test suite fails when Ipv6 is unavailable

2019-06-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker <https://bugs.python.or

[issue37199] Test suite fails when Ipv6 is unavailable

2019-07-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: Victor, backporting to 3.7 makes merge conflicts. Do you think that I should backport manually? -- ___ Python tracker <https://bugs.python.org/issue37

[issue37494] Call asyncio Future in scope

2019-07-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: Your code doesn't run the event loop, only creates it. What do you expect? -- ___ Python tracker <https://bugs.python.org/is

[issue37494] Call asyncio Future in scope

2019-07-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: It doesn't. Loop is executed by asyncio.run() (recommended) or low-level loop.run_until_complete() / loop.run_forever() calls. Please note, this tracker is for working on Python itself, not for teaching Python usage. Please use other resources like f

[issue37346] Documentation of os not using OSError subclasses

2019-07-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks! -- nosy: +asvetlov resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.or

[issue34446] ambiguous _max_size parameter in SpooledTemporaryFile

2019-07-07 Thread Andrew Scheller
Andrew Scheller added the comment: I agree that this is ambiguous behaviour. The docs at https://docs.python.org/3/library/tempfile.html#tempfile.SpooledTemporaryFile say "This function operates exactly as TemporaryFile() does, except that data is spooled in memory until the file

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

2019-07-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Good point. For proactor event loop set_wakeup_fd() is used for Ctrl+C handling. Skipping this call for non-main thread in proactor implementation makes sense. -- assignee: -> asvetlov ___ Python tracker <

[issue30088] mailbox.Maildir doesn't create subdir structure when create=True and base dir exists

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

[issue37573] asyncio: freeze when using MultiLoopChildWatcher on Solaris

2019-07-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the report. -- assignee: -> asvetlov ___ Python tracker <https://bugs.python.org/issue37573> ___ ___ Python-

[issue37598] Don't use _ as a function name in logging documentation cookbook

2019-07-15 Thread Andrew Carter
New submission from Andrew Carter : Current docs link: https://docs.python.org/3/howto/logging-cookbook.html#implementing-structured-logging GitHub commit link: https://github.com/python/cpython/commit/4b88d6c6642450240a9dc22e6efbdc69baf890dd The suggestion is that for structured logging, a

[issue37623] namedtuple integration for importlib.abc.Loader

2019-07-18 Thread Andrew Yurisich
New submission from Andrew Yurisich : I wanted to return a namedtuple from a concrete implementation of an importlib.abc.Loader base class, and wasn't able to provide a __spec__ property on the underlying class behind the namedtuple. All return values from importlib.abc.Loader#create_m

[issue37623] namedtuple integration for importlib.abc.Loader

2019-07-19 Thread Andrew Yurisich
Andrew Yurisich added the comment: You're right, I was invoking the namedtuple on the same line that I was defining it, freezing it in the process. I split it to into two statements, and snuck the __spec__ attribute between the definition and the instantiation. I'll update the exam

[issue37623] namedtuple integration for importlib.abc.Loader

2019-07-19 Thread Andrew Yurisich
Andrew Yurisich added the comment: This issue was raised due to a misunderstanding of the namedtuple creation process. After creating the fields, but before assigning them, __spec__ is trivially added to namedtuple class' definition as a property. Thanks again @serhiy.stor

[issue37639] What happened to StreamReaderProtocol?

2019-07-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Hi. StreamReaderProtocol was leaked implementation detail, not a public reusable class. The protocol has too many "gray zones" where its implementation is not well defined or even wrong. This situation prevents us from stream API improvements whi

[issue37398] contextlib.ContextDecorator decorating async functions

2019-07-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: I still think that iscoroutinefunction should not be used for async/sync decoration type autodetection. A day ago stuck with a case when decorator used iscoroutinefunction() for separation but returned a regular function wrapper that returns awaitable in

[issue37710] Python SSL module does not clear error queue before IO operations using SSL_get_error

2019-07-29 Thread Andrew Collins
New submission from Andrew Collins : Per the OpenSSL documentation: "The current thread's error queue must be empty before the TLS/SSL I/O operation is attempted, or SSL_get_error() will not work reliably." https://www.openssl.org/docs/man1.1.1/man3/SSL_get_error.html Modu

[issue37623] namedtuple integration for importlib.abc.Loader

2019-08-04 Thread Andrew Yurisich
Andrew Yurisich added the comment: If anyone is interested in the progress I was able to make as a result of this discussion, feel free to check out https://github.com/captain-kark/python-module-resources/blob/d85453ff4f5022127874a5842449d95bb5eda234/module_resources/module_resources.py and

[issue14465] xml.etree.ElementTree: add feature to prettify XML output

2019-08-08 Thread Andrew Grant
Change by Andrew Grant : -- nosy: +Andrew Grant ___ Python tracker <https://bugs.python.org/issue14465> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30835] AttributeError when parsing multipart email with invalid non-decodable Content-Transfer-Encoding

2017-07-03 Thread Andrew Donnellan
New submission from Andrew Donnellan: Parsing an email containing a multipart Content-Type, along with a Content-Transfer-Encoding containing an invalid (non-ASCII-decodable) byte will fail. email.feedparser.FeedParser._parsegen() calls "self._cur.get('content-transfer-encoding

[issue30835] AttributeError when parsing multipart email with invalid non-decodable Content-Transfer-Encoding

2017-07-03 Thread Andrew Donnellan
Changes by Andrew Donnellan : -- pull_requests: +2613 ___ Python tracker <http://bugs.python.org/issue30835> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9216] FIPS support for hashlib

2017-07-16 Thread Andrew DiPrinzio
Andrew DiPrinzio added the comment: I have been able to use this flag on RHEL and Centos. Is it possible that this has been completed? -- nosy: +Andrew DiPrinzio ___ Python tracker <http://bugs.python.org/issue9

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-07-20 Thread Andrew Jaffe
Andrew Jaffe added the comment: 10.12.6 is out and the bug appears to be fixed... -- resolution: out of date -> third party status: pending -> closed ___ Python tracker <http://bugs.python.org/i

[issue31073] Change metadata handling in check command

2017-07-28 Thread Andrew Pinkham
New submission from Andrew Pinkham: The new warehouse uses the author_email field to create a mailto link. Donald Stufft recommended leaving out the author_email field while still specifying the author field should a maintainer wish to have their name associated without their email

[issue31073] Change metadata handling in check command

2017-08-01 Thread Andrew Pinkham
Andrew Pinkham added the comment: Judging from Éric's reaction on Github, I suspect there may be some reticence to changing this code. I've sub-classed the check command in the project I'm working on to demonstrate what I would like the new behavior to be. https://github.com/

[issue31253] Python fails to parse commented out code

2017-08-22 Thread Andrew Wall
New submission from Andrew Wall: Python can parse and run this code: log = list(r'..\Unknown\*.txt') but not this: ''' log = list(r'..\Unknown\*.txt') ''' -- components: Interpreter Core messages: 300670 nosy: quamrana priority:

[issue31253] Python fails to parse commented out code

2017-08-22 Thread Andrew Wall
Andrew Wall added the comment: My lazy way of programming is to piece together lines of code, going round and round commenting and uncommenting sections until I get something that works. My new lazy way of commenting out larger chunks of code will be: r''' ... severa

[issue31367] [[]]*int gives x of the same list that cannot be appended to or popped from individually

2017-09-06 Thread Andrew Matte
New submission from Andrew Matte: not a big deal but still -- components: Interpreter Core messages: 301496 nosy: mandrew priority: normal severity: normal status: open title: [[]]*int gives x of the same list that cannot be appended to or popped from individually versions: Python 3.5

[issue15670] PEP 3121, 384 Refactoring applied to ssl module

2017-09-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: The patch consists from two changes: replacing static vars with module state and using slot based way for constructing classes. The first change is obvious but I not sure if we need second transformation

[issue31452] asyncio.gather does not cancel tasks if one fails

2017-09-13 Thread Andrew Lytvyn
New submission from Andrew Lytvyn: If you do not await gather, then if one of gather inner coroutines fails, others keep working, but they should not. ```python import asyncio import logging logging.basicConfig(level=logging.DEBUG) loop = asyncio.get_event_loop() async def success_coro

[issue31452] asyncio.gather does not cancel tasks if one fails

2017-09-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yuri, it looks like a serious bug. I expected `success_coro(5)` cancelling but see print out. -- components: +Library (Lib) stage: -> needs patch versions: +Python 3.7 ___ Python tracker <https://bugs.pyth

[issue31452] asyncio.gather does not cancel tasks if one fails

2017-09-22 Thread Andrew Lytvyn
Andrew Lytvyn added the comment: Guido, look. The point is that if you change run_forever with run_until_complete, then behavior changes: success_coro(5) will not be executed. I think that it's strange that behavior differs depending on entrypoint: run_forever or run_untill_com

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

2018-11-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: The only _DummyThread usage is `threading.current_thread()`: > If the caller's thread of control was not created through the threading > module, a dummy thread object with limited functionality is returned. -- nosy

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

2018-11-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Well, to satisfy everybody we need to: 1. Implement `isAlive` for dummy thread 2. Add a deprecation warning for both Thread.isAlive and _DummyThread.isAlive 3. Remove isAlive in future Python release (3.8 for the deprecation, 3.8+2 for removal). 4

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: The strange thing is these tests are passed on our build bots. In logs I see only ConnectionResetError. Can it be related to your configuration? -- ___ Python tracker <https://bugs.python.org/issue35

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Maybe this is the reason. asycio test suite uses these ssl contexts: https://github.com/python/cpython/blob/master/Lib/test/test_asyncio/utils.py#L72-L92 Maybe bumping used protocol version will help to pass tests on your box. Would you try it

[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: IIRC two copies exist from very early development times when asyncio was not a part of Python stdlib. -- ___ Python tracker <https://bugs.python.org/issue35

[issue35380] Enable TCP_NODELAY for proactor event loop

2018-12-02 Thread Andrew Svetlov
New submission from Andrew Svetlov : We do it for selector based loops already, let's be consistent. I think the feature should be backported to 3.7 too. -- components: asyncio messages: 330903 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: E

[issue35380] Enable TCP_NODELAY for proactor event loop

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

[issue35380] Enable TCP_NODELAY for proactor event loop

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

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

2018-12-03 Thread Andrew Dunai
Andrew Dunai added the comment: I've just stumbled upon this issue while looking for a good first issue to contribute on. If the community agrees this is something that needs to be done, I'll gladly work on this. -- nosy: +and3rson

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

2018-12-03 Thread Andrew Dunai
Andrew Dunai added the comment: I see 2 most applicable ways to do it: - Hide .parent and .name by mangling - Define them within the mock class definition scope, but not within the class itself. As long as those are accessed only from within the mock class, I think second method would be

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

2018-12-03 Thread Andrew Dunai
Andrew Dunai added the comment: I was considering wrapping a `unittest.mock._Call` class definition within a function that would contain name & parent as local variables (arguments). Thus they would be accessible within the `_Call` class, but wouldn't be accessible from the outside

[issue35392] Create asyncio/sockutils.py

2018-12-03 Thread Andrew Svetlov
New submission from Andrew Svetlov : As discussed with Yuri on https://github.com/python/cpython/pull/10867#discussion_r238395192 Candidate functions to move into the helper modules: * _set_nodelay() * _ipaddr_info() * _set_reuseport() -- components: asyncio messages: 330973 nosy

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