[issue37557] Example snippets for simpler functions/methods

2019-07-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: We generally only put the examples where they add something substantive. Otherwise, it just make the docs verbose and time consuming to read start to finish. Adding an example for str.lower() contributes no additional value. Most published Python

[issue37582] can you add this new feature about grammar?

2019-07-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Changes like this needs to be discussed in python-ideas first https://mail.python.org/mailman3/lists/python-ideas.python.org/ . The current behavior is as below : >>> a, b += 1, 2 File "", line 1 SyntaxError: illegal expression for augmented

[issue37582] can you add this new feature about grammar?

2019-07-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: Oops, I accidentally removed xtreak, and then aeros167 accidentally removed me. -- nosy: +steven.daprano, xtreak type: -> enhancement ___ Python tracker

[issue37582] can you add this new feature about grammar?

2019-07-13 Thread dai dai
dai dai added the comment: >> a = 1 >> b = 2 >> a, b += 1, 2 2, 4 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37582] can you add this new feature about grammar?

2019-07-13 Thread dai dai
New submission from dai dai : >> a = 1 >> b = 2 >> a, b += 1, 2 2 3 -- messages: 347779 nosy: dai dai priority: normal severity: normal status: open title: can you add this new feature about grammar? ___ Python tracker

[issue37574] Mention spec_from_loader() in Finder.find_spec() docs.

2019-07-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37582] can you add this new feature about grammar?

2019-07-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: A new language feature like this needs to be discussed on Python-Ideas first, to get community feedback, to decide whether the feature is desired by the community, to iron-out any bugs in the specification, and decide whether or not you will need to write

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-07-13 Thread Kyle Stanley
Kyle Stanley added the comment: The latest PR-14655 moved the last file, "threaded_import_hangers.py" into the "test_importlib" directory. As far as I can tell, there's nothing else which needs to be moved there, so the issue can be closed. --

[issue37581] Docs: Improve phrasing of flush argument for print()

2019-07-13 Thread Kyle Stanley
Change by Kyle Stanley : -- assignee: -> docs@python components: +Documentation nosy: +docs@python type: -> enhancement versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue37582] can you add this new feature about grammar?

2019-07-13 Thread Kyle Stanley
Kyle Stanley added the comment: Thanks for the suggestion. Personally I wouldn't be in favor of this particular change. It doesn't add any additional functionality beyond saving a couple of characters. Also, this could quickly get rather convoluted. For separation and clarity, the

[issue37581] Docs: Improve phrasing of flush argument for print()

2019-07-13 Thread Kyle Stanley
New submission from Kyle Stanley : Currently in the documentation for print() (https://docs.python.org/3/library/functions.html#print), the phrasing for the flush argument is: Whether output is buffered is usually determined by file, but if the flush keyword argument is true, the stream is

[issue37563] Documentation - default for StreamHandler

2019-07-13 Thread Jonathan
Jonathan added the comment: > The devil is in the detail. If stream=sys.stderr is specified, that takes > effect at import time. If stream=None is specified and the implementation > chooses to treat that as sys.stderr, that takes effect at the time of the > call. The two are not equivalent.

[issue37583] Got a 113 error when running the test_socket

2019-07-13 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +14523 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14729 ___ Python tracker ___

[issue37580] Markup typo in http.cookiejar doc

2019-07-13 Thread Milan Oberkirch
Change by Milan Oberkirch : -- keywords: +patch pull_requests: +14524 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14731 ___ Python tracker

[issue37563] Documentation - default for StreamHandler

2019-07-13 Thread Jonathan
Jonathan added the comment: > I'm not sure your tone is particularly constructive here. Apologies, my bad. > Which code are you looking at? The documentation code: `class logging.StreamHandler(stream=None)`. Sorry, I don't know what you'd call that. I'm not referring to the code proper. >

[issue37580] Markup typo in http.cookiejar doc

2019-07-13 Thread miss-islington
miss-islington added the comment: New changeset 5da83b417e48aecd7698387d3f37c603162fd46e by Miss Islington (bot) in branch '3.8': bpo-37580: Fix typo in http.cookiejar documentation (GH-14731) https://github.com/python/cpython/commit/5da83b417e48aecd7698387d3f37c603162fd46e --

[issue7202] "python setup.py cmd --verbose" does not set verbosity

2019-07-13 Thread Milan Oberkirch
Milan Oberkirch added the comment: The help states: > usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] so I would argue that setup.py ignoring global_opts after cmd1 is not a bug. But I do think that the fact that "python setup.py build --dry-run" does not prevent the

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-07-13 Thread Ronald Oussoren
Change by Ronald Oussoren : -- pull_requests: +14530 pull_request: https://github.com/python/cpython/pull/14736 ___ Python tracker ___

