[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

2019-07-14 Thread Larry Hastings
Larry Hastings added the comment: New changeset 4fe82a8eef7aed60de05bfca0f2c322730ea921e by larryhastings (Victor Stinner) in branch '3.5': bpo-35907, CVE-2019-9948: urllib rejects local_file:// scheme (GH-13474) (GH-13505) (#13510) https://github.com/python/cpython/commit/4fe82a8eef7aed60de

[issue37587] JSON loads performance improvement for long strings

2019-07-14 Thread Steve Dower
Change by Steve Dower : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue26967] argparse: allow_abbrev=False stops -vv from working

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

[issue18049] Re-enable threading test on macOS

2019-07-14 Thread Steve Dower
Steve Dower added the comment: I believe this is acceptable to include in 3.8, provided it makes sense for 3.9, so I added the backport tag on the PR. That said, I'm not making any comment on whether it's appropriate at all :) For Windows we found some ways to reduce the stack usage of debug

[issue36261] email examples should not gratuitously mess with preamble

2019-07-14 Thread Steve Dower
Change by Steve Dower : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36261] email examples should not gratuitously mess with preamble

2019-07-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +14556 pull_request: https://github.com/python/cpython/pull/14761 ___ Python tracker ___ __

[issue36261] email examples should not gratuitously mess with preamble

2019-07-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +14555 pull_request: https://github.com/python/cpython/pull/14760 ___ Python tracker ___ __

[issue36261] email examples should not gratuitously mess with preamble

2019-07-14 Thread Steve Dower
Steve Dower added the comment: New changeset 8efade91b12a13102a09a3856179021e579da5e9 by Steve Dower (Carl Bordum Hansen) in branch 'master': bpo-36261: Improve example of the preamble field in email docs (GH-14751) https://github.com/python/cpython/commit/8efade91b12a13102a09a3856179021e579d

[issue36261] email examples should not gratuitously mess with preamble

2019-07-14 Thread Steve Dower
Steve Dower added the comment: Merged, and I am assuming the backports will merge fine too. Thanks for the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36261] email examples should not gratuitously mess with preamble

2019-07-14 Thread miss-islington
miss-islington added the comment: New changeset fb58024688050385ed2fd93caf02a5807d1ccfed by Miss Islington (bot) in branch '3.7': bpo-36261: Improve example of the preamble field in email docs (GH-14751) https://github.com/python/cpython/commit/fb58024688050385ed2fd93caf02a5807d1ccfed -

[issue36261] email examples should not gratuitously mess with preamble

2019-07-14 Thread miss-islington
miss-islington added the comment: New changeset 262779fb5038db7574180c6a89b4f0968f29bd79 by Miss Islington (bot) in branch '3.8': bpo-36261: Improve example of the preamble field in email docs (GH-14751) https://github.com/python/cpython/commit/262779fb5038db7574180c6a89b4f0968f29bd79 -

[issue37571] Incorrect use of c_char_p in example code

2019-07-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +14557 pull_request: https://github.com/python/cpython/pull/14762 ___ Python tracker ___ __

[issue37571] Incorrect use of c_char_p in example code

2019-07-14 Thread Steve Dower
Steve Dower added the comment: New changeset 6b929580eb018cfef386db7f7f66b3a58532eada by Steve Dower (Michele Angrisano) in branch 'master': bpo-37571: Add 'b' to prevent the TypeError exception. (GH-14721) https://github.com/python/cpython/commit/6b929580eb018cfef386db7f7f66b3a58532eada --

[issue37571] Incorrect use of c_char_p in example code

2019-07-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +14558 pull_request: https://github.com/python/cpython/pull/14763 ___ Python tracker ___ __

[issue37571] Incorrect use of c_char_p in example code

2019-07-14 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +14559 pull_request: https://github.com/python/cpython/pull/14764 ___ Python tracker ___ _

[issue37590] Remove redundant docs of PyEval_EvalFrameEx

2019-07-14 Thread hai shi
New submission from hai shi : PyEval_EvalFrameEx have been updated. so remove redundant info in https://github.com/python/cpython/blob/master/Python/ceval.c#L733-L738 -- assignee: docs@python components: Documentation messages: 347874 nosy: docs@python, shihai1991 priority: normal seve

[issue37571] Incorrect use of c_char_p in example code

