[issue37461] email.parser.Parser hang

2019-07-15 Thread STINNER Victor
Change by STINNER Victor : -- type: crash -> security ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35121] Cookie domain check returns incorrect results

2019-07-15 Thread Riccardo Schirone
Riccardo Schirone added the comment: CVE-2018-20852 has been assigned to this flaw. -- ___ Python tracker ___ ___ Python-bugs-list

[issue30140] Binary arithmetic does not always call subclasses first

2019-07-15 Thread Leonard Lausen
Change by Leonard Lausen : -- nosy: +leezu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37461] email.parser.Parser hang

2019-07-15 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file48484/reproducer2.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37461] email.parser.Parser hang

2019-07-15 Thread STINNER Victor
STINNER Victor added the comment: >>> bytes([0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x54, 0x79, 0x70, >>> 0x65, 0x3a, 0x78, 0x3b, 0x61, 0x72, 0x1b, 0x2a, 0x3d, 0x22, 0x73, 0x4f, >>> 0x27, 0x23, 0x61, 0xff, 0xff, 0x27, 0x5c, 0x22]) b'Content-Type:x;ar\x1b*="sO\'#a\xff\xff\'\\"' The

[issue37588] Py_DEPRECATED and unavoidable warnings

2019-07-15 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: See also https://github.com/python/cpython/pull/14193#pullrequestreview-251630953 -- nosy: +jdemeyer ___ Python tracker ___

[issue37500] 3.8.0b2 no longer optimizes away "if 0:" ?

2019-07-15 Thread miss-islington
miss-islington added the comment: New changeset 18c5f9d44dde37c0fae5585a604c6027825252d2 by Miss Islington (bot) (Pablo Galindo) in branch 'master': bpo-37500: Make sure dead code does not generate bytecode but also detect syntax errors (GH-14612)

[issue37500] 3.8.0b2 no longer optimizes away "if 0:" ?

2019-07-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +14576 pull_request: https://github.com/python/cpython/pull/14780 ___ Python tracker ___

[issue35121] [ CVE-2018-20852] Cookie domain check returns incorrect results

2019-07-15 Thread STINNER Victor
Change by STINNER Victor : -- title: Cookie domain check returns incorrect results -> [ CVE-2018-20852] Cookie domain check returns incorrect results ___ Python tracker ___

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