[issue37585] Comparing PyDictValues does not give expected results

2019-07-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +14531 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14737 ___ Python tracker ___

[issue37585] Comparing PyDictValues does not give expected results

2019-07-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also issue12445 which was a similar proposal rejected in the past. -- nosy: +inada.naoki, xtreak ___ Python tracker ___

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

2019-07-13 Thread Sviatoslav Sydorenko
Sviatoslav Sydorenko added the comment: Hi, I've tried clarifying this in docs as suggested @ https://github.com/python/cpython/pull/1163 -- ___ Python tracker ___

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2019-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are hundreds or thousands of private names in other modules. Do you propose to change them all? I afraid that this will cause more harm than benefit. -- ___ Python tracker

[issue37574] Mention spec_from_loader() in Finder.find_spec() docs.

2019-07-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +14535 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14739 ___ Python tracker

[issue33326] Convert collections (cmp_op, hasconst, hasname and others) in opcode module to more optimal type

2019-07-13 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +14538 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14742 ___ Python tracker ___

[issue37579] Difference in equality check between C and Python implementation for datetime module's timedelta and time

2019-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +14539 pull_request: https://github.com/python/cpython/pull/14743 ___ Python tracker ___

[issue34722] Non-deterministic bytecode generation

2019-07-13 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: I encounter another case that leads to non-deterministic bytecode. For example, with commit e6b46aafad3427463d6264a68824df4797e682f1 + PR 9472, I got: $ cat foobar.py _m = None $ PYTHONHASHSEED=0 ./python -m compileall --invalidation-mode=unchecked-hash

[issue37583] Got a 113 error when running the test_socket

2019-07-13 Thread hai shi
New submission from hai shi : When I run test_socket.py, I got a error. Looks it's a problem of security group. My env: a vm of centos May be I need add `EHOSTUNREACH` in support.get_socket_conn_refused_errs()? == FAIL:

[issue37352] Typo in documentation: "to making it easy"

2019-07-13 Thread Ilya Kamenshchikov
Ilya Kamenshchikov added the comment: The wording from Carol Willing makes it read simpler. Also in the next sentence, 'test-directed development' goes under the name 'test-driven development' as of 2019 (search in google -> https://en.wikipedia.org/wiki/Test-driven_development). I have

[issue37576] SSL Malloc Error w/OpenSSL 1.1.1c-fips & FIPS_mode_set(1)

2019-07-13 Thread Christian Heimes
Christian Heimes added the comment: You are welcome! Could you please do me a favor and post the RHBZ# here after you have created a ticket? Thanks :) -- ___ Python tracker

[issue25998] doctest terminates when accessing __wrapped__ raises an error

2019-07-13 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: Working on it at EuroPython 2019. FTR I tested on Python 3.6.9, 3.7.4 and 3.9.0a0 without issue. I think this was fixed with https://github.com/rtweeks/werkzeug/commit/c643980b93e9bde4431cd99ece30f07e00160f84. But the doctest issue remains and this is on

[issue37563] Documentation - default for StreamHandler

2019-07-13 Thread Vinay Sajip
Vinay Sajip added the comment: > the prose clearly say that the default is sys.stderr, however the code > doesn't show that Which code are you looking at? Here is the entirety of StreamHandler.__init__: def __init__(self, stream=None): """ Initialize the handler.

[issue37584] Multiple test failures with OSError: [Errno 84] Invalid or incomplete multibyte or wide character on ZFS with utf8only=on

2019-07-13 Thread Dimiter Naydenov
Dimiter Naydenov added the comment: Here's some additional information I found for that specific attribute: >From the documentation at http://dlc.sun.com/osol/docs/content/ZFSADMIN/gazss.html (link is dead, but here's where I found the section below:

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: LC_CTYPE=UTF-8 is a valid configuration on macOS, and is in the default environment when you install a fresh system. This includes the beta's for macOS 10.15 and is therefore unlikely to change anytime soon. Interestingly enough I get this error even when

[issue9938] Documentation for argparse interactive use

2019-07-13 Thread Milan Oberkirch
Milan Oberkirch added the comment: This issue is a duplicate of issue 9112 which was resolved by commit 9375492b -- nosy: +zvyn ___ Python tracker ___

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: As promised there is now a pull request. I'd love a review (and a change to approve the pull request when reviewers are happy, I'm trying to get back into actively contributing). --- I now understand why locale.getdefaultlocale() fails even when LC_CTYPE