2019-07-14 Thread miss-islington
miss-islington added the comment: New changeset e7c114df38eaef0cec3457f55835a2276eccbff6 by Miss Islington (bot) in branch '3.8': bpo-37571: Add 'b' to prevent the TypeError exception. (GH-14721) https://github.com/python/cpython/commit/e7c114df38eaef0cec3457f55835a2276eccbff6 -- no

[issue37590] Remove redundant docs of PyEval_EvalFrameEx

2019-07-14 Thread hai shi
hai shi added the comment: sorry, the upstair's comment is wrong PyEval_EvalFrameEx have been updated. so remove redundant info:`It is literally 2000 lines long.` -- ___ Python tracker _

[issue37590] Remove redundant docs of PyEval_EvalFrameEx

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

[issue37571] Incorrect use of c_char_p in example code

2019-07-14 Thread miss-islington
miss-islington added the comment: New changeset d7caf75c73626d7df4c0628c63761738b7063463 by Miss Islington (bot) in branch '3.7': bpo-37571: Add 'b' to prevent the TypeError exception. (GH-14721) https://github.com/python/cpython/commit/d7caf75c73626d7df4c0628c63761738b7063463 -- _

[issue37571] Incorrect use of c_char_p in example code

2019-07-14 Thread Steve Dower
Steve Dower added the comment: New changeset 68c74d05c1fdaf59d8711431884af975ac2ac5f8 by Steve Dower in branch 'master': bpo-37571: Remove extra space in ctypes docs (GH14764) https://github.com/python/cpython/commit/68c74d05c1fdaf59d8711431884af975ac2ac5f8 -- _

[issue37571] Incorrect use of c_char_p in example code

2019-07-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +14562 pull_request: https://github.com/python/cpython/pull/14767 ___ Python tracker ___ __

[issue37571] Incorrect use of c_char_p in example code

2019-07-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +14561 pull_request: https://github.com/python/cpython/pull/14766 ___ Python tracker ___ __

[issue37571] Incorrect use of c_char_p in example code

2019-07-14 Thread Steve Dower
Steve Dower added the comment: Thanks for the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36742] CVE-2019-10160: urlsplit NFKD normalization vulnerability in user:password@

2019-07-14 Thread Larry Hastings
Larry Hastings added the comment: New changeset 4655d576141ee56a69d2052431c636858fcb916a by larryhastings (Steve Dower) in branch '3.5': bpo-36742: Fixes handling of pre-normalization characters in urlsplit() (GH-13017) (#13042) https://github.com/python/cpython/commit/4655d576141ee56a69d205

[issue37590] Remove redundant docs of PyEval_EvalFrameEx

2019-07-14 Thread Steve Dower
Steve Dower added the comment: I agree. This isn't important information for the documentation anyway. -- nosy: +steve.dower versions: +Python 3.8, Python 3.9 ___ Python tracker _

[issue37590] Remove redundant docs of PyEval_EvalFrameEx

2019-07-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +14563 pull_request: https://github.com/python/cpython/pull/14768 ___ Python tracker ___ __

[issue37571] Incorrect use of c_char_p in example code

2019-07-14 Thread miss-islington
miss-islington added the comment: New changeset 4f733f48b48735231b79cd0f6605d3d0a2d5b511 by Miss Islington (bot) in branch '3.8': bpo-37571: Remove extra space in ctypes docs (GH14764) https://github.com/python/cpython/commit/4f733f48b48735231b79cd0f6605d3d0a2d5b511 --

[issue37524] IDLE error on closing 3.8+ debug build

2019-07-14 Thread Tal Einat
Tal Einat added the comment: > Doesn't reproduce on Win10 with current master. Sorry, my mistake; I meant to post that on #37551, and got mixed up. -- ___ Python tracker ___

[issue37571] Incorrect use of c_char_p in example code

2019-07-14 Thread miss-islington
miss-islington added the comment: New changeset 13c89f3c876363c44d35ec5f8dc374aecbca62a1 by Miss Islington (bot) in branch '3.7': bpo-37571: Remove extra space in ctypes docs (GH14764) https://github.com/python/cpython/commit/13c89f3c876363c44d35ec5f8dc374aecbca62a1 --

[issue37551] IDLE: Quitting with a new, unsaved editor window causes an exception

2019-07-14 Thread Tal Einat
Tal Einat added the comment: Doesn't reproduce on Win10 with current master. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37590] Remove redundant docs of PyEval_EvalFrameEx

2019-07-14 Thread hai shi
hai shi added the comment: Thanks, Steve -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue37553] SendfileUsingSendTest tests timeout too short for Windows ARM32

