[issue43688] [C API] Support the limited C API in debug build (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : -- title: [C API] Fix Py_INCREF and Py_DECREF in the limited C API for Python built in debug mode -> [C API] Support the limited C API in debug build (Py_INCREF and Py_DECREF) ___ Python tracker

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : -- title: [C API] Support the limited C API in debug build (Py_INCREF and Py_DECREF) -> [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF) ___ Python tracker __

[issue36465] Make release and debug ABI compatible

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23878 pull_request: https://github.com/python/cpython/pull/25131 ___ Python tracker ___ __

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +23877 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25131 ___ Python tracker ___ _

[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-04-01 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-43688: [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF). -- ___ Python tracker ___ ___

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
STINNER Victor added the comment: One nice advantage of this change is that it becomes possible to check for reference leaks in C extensions written with the limited C API! $ ./python -m test test_xxlimited -R 3:3 0:00:00 load avg: 2.99 Run tests sequentially 0:00:00 load avg: 2.99 [1/1] test

[issue43689] difflib: mention other "problematic" characters in documentation

2021-04-01 Thread Jürgen Gmach
New submission from Jürgen Gmach : In the documentation you can currently read for the "?"-output: "These lines can be confusing if the sequences contain tab characters." >From first hand experience :-), I can assure it is also very confusing for >other types of whitespace characters, such as

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23880 pull_request: https://github.com/python/cpython/pull/25133 ___ Python tracker ___ __

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23881 pull_request: https://github.com/python/cpython/pull/25134 ___ Python tracker ___ __

[issue43689] difflib: mention other "problematic" characters in documentation

2021-04-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset baf10da75072d1f8ec714d3c2c8550d34db343a9 by Victor Stinner in branch 'master': bpo-43688: Run make regen-limited-abi (GH-25134) https://github.com/python/cpython/commit/baf10da75072d1f8ec714d3c2c8550d34db343a9 -- _

[issue43682] Make static methods created by @staticmethod callable

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If make staticmethod a calllable and always wrap open, we need to change also its repr and add the __doc__ attribute (and perhaps other attributes to make it more interchangeable with the original function). Alternate option: make staticmethod(func) return

[issue43690] [C API] stable_abi.py script must not include PyType_HasFeature() static inline function in the stable ABI

2021-04-01 Thread STINNER Victor
New submission from STINNER Victor : I just ran "make regen-limited-abi" and it added PyType_HasFeature(): commit baf10da75072d1f8ec714d3c2c8550d34db343a9 Author: Victor Stinner Date: Thu Apr 1 11:29:46 2021 +0200 bpo-43688: Run make regen-limited-abi (GH-25134) diff --git a/Doc/data/s

[issue43691] Comparison of OrderedDict() and dict()

2021-04-01 Thread Марк Коренберг
New submission from Марк Коренберг : OrderedDict([(1,2), (3,4)]) == OrderedDict([(3,4), (1,2)]) Out[1]: False# OK dict([(1,2), (3,4)]) == dict([(3,4), (1,2)]) Out[2]: True # OK dict([(1,2), (3,4)]) == OrderedDict([(3,4), (1,2)]) Out[3]: True # NOT OK, since actual order is different

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23882 pull_request: https://github.com/python/cpython/pull/25135 ___ Python tracker ___ __

[issue43684] Add combined opcodes

2021-04-01 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue40092] Crash in _PyThreadState_DeleteExcept() at fork in the process child

2021-04-01 Thread Michael Felt
Michael Felt added the comment: Adding 3.10. While a (sort of) duplicate I also would like to add that before revision "7cb033c423b65def1632d6c3c747111543b342a2" this was not showing up as an issue with test_importlib. my issue was with test_importlib suddenly going into error. As this see

[issue43684] Add combined opcodes

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We usually rejected such propositions unless there were evidences of significant effect on performance. I myself withdrawn several my patches after analyzing statistics. What percent of opcodes will be ADD_INT in the compiled bytecode? What percent of exe

[issue40092] Crash in _PyThreadState_DeleteExcept() at fork in the process child