[issue37580] Markup typo in http.cookiejar doc

2019-07-13 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue28269] [MinGW] Can't compile Python/dynload_win.c due to static strcasecmp

2019-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +14537 pull_request: https://github.com/python/cpython/pull/14741 ___ Python tracker ___

[issue28269] [MinGW] Can't compile Python/dynload_win.c due to static strcasecmp

2019-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +14536 pull_request: https://github.com/python/cpython/pull/14740 ___ Python tracker ___

[issue28269] [MinGW] Can't compile Python/dynload_win.c due to static strcasecmp

2019-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 05f2d84cae4ba1ff15b7a1d0347305393f4bdcc5 by Serhiy Storchaka (Minmin Gong) in branch 'master': bpo-28269: Replace strcasecmp with system function _stricmp. (GH-13095)

[issue37579] Difference in equality check between C and Python implementation for datetime module's timedelta and time

2019-07-13 Thread Paul Ganssle
Paul Ganssle added the comment: New changeset e6b46aafad3427463d6264a68824df4797e682f1 by Paul Ganssle (Xtreak) in branch 'master': bpo-37579: Improve equality behavior for pure Python datetime and time (GH-14726)

[issue37579] Difference in equality check between C and Python implementation for datetime module's timedelta and time

2019-07-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +14541 pull_request: https://github.com/python/cpython/pull/14745 ___ Python tracker ___

[issue37579] Difference in equality check between C and Python implementation for datetime module's timedelta and time

2019-07-13 Thread miss-islington
miss-islington added the comment: New changeset 143672cf028740fc549e532c049559c522930c95 by Miss Islington (bot) in branch '3.8': bpo-37579: Improve equality behavior for pure Python datetime and time (GH-14726)

[issue37548] Document range of atan, acos and asin

2019-07-13 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset dc3f99fa77f415077c20a9c2b3e953e5cd894076 by Mark Dickinson (Giovanni Cappellotto) in branch 'master': bpo-37548: Document range of atan, acos and asin (GH-14717) https://github.com/python/cpython/commit/dc3f99fa77f415077c20a9c2b3e953e5cd894076

[issue21992] New AST node Else() should be introduced

2019-07-13 Thread Milan Oberkirch
Milan Oberkirch added the comment: Is there a reason for this still being open? /me trying to find issues to work on using [random issue] -- nosy: +zvyn ___ Python tracker

[issue37580] Markup typo in http.cookiejar doc

2019-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +14528 pull_request: https://github.com/python/cpython/pull/14734 ___ Python tracker ___

[issue37580] Markup typo in http.cookiejar doc

2019-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +14527 pull_request: https://github.com/python/cpython/pull/14733 ___ Python tracker ___

[issue35476] _imp_create_dynamic_impl() does not clear error.

2019-07-13 Thread Batuhan
Batuhan added the comment: Can you give me the case so i can reproduce this and test it. -- nosy: +BTaskaya ___ Python tracker ___

[issue37585] Comparing PyDictValues does not give expected results

2019-07-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> dict view values objects are missing tp_richcmp and tp_as_number ___ Python tracker

[issue34697] ctypes: Crash if manually-created CField instance is used

2019-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Is this issue worth fixing? Definitely yes. > If so, is the correct way to set tp_new slot to NULL and fix the internal > callers so that users wouldn't be able to create CField instances? I think yes. Do you mind to create a PR? --

[issue37579] Difference in equality check between C and Python implementation for datetime module's timedelta and time

