[issue37758] unicodedata checksum-tests only test 1/17th of Unicode's codepoints

2019-08-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset def97c988be8340f33869b57942a30d10fc3a1f9 by Benjamin Peterson (Greg Price) in branch 'master': bpo-37758: Clean out vestigial script-bits from test_unicodedata. (GH-15126)

[issue37831] bool(~True) == True

2019-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: :-D -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +14967 pull_request: https://github.com/python/cpython/pull/15246 ___ Python tracker ___

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-12 Thread Dong-hee Na
Dong-hee Na added the comment: @rhettinger Hi, Can I work on this issue? It might be my first C module addition task for CPython. -- nosy: +corona10 ___ Python tracker ___

[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-12 Thread miss-islington
miss-islington added the comment: New changeset 4e3dfcc4b987e683476a1b16456e57d3c9f581cb by Miss Islington (bot) (Greg Price) in branch 'master': bpo-37760: Mark all generated Unicode data headers as generated. (GH-15171)

[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +14966 pull_request: https://github.com/python/cpython/pull/15245 ___ Python tracker ___

[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset ef2af1ad44be0542a47270d5173a0b920c3a450d by Benjamin Peterson (Greg Price) in branch 'master': bpo-37760: Factor out the basic UCD parsing logic of makeunicodedata. (GH-15130)

[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for working this. In your interested in doing some more hacking on Unicode data, there's #32771. -- nosy: +benjamin.peterson ___ Python tracker

[issue21109] tarfile: Traversal attack vulnerability

2019-08-12 Thread Ashwin Ramaswami
Ashwin Ramaswami added the comment: I've added a PR in which I'm working on adding in the tests. Wanted to make sure this is the approach you had in mind? It wasn't as simple as how tests are handled in, say, test_binascii.py, because over there there was only one class that handled the

[issue21109] tarfile: Traversal attack vulnerability

2019-08-12 Thread Ashwin Ramaswami
Change by Ashwin Ramaswami : -- pull_requests: +14965 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/15244 ___ Python tracker ___

[issue37833] tkinter crashes macOS in the latest macOS update 10.14.6

2019-08-12 Thread Kevin Walzer
Kevin Walzer added the comment: Hard to say what is going on without knowing more about the specific version of Tk (not just 8.6, but 8.6.8? 8.6.9?). -- ___ Python tracker

[issue31601] Availability of utimensat, futimens not checked correctly on macOS

2019-08-12 Thread Gregory Szorc
Gregory Szorc added the comment: I ran into this with PyOxidizer. CPython's `configure` needs to be made aware of the current macOS SDK version and filter out symbols not present in the target macOS version. I worked around it by `undef`'ing some entries from the generated `pyconfig.h`

[issue37677] Seg Fault on OSX when multiprocessing

2019-08-12 Thread alvis
alvis added the comment: Hi, sorry i am unable to provide a standalone script that cause this issue, as it happen once every few weeks. Is it similar to the no_proxy=* issue? -- ___ Python tracker

[issue37826] Document PEP 3134 in tutorials/errors.rst

2019-08-12 Thread Abhilash Raj
Change by Abhilash Raj : -- keywords: +patch pull_requests: +14964 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15243 ___ Python tracker ___

[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread ppperry
ppperry added the comment: Unfortunately, there's a similar bug for `break` in a finally inside two nested loops, so just re-banning `continue` won't fix the crash. The code below segfaults: ``` def simple(): for number in range(2): for number in range(2): try:

[issue22811] _top_level_dir state leaks on defaultTestLoader

2019-08-12 Thread Zackery Spytz
Zackery Spytz added the comment: It seems that this issue is a duplicate of bpo-15010. -- nosy: +ZackerySpytz ___ Python tracker ___

[issue15010] unittest: _top_level_dir is incorrectly persisted between calls to different load_test methods

2019-08-12 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.2, Python 3.3 ___ Python tracker ___

[issue15010] unittest: _top_level_dir is incorrectly persisted between calls to different load_test methods

2019-08-12 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +14963 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15242 ___ Python tracker ___

[issue37759] Polish whatsnew for 3.8

2019-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 9bedb8c9e60fab4f49ee12b95f8073ee9f577f81 by Raymond Hettinger in branch '3.8': bpo-37759: Second round of edits to Whatsnew 3.8 (GH-15204) (GH-15240) https://github.com/python/cpython/commit/9bedb8c9e60fab4f49ee12b95f8073ee9f577f81

[issue37759] Polish whatsnew for 3.8

2019-08-12 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +14962 pull_request: https://github.com/python/cpython/pull/15241 ___ Python tracker ___

[issue37826] Document PEP 3134 in tutorials/errors.rst

2019-08-12 Thread Abhilash Raj
Abhilash Raj added the comment: Yes, I am gonna work on a PR. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37759] Polish whatsnew for 3.8

2019-08-12 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +14961 pull_request: https://github.com/python/cpython/pull/15240 ___ Python tracker ___

[issue37831] bool(~True) == True

2019-08-12 Thread Eryk Sun
Eryk Sun added the comment: We could extend bool with shades of grey that close the 2-bit, signed set over the complement: {-2, -1, 0, 1}. For example, the bitwise complement of False could be RealNews (-1, 0x11) and the bitwise complement of True could be FakeNews (-2, 0x10). The bool()

[issue37831] bool(~True) == True

2019-08-12 Thread Tim Peters
Tim Peters added the comment: BTW, I should clarify that I think the real "sin" here was making bool a subclass of int to begin with. For example, there's no sane reason at all for bools to support division, and no reason for a distinct type not to define "~" any way it feels like.

[issue16958] The sqlite3 context manager does not work with isolation_level=None

2019-08-12 Thread Charles
Charles added the comment: > With isolation_level set to None, the sqlite3 library is in autocommit mode, > so changes will get committed immediately inside the with, which is simply > broken. Not necessarily. When sqlite is in autocommit mode, you can still open transactions by executing

[issue34916] Add create_window_function() to sqlite3.Connection

2019-08-12 Thread Charles
Charles added the comment: I've implemented this in a fork / standalone packaging of the Python 3.x sqlite3 module. You can find the relevant portions (and a couple unrelated changes) in this commit: https://github.com/coleifer/pysqlite3/commit/91c20016fd3fd3d1d7ade475893046958f7faa00

[issue37764] email.Message.as_string infinite loop

2019-08-12 Thread Ashwin Ramaswami
Ashwin Ramaswami added the comment: Oh, both the Travis links I sent actually ended up reproducing the bug. I've made a PR that fixes with an even smaller test case: get_unstructured('=?utf-8?q?somevalue?=aa') It looks like this is caused because "aa" is thought to be an encoded word

[issue37764] email.Message.as_string infinite loop

2019-08-12 Thread Ashwin Ramaswami
Change by Ashwin Ramaswami : -- keywords: +patch pull_requests: +14960 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15239 ___ Python tracker

[issue37834] readlink on Windows cannot read app exec links

2019-08-12 Thread Steve Dower
Steve Dower added the comment: Thanks Eryk for your valuable response :) > readlink() and is_link() should be reserved for POSIX symlinks, i.e. only > IO_REPARSE_TAG_SYMLINK. I'm okay with that reasoning. Honestly, the only real problem I've seen is in applications that use a

[issue37759] Polish whatsnew for 3.8

2019-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 66a34d35e4c97da9840a29ba9fba76721021c463 by Raymond Hettinger in branch 'master': bpo-37759: Second round of edits to Whatsnew 3.8 (GH-15204) https://github.com/python/cpython/commit/66a34d35e4c97da9840a29ba9fba76721021c463 --

[issue37834] readlink on Windows cannot read app exec links

2019-08-12 Thread Eryk Sun
Eryk Sun added the comment: > How about adding a separate function such as nt.read_reparse_point() If we support reading junctions, this should be using the substitute name (with \??\ replaced by \\?\) instead of the print name. For both symlinks and junctions, [MS-FSCC] 2.1.2 states that

[issue37834] readlink on Windows cannot read app exec links

2019-08-12 Thread Eryk Sun
Eryk Sun added the comment: Symlinks are specially interpreted by the file API, I/O manager, and network redirector. So I think they should remain a separate category. readlink() and is_link() should be reserved for POSIX symlinks, i.e. only IO_REPARSE_TAG_SYMLINK. These app-exec reparse

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-08-12 Thread miss-islington
miss-islington added the comment: New changeset 2b98d8ec7ec3d41c6403ff9f6677a00ea0cb8b92 by Miss Islington (bot) in branch '3.8': bpo-37354: Sign Activate.ps1 for release (GH-15235) https://github.com/python/cpython/commit/2b98d8ec7ec3d41c6403ff9f6677a00ea0cb8b92 -- nosy:

[issue37834] readlink on Windows cannot read app exec links

2019-08-12 Thread Steve Dower
Steve Dower added the comment: Added an update with a new stat field (st_reparse_tag) so that we can tell them apart, which also means I can add a test for readlink. -- assignee: -> steve.dower ___ Python tracker

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-08-12 Thread Steve Dower
Steve Dower added the comment: Thanks, Derek! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-08-12 Thread Steve Dower
Steve Dower added the comment: New changeset 3e34a25a7a5c9ea2c46f2daeeb60f072faa5aaa1 by Steve Dower in branch 'master': bpo-37354: Sign Activate.ps1 for release (GH-15235) https://github.com/python/cpython/commit/3e34a25a7a5c9ea2c46f2daeeb60f072faa5aaa1 --

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-08-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +14959 pull_request: https://github.com/python/cpython/pull/15236 ___ Python tracker ___

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-08-12 Thread Steve Dower
Steve Dower added the comment: New changeset 0c64b57e0155c333b7c96ec2af009c1388cd5d31 by Steve Dower (Miss Islington (bot)) in branch '3.8': [3.8] bpo-37354: Make Powershell Activate.ps1 script static to allow for signing (GH-14967)

[issue37831] bool(~True) == True

2019-08-12 Thread Tim Peters
Tim Peters added the comment: I don't agree that "~" doesn't "work". If people are reading it as "not", they're in error. The Python docs say ~x means the bits of x inverted and that's what it does. There's no sense it which it was _intended_ to be logical negation, no more in

[issue37831] bool(~True) == True

2019-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: It may have been a mistake to directly support | & and ^. That implies ~ should work. The fallback is to use "not" but that looks weird and has the wrong operator precedence: (not a) ^ (not b & c) -- ___

[issue37831] bool(~True) == True

2019-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay, we'll just continue to tell users "you're holding it wrong" ;-) -- stage: -> resolved status: open -> closed ___ Python tracker

[issue37833] tkinter crashes macOS in the latest macOS update 10.14.6

2019-08-12 Thread Ned Deily
Ned Deily added the comment: Thanks for the link but that really doesn’t pin down exactly what Tk is in use. This probably should be pursued with the Tk project. Adding Kevin Walzer from Tk: Kevin, does this problem sound familiar? -- nosy: +wordtech

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-08-12 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +14958 pull_request: https://github.com/python/cpython/pull/15235 ___ Python tracker ___

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-08-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +14957 pull_request: https://github.com/python/cpython/pull/15233 ___ Python tracker ___

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-08-12 Thread Steve Dower
Steve Dower added the comment: New changeset 732775d6be8062e72cf4995d5a9db0170e22c233 by Steve Dower (Derek Keeler) in branch 'master': bpo-37354: Make Powershell Activate.ps1 script static to allow for signing (GH-14967)

[issue37833] tkinter crashes macOS in the latest macOS update 10.14.6

2019-08-12 Thread Ricardo Smits
Ricardo Smits added the comment: I am on a Conda environment with Python 3.7.4 with the corresponding Tkinter 8.6 that came with it. I tried to use some apps I compiled with Pyinstaller and all of them caused this crash. So I tried line by line on the terminal (to cross out Pyinstaller as the

[issue16637] py-bt, py-locals, etc. GDB commands fail with output-radix 16

2019-08-12 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +14956 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15232 ___ Python tracker ___

[issue37831] bool(~True) == True

2019-08-12 Thread Mark Dickinson
Mark Dickinson added the comment: > isn't `int()` the obvious way "to convert an integer-like thing to an actual > int"? Well sorta, except that it's too lenient, letting in strings, floats, Decimal instances and the like. The strings isn't so much of an issue - it's more the silent

[issue37831] bool(~True) == True

2019-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For reference, the link to the Python-Ideas discussion in Mailman 3: https://mail.python.org/archives/list/python-id...@python.org/thread/7UR3XGXNLGCM6QFR7KTIQ2QGVRS6QNZH/ -- ___ Python tracker

[issue37831] bool(~True) == True

2019-08-12 Thread Tim Peters
Tim Peters added the comment: Mark, isn't `int()` the obvious way "to convert an integer-like thing to an actual int"? >>> int(True) 1 >>> int(False) 0 For the rest, I'm -True on making ~ do something magical for bools inconsistent with what it does for ints. "is-a" is a promise.

[issue37834] readlink on Windows cannot read app exec links

2019-08-12 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +14955 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15231 ___ Python tracker ___

[issue37834] readlink on Windows cannot read app exec links

2019-08-12 Thread Steve Dower
Change by Steve Dower : -- nosy: +eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37834] readlink on Windows cannot read app exec links

2019-08-12 Thread Steve Dower
New submission from Steve Dower : The IO_REPARSE_TAG_APPEXECLINK was introduced for aliases to installed UWP apps that require activation before they can be executed. Currently these are in an unusual place as far as Python support goes - stat() fails where lstat() succeeds, but the lstat()

[issue37833] tkinter crashes macOS in the latest macOS update 10.14.6

2019-08-12 Thread Ned Deily
Ned Deily added the comment: Can you be more specific about the source of your Pythons and Tk 8.6 and exactly what version it is? Tk through tkinter seems to work as expected (and without a crash) when I try the current Python.org pythons with their built-in Tk 8.6.6 or current MscPorts

[issue37831] bool(~True) == True

2019-08-12 Thread Mark Dickinson
Mark Dickinson added the comment: There's also the minor annoyance that there isn't currently an obvious safe way to convert an integer-like thing to an actual int, to make sure that bools do the right thing in a numeric context. operator.index *ought* to be that obvious way, but it leaves

[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread Batuhan
Batuhan added the comment: I closed the my PR in favor of Serhiy's PR. On Mon, Aug 12, 2019, 9:18 PM Serhiy Storchaka wrote: > > Change by Serhiy Storchaka : > > > -- > pull_requests: +14953 > pull_request: https://github.com/python/cpython/pull/15230 > >

[issue37831] bool(~True) == True

2019-08-12 Thread Mark Dickinson
Mark Dickinson added the comment: > Making True == -1 looks interesting, but it has drawbacks. Yes, please ignore that part of my post. :-) It shouldn't be considered seriously until a time machine turns up (and probably not even then). My main worry with the proposed change is accidental

[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +14953 pull_request: https://github.com/python/cpython/pull/15230 ___ Python tracker ___

[issue32489] Allow 'continue' in 'finally' clause

2019-08-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +14954 pull_request: https://github.com/python/cpython/pull/15230 ___ Python tracker ___

[issue37804] Remove Thread.isAlive in Python 3.9

2019-08-12 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37804] Remove Thread.isAlive in Python 3.9

2019-08-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 44046fe4fc7f00a6eb855b33e6a3f953cf5233a5 by Victor Stinner (Dong-hee Na) in branch 'master': bpo-37804: Remove the deprecated method threading.Thread.isAlive() (GH-15225)

[issue37831] bool(~True) == True

2019-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: -1 from me too. Making True == -1 looks interesting, but it has drawbacks. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue32912] Raise non-silent warning for invalid escape sequences

2019-08-12 Thread Steve Dower
Change by Steve Dower : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37583] Got a 113 error when running the test_socket

2019-08-12 Thread hai shi
hai shi added the comment: Oh, sorry, victor. I use ./python -m unittest xxx before. Updating the test result again. -- Added file: https://bugs.python.org/file48538/test_socket_fail_info_v2.txt ___ Python tracker

[issue23837] asyncio: read pipe transport tries to resume reading after loop is gone

2019-08-12 Thread Sascha Silbe
Change by Sascha Silbe : -- nosy: +sascha_silbe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37831] bool(~True) == True

2019-08-12 Thread Mark Dickinson
Change by Mark Dickinson : -- stage: resolved -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37831] bool(~True) == True

2019-08-12 Thread Mark Dickinson
Mark Dickinson added the comment: See also the discussion started by Antoine here: https://mail.python.org/pipermail//python-ideas/2016-April/039488.html -- ___ Python tracker

[issue37831] bool(~True) == True

2019-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: +0 This proposal may be worth re-considering. I've seen the problem arise in practice on multiple occasions. I suspect that it will continue to give people trouble. Right now, a bool is-a int that 1) only has two singleton instances equal to zero and

[issue37564] ArgumentParser should support bool type according to truth values

2019-08-12 Thread paul j3
paul j3 added the comment: This patch lacks proper documentation, and is too English language specific. For users who assume 'type' means a class rather than function (callable) this change does not need documentation, since it accommodates that assumption. But more experienced users, or

[issue35855] IDLE squeezer: improve unsqueezing and autosqueeze default

2019-08-12 Thread Tal Einat
Tal Einat added the comment: See issue #37768 regarding opening of help(object) output in a separate window. -- ___ Python tracker ___

[issue37831] bool(~True) == True

2019-08-12 Thread Josh Rosenberg
Change by Josh Rosenberg : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> ~True is not False ___ Python tracker ___

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2019-08-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14952 pull_request: https://github.com/python/cpython/pull/15228 ___ Python tracker ___

[issue37398] contextlib.ContextDecorator decorating async functions

2019-08-12 Thread Yury Selivanov
Yury Selivanov added the comment: > I think a simple iscoroutinefunction check will be pretty close to 100% > matching what users expect. Yes, "pretty close", but not reliable. :) E.g. I can easily design a decorator that when applied first would break the proposed iscoroutinefunction

[issue37833] tkinter crashes macOS in the latest macOS update 10.14.6

2019-08-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is almost certainly a bug in macOS. I wonder if it is possible to work around it in Python. -- ___ Python tracker ___

[issue37642] timezone allows no offset from range (23:59, 24:00)

2019-08-12 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +14951 pull_request: https://github.com/python/cpython/pull/15227 ___ Python tracker ___

[issue37642] timezone allows no offset from range (23:59, 24:00)

2019-08-12 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +14950 pull_request: https://github.com/python/cpython/pull/15226 ___ Python tracker ___

[issue37804] Remove Thread.isAlive in Python 3.9

2019-08-12 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +14949 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15225 ___ Python tracker ___

[issue37833] tkinter crashes macOS in the latest macOS update 10.14.6

2019-08-12 Thread Ricardo Smits
New submission from Ricardo Smits : tkVersion == 8.6 After the new update in macOS (10.14.6): In any python interpreter, when running tk.Tk() it makes macOS crash and logout giving the following error: $ CGSTrackingRegionSetIsEnabled returned CG error 268435459 $ HIToolbox: received

[issue15266] Perform the same checks as PyPI for Description field

2019-08-12 Thread Giovanni Cappellotto
Change by Giovanni Cappellotto : -- nosy: -potomak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37415] Error build Python with Intel compiler: doesn't provide atomic_uintptr_t

2019-08-12 Thread STINNER Victor
STINNER Victor added the comment: > Changing Include/pyatomic.h to use _Atomic as suggested by Victor in > msg346785 leads to the error that _Atomic was undefined. No idea how to define a "_Py_atomic_address" type with icc 2019.4 in this case. If someone has a working patch, I can review it

[issue15266] Perform the same checks as PyPI for Description field

2019-08-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: -easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15266] Perform the same checks as PyPI for Description field

2019-08-12 Thread STINNER Victor
STINNER Victor added the comment: > Why are can I still find these issues in the "Easy issues" list? My bad... I only added a comment but forgot to remove the easy keyword. It's now removed ;-) -- ___ Python tracker

[issue36974] Implement PEP 590

2019-08-12 Thread STINNER Victor
STINNER Victor added the comment: 'SystemError: bad call flags' error message LGTM, I don't think that it should be changed. > Are there many projects that define functions/methods but never call them? I have no idea. -- ___ Python tracker

[issue37583] Got a 113 error when running the test_socket

2019-08-12 Thread STINNER Victor
STINNER Victor added the comment: I don't understand such error: == ERROR: testSendmsgBadMultiCmsg (test.test_socket.SendmsgTests) -- Traceback (most recent

[issue37774] Micro-optimize vectorcall using PY_LIKELY

2019-08-12 Thread STINNER Victor
STINNER Victor added the comment: My previous attempt: bpo-29461. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37774] Micro-optimize vectorcall using PY_LIKELY

2019-08-12 Thread STINNER Victor
STINNER Victor added the comment: I dislike adding these macros: # define Py_UNLIKELY(value) __builtin_expect(!!(value), 0) # define Py_LIKELY(value) __builtin_expect(!!(value), 1) It's too easy to introduce a performance regression by mistake. IHMO PGO compilation already defeats the

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

2019-08-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37762] IDLE very slow due a super long line output in chunks

2019-08-12 Thread Tal Einat
Tal Einat added the comment: With PR GH-15211 (for issue #37827), which implements terminal-like handling of the \r and \b control characters, the TensorFlow tutorial almost works as intended in the IDLE shell; a minor change to Tensorflow is needed to make it work as intended. Tensorflow

[issue34155] email.utils.parseaddr mistakenly parse an email

2019-08-12 Thread STINNER Victor
STINNER Victor added the comment: This issue is a security issue so Python 2.7, 3.5, 3.6 should also be fixed, no? -- status: closed -> open versions: +Python 2.7, Python 3.5, Python 3.6 ___ Python tracker

[issue34155] email.utils.parseaddr mistakenly parse an email

2019-08-12 Thread STINNER Victor
STINNER Victor added the comment: I change the issue type to security because of https://bugs.python.org/issue34155#msg340534: "Note that this bug was used in an actual security attack so it is serious". -- type: behavior -> security ___ Python

[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread STINNER Victor
STINNER Victor added the comment: > It looks to me, that it is not possible to solve this with the current > bytecode. Perhaps the only way to fix a crash is to revert issue32489. That sounds like a good compromise to unblock next Python 3.8 release. issue32489 can wait another release

[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37831] bool(~True) == True

2019-08-12 Thread Mark Dickinson
Mark Dickinson added the comment: Looks like this is essentially a duplicate of #12447 -- ___ Python tracker ___ ___

[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread Batuhan
Batuhan added the comment: Raising an error can handle this because it is impossible to reach to return so we can declare this as an illegal syntax? -- ___ Python tracker

[issue37831] bool(~True) == True

2019-08-12 Thread Mark Dickinson
Mark Dickinson added the comment: For instances of `int`, `~` does bitwise negation (with the usual two's-complement with an infinite number of bits model that Python uses for all bitwise operations on arbitrary-precision integers). And rightly or wrongly, `True` and `False` are instances

[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks to me, that it is not possible to solve this with the current bytecode. Perhaps the only way to fix a crash is to revert issue32489. Implementing Mark's idea about inlining the code of a "finally" block may help to solve the issue with "continue"

[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37823] Telnet documentation: fix the link to open()

2019-08-12 Thread Matthew Bruggeman
Matthew Bruggeman added the comment: I can take a look -- nosy: +Matthew Bruggeman ___ Python tracker ___ ___ Python-bugs-list

[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +lukasz.langa priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list

[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report Batuhan. But PR 15221 is not proper way to fix it. It will not work when return an iterable. This issue should be fixed at compiler level. The generated code is: Disassembly of ", line 1>: 2 0 LOAD_GLOBAL

  1   2   >