2021-04-01 Thread STINNER Victor
STINNER Victor added the comment: > As this seem to be a long-standing issue is it perhaps a possibility to > change the test so that the bot can go green again? This issue is a real crash and it seems quite easy to get it. I prefer to not hide the bug in the test suite. The bug must be fixe

[issue40092] Crash in _PyThreadState_DeleteExcept() at fork in the process child

2021-04-01 Thread Michael Felt
Michael Felt added the comment: OK: further. Two options are suggested: There are different options to solve this issue: * Reset _tstate_lock before using it... not sure that it's worth it, since we are going to delete the threading.Thread object with its _tstate_lock object anymore. After

[issue43692] Raise SyntaxError on implicit string concatentation in list

2021-04-01 Thread Carsten Docktor
New submission from Carsten Docktor : I recently found several bugs, which came from the "feature" shown below. Is python supposed to use string concatenation in a list environment like this? Why would this be appreciated? ## Expected Behavior The example below should raise a SyntaxErorr for

[issue43690] [C API] stable_abi.py script must not include PyType_HasFeature() static inline function in the stable ABI

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +23883 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25136 ___ Python tracker ___ _

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread Petr Viktorin
Petr Viktorin added the comment: If you do this, please check the performance impact. Py_INCREF/Py_DECREF are very common. -- ___ Python tracker ___ _

[issue40092] Crash in _PyThreadState_DeleteExcept() at fork in the process child

2021-04-01 Thread Michael Felt
Michael Felt added the comment: OK. Please explain. Looking at tstate assignment In posixmodule.c:PyOSAfterFork_Child() PyStatus status; _PyRuntimeState *runtime = &_PyRuntime; ... PyThreadState *tstate = _PyThreadState_GET(); and later calls status = _PyRuntimeState_ReInitTh

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-04-01 Thread Irit Katriel
Irit Katriel added the comment: Marking as a 3.10 regression because the sentinel was added in 3.10. -- keywords: +3.10regression ___ Python tracker ___ __

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-04-01 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +23884 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25137 ___ Python tracker

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-04-01 Thread Mark Shannon
New submission from Mark Shannon : In the interpreter and compiler, the "fast" locals array and cells array are treated separately. By merging them in the compiler, the interpreter can be simplified a bit. -- assignee: Mark.Shannon components: Interpreter Core messages: 389974 nosy: M

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread A_D
New submission from A_D : When using scaling (as in root.tk.call('scaling', somenum)), some linux systems appear to simply disregard the change. I recently reinstalled from Ubuntu to OpenSUSE Tumbleweed and found that scaling straight up did not work in the application I tried or the test a

[issue43690] [C API] stable_abi.py script must not include PyType_HasFeature() static inline function in the stable ABI

2021-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 61092a99c4840f36dbde8457cb566fc3c012930f by Victor Stinner in branch 'master': bpo-43690: stable_abi.py no longer parses macros (GH-25136) https://github.com/python/cpython/commit/61092a99c4840f36dbde8457cb566fc3c012930f -- __

[issue43690] [C API] stable_abi.py script must not include PyType_HasFeature() static inline function in the stable ABI

2021-04-01 Thread STINNER Victor
STINNER Victor added the comment: Pablo: My previous commit added PyType_HasFeature to Doc/data/stable_abi.dat. But it prevented me to fix another bug, PR 25135. So I merged this change (PR 25136) to unblock the CI. Feel free to revert/adjust my change as soon as it doesn't add PyType_HasFea

[issue43690] [C API] stable_abi.py script must not include PyType_HasFeature() static inline function in the stable ABI

2021-04-01 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot the mention "Tests / Check if generated files are up to date" job error message: LD_LIBRARY_PATH=/home/runner/work/cpython/cpython:/opt/hostedtoolcache/Python/3.9.2/x64/lib ./python ./Tools/scripts/stable_abi.py check ./Doc/data/stable_abi.dat S

[issue43695] Improve `=` in f-strings