2019-07-15 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I did some benchmarks WITHOUT PGO (simply because it's much faster to compile and therefore easier to test things out). The command I used for testing is ./python -m perf timeit --duplicate 200 -s 'f = len; x = ()' 'f(x)' *

[issue37559] IDLE: Scrolling issues with code context shown

2019-07-15 Thread Tal Einat
Tal Einat added the comment: > I *like* the CC size changes because the size indicates the indent depth. My feeling is that you would be in a minority here. IMO most new/novice users would find this surprising and confusing, since it is far from a customary UI experience. Since our

[issue35121] [CVE-2018-20852] Cookie domain check returns incorrect results

2019-07-15 Thread STINNER Victor
Change by STINNER Victor : -- title: [ CVE-2018-20852] Cookie domain check returns incorrect results -> [CVE-2018-20852] Cookie domain check returns incorrect results ___ Python tracker

[issue34160] ElementTree not preserving attribute order

2019-07-15 Thread STINNER Victor
STINNER Victor added the comment: Other examples of projects broken by this change: * python-glyphsLib: https://bugzilla.redhat.com/show_bug.cgi?id=1705391 * pcs: https://bugzilla.redhat.com/show_bug.cgi?id=1705475 What's New In Python 3.8 only briefly mention this change: "The writexml(),

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

2019-07-15 Thread STINNER Victor
STINNER Victor added the comment: > can we backport more of the PEP 590 commits to 3.8? Or will the release > manager complain? I would opt for a case by case discussion. Would you be able to identify which master commits have the most significant impact on performance for builtin

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

2019-07-15 Thread M. Anil Tuncel
M. Anil Tuncel added the comment: I guess the use of negative indices serve the same purpose here as in lists or strings. Though as Ezio pointed out, the current behaviour is already accepting negative indices but providing inconsistent results in comparison to various other Python modules

[issue30140] Binary arithmetic does not always call subclasses first

2019-07-15 Thread Guido van Rossum
Guido van Rossum added the comment: Are there any core devs who care enough to make a decision here? -- ___ Python tracker ___ ___

[issue37284] Not obvious that new required attrs of sys.implementation must have a PEP.

2019-07-15 Thread miss-islington
miss-islington added the comment: New changeset 52693c10e82622d883433b779a45d0bd792f17ed by Miss Islington (bot) (Giovanni Cappellotto) in branch 'master': bpo-37284: Add note to sys.implementation doc (GH-14328)

[issue37284] Not obvious that new required attrs of sys.implementation must have a PEP.

2019-07-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +14580 pull_request: https://github.com/python/cpython/pull/14783 ___ Python tracker ___

[issue37284] Not obvious that new required attrs of sys.implementation must have a PEP.

2019-07-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +14581 pull_request: https://github.com/python/cpython/pull/14784 ___ Python tracker ___

[issue30140] Binary arithmetic does not always call subclasses first

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

[issue37284] Not obvious that new required attrs of sys.implementation must have a PEP.

2019-07-15 Thread miss-islington
miss-islington added the comment: New changeset 1ff4c4277421c02df5ca0894fb95de70cd9cd5f4 by Miss Islington (bot) in branch '3.8': bpo-37284: Add note to sys.implementation doc (GH-14328) https://github.com/python/cpython/commit/1ff4c4277421c02df5ca0894fb95de70cd9cd5f4 --

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

2019-07-15 Thread Michael Felt
Michael Felt added the comment: On 14/07/2019 22:28, Tal Einat wrote: > 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

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

2019-07-15 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: PR 14782 (backport of PR 13781) fixes the regression for me. -- ___ Python tracker ___ ___

[issue37284] Not obvious that new required attrs of sys.implementation must have a PEP.

2019-07-15 Thread Eric Snow
Eric Snow added the comment: @potomak, thanks for doing this! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2019-07-15 Thread Paul Ganssle
Paul Ganssle added the comment: Maybe I am missing something, but while it is true that DjangoModel is doing the wrong thing by returning False instead of NotImplemented, the `ANY` sentinel is supposed to match *anything*, not just things that compare equal to it, right? I would expect this

[issue36974] Implement PEP 590

2019-07-15 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +14578 pull_request: https://github.com/python/cpython/pull/14782 ___ Python tracker ___

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

2019-07-15 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +14579 pull_request: https://github.com/python/cpython/pull/14782 ___ Python tracker ___

[issue37538] Refactor zipfile to ease subclassing and enhancement

2019-07-15 Thread Daniel Hillier
Daniel Hillier added the comment: Hi, Here is a pull request against my fork: https://github.com/danifus/cpython/pull/1/files The overall behaviour of zipfile remains the same and I've tried to call out any behaviour changes in the extended commit messages (usually with ** markers). There

[issue37565] test_faulthandler failure

2019-07-15 Thread Michelle Johnson
Michelle Johnson added the comment: Hello Victor. Thank you for looking into this. I ran the attached script, sigusr1.py as you requested. The output was as expected: [jshelly@gl-build bin]$ ./python3.7 ~/sigusr1.py called True Not sure if that helps identify the problem. Regarding the

[issue37284] Not obvious that new required attrs of sys.implementation must have a PEP.

2019-07-15 Thread Eric Snow
Change by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34093] Reproducible pyc: FLAG_REF is not stable.

2019-07-15 Thread STINNER Victor
STINNER Victor added the comment: > According to Serhiy Storchaka, currently marshal.dumps() writes frozenset in > arbitrary order, and so frozenset serialization is not reproducible: > https://mail.python.org/pipermail/python-dev/2018-July/154604.html I created bpo-37596 "Reproducible pyc:

[issue37522] http.cookies.SimpleCookie doesn't seem to be parsed using regulars

2019-07-15 Thread MeiK
Change by MeiK : -- keywords: +patch pull_requests: +14577 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14781 ___ Python tracker ___

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

2019-07-15 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- versions: -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29708] support reproducible Python builds

2019-07-15 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-37596 "Reproducible pyc: frozenset is not serialized in a deterministic order". -- ___ Python tracker ___

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2019-07-15 Thread STINNER Victor
New submission from STINNER Victor : See bpo-29708 meta issue and https://reproducible-builds.org/ for reproducible builds. pyc files are not fully reproducible yet: frozenset items are not serialized in a deterministic order One solution would be to modify marshal to sort frozenset items

[issue37468] Don't install wininst*.exe on non-Windows platforms

2019-07-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset e8692818afd731c1b7e925c626ac8200b1f1c31e by Victor Stinner in branch 'master': bpo-37468: make install no longer install wininst-*.exe files (GH-14511) https://github.com/python/cpython/commit/e8692818afd731c1b7e925c626ac8200b1f1c31e

