[issue43181] Python macros don’t shield arguments

2021-02-11 Thread STINNER Victor
STINNER Victor added the comment: I'm replacing macros with static inline functions to avoid issues like this one (ex: bpo-35059). Are you interested to convert the PyObject_TypeCheck() macro to a static inline function? """ There is a lot of macros like: #define PyObject_TypeCheck(ob, t

[issue27640] Add --disable-test-modules configure option to not build nor install tests

2021-02-11 Thread STINNER Victor
STINNER Victor added the comment: > It would be more convenient if we had a Makefile option to install the tests > separately. While this use case is tighly coupled to this feature, would you mind to open a separate issue for your use case? IMO it makes sense and it sounds easy to implement

[issue43113] os.posix_spawn errors with wrong information when shebang points to not-existing file

2021-02-11 Thread Miro Hrončok
Miro Hrončok added the comment: At the very least, it's worth documenting in all places that can give you the exception, such as subprocess etc. Whether it's worth to try to fix the exception message I don't really know. Confused users on one side, fragile complex heuristic on the other. Hon

[issue43181] Python macros don’t shield arguments

2021-02-11 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue43199] FAQ about goto lacks answer

2021-02-11 Thread Mikael Lövqvist
New submission from Mikael Lövqvist : In the FAQ there is a question "Why is there no goto?" but the answer addresses how to use exceptions to do something akin to goto. I think the documentation could benefit from the reasons why there is no goto or that the question is changed, perhaps "How

[issue43094] sqlite3 signature discrepancies between documentation and implementation

2021-02-11 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > If we are going to change public sqlite3 APIs in to be positional-only, I'd > prefer writing a PEP and fix all modules once and for all. Right. I assume you mean that such a PEP would contain a set of guidelines for how to handle these dilemmas? It

[issue43154] code.InteractiveConsole can crash if sys.excepthook is broken

2021-02-11 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue43181] Python macros don’t shield arguments

2021-02-11 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > Are you interested to convert the PyObject_TypeCheck() macro to a static > inline function? I'd like to give it a shot if it's ok for you all. -- ___ Python tracker

[issue43200] link to copy module in shutil document, not to shutil.copy

2021-02-11 Thread nikkie
New submission from nikkie : "copy()" is not a link to shutil.copy, but a link to the copy module. https://docs.python.org/3/library/shutil.html#platform-dependent-efficient-copy-operations >Starting from Python 3.8 all functions involving a file copy (copyfile(), >copy(), copy2(), copytree(),

[issue43200] link to copy module in shutil document, not to shutil.copy

2021-02-11 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz nosy_count: 3.0 -> 4.0 pull_requests: +23295 pull_request: https://github.com/python/cpython/pull/24505 ___ Python tracker ___

[issue43200] link to copy module in shutil document, not to shutil.copy

2021-02-11 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch nosy: +erlendaasland nosy_count: 2.0 -> 3.0 pull_requests: +23294 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24504 ___ Python tracker

[issue43196] logging.config.dictConfig shuts down socket for existing SysLogHandlers

2021-02-11 Thread Jason Madden
Change by Jason Madden : -- nosy: +jmadden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue43196] logging.config.dictConfig shuts down socket for existing SysLogHandlers

2021-02-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip, xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue43195] Same userbase for 32bit and 64bit install on Windows causing conflicts

2021-02-11 Thread Christoph Reiter
Christoph Reiter added the comment: Ah, wonderful. We'll do something similar then. Thanks for the info and the pointer to the resolved issue. Much appreciated! -- ___ Python tracker ___

[issue43001] python3.9.1 test_embed test_tabnanny failed

2021-02-11 Thread Tony Martin Berbel
Tony Martin Berbel added the comment: My system crashed completely. I reinstalled Ubuntu. Sorry I couldn't help more ... :( ___ MARTIN BERBEL, Tony GSM: +32 (0) 477 / 33.12.48 -- Le mer. 10 févr. 2021 à 04:06, Tony Martin Ber

[issue43001] python3.9.1 test_embed test_tabnanny failed

2021-02-11 Thread STINNER Victor
STINNER Victor added the comment: Ok, I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue43198] Operations on sets more than hundred times less efficient with python3.9 than with previous versions