2021-04-01 Thread wyz23x2
New submission from wyz23x2 : In Python 3.8, `=` was added into f-strings: >>> a, b, c = 20, 40, 10 >>> f'{a+b-c=}' a+b-c=50 But if `20+40-10` is wanted, this needs to be written: >>> f'{a}+{b}-{c}={a+b-c}' 20+40-10=50 So something could be added. For example, `?` (this doesn't mean I recommend

[issue43695] Improve `=` in f-strings

2021-04-01 Thread wyz23x2
wyz23x2 added the comment: Well, it's: >>> f'{a+b-c=?}' # Suffix `=` to apply to all? 20+40-10=50 P.S. When will the bug tracker enable message editing? -- ___ Python tracker _

[issue43696] High cpu usage using asyncio streams

2021-04-01 Thread Роман Коптев
New submission from Роман Коптев : Hi. I have a high cpu usage using asyncio streams/sockets with connection pool (I tried on cpython 3.8-3.9 on mac and debian). Seems some noop handler is continously called polling ports in selectors. Here is a simple example to reproduce https://github.com/r

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2ac0515027699b5694d9a6ff40f1ddaba82c74c2 by Victor Stinner in branch 'master': bpo-43688: Fix Py_LIMITED_API version of xxlimited (GH-25135) https://github.com/python/cpython/commit/2ac0515027699b5694d9a6ff40f1ddaba82c74c2 --

[issue23979] Multiprocessing Pool.map pickles arguments passed to workers

2021-04-01 Thread Socob
Change by Socob <206a8...@opayq.com>: -- nosy: +Socob ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
STINNER Victor added the comment: > New changeset baf10da75072d1f8ec714d3c2c8550d34db343a9 by Victor Stinner in > branch 'master': > bpo-43688: Run make regen-limited-abi (GH-25134) With this change, "Tests / Check if generated files are up to date" job started fails (on PR 25135): "Some sym

[issue43695] Improve `=` in f-strings

2021-04-01 Thread Eric V. Smith
Eric V. Smith added the comment: I don't see how this would be possible in general. What would you do with a function call that has side effects? f'{a()+b+c=}' ? You'd end up calling a() twice, or inventing your own expression evaluator. -- nosy: +eric.smith __

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >From "man font": FONT OPTIONS -size size The desired size of the font. If the size argument is a posi‐ tive number, it is interpreted as a size in points. If size is a negative number, its absolute value

[issue43695] Improve `=` in f-strings

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it goes too far. It was initially designed as a simple for implementation and use feature which covers a large amount of use cases of using f-strings for debugging. You propose to add syntactically a new postfix operator which is valid only in "="-

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread A_D
A_D added the comment: I wasnt referring to fonts, I was refering to window scaling in general, which includes widgets and other things. Which are _also_ not being scaled correctly. The example code doesnt mess with fonts at all either, which either means the default behaves in an unexpected

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What did you expect to get? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread A_D
A_D added the comment: I'd expect the windows themselves to change size based on the percentage requested. eg as shown here https://user-images.githubusercontent.com/4589845/95577562-0a794500-0a3b-11eb-914e-9a5afc500b65.png (semirelated issue: https://github.com/EDCD/EDMarketConnector/issues

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The size of of the window is determined by the size of its components. The size of the label and the munu is determined by the size of the font. If font has the same size and you output the same string (or string containing characters of the same proportio

[issue27129] Wordcode, part 2

2021-04-01 Thread Mark Shannon
Mark Shannon added the comment: New changeset fcb55c0037baab6f98f91ee38ce84b6f874f034a by Mark Shannon in branch 'master': bpo-27129: Use instruction offsets, not byte offsets, in bytecode and internally. (GH-25069) https://github.com/python/cpython/commit/fcb55c0037baab6f98f91ee38ce84b6f874

[issue43692] Raise SyntaxError on implicit string concatentation in list

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is valid Python syntax, so SyntaxErorr cannot be raised. SyntaxWarning is an option, but the Python compiler only emits it if we absolutely sure that the code contains a bug (either it does not work as intended or can work differently on other implement

[issue31466] No easy way to change float formatting when subclassing encoder.JSONEncoder

2021-04-01 Thread Samuel Freilich
Samuel Freilich added the comment: I think the less-minor issue, of which this is a small subset, is that JSONEncoder doesn't allow changing the behavior for default-serializable types at all. That means you can't choose to lose less information in round-trip serialization/deserialization, i

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-04-01 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +23885 pull_request: https://github.com/python/cpython/pull/25138 ___ Python tracker ___

[issue12657] Cannot override JSON encoding of basic type subclasses

2021-04-01 Thread Samuel Freilich
Samuel Freilich added the comment: > A modern solution for this is to define a singledispatch function (with > implementations for your custom types) and pass it as the `default` parameter > to the dump functions. Does that work? I thought the default function only got called for non-serial

[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-01 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 652bfdee9495dca241d48278742fe035b7a82bdb by Irit Katriel in branch 'master': bpo-26053: Fix args echoed by pdb run command (#22033) https://github.com/python/cpython/commit/652bfdee9495dca241d48278742fe035b7a82bdb -- nosy: +gvanrossu

[issue12657] Cannot override JSON encoding of basic type subclasses

2021-04-01 Thread Samuel Freilich
Samuel Freilich added the comment: A fully general solution for this might require a separate way to override the behavior for serializing dict keys (since those have to be serialized as strings). -- ___ Python tracker

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Paul Moore
New submission from Paul Moore : I am trying to write a meta path finder that "redirects" module loads to a different part of the filesystem. There's not much information in the importlib documentation, but PEP 451 says "find_spec() must return a spec with "loader" set to None (a.k.a. not set

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-01 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +23886 pull_request: https://github.com/python/cpython/pull/25139 ___ Python tracker ___

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread A_D
A_D added the comment: Okay that makes sense to me. But then my next question is, why does this work on some linux systems and not others without having a specified font? Something funky about the font size? because I'd expect the platform defaults to at least be the same on different linux

[issue43691] Comparison of OrderedDict() and dict()

2021-04-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Unfortunately, the existing behaviors are guaranteed and cannot be changing without breaking code — the OrderedDict class was designed to be mostly substitutable for regular dicts in existing code. Personally, I think it would have been better if OrderedDi

[issue43677] Descriptor.rst - Reference to Py_MethodType is not up to date

2021-04-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Brett Cannon
Brett Cannon added the comment: There is no mechanism as the entire concept of a namespace package is implemented in importlib.machinery.PathFinder itself and not the generic import system (see https://github.com/python/cpython/blob/652bfdee9495dca241d48278742fe035b7a82bdb/Lib/importlib/_boo

[issue43677] Descriptor.rst - Reference to Py_MethodType is not up to date

2021-04-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset e689cdca3c14aab8d2d454b79ddd661b238fd301 by Zackery Spytz in branch 'master': bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (#25123) https://github.com/python/cpython/commit/e689cdca3c14aab8d2d454b79ddd661b238fd301 -- __

[issue43677] Descriptor.rst - Reference to Py_MethodType is not up to date

2021-04-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +23887 pull_request: https://github.com/python/cpython/pull/25140 ___ Python tracker _

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
STINNER Victor added the comment: I wrote a microbenchmark on Py_INCREF()+Py_DECREF(): $ python3 -m pyperf compare_to ref.json limited.json Mean +- std dev: [ref] 3.45 ns +- 0.17 ns -> [limited] 6.03 ns +- 0.21 ns: 1.75x slower If a function is only made of Py_INCREF() and Py_DECREF(), it c

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file49925/bench_limited.py ___ Python tracker ___ ___ Python-bugs-list mailin

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file49926/bench_testcapi.py ___ Python tracker ___ ___ Python-bugs-list maili

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file49927/bench.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Paul Moore
Paul Moore added the comment: OK, cool. That might be worth explaining somewhere in the docs (although I don't really know where, as I'm not sure where namespace packages are documented, either :-)) I'm not at all sure what would happen if we have meta path finders A and B on sys.meta_path

[issue43698] Use syntactically correct examples on abc package page

2021-04-01 Thread Vladimir Ryabtsev
New submission from Vladimir Ryabtsev : There are code snippets on the package's page (https://docs.python.org/3.10/library/abc.html) like this: class C(ABC): @classmethod @abstractmethod def my_abstract_classmethod(cls, ...): ... Here, the author probably wanted to demons

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: AFAIK X Window uses two font systems: for bitmap fonts and for scalable fonts. If default fonts on your system are bitmap fonts, they are not scaled. -- resolution: -> not a bug stage: -> resolved status: open -> closed __

[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset bd4ab8e73906a4f12d5353f567228b7c7497baf7 by Irit Katriel in branch 'master': bpo-26053: Fix test_pdb.test_issue26053() (GH-25139) https://github.com/python/cpython/commit/bd4ab8e73906a4f12d5353f567228b7c7497baf7 -- nosy: +vstinner ___

[issue43692] Raise SyntaxError on implicit string concatentation in list

2021-04-01 Thread Carsten Docktor
Carsten Docktor added the comment: I'd consider this a bug, because I find it quite error prone. But I get the point that it might be currently used. Thank you for your response. I'll rely on third party checkers for this. -- resolution: -> rejected stage: -> resolved status: ope

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Brett Cannon
Brett Cannon added the comment: > I'm not sure where namespace packages are documented https://docs.python.org/3/reference/import.html#namespace-packages > I'm not at all sure what would happen if we have meta path finders A and B > on sys.meta_path in that order, and A.find_spec("foo.bar")

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread A_D
A_D added the comment: Thanks so much for your help. To anyone in the future trying to figure this out: Apparently the default opensuse fonts (which are noto) are _not_ scalable. In my testing the following is enough to solve the issue. ``` tk.font.nametofont('TkDefaultFont').configure(famil

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Brett Cannon
Change by Brett Cannon : -- assignee: brett.cannon -> docs@python nosy: +docs@python ___ Python tracker ___ ___ Python-bugs-list mai

[issue43699] ERROR: Could not find a version that satisfies the requirement MetaTrader5

2021-04-01 Thread André Luís Lopes da Silva
New submission from André Luís Lopes da Silva : Dear, I am trying to install MetaTrader5 via pip. But this return this message: Defaulting to user installation because normal site-packages is not writeable WARNING: Keyring is skipped due to an exception: Failed to unlock the keyring! ERROR: Cou

[issue17519] unittest should not try to run abstract classes

2021-04-01 Thread Stephen Thorne
Stephen Thorne added the comment: I have done some experimentation here and thought through this feature request. The concept we are trying to deliver is: "I would like to share functionality between test classes, by having an abstract parent, with concrete leaves" The metaclass abc.ABCMeta

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Paul Moore
Paul Moore added the comment: > if they return a spec they can, if they don't then they can't What I've never really got clear in my mind is how dotted names get handled. But that's probably just a matter of needing to experiment a bit (I don't think it's particularly complicated, I just nee

[issue41638] Error message: sqlite3.ProgrammingError: You did not supply a value for binding # might be improved

2021-04-01 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Can this be closed, Serhiy? -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bug

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Brett Cannon
Brett Cannon added the comment: > What I've never really got clear in my mind is how dotted names get handled. Essentially: 1. Check if parent is imported; if not then import (working your way all the way back to the top if necessary) 2. Ask the sys.meta_path finders if they can handle the mo

[issue43699] ERROR: Could not find a version that satisfies the requirement MetaTrader5

2021-04-01 Thread Irit Katriel
Irit Katriel added the comment: Why do you think this is a python bug? -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs

[issue43699] ERROR: Could not find a version that satisfies the requirement MetaTrader5

2021-04-01 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> third party status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43700] Replace Zulip badge with Discourse badge in README

2021-04-01 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Suggesting to follow the dev guide and replace the Zulip badge with a Discourse badge in README.rst. Quoting the dev guide, section 2.4. Zulip: "This is no longer actively monitored by core devs. Consider asking your questions on Discourse or on th

[issue43700] Replace Zulip badge with Discourse badge in README

2021-04-01 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +23888 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25141 ___ Python tracker _

[issue27129] Wordcode, part 2

2021-04-01 Thread David Bolen
David Bolen added the comment: Note that this commit appears to be causing exceptions for the Win10 buildbot, failing the PyCode_Addr2Line assertion in codeobject.c line 1252. The assertion seems to pop up at differing points during each test run, but the builder has yet to complete a full t

[issue43695] Improve `=` in f-strings

2021-04-01 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this. I agree with Serhiy that it's pushing f-strings too far. If you really want to pursue this, you'll need to specify the semantics much more clearly, and then bring it up on the python-ideas mailing list. But I don't want to give you f

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset 036fc7de24cc961d65b60fba266104009feb2797 by Inada Naoki in branch 'master': bpo-43651: Fix EncodingWarning in test_warnings (GH-25126) https://github.com/python/cpython/commit/036fc7de24cc961d65b60fba266104009feb2797 -- _

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset c0ec4486dc7dd70fea39d1473ac9a9ac568378fe by Inada Naoki in branch 'master': bpo-43651: Fix EncodingWarning in lib2to3/pgen2/pgen.py (GH-25127) https://github.com/python/cpython/commit/c0ec4486dc7dd70fea39d1473ac9a9ac568378fe -- _

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset 80017752ba938852d53f9d83a404b4ecd9ff2baa by Inada Naoki in branch 'master': bpo-43651: Fix test_compileall with PEP 597 (GH-25128) https://github.com/python/cpython/commit/80017752ba938852d53f9d83a404b4ecd9ff2baa -- _

[issue43677] Descriptor.rst - Reference to Py_MethodType is not up to date

2021-04-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset d104a786fff5980360056d908a2d952b42306171 by Miss Islington (bot) in branch '3.9': bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (GH-25123) (#25140) https://github.com/python/cpython/commit/d104a786fff5980360056d908a2d952b42306171

[issue43677] Descriptor.rst - Reference to Py_MethodType is not up to date

2021-04-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the bug report. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker __

[issue27129] Wordcode, part 2

2021-04-01 Thread Mark Shannon
Mark Shannon added the comment: That assertion is correct, and hasn't changed. Do you have a traceback? The buildbot just shows the assertion message with no context. -- ___ Python tracker _

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23889 pull_request: https://github.com/python/cpython/pull/25142 ___ Python tracker ___ _

[issue27129] Wordcode, part 2

2021-04-01 Thread David Bolen
David Bolen added the comment: Unfortunately, not at the moment - what's in the buildbot log is what's available. The RTL assertion aborts the process. The tests involved (such as test_clinic) do seem reproducible in a few separate tries, though again, all they do is terminate. As the asse

[issue43549] Outdated descriptions for configuring valgrind.

2021-04-01 Thread Xinmeng Xia
Change by Xinmeng Xia : -- type: behavior -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-01 Thread Guido van Rossum
Guido van Rossum added the comment: Do you need my help here? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue43691] Comparison of OrderedDict() and dict()

2021-04-01 Thread Марк Коренберг
Марк Коренберг added the comment: I don't agree. There are no specifications regarding the question. Since anything relying on specific implementation (not specification) should not be considered as something we should support or take care of. Raising exception is the best thing since it will

[issue43691] Comparison of OrderedDict() and dict()

2021-04-01 Thread Марк Коренберг
Марк Коренберг added the comment: https://mail.python.org/pipermail/python-ideas/2015-December/037472.html -- ___ Python tracker ___ ___

[issue43691] Comparison of OrderedDict() and dict()

2021-04-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: > There are no specifications regarding the question. >From the OrderedDict docs: """ Equality tests between OrderedDict objects are order-sensitive and are implemented as list(od1.items())==list(od2.items()). Equality tests between OrderedDict objects a

[issue43691] Comparison of OrderedDict() and dict()

2021-04-01 Thread Марк Коренберг
Марк Коренберг added the comment: Shame on me. You are right. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue43700] Replace Zulip badge with Discourse badge in README

2021-04-01 Thread miss-islington
miss-islington added the comment: New changeset bef7b26f7229f8b7cde843118a7bc7e2b00f0372 by Erlend Egeberg Aasland in branch 'master': bpo-43700: Replace Zulip badge with Discourse badge (GH-25141) https://github.com/python/cpython/commit/bef7b26f7229f8b7cde843118a7bc7e2b00f0372 --

[issue43700] Replace Zulip badge with Discourse badge in README

2021-04-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +23890 pull_request: https://github.com/python/cpython/pull/25143 ___ Python tracker ___ __

  1   2   >