2019-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to fix also other similar cases if they are? __lt__ and others should have the same property. -- ___ Python tracker ___

[issue7940] re.finditer and re.findall should support negative end positions

2019-07-13 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +14540 pull_request: https://github.com/python/cpython/pull/14744 ___ Python tracker ___

[issue34264] Inconsistency between stack size in main thread and secondary threads on macOS

2019-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is a duplicate of 18049, which has a more complete patch. -- resolution: -> duplicate stage: patch review -> resolved superseder: -> Re-enable threading test on OSX ___ Python tracker

[issue18049] Re-enable threading test on OSX

2019-07-13 Thread Ronald Oussoren
Change by Ronald Oussoren : -- pull_requests: +14543 pull_request: https://github.com/python/cpython/pull/14748 ___ Python tracker ___

[issue16520] subprocess.Popen() TypeError message incorrect without args argument

2019-07-13 Thread Carl Bordum Hansen
Carl Bordum Hansen added the comment: I think changing the message will break a lot of tests. Here are some examples just from CPython: https://github.com/python/cpython/blob/master/Lib/test/test_dataclasses.py#L2655 https://github.com/python/cpython/blob/master/Lib/test/test_extcall.py It

[issue37572] email lib bug

2019-07-13 Thread SilentGhost
SilentGhost added the comment: This seems to be a duplicate of #34424. You'd have to upgrade to the latest 3.7 to get the fix. -- nosy: +SilentGhost resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Unicode names break email header type: ->

[issue37587] JSON loads performance improvement for long strings

2019-07-13 Thread Marco Paolini
New submission from Marco Paolini : I analysed the performance of json.loads in one production workload we have. Spy-py tells me the majority of time is spent into C json module (see events.svg) Digging deeper, linux perf tells me hottest loop (where 20%+ of the time is spent) in

[issue37358] Use vectorcall for functools.partial

2019-07-13 Thread miss-islington
miss-islington added the comment: New changeset ed184c06e2e610e12050c5d5c9b0c1c2ecabb930 by Miss Islington (bot) (Jeroen Demeyer) in branch 'master': bpo-37358: Use vectorcall for functools.partial (GH-14284) https://github.com/python/cpython/commit/ed184c06e2e610e12050c5d5c9b0c1c2ecabb930

[issue28440] ensurepip and pip install failures on macOS Sierra with non-system Python 2.7.x

2019-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: In response to msg282272: That day has come, the beta for 10.15 contains Python 3.7.3. -- ___ Python tracker ___

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

2019-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +14545 pull_request: https://github.com/python/cpython/pull/14750 ___ Python tracker ___

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

2019-07-13 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +14544 pull_request: https://github.com/python/cpython/pull/14749 ___ Python tracker ___

[issue37352] Typo in documentation: "to making it easy"

2019-07-13 Thread Ilya Kamenshchikov
Change by Ilya Kamenshchikov : -- keywords: +patch pull_requests: +14525 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14730 ___ Python tracker

[issue37577] ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'

2019-07-13 Thread Christian Heimes
Christian Heimes added the comment: Yes, this is most likely a packaging bug on Debian. By the way, Python comes with an ensurepip module. To install pip, just execute "python3.8 -m ensurepip". -- nosy: +christian.heimes ___ Python tracker

[issue37584] Multiple test failures with OSError: [Errno 84] Invalid or incomplete multibyte or wide character on ZFS with utf8only=on

2019-07-13 Thread Dimiter Naydenov
New submission from Dimiter Naydenov : I'm running Ubuntu 19.04 on a ZFS mirrored pool, where my home partition is configured with 'utf8only=on' attribute. I've cloned cpython and after running the tests, as described in devguide.python.org, I have 11 test failures: == Tests result: FAILURE

[issue37580] Markup typo in http.cookiejar doc

2019-07-13 Thread miss-islington
miss-islington added the comment: New changeset 36494a94914c4d3f249ca10b6a2d6194f6093cc6 by Miss Islington (bot) in branch '3.7': bpo-37580: Fix typo in http.cookiejar documentation (GH-14731) https://github.com/python/cpython/commit/36494a94914c4d3f249ca10b6a2d6194f6093cc6 --