[issue37468] Don't install wininst*.exe on non-Windows platforms

2019-07-15 Thread STINNER Victor
STINNER Victor added the comment: I sent a notice to python-dev about this change. If someone considers that my change is wrong on Cygwin or MinGW, please propose a pull request. https://mail.python.org/archives/list/python-...@python.org/thread/53T647PT4F5QZ5NOX2GDLMMPC5EPJY4Y/ In the

[issue37519] Three inconsistent module attributes

2019-07-15 Thread Géry
Géry added the comment: @Brett Cannon > PEPs actually become historical documents once they are implemented Actually the inconsistency of the values of the 3 module attributes (``__file__``, ``__cached__`` and ``__package__``) is with respect to the other values within the current

[issue37519] Three inconsistent module attributes

2019-07-15 Thread Géry
Change by Géry : -- nosy: +eric.snow -eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37284] Not obvious that new required attrs of sys.implementation must have a PEP.

2019-07-15 Thread miss-islington
miss-islington added the comment: New changeset 134f79682d6729e3cf84b665d615f576075550e8 by Miss Islington (bot) in branch '3.7': bpo-37284: Add note to sys.implementation doc (GH-14328) https://github.com/python/cpython/commit/134f79682d6729e3cf84b665d615f576075550e8 --

[issue37597] audit event table breaks PDF sphinx build

2019-07-15 Thread Julien Palard
New submission from Julien Palard : The following commit: 44f91c388a6f4da9ed3300df32ca290b8aa104ea bpo-37390: Add audit event table to documentations (GH-14406) Also updates some (unreleased) event names to be consistent with the others. breaks PDF builds. Reproductible using:

[issue34160] ElementTree not preserving attribute order

2019-07-15 Thread Tal Einat
Change by Tal Einat : -- nosy: -taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37519] Three inconsistent module attributes

2019-07-15 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37565] test_faulthandler: test_register_chain() crash with SIGSEGV (signal 11) on Skylake chipset

2019-07-15 Thread Michelle Johnson
Michelle Johnson added the comment: Oh, ok. So, it doesn't seem like trying to get the contents of op was successful: (gdb) print *op $1 = {ob_refcnt = 0, ob_type = 0x0} (gdb) print *op->ob_type Cannot access memory at address 0x0 (gdb) I then followed your instructions to recompile in

[issue34160] ElementTree not preserving attribute order

2019-07-15 Thread Diego Rojas
Diego Rojas added the comment: Victor, you mean place again this code? https://github.com/python/cpython/pull/10163/files#diff-d5a064acb6ae44dcb7e01fee148c733dR926 And the recipe proposed in https://bugs.python.org/issue34160#msg338102 place it as a method of ElementTree or just as a helper

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

2019-07-15 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

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

2019-07-15 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +doko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37519] Three inconsistent module attributes