2021-02-11 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue43201] sqlite3 import * ImportError: DLL load failed while importing _sqlite3: The specified module could not be found.

2021-02-11 Thread Tyler Reed
New submission from Tyler Reed : Running on a new, updated Windows 10 machine with no virtual environment. After removing all previous Python installations, rebooting and performing a fresh install if Python 3.9.1. I run the python console and type: import sqlite3 I receive the following erro

[issue43201] sqlite3 import * ImportError: DLL load failed while importing _sqlite3: The specified module could not be found.

2021-02-11 Thread Zachary Ware
Zachary Ware added the comment: That looks more like `_sqlite3.pyd` is missing. You're sure no changes have been to the installation directory? Does repairing the installation help at all? I imagine we would have been flooded with issue reports if the installer was missing this module, so

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is for 3.10 only since the never-closed message was only added for 3.10.0a5 and not backported. Pablo, Is there any sane possibility that the compiler could, at least sometimes, raise an IncompleteSyntax subclass of SyntaxError when code is merel

[issue43201] sqlite3 import * ImportError: DLL load failed while importing _sqlite3: The specified module could not be found.

2021-02-11 Thread Tyler Reed
Tyler Reed added the comment: It was an environment issue. There were pre-existing files (pyd and pyc) in the application folder (from builds done with Kivy) and apparently python was loading those instead of the libraries in the python39 folder. -- resolution: -> not a bug stage:

[issue43202] Cleanup codeop._maybe_compile

2021-02-11 Thread Terry J. Reedy
New submission from Terry J. Reedy : Following-up on discussion in #43163 and PR-24483, this issue is limited to changes that are expected to not affect the return value. Therefore, do not backport unless and until needed as part of a bugfix. First is moving the code return to immediately af

[issue43202] Cleanup codeop._maybe_compile

2021-02-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +23296 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24508 ___ Python tracker __

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >Pablo, Is there any sane possibility that the compiler could, at least >sometimes, raise an IncompleteSyntax subclass of SyntaxError when code is >merely incomplete, as opposed to wrong? I'm assuming you mean the parser (when the compiler runs the co

[issue27835] SystemExit in setUpClass etc. terminates test run

2021-02-11 Thread Irit Katriel
Irit Katriel added the comment: I can't reproduce the issue. I think it was fixed in issue24412. -- nosy: +iritkatriel resolution: -> fixed status: open -> pending ___ Python tracker ___

[issue15108] ERROR: SystemError: ./../Objects/tupleobject.c:118: bad argument to internal function

2021-02-11 Thread Irit Katriel
Irit Katriel added the comment: Is there anything left to do here? Looks like a 3rd party issue. -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___ _

[issue15108] ERROR: SystemError: ./../Objects/tupleobject.c:118: bad argument to internal function

2021-02-11 Thread Irit Katriel
Irit Katriel added the comment: oops, wrong ticket. Sorry about the noise. -- status: pending -> open ___ Python tracker ___ ___ Py

[issue15108] ERROR: SystemError: ./../Objects/tupleobject.c:118: bad argument to internal function

2021-02-11 Thread Irit Katriel
Irit Katriel added the comment: Still happening in 3.10: Python 3.10.0a5+ (heads/master:bf2e7e55d7, Feb 11 2021, 23:09:25) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import gc >>> TAG = object() >>> >>> def monitor(): ...

[issue15108] ERROR: SystemError: ./../Objects/tupleobject.c:118: bad argument to internal function

2021-02-11 Thread Irit Katriel
Change by Irit Katriel : -- Removed message: https://bugs.python.org/msg386840 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue15108] ERROR: SystemError: ./../Objects/tupleobject.c:118: bad argument to internal function

2021-02-11 Thread Irit Katriel
Change by Irit Katriel : -- Removed message: https://bugs.python.org/msg386839 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-11 Thread Inada Naoki
Inada Naoki added the comment: New changeset fedd86df2448370cdf62a229fd6f31dc92daf379 by Inada Naoki in branch 'master': bpo-43174: Windows: Use /utf-8 compiler option. (GH-24498) https://github.com/python/cpython/commit/fedd86df2448370cdf62a229fd6f31dc92daf379 -- _

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-11 Thread Inada Naoki
Inada Naoki added the comment: May I backport this for Python 3.9? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue43202] Cleanup codeop._maybe_compile

