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

2019-07-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Elizabeth for the test. The regression test seems to be same as the case noted by Serhiy that Foo.__eq__ is not returning NotImplemented so that ANY.__eq__ can be executed. Below would be the correct implementation that passes. The actual

[issue29753] Ctypes Packing Bitfields Incorrectly - Linux

2019-07-14 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue37496] Support annotations in signature strings.

2019-07-14 Thread Giovanni Cappellotto
Change by Giovanni Cappellotto : -- nosy: +potomak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue37461] email.parser.Parser hang

2019-07-14 Thread Nam Nguyen
Change by Nam Nguyen : -- nosy: +Nam.Nguyen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue37595] Python 3.7.4 does not build on Raspbian Buster

2019-07-14 Thread Kal Sze
New submission from Kal Sze : Like the title says. Tried building with these `configure` options: --enable-optimizations \ --with-lto \ --enable-shared \ --enable-loadable-sqlite-extensions \ --enable-ipv6 \ --with-system-expat \ --with-system-ffi \ --with-syste

[issue34749] improve performance of binascii.a2b_base64()

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

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

2019-07-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the report, Benjamin! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

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

2019-07-14 Thread miss-islington
miss-islington added the comment: New changeset cf9a63c6c7e19f3d27cf3b5731d02cc216ef3dd1 by Miss Islington (bot) in branch '3.8': bpo-37593: Swap the positions of posonlyargs and args in the constructor of ast.parameters nodes (GH-14778) https://github.com/python/cpython/commit/cf9a63c6c7e19

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

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

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

2019-07-14 Thread miss-islington
miss-islington added the comment: New changeset cd6e83b4810549c308ab2d7315dbab526e35ccf6 by Miss Islington (bot) (Pablo Galindo) in branch 'master': bpo-37593: Swap the positions of posonlyargs and args in the constructor of ast.parameters nodes (GH-14778) https://github.com/python/cpython/c

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

2019-07-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +14574 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14778 ___ Python tracker __

[issue34543] _struct.Struct: calling functions without calling __init__ results in SystemError

2019-07-14 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 2.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bug

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread Eric V. Smith
Eric V. Smith added the comment: Sorry. '\.' will be invalid in the future. I got ahead of myself. $ python3 -Werror -q >>> '\.' File "", line 1 SyntaxError: invalid escape sequence \. Not that it would have affected your issue, so I apologize for the red herring. But "switch to raw strin

[issue34543] _struct.Struct: calling functions without calling __init__ results in SystemError

2019-07-14 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +14573 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14777 ___ Python tracker ___ __

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
brent s. added the comment: Oh for pete's sake. I wish I could edit comments. Eric- To make it clear: * VERSION: 2.7.16 (default, Mar 11 2019, 18:59:25) [GCC 8.2.1 20181127] PATTERN: \.*$ BEFORE: a.b WITHOUT: a.b DUMMY: a.bX AFTER: a.b. RSTRIP: a.b == BEFORE: a.b. WITHOUT: a.b DUMMY:

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
brent s. added the comment: "'\.' is an invalid escape sequence. Could you try it with a raw string?" Well, a valid regex escape, but right. Point taken. I am under the impression, however, that given the value in ptrn (in example.py) is already a string, it should be interpreted as a raw st

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

2019-07-14 Thread Elizabeth Uselton
Elizabeth Uselton added the comment: Hi there, I completely missed that this had caused so much interesting discussion. I've added a regression test that shows the bug I was encountering, which seems to be related to spec_set bypassing _Call's overwritten __eq__ and so not respecting ANY h

[issue28009] core logic of uuid.getnode() needs refresh

2019-07-14 Thread Tal Einat
Tal Einat added the comment: >> The current code and proposed changes use 'netstat -ia' to find the node >> however if netstat needs to perform a reverse DNS query to resolve some >> interfaces this makes using uuid1 *really* slow especially when reverse DNS >> queries aren't set up correctl

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

2019-07-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +levkivskyi, pablogsal, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list m

[issue37461] email.parser.Parser hang

2019-07-14 Thread Alex Gaynor
Change by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[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

[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

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

[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

[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

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

[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

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

[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

[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

[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

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

[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

[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

[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

[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

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

[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

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

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

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

[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

[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),

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

[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

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

[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

[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

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

[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):

[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

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

[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

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

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

[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

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

[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

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

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

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

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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

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

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

[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

[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

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

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

[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

[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

[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

[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

[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

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

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

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

[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

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

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

  1   2   >