2019-07-14 Thread Steve Dower
Steve Dower added the comment: New changeset 52c8c090870c4e45dc48d1991d7ef7de2e40b2a8 by Steve Dower (Paul Monson) in branch 'master': bpo-37553: SendfileUsingSendTest tests timeout too short for Windows ARM32 (GH-14716) https://github.com/python/cpython/commit/52c8c090870c4e45dc48d1991d7ef7

[issue18049] Re-enable threading test on macOS

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've done some more testing, and the thread stack size could be smaller than 16MB, but definitely not as small as the value that's currently in thread_pthread.h. I prefer to have a slightly too large value here because IIRC the relation between the recursi

[issue36044] PROFILE_TASK for PGO build is not a good workload

2019-07-14 Thread Steve Dower
Steve Dower added the comment: Looking at PR 14702, I would much rather update what `-m test --pgo` does than make this exclusive to Makefile. Back when we added the --pgo flag, the intent was always to move toward an equivalently good profile, but for practical reasons we settled at the tim

[issue37590] Remove redundant docs of PyEval_EvalFrameEx

2019-07-14 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue37590] Remove redundant docs of PyEval_EvalFrameEx

2019-07-14 Thread Steve Dower
Steve Dower added the comment: New changeset 7a430109b983806c57babf229c60d0245d0b541c by Steve Dower (Miss Islington (bot)) in branch '3.8': bpo-37590: Remove redundant docs of PyEval_EvalFrameEx (GH-14765) https://github.com/python/cpython/commit/7a430109b983806c57babf229c60d0245d0b541c --

[issue37559] IDLE: Scrolling issues with code context shown

2019-07-14 Thread Tal Einat
Tal Einat added the comment: Regarding point #4, scrolling by dragging the scrollbar, note that the current PR for adding line numbers (GH-14030) does effectively the same when dragging on the line numbers to select lines. Therefore, if/when that PR is merged, this will become more common.

[issue37590] Remove redundant docs of PyEval_EvalFrameEx

2019-07-14 Thread Steve Dower
Steve Dower added the comment: The commit to master succeeded, but we missed the bpo number in the message, which is why it didn't appear here. -- ___ Python tracker ___

[issue37559] IDLE: Scrolling issues with code context shown

2019-07-14 Thread Tal Einat
Tal Einat added the comment: > One way to prevent the bouncing is to fix the CC height, like it used to be. +1 from me. I find this behavior very distracting and unnatural. I suggest we do consider reverting rather than adding another config value (minimum context lines), working towards ou

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

2019-07-14 Thread Steve Dower
Steve Dower added the comment: > Steve, there is a problem in both lines of this suggestion. The only problem is that you ran from your own build. Once running from an installed layout (which you can now easily generate with `python.bat PC\layout --preset-default --copy `), the comparison wi

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

2019-07-14 Thread Steve Dower
Steve Dower added the comment: > NameError: name 'get_default_location' is not defined Also, this was a hypothetical function that you would implement in IDLE to determine whatever the default location ought to be. I'm personally happy to stay out of that part of the argument. -- _

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2019-07-14 Thread STINNER Victor
STINNER Victor added the comment: Hum. In fact, this problem can be fixed differently: modify PyRun_xxx() functions to pass the filename as an Unicode string. Maybe pass it as a wchar_t* string or even a Python str object. -- ___ Python tracker <

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-07-14 Thread Larry Hastings
Larry Hastings added the comment: New changeset afe3a4975cf93c97e5d6eb8800e48f368011d37a by larryhastings (Miro Hrončok) in branch '3.5': bpo-30458: Disallow control chars in http URLs. (GH-12755) (#13207) https://github.com/python/cpython/commit/afe3a4975cf93c97e5d6eb8800e48f368011d37a

[issue37549] os.dup() fails for standard streams on Windows 7

2019-07-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +lukasz.langa, ned.deily priority: normal -> release blocker ___ Python tracker ___ ___ Python-b

[issue37551] IDLE: Quitting with a new, unsaved editor window causes an exception

2019-07-14 Thread Tal Einat
Tal Einat added the comment: This also happens on Ubuntu 18.10, with a traceback similar to that reported on issue #37524: Exception ignored in: Traceback (most recent call last): File "Lib/idlelib/run.py", line 488, in close File "Lib/idlelib/pyshell.py", line 1017, in close File "Lib

[issue37565] test_faulthandler failure

2019-07-14 Thread STINNER Victor
STINNER Victor added the comment: I don't know why you get a crash. Can you try attached sigusr1.py script? Expected output: $ python3 sigusr1.py called True -- Added file: https://bugs.python.org/file48479/sigusr1.py ___ Python tracker

[issue37565] test_faulthandler failure

2019-07-14 Thread STINNER Victor
STINNER Victor added the comment: > I found a similar error reported in RedHat bugzilla (1687171) and tried > running the script provided by Victor Stinner Link: https://bugzilla.redhat.com/show_bug.cgi?id=1687171 > and this closed issue on GitHub seems like it might be related? #32 because

[issue37570] [Windows] distutils.util.byte_compile() fails indirect byte compiling with non-ASCII full-path

2019-07-14 Thread STINNER Victor
Change by STINNER Victor : -- title: `distutils.util.byte_compile` fails indirect byte compiling with non-ASCII full-path. -> [Windows] distutils.util.byte_compile() fails indirect byte compiling with non-ASCII full-path ___ Python tracker

[issue37570] [Windows] distutils.util.byte_compile() fails indirect byte compiling with non-ASCII full-path

2019-07-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue18049] Re-enable threading test on macOS

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: W.r.t. PyOS_CheckStack: I had that idea last year as well, and someone contributed a pull request, see issue33955. -- ___ Python tracker __