2021-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 2068b261e95e9fe9c4041f0102c9e931692dd5aa by Terry Jan Reedy in branch 'master': bpo-43202: Immediately return code object in codeop._maybe_compile (GH-24508) https://github.com/python/cpython/commit/2068b261e95e9fe9c4041f0102c9e931692dd5aa ---

[issue43203] Default value incorrectly read with unittests on Windows & macOS but not Linux

2021-02-11 Thread Samuel Marks
New submission from Samuel Marks : Had a couple of commits to try and fix it on GitHub Actions (as I was unable to replicate locally), ended up with this very easy fix for Windows: https://github.com/SamuelMarks/doctrans/commit/98203e9fee3e0a888ab1f4128011dde5fad98f63 To completely remove the d

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-11 Thread Steve Dower
Steve Dower added the comment: I think so, yeah. We shouldn't have any string literals that are non-ASCII, but if we do then it's almost certainly an improvement for them to be UTF-8. -- ___ Python tracker

[issue15108] ERROR: SystemError: ./../Objects/tupleobject.c:118: bad argument to internal function

2021-02-11 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch nosy: +pablogsal nosy_count: 8.0 -> 9.0 pull_requests: +23297 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24510 ___ Python tracker

[issue43202] Cleanup codeop._maybe_compile

2021-02-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +23298 pull_request: https://github.com/python/cpython/pull/24512 ___ Python tracker ___ __

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +23299 pull_request: https://github.com/python/cpython/pull/24513 ___ Python tracker _

[issue43198] Operations on sets more than hundred times less efficient with python3.9 than with previous versions

2021-02-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Addenda. Top use cases for sets (roughly in order of commonality): 1. Eliminate duplicates from an iterable input and loop over the result. 2. Store elements in a set just once but do many membership tests. 3. Perform data analysis on multiple sets using u

[issue43198] Operations on sets more than hundred times less efficient with python3.9 than with previous versions

2021-02-11 Thread Raymond Hettinger
Change by Raymond Hettinger : -- Removed message: https://bugs.python.org/msg386847 ___ Python tracker ___ ___ Python-bugs-list mail

[issue43198] Operations on sets more than hundred times less efficient with python3.9 than with previous versions

2021-02-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Addenda [reposted to fix a premature submission]. Top use cases for sets (roughly in order of commonality): 1. Eliminate duplicates from an iterable input and loop over the result. 2. Store elements in a set just once but do many membership tests. 3. Perfo

[issue43198] Operations on sets more than hundred times less efficient with python3.9 than with previous versions

2021-02-11 Thread Eric Martin
Eric Martin added the comment: Many thanks Raymond for these insights and thorough explanations, I appreciate it very much. Your conclusions are of course most reasonable. For me, I cannot say that it is a real issue in practice. I have teaching notes in which I illustrate with plots the dif

[issue43042] Augment tutorial sentence.

2021-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://docs.python.org/3/tutorial/controlflow.html#defining-functions I decided to augment the sentence as suggested by Jesse, and see what any reviewers think. -- assignee: docs@python -> terry.reedy nosy: -rhettinger title: Delete or merge redunda

[issue43042] Augment tutorial sentence.

2021-02-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +23300 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24514 ___ Python tracker __

[issue39658] Include user scripts folder to PATH on Windows

2021-02-11 Thread fireattack
Change by fireattack : -- nosy: +fireattack ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-11 Thread Inada Naoki
Inada Naoki added the comment: New changeset 68d6bc798b34eccabdfbf94e563273759c4cef1f by Miss Islington (bot) in branch '3.9': bpo-43174: Windows: Use /utf-8 compiler option. (GH-24498) https://github.com/python/cpython/commit/68d6bc798b34eccabdfbf94e563273759c4cef1f -- ___

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-11 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker ___ ___

[issue43175] filecmp is not working for UTF-8 BOM file.

2021-02-11 Thread suresh
suresh added the comment: Please find the below Code and attached the files, expecting true as output and getting as false: "import filecmp filecmp.clear_cache() boolfile=filecmp.cmp(r'C:\destination.css',r'C:\source.css',shallow=False) print(boolfile)" -- hgrepos: +398 Added f