[issue35476] _imp_create_dynamic_impl() does not clear error.

2019-07-13 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +14533 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14738 ___ Python tracker

[issue37578] Change Glob: Allow Recursion for Hidden Files

2019-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is an interesting question. What other implementations behave? -- ___ Python tracker ___

[issue37575] Python Documentation on strings (tutorial section 3.1.2.)

2019-07-13 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> not a bug status: open -> pending type: resource usage -> ___ Python tracker ___ ___

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2019-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would be nice to report a bug in Django. -- ___ Python tracker ___ ___ Python-bugs-list

[issue37586] macOS: posix_spawn(..., setsid=True)

2019-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: File a bug in Xcode 11? If it will not be fixed we will need to add a workaround (like checking the macOS version explicitly). -- nosy: +serhiy.storchaka ___ Python tracker

[issue37586] macOS: posix_spawn(..., setsid=True)

2019-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is not a bug in Xcode 11. Xcode 11 includes definitions for new flags that get picked up by Python's build, but only work on a new version of macOS. I guess this could be seen as a bug in macOS 10.14 (and earlier) because it ignores an unknown flag

[issue37548] Document range of atan, acos and asin

2019-07-13 Thread Mark Dickinson
Mark Dickinson added the comment: Done for 3.9; closing. Thank you for the contribution! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33326] Convert collections (cmp_op, hasconst, hasname and others) in opcode module to more optimal type

2019-07-13 Thread Larry Hastings
Larry Hastings added the comment: Maynard is unsupported; it only understands the old bytecode format, pre-3.6 16-bit "wordcode". https://docs.python.org/3.6/whatsnew/3.6.html#optimizations -- ___ Python tracker

[issue34264] Inconsistency between stack size in main thread and secondary threads on macOS

2019-07-13 Thread Ronald Oussoren
Change by Ronald Oussoren : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30588] Missing documentation for codecs.escape_decode

2019-07-13 Thread Carl Bordum Hansen
Change by Carl Bordum Hansen : -- keywords: +patch pull_requests: +14542 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14747 ___ Python tracker

[issue37572] email lib bug

2019-07-13 Thread famu xu
famu xu added the comment: import smtplib from email.message import EmailMessage from email.utils import formataddr server = smtplib.SMTP('smtp.xxx.com',port=25) server.login('y...@xxx.com', 'password') msg = EmailMessage() #if address username include Chinese or other multibytes language, it

[issue30588] Missing documentation for codecs.escape_decode

2019-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I disagree. We can change, rename or remove it because it is not public function and never was. But we can not just remove it while it is used in the pickle module, and there is no reason to change it as it works pretty good for its purpose. If you want

[issue37580] Markup typo in http.cookiejar doc

2019-07-13 Thread miss-islington
miss-islington added the comment: New changeset b5bbb8a740eaf46c78d122185de8b072e9deea2a by Miss Islington (bot) (Milan Oberkirch) in branch 'master': bpo-37580: Fix typo in http.cookiejar documentation (GH-14731)

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2019-07-13 Thread Ilya Kamenshchikov
Ilya Kamenshchikov added the comment: Py3.6+ f-strings support any indexing as they actually evaluate python expressions. >>> a = ['Java', 'Python'] >>> var = f"Hello {a[-1]}" Hello Python -- nosy: +Ilya Kamenshchikov ___ Python tracker

[issue37583] Got a 113 error when running the test_socket

2019-07-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Victor handled similar errors in issue36629 where this helper was introduced. -- nosy: +vstinner, xtreak type: -> enhancement versions: +Python 3.9 ___ Python tracker

[issue37562] PEP 590 implementation may have introduced a performance regression

2019-07-13 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +14529 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14735 ___ Python tracker ___

[issue37585] Comparing PyDictValues does not give expected results