[issue37583] Got a 113 error when running the test_socket

2019-07-14 Thread STINNER Victor
STINNER Victor added the comment: Can you copy/paste the full output of test_socket, or better: of the whole test suite? Put it in a file and attach it to the issue. -- ___ Python tracker __

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

2019-07-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +inada.naoki, pablogsal, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2019-07-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue25433] whitespace in strip()/lstrip()/rstrip()

2019-07-14 Thread Ulf Rompe
Change by Ulf Rompe : -- pull_requests: +14564 pull_request: https://github.com/python/cpython/pull/14771 ___ Python tracker ___ ___

[issue36742] CVE-2019-10160: urlsplit NFKD normalization vulnerability in user:password@

2019-07-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14565 pull_request: https://github.com/python/cpython/pull/14772 ___ Python tracker ___ __

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

2019-07-14 Thread Paul Ganssle
Change by Paul Ganssle : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

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

2019-07-14 Thread miss-islington
miss-islington added the comment: New changeset c6b31061997526b31961ec34328408ca421f51fc by Miss Islington (bot) (Xtreak) in branch '3.7': [3.7] bpo-37579: Improve equality behavior for pure Python datetime and time (GH-14726) (GH-14745) https://github.com/python/cpython/commit/c6b3106199752

[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2019-07-14 Thread Arnold Dumas
Change by Arnold Dumas : -- pull_requests: +14566 pull_request: https://github.com/python/cpython/pull/14773 ___ Python tracker ___

[issue37583] Got a 113 error when running the test_socket

2019-07-14 Thread hai shi
hai shi added the comment: sure, i copied the full output of test_socket. more failed test case looks like need add two property functions. -- Added file: https://bugs.python.org/file48480/test_socket_fail_info.txt ___ Python tracker

[issue30757] pyinstaller can be added to docs, py2exe ref can be updated

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: Please also add a reference to py2app (at least of the programming FAQ as py2app is macOS-only). -- nosy: +ronaldoussoren ___ Python tracker __

[issue21861] io class name are hardcoded in reprs

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

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-07-14 Thread Maayan Keshet
Maayan Keshet added the comment: Hey Ben! Unfortunately our use case is too involved to distill into a neat example. We use a websocket library (autobahn) to connect to a server of a 3rd party which is outside our control (which is not written in python, but rather node.js). We receive the e

[issue25433] whitespace in strip()/lstrip()/rstrip()

2019-07-14 Thread Ulf Rompe
Change by Ulf Rompe : -- pull_requests: +14569 pull_request: https://github.com/python/cpython/pull/14775 ___ Python tracker ___ ___

[issue34749] improve performance of binascii.a2b_base64()

2019-07-14 Thread miss-islington
miss-islington added the comment: New changeset 1c5e68e7145f0825f9b952389141edb9436eb43d by Miss Islington (bot) (Sergey Fedoseev) in branch 'master': bpo-34749: Improved performance of binascii.a2b_base64(). (GH-9444) https://github.com/python/cpython/commit/1c5e68e7145f0825f9b952389141edb94

[issue37591] test_concurrent_future failed

2019-07-14 Thread Martin Bammer
New submission from Martin Bammer : When building Python 3.7.4 from source on Ubuntu 18.10 I'm getting the following error: 0:04:38 load avg: 2.40 [ 78/416] test_complex 0:04:39 load avg: 2.40 [ 79/416] test_concurrent_futures Traceback: Thread 0x7f936b7fe700 (most recent call first):

[issue15730] Silence unused value warnings under Mac OS X 10.8/clang

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm closing this as out of date. -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue34105] test_socket.test_host_resolution_bad_address fails on Mac OS X 10.13.6