2019-07-15 Thread Eric V. Smith
Eric V. Smith added the comment: While some of these might be inconsistent (I haven't really looked at it thoroughly yet), I think it might be problematic to change them at this point, since there's no doubt code out there that depends on the current behavior. --

[issue37565] test_faulthandler: test_register_chain() crash with SIGSEGV (signal 11) on Skylake chipset

2019-07-15 Thread STINNER Victor
Change by STINNER Victor : -- title: test_faulthandler: test_register_chain() crash on Skylake chipset -> test_faulthandler: test_register_chain() crash with SIGSEGV (signal 11) on Skylake chipset ___ Python tracker

[issue37565] test_faulthandler: test_register_chain() crash with SIGSEGV (signal 11) on Skylake chipset

2019-07-15 Thread Michelle Johnson
Michelle Johnson added the comment: 1. Here is the output of the signal.getsignal test: [jshelly@gl-build bin]$ ./python3 Python 3.7.4 (default, Jul 15 2019, 10:08:37) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import signal >>>

[issue34788] ipaddress module fails on rfc4007 scoped IPv6 addresses

2019-07-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: FWIW: Marking Component: Documentation means that the issue is only about changing the doc. Hence the auto-assignment to the nebulous docs group, which no longer exists in the form it once did. Enhancement issues nearly always need a doc change but are

[issue37565] test_faulthandler: test_register_chain() crash with SIGSEGV (signal 11) on Skylake chipset

2019-07-15 Thread STINNER Victor
STINNER Victor added the comment: Oh. So Py_FinalizeEx() does get a SIGSEGV when triggering a garbage collection: the test doesn't crash, it's Python which crash at exit. > Program received signal SIGSEGV, Segmentation fault. > 0x2ae88924 in visit_decref (op=0x2acd3468, data=0x0)

[issue37565] test_faulthandler: test_register_chain() crash with SIGSEGV (signal 11) on Skylake chipset

2019-07-15 Thread STINNER Victor
STINNER Victor added the comment: My notes to debug a crash on a GC collection: https://pythondev.readthedocs.io/debug_tools.html#debug-crash-in-garbage-collection-visit-decref -- ___ Python tracker

[issue37547] Add _PyObject_CallMethodOneArg()

2019-07-15 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +14582 pull_request: https://github.com/python/cpython/pull/14785 ___ Python tracker ___

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

2019-07-15 Thread Brett Cannon
Brett Cannon added the comment: I'm not sure why you think importlib.util.module_from_spec() adds a module to sys.modules? https://docs.python.org/3/library/importlib.html#importlib.util.module_from_spec doesn't say that nor does

[issue37565] test_faulthandler failure

2019-07-15 Thread STINNER Victor
STINNER Victor added the comment: More tests. (*) What is the output of signal.getsignal(signal.SIGUSR1) before importing faulthandler (before calling any faulthandler method)? Example: $ python3 Python 3.7.3 (default, May 11 2019, 00:38:04) >>> import signal;

[issue33955] Implement PyOS_CheckStack on macOS using pthread_get_stack*_np

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

[issue37547] Add _PyObject_CallMethodOneArg()

2019-07-15 Thread Zackery Spytz
Zackery Spytz added the comment: It seems that 59ad110d7a7784d53d0b502eebce0346597a6bef introduced a compiler warning in Modules/_io/winconsoleio.c. c:\projects\cpython\modules\_io\winconsoleio.c(208): warning C4133: 'function': incompatible types - from 'winconsoleio *' to 'PyObject *'

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

2019-07-15 Thread paul j3
paul j3 added the comment: The use of `bool` as registry key only works because that object already exists as a builtin. This amounts a form of shadowing, and sets a dangerous precedent. type=bool should work as documented at

[issue37599] Remove a vague statement in documentation of Integer Objects

2019-07-15 Thread sgal
New submission from sgal : In current Python document (3.7 - 3.9) there is such statement in documentation of Integer Objects: The current implementation keeps an array of integer objects for all integers between ``-5`` and ``256``, when you create an int in that range you actually just get

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

2019-07-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37522] http.cookies.SimpleCookie doesn't seem to be parsed using regulars

2019-07-15 Thread SilentGhost
Change by SilentGhost : -- components: +Library (Lib) -Extension Modules versions: -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue37599] Remove a vague statement in documentation of Integer Objects

2019-07-15 Thread Eric N. Vander Weele
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37599] Remove a vague statement in documentation of Integer Objects

2019-07-15 Thread sgal
Change by sgal : -- keywords: +patch pull_requests: +14583 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14786 ___ Python tracker ___

[issue37600] sched_getaffinity() is missing - module 'os' has no attribute 'sched_getaffinity'

2019-07-15 Thread wesinator
New submission from wesinator <13hu...@gmail.com>: Python 3.7.4 macOS 10.14.5 (homebrew) According to https://docs.python.org/3/library/os.html#os.cpu_count , there is a method `os.sched_getaffinity()` (https://docs.python.org/3/library/os.html#os.sched_getaffinity) Code to reproduce : -

[issue37600] os.sched_getaffinity() is missing - module 'os' has no attribute 'sched_getaffinity'

2019-07-15 Thread wesinator
Change by wesinator <13hu...@gmail.com>: -- title: sched_getaffinity() is missing - module 'os' has no attribute 'sched_getaffinity' -> os.sched_getaffinity() is missing - module 'os' has no attribute 'sched_getaffinity' ___ Python tracker

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

2019-07-15 Thread Vinay Sajip
Vinay Sajip added the comment: The comment at the end of the "_ = ..." line indicates clearly that it's optional to do that, and I assume that any reader will realise that they can use any suitable variable name rather than "_". There's no particular "recommendation" to use "_" and cookbook

[issue37589] Missing dependences in the Makefile

2019-07-15 Thread Kyle Stanley
Kyle Stanley added the comment: Added twouters to the nosy list since he's the makefile expert according to https://devguide.python.org/experts/#miscellaneous. -- nosy: +aeros167, twouters ___ Python tracker

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

2019-07-15 Thread Neil Schemenauer
Neil Schemenauer added the comment: Thanks for the feedback. I agree that putting the tests in regrtest is better. I've made the following changes: - the --pgo option now uses the shorter list of tests by default - I added --pgo-extended as a regrtest option that enables the old behavior