2019-07-13 Thread Kristian Klette
New submission from Kristian Klette : As a user, I expect to be able to compare the different parts a `dict` in the same manner. Currently, `PyDictValues` does not implement the `dictview_richcompare`, causing the `__eq__` to always return false, even if the values are identical. ```

[issue37586] macOS: posix_spawn(..., setsid=True)

2019-07-13 Thread Ronald Oussoren
New submission from Ronald Oussoren : The Xcode 11 beta introduced a definition for POSIX_SPAWN_SETSID, but that flag is only supported on macOS 10.15 (also beta), not on earlier versions. Because of this the testsuite will have failures when you build using Xcode 11 on macOS 10.14. I'm

[issue18049] Re-enable threading test on macOS

2019-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've converted the patch to a pull request (and closed to other issue because that has a patch that is less complete). I'm not sure if it is acceptable to backport this patch to 3.8 at this time. -- title: Re-enable threading test on OSX ->

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

[issue37587] JSON loads performance improvement for long strings

2019-07-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37492] should email.utils.parseaddr treat a@b. as invalid email ?

2019-07-13 Thread R. David Murray
R. David Murray added the comment: Right, those absolutely are valid addresses. A resolver will normally look up a name with an internal dot first as if it were an FQDN, but if it does so and does not get an answer it will then look it up again as a "local" address (appending in turn the

[issue30550] Document order-preserving dictionary output in json

2019-07-13 Thread Kyle Stanley
Kyle Stanley added the comment: > The JSON encoder for dictionaries preserves the order of the items in a > dictionary >From what I can tell, the JSON encoder does nothing to preserve the order of >the keys. Although the default option is to not modify the existing >dictionary, the items()

[issue37492] should email.utils.parseaddr treat a@b. as invalid email ?

2019-07-13 Thread jpic
jpic added the comment: Thanks for the heads up. There is still one last case where maybe parseaddr should return a tuple of empty strings, currently: >>> parseaddr('a@') ('', 'a@') Is this worth changing ? -- ___ Python tracker

[issue22121] Start IDLE from icon in a better place.

2019-07-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steve, there is a problem in both lines of this suggestion. if os.path.normcase(os.getcwd()) == os.path.normcase(sys.prefix): os.chdir(get_default_location(sys.platform)) On my 3.8 repository build, >>> import os; os.getcwd()

[issue13127] xml.dom.Attr.name is not labeled as read-only

2019-07-13 Thread Giovanni Cappellotto
Change by Giovanni Cappellotto : -- keywords: +patch pull_requests: +14552 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14757 ___ Python tracker

[issue22121] Start IDLE from icon in a better place.

2019-07-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13127] xml.dom.Attr.name is not labeled as read-only

2019-07-13 Thread Giovanni Cappellotto
Giovanni Cappellotto added the comment: In https://github.com/python/cpython/pull/14757 I tried updating the implementation of `Attr._set_name` to remove and reset the attr node in the owner element. So now `Attr._set_name` behaves similarly to `Document.renameNode`. All existing tests are

[issue22121] Start IDLE from icon in a better place.

2019-07-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Looking at the revised title, +1 for changing the IDLE Icon startup, but let's keep the command-line startup sticking with the current directory: $ mkdir pyclass $ cd pyclass $ python3.8 -m idlelib.idle # Should start in the pyclass directory

[issue37358] Use vectorcall for functools.partial

2019-07-13 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35409] Async generator might re-throw GeneratorExit on aclose()

2019-07-13 Thread Vincent Michel
Change by Vincent Michel : -- pull_requests: +14550 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14755 ___ Python tracker ___

[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 ___ ___ Python-bugs-list

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-13 Thread Benjamin Mintz
Benjamin Mintz added the comment: Hmm, why is the assignment to sys.modules necessary at all, if module_from_spec() always does so? -- ___ Python tracker ___

[issue25998] doctest terminates when accessing __wrapped__ raises an error

2019-07-13 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- keywords: +patch pull_requests: +14551 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14756 ___ Python tracker

[issue37563] Documentation - default for StreamHandler

2019-07-13 Thread Vinay Sajip
Vinay Sajip added the comment: > This is a fallacy. What fallacy? I was responding to "does anyone else have opinions on this?" I can't read minds of people all over the world, so I have to go by my best guess, which is based on how many times this issue has been reported before - which I

[issue22121] IDLE should start with HOME as the initial working directory

2019-07-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: > When I start IDLE ("python -m idle") from my project directory > I expect that it doesn't change current directory and I can > access files in this directory by short relative name. I rely on this behavior when teaching Python courses. IIRC, David

  1   2   >