2019-07-14 Thread Ronald Oussoren
Change by Ronald Oussoren : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue37588] Py_DEPRECATED and unavoidable warnings

2019-07-14 Thread Zackery Spytz
Zackery Spytz added the comment: > I would like some way of locally suppressing Py_DEPRECATED. There was some discussion (and a pull request) on bpo-19569. -- nosy: +ZackerySpytz ___ Python tracker

[issue37291] AST - code cleanup

2019-07-14 Thread Zackery Spytz
Zackery Spytz added the comment: The linked PR was merged, so I think this issue can be closed. -- nosy: +ZackerySpytz ___ Python tracker ___ _

[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't agree with calling lstrip() before checking which format is used because leading whitespace is invalid for binary plist files (and plutil agrees with me on that). -- ___ Python tracker

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

2019-07-14 Thread Ezio Melotti
Ezio Melotti added the comment: The current behavior is inconsistent because the start position accepts both positive and negative indices, whereas the end position only accepts positive indices. I think the proposal and the PR written by Anil are reasonable and should be merged. --

[issue15898] OSX TTY bug

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is IMHO not a bug in Python, the problem can been seen when you rewrite the code in msg170261 in C, see the code below. An observation with the C code below: Both moving ``close(slave)`` to above the sleep or removing that close entirely fixes the prob

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

2019-07-14 Thread Ezio Melotti
Ezio Melotti added the comment: Sorry, I was wrong. re.findall accepts negative indices for both start and end but they silently get converted to 0, which is arguably an unexpected behavior. This is an example of the current behavior: >>> s, e = 1, 4; re.compile('.').findall('abcde', s, e),

[issue33450] unexpected EPROTOTYPE returned by sendto on MAC OSX

2019-07-14 Thread Ronald Oussoren
Change by Ronald Oussoren : -- assignee: -> ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue37592] sysconfig should not rely on sys.version

2019-07-14 Thread Carl Bordum Hansen
New submission from Carl Bordum Hansen : I found this FIXME and replaced it with code that follows the git tags naming scheme. -- components: Library (Lib) messages: 347916 nosy: carlbordum, tarek priority: normal severity: normal status: open title: sysconfig should not rely on sys.ve

[issue36044] PROFILE_TASK for PGO build is not a good workload

2019-07-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: As far as where to put the lists of tests, you're probably right. putting it within test.regrtest itself under the --pgo banner makes sense. (though we should keep logic to accept a list of explicit tests to add or exclude if the user has also provided t

[issue37592] sysconfig should not rely on sys.version

2019-07-14 Thread Carl Bordum Hansen
Change by Carl Bordum Hansen : -- keywords: +patch pull_requests: +14570 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14776 ___ Python tracker _

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

2019-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are there any real world examples which show the benefit of supporting negative indices? -- ___ Python tracker ___

[issue30588] Missing documentation for codecs.escape_decode

2019-07-14 Thread Carl Bordum Hansen
Carl Bordum Hansen added the comment: You have a point, the function is not in codecs.__all__. Reading the stackoverflow questions, it seems like this is a function that is useful. -- nosy: +carlbordum ___ Python tracker