[issue37600] os.sched_getaffinity() is missing - module 'os' has no attribute 'sched_getaffinity'

2019-07-15 Thread Josh Rosenberg
Josh Rosenberg added the comment: Per the docs on the function group that includes os.sched_getaffinity ( https://docs.python.org/3/library/os.html#interface-to-the-scheduler ): > These functions control how a process is allocated CPU time by the operating > system. They are only available

[issue37601] shutil.make_archive does not follow symlinks for zip archives

2019-07-15 Thread Kevin Teague
New submission from Kevin Teague : Zip archives created with shutil.make_archive will not follow symlinks. The shutil._make_zipfile uses os.walk: for dirpath, dirnames, filenames in os.walk(base_dir) os.walk has the followlinks parameter: for dirpath, dirnames, filenames in

[issue37601] shutil.make_archive does not follow symlinks for zip archives

2019-07-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +giampaolo.rodola, tarek ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37601] shutil.make_archive does not follow symlinks for zip archives

2019-07-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- type: -> enhancement versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___

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

2019-07-15 Thread Ezio Melotti
Ezio Melotti added the comment: > Are there any real world examples which show the benefit of supporting > negative indices? A common case is ignoring parentheses at the beginning/end, e.g. >>> re.compile('[^,]+').findall('(foo,123,(),bar)') ['(foo', '123', '()', 'bar)'] >>> # ignore the

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

2019-07-15 Thread Ezio Melotti
Ezio Melotti added the comment: I think Dimiter was able to fix most of the failures, except test_unicode_file_functions. Yesterday during the sprints we were looking at it, and we did some tests using the following snippet: import os import unicodedata upsilon_diaeresis_and_hook = "ϔ" for

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

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

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

2019-07-15 Thread Giovanni Cappellotto
Giovanni Cappellotto added the comment: I took a stab at this, see attached PR. I was able encode the first two cases described by @tarek, but not the first one because `_parse_command_opts` doesn't have visibility to the list of global options that have already been parsed. Note: I had

[issue34536] Enum._missing_ doesn't raise TypeError when a non-Enum object is a returned

2019-07-15 Thread Ethan Furman
Change by Ethan Furman : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34443] enum repr should use __qualname__

2019-07-15 Thread Ethan Furman
Change by Ethan Furman : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29577] Enum: mixin classes don't mix well with already mixed Enums

2019-07-15 Thread Ethan Furman
Change by Ethan Furman : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue37530] IDLE: simplify, optimize, and clean up code context

2019-07-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR 14030 for #17535 (line numbers) also has code for 1. I want to merge this first, and fix-up the other. Changing context font at the same time as the text font, instead of up to 1 second later, eliminates a visual glitch and is a user-visible improvement.

[issue33610] IDLE: Make multiple improvements to CodeContext

2019-07-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I2: replace font/hightlight loop with notification and immediate change instead of a delay is a bugfix. In testing PR 14675 for #37530 I discovered a bug. 'Show' always shows a single blank line, as if the top visible line were the top line of the file.

[issue37602] nonzero fixer problem

2019-07-15 Thread 徐靖
New submission from 徐靖 : An easy problem. It seems like nonzero fixer can only fix definition, not usage. nonzero fixer cannot fix problems like below: a = 1 a.__nonzero__() And there are no cases of __nonzero__() usage in test cases from test_fixers.py.(all cases test only definition

[issue37559] IDLE: Scrolling issues with code context shown

2019-07-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'at least' means 'get something working, then consider expanding'. The scrollwheel is tougher without built-in start/stop events equivalent to press/release. We could, however, synthesize them. But I want to start with mouse button, and it that works,

[issue37565] test_faulthandler: test_register_chain() crash on Skylake chipset

2019-07-15 Thread STINNER Victor
Change by STINNER Victor : -- title: test_faulthandler failure -> test_faulthandler: test_register_chain() crash on Skylake chipset ___ Python tracker ___

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

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

[issue35224] PEP 572: Assignment Expressions

2019-07-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I might be missing it, but I think the Language Reference still doesn't document assignment expressions. https://docs.python.org/3/reference/lexical_analysis.html#operators There are likely other places in the LR that need to be filled out with PEP 572

[issue32782] memoryview & ctypes: incorrect itemsize for empty array

2019-07-15 Thread Eric Wieser
Eric Wieser added the comment: Pinging again, now that the patch has undergone a revision with some cleanup thanks to @skrah -- ___ Python tracker ___