[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: lstrip() would not work with UTF-16 encoded plist files neither with BOM. Who produces plist files with leading whitespaces? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: @shaneg, could you elaborate on why you created this issue? I don't know of tooling that would generate such files, and it is highly unlikely that Apple's system tooling/libraries would do so. -- ___ Python track

[issue30588] Missing documentation for codecs.escape_decode

2019-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Reading the stackoverflow questions, I am not sure that this function would be useful for the author of the question. He just needs to remove b'\\000', this is only what we know. There are many ways to do it, and after using codecs.escape_decode() you will

[issue37291] AST - code cleanup

2019-07-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-07-14 Thread Shane G
Shane G added the comment: This issue was created because I ran across a plist like this when parsing entitlements in an IPA. I assume that this happened by some unusual step in the toolchain when building the application. To some other points: * agreed lstrip()ing just the key would not wo

[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: You can always strip the file yourself :-) Ignoring leading whitespace for XML would be fairly invasive due to the way the code is set up. I'm not set against it, but I'm not in favour of complicating the implementation for an edge case like this.

[issue37482] Email address display name fails with both encoded words and special chars

2019-07-14 Thread B Siemerink
B Siemerink added the comment: Yes, you are right! The fix is to encode the special characters. -- ___ Python tracker ___ ___ Pytho

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

2019-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In general case the AST does not preserve detailed information about all syntactic elements. For example in the AST for `a + b` does not include lineno and col_offset for "+". >>> ast.dump(ast.parse('a + b'), include_attributes=True) "Module(body=[Expr(val

[issue15386] Still getting two copies of importlib._bootstrap

2019-07-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8b7db5a1114e2113a756bdf8877fbe366055c69a by Victor Stinner in branch 'master': bpo-37473: Don't import importlib ASAP in tests (GH-14661) https://github.com/python/cpython/commit/8b7db5a1114e2113a756bdf8877fbe366055c69a -- nosy: +vstin

[issue37473] importlib: Remove libregrtest hack: "We import importlib *ASAP* in order to test #15386"

2019-07-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8b7db5a1114e2113a756bdf8877fbe366055c69a by Victor Stinner in branch 'master': bpo-37473: Don't import importlib ASAP in tests (GH-14661) https://github.com/python/cpython/commit/8b7db5a1114e2113a756bdf8877fbe366055c69a -- ___

[issue37473] importlib: Remove libregrtest hack: "We import importlib *ASAP* in order to test #15386"

2019-07-14 Thread STINNER Victor
STINNER Victor added the comment: I merged your PR. If someone considers than test_there_can_be_only_one() is not enough, please add a new test. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue19820] docs are missing info about module attributes

2019-07-14 Thread M. Anil Tuncel
M. Anil Tuncel added the comment: Are they still missing? inspect.ismodule() seems to be there at least. https://docs.python.org/3/library/inspect.html -- nosy: +anilbey ___ Python tracker __

[issue37559] IDLE: Scrolling issues with code context shown

2019-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whereas I found the fixed size to be much less usable. The default of 3 lines was too few and often useless when context is needed whereas a realistic size of, say, 8, wasted too much space too much of the time. I might prefer deleting the feature to rever

[issue37593] ast.arguments has confusing args/posonlyargs ordering

2019-07-14 Thread Benjamin S Wolf
New submission from Benjamin S Wolf : Positional-only arguments come before position-or-keyword arguments. def f(pos1, pos2, /, pos_or_kwd, *, kwd1, kwd2): However, the posonlyargs are defined to come after args in the AST: arguments = (arg* args, arg* posonlyargs, arg? vararg, arg* k

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
New submission from brent s. : (Sorry for the title; not quite sure how to summarize this) SO! Have I got an interesting one for you. ISSUE: In release 3.7.3 (and possibly later), the re module, if one has a string e.g. 'a.b.', a pattern such as '\.*$' will successfully *match* any number of

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
brent s. added the comment: Sorry- by "chokes", I mean "substitutes in multiple replacements". -- ___ Python tracker ___ ___ Python

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
brent s. added the comment: WORKAROUND: Obviously, str.rstrip('.') still works, but this is of course quite inflexible compared to a regex pattern. -- ___ Python tracker ___

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread Eric V. Smith
Eric V. Smith added the comment: '\.' is an invalid escape sequence. Could you try it with a raw string? Also, it's not really clear to me what you're seeing, vs. what you expect to see. For one example that you think is incorrect, could you show what you get vs. what you expect to get? And,

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change was intentional and documented. It fixed old bug in the Python implementation of RE and removed the discrepancy with other RE engines. The pattern r'\.*$' matches not only a sequence of dots at the of the line, but also an empty string at the e

[issue30550] Document order-preserving dictionary output in json

2019-07-14 Thread Eric O. LEBIGOT
Eric O. LEBIGOT added the comment: Kyle, what you're saying is correct but is unfortunately unrelated to any of the points in the original issue. In fact, the JSON encoder does preserve whatever order the dictionary elements are in, and it would be useful to document this. Thus, if a user gi

  1   2   >