[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

Re: super() in injected methods

2021-02-11 Thread Greg Ewing
On 12/02/21 3:39 pm, Andras Tantos wrote: Now, when a Port gets assigned a NetType, it needs to gain all sorts of new features. It for example should have a 'length' attribute that tells how many bits are needed to represent its possible values. The way I would probably approach this is to

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

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

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

Re: mutating a deque whilst iterating over it

2021-02-11 Thread Cameron Simpson
On 11Feb2021 20:22, duncan smith wrote: > It seems that I can mutate a deque while iterating over it if I >assign to an index, but not if I append to it. Is this the intended >behaviour? It seems a bit inconsistent. Cheers. I think that just means that the deque didn't _notice_ your change

Re: super() in injected methods

2021-02-11 Thread Andras Tantos
On 2/11/21 1:43 PM, Greg Ewing wrote: On 12/02/21 7:05 am, Andras Tantos wrote:      a = B()      a.m(41)      a.m = MethodType(method, a)      a.m(42) Are you sure you really need to inject methods into instances like this? What problem are you trying to solve by doing so? There's almost

Re: super() in injected methods

2021-02-11 Thread Andras Tantos
Chris, Thanks for the reply! On 2/11/21 11:08 AM, Chris Angelico wrote: On Fri, Feb 12, 2021 at 5:54 AM Andras Tantos wrote: Esteemed Python Gurus, I think, I actually know the answer to this question, but - maybe beyond reason - I'm hoping there to be some magic. Consider the following

[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

[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

[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

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

[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

[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

[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

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

[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

[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

[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

[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

Re: New Python implementation

2021-02-11 Thread Mr Flibble
On 11/02/2021 23:05, Paul Rubin wrote: Mr Flibble writes: "neos" - https://neos.dev/ https://github.com/i42output/neos Good luck, let us know when it is done. What is there doesn't look like a credible start so far, but maybe you will surprise us. Have you actually written any code in the

Re: New Python implementation

2021-02-11 Thread Mr Flibble
On 11/02/2021 23:12, Greg Ewing wrote: On 12/02/21 11:33 am, Mr Flibble wrote: neos isn't a Python package so that isn't a problem. It might be a bit confusing if it ever becomes part of the wider Python ecosystem, though. Python is but one language that neos will implement. /Flibble -- 

[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

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

Re: New Python implementation

2021-02-11 Thread Greg Ewing
On 12/02/21 11:33 am, Mr Flibble wrote: neos isn't a Python package so that isn't a problem. It might be a bit confusing if it ever becomes part of the wider Python ecosystem, though. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

[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

[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

[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
Irit Katriel added the comment: oops, wrong ticket. Sorry about the noise. -- status: pending -> open ___ 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 ___

[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

Re: New Python implementation

2021-02-11 Thread Mr Flibble
On 11/02/2021 22:25, Dan Stromberg wrote: On Thu, Feb 11, 2021 at 2:00 PM Mr Flibble wrote: On 11/02/2021 21:13, Dan Stromberg wrote: Does your project have a name yet? I'd like to follow it through google alerts or an announcement mailing list. "neos" - https://neos.dev/

Re: New Python implementation

2021-02-11 Thread Dan Stromberg
On Thu, Feb 11, 2021 at 2:00 PM Mr Flibble wrote: > On 11/02/2021 21:13, Dan Stromberg wrote: > > Does your project have a name yet? I'd like to follow it through google > > alerts or an announcement mailing list. > > "neos" - https://neos.dev/ https://github.com/i42output/neos > Pypi already

RE: New Python implementation

2021-02-11 Thread Avi Gross via Python-list
I may be the only one who does not deal well with a condescending attitude. I have to wonder what international standards body ever completes a task in finite time, only to find the real world has moved on. Having standards can be a great idea. When the standard does not properly describe any

Re: New Python implementation

2021-02-11 Thread Mr Flibble
On 11/02/2021 21:13, Dan Stromberg wrote: Does your project have a name yet? I'd like to follow it through google alerts or an announcement mailing list. "neos" - https://neos.dev/ https://github.com/i42output/neos /Flibble --  -- https://mail.python.org/mailman/listinfo/python-list

Re: super() in injected methods

2021-02-11 Thread Greg Ewing
On 12/02/21 7:05 am, Andras Tantos wrote:     a = B()     a.m(41)     a.m = MethodType(method, a)     a.m(42) Are you sure you really need to inject methods into instances like this? What problem are you trying to solve by doing so? There's almost certainly a better way to approach it.

[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

Re: mutating a deque whilst iterating over it

2021-02-11 Thread dn via Python-list
On 12/02/2021 09.22, duncan smith wrote: > Hello, > It seems that I can mutate a deque while iterating over it if I > assign to an index, but not if I append to it. Is this the intended > behaviour? It seems a bit inconsistent. Cheers. Yes, and no! Agree and disagree. (see how decisive I

Re: New Python implementation

2021-02-11 Thread Dan Stromberg
On Thu, Feb 11, 2021 at 10:21 AM Mr Flibble wrote: > For a language to transition from "toy" status it has to be formally > standardized. It is unacceptable to define a language in terms of a > particular implementation. A git repo of Source code and associated > observable dynamic behaviour

[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

[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

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

[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

Re: New Python implementation

2021-02-11 Thread dn via Python-list
On 12/02/2021 08.53, Chris Angelico wrote: > On Fri, Feb 12, 2021 at 6:47 AM dn via Python-list > wrote: >> 3 >> My mind is whirling in an attempt to understand "show me a better time". >> Does this perhaps indicate that @Chris' social life leaves something to >> be desired? Are Python-nerds

mutating a deque whilst iterating over it

2021-02-11 Thread duncan smith
Hello, It seems that I can mutate a deque while iterating over it if I assign to an index, but not if I append to it. Is this the intended behaviour? It seems a bit inconsistent. Cheers. Duncan >>> from collections import deque >>> d = deque(range(8)) >>> it = iter(d) >>> next(it) 0 >>>

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

@unittest.skip doesn't print anything in Python <= 3.7

2021-02-11 Thread אורי
Hi, https://stackoverflow.com/questions/66161394/unittest-skip-doesnt-print-anything-in-python-3-7 We are using Django with unittest. Some tests are skipped with the @unittest.skip decorator. But if I run the tests with Python 3.6 or 3.7, I get a number of tests passed (Ran 993 tests / OK), and

[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

Re: New Python implementation

2021-02-11 Thread Chris Angelico
On Fri, Feb 12, 2021 at 6:47 AM dn via Python-list wrote: > 3 > My mind is whirling in an attempt to understand "show me a better time". > Does this perhaps indicate that @Chris' social life leaves something to > be desired? Are Python-nerds really the ones to turn-to for dating > advice, or is

Re: New Python implementation

2021-02-11 Thread dn via Python-list
On 12/02/2021 07.14, Mr Flibble wrote: > On 11/02/2021 18:06, Chris Angelico wrote: >> On Fri, Feb 12, 2021 at 5:01 AM Mr Flibble >> wrote: >>> >>> On 11/02/2021 16:31, Dan Stromberg wrote: On Thu, Feb 11, 2021 at 4:35 AM Mr Flibble wrote: > I am starting work on creating

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

Re: super() in injected methods

2021-02-11 Thread Chris Angelico
On Fri, Feb 12, 2021 at 5:54 AM Andras Tantos wrote: > > Esteemed Python Gurus, > > I think, I actually know the answer to this question, but - maybe beyond > reason - I'm hoping there to be some magic. Consider the following code: > > from types import MethodType > > class A(object): >

super() in injected methods

2021-02-11 Thread Andras Tantos
Esteemed Python Gurus, I think, I actually know the answer to this question, but - maybe beyond reason - I'm hoping there to be some magic. Consider the following code:     from types import MethodType     class A(object):         pass         def m(self, x):             print(f"A.m({x})")   

Re: New Python implementation

2021-02-11 Thread Mr Flibble
On 11/02/2021 18:24, Paul Bryan wrote: On Thu, 2021-02-11 at 17:56 +, Mr Flibble wrote: Actually it is a relatively small task due to the neos universal compiler's architectural design.  If it was a large task I wouldn't be doing it. When do you estimate this task will be completed? I

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

Re: New Python implementation

2021-02-11 Thread Paul Bryan
On Thu, 2021-02-11 at 17:56 +, Mr Flibble wrote: > Actually it is a relatively small task due to the neos universal > compiler's architectural design.  If it was a large task I wouldn't > be doing it. When do you estimate this task will be completed? > I am not particularly interested in

Re: New Python implementation

2021-02-11 Thread Mr Flibble
On 11/02/2021 18:06, Chris Angelico wrote: On Fri, Feb 12, 2021 at 5:01 AM Mr Flibble wrote: On 11/02/2021 16:31, Dan Stromberg wrote: On Thu, Feb 11, 2021 at 4:35 AM Mr Flibble wrote: Hi! I am starting work on creating a new Python implementation from scratch using "neos" my universal

Re: New Python implementation

2021-02-11 Thread Mr Flibble
On 11/02/2021 18:03, Chris Angelico wrote: In any case, it's not Python if it can't handle arbitrarily large numbers. Python is an excellent language for mathematics. I am also creating Ada and Haskell implementations which have a similar requirement. /Flibble --  --

Re: New Python implementation

2021-02-11 Thread Chris Angelico
On Fri, Feb 12, 2021 at 5:01 AM Mr Flibble wrote: > > On 11/02/2021 16:31, Dan Stromberg wrote: > > On Thu, Feb 11, 2021 at 4:35 AM Mr Flibble > > wrote: > > > >> > >> Hi! > >> > >> I am starting work on creating a new Python implementation from scratch > >> using "neos" my universal compiler

Re: New Python implementation

2021-02-11 Thread Chris Angelico
On Fri, Feb 12, 2021 at 4:52 AM Mr Flibble wrote: > > On 11/02/2021 15:13, Chris Angelico wrote: > > On Thu, Feb 11, 2021 at 11:36 PM Mr Flibble > > wrote: > >> > >> > >> Hi! > >> > >> I am starting work on creating a new Python implementation from scratch > >> using "neos" my universal

Re: New Python implementation

2021-02-11 Thread Mr Flibble
On 11/02/2021 16:31, Dan Stromberg wrote: On Thu, Feb 11, 2021 at 4:35 AM Mr Flibble wrote: Hi! I am starting work on creating a new Python implementation from scratch using "neos" my universal compiler that can compile any programming language. I envision this implementation to be

Re: New Python implementation

2021-02-11 Thread Mr Flibble
On 11/02/2021 15:13, Chris Angelico wrote: On Thu, Feb 11, 2021 at 11:36 PM Mr Flibble wrote: Hi! I am starting work on creating a new Python implementation from scratch using "neos" my universal compiler that can compile any programming language. Is it your intention to support all of

[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

Re: New Python implementation

2021-02-11 Thread Dan Stromberg
On Thu, Feb 11, 2021 at 4:35 AM Mr Flibble wrote: > > Hi! > > I am starting work on creating a new Python implementation from scratch > using "neos" my universal compiler that can compile any programming > language. I envision this implementation to be significantly faster than > the currently

Re: Best practices for software architecture in Python

2021-02-11 Thread Oscar
In article , Henning Follmann wrote: >>>Looks like you (the project leader?) needs training, not the >>>software engineers. >>> >>>"Making Things Happen" by Scott Berkun >> >> This looks like a very interesting book to add to my reading list, but >> how do you think it will help the OP with

[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

Re: New Python implementation

2021-02-11 Thread Chris Angelico
On Thu, Feb 11, 2021 at 11:36 PM Mr Flibble wrote: > > > Hi! > > I am starting work on creating a new Python implementation from scratch using > "neos" my universal compiler that can compile any programming language. Is it your intention to support all of Python's syntax and semantics, or is

Re: Best practices for software architecture in Python

2021-02-11 Thread Henning Follmann
On 2021-02-11, Oscar wrote: > In article , > Henning Follmann wrote: >>On 2021-02-10, Python wrote: >>> Hi, >>> >>> If you had to train engineers who are used to write >>> Python scripts for image processing, data format conversion, >>> etc. (so they know most the basics of Python types and

[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

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

New Python implementation

2021-02-11 Thread Mr Flibble
Hi! I am starting work on creating a new Python implementation from scratch using "neos" my universal compiler that can compile any programming language. I envision this implementation to be significantly faster than the currently extant Python implementations (which isn't a stretch given

[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

Re: Best practices for software architecture in Python

2021-02-11 Thread Oscar
In article , Henning Follmann wrote: >On 2021-02-10, Python wrote: >> Hi, >> >> If you had to train engineers who are used to write >> Python scripts for image processing, data format conversion, >> etc. (so they know most the basics of Python types and >> programming structures except

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

Re: Mutable defaults

2021-02-11 Thread J. Pic
Thank you, if anybody finds such an example in the wild where using a mutable default is actually better than a global or closure I would be happy to learn about it! About the proposal, this is a quick PoC of the @default decorator: import inspect def default(**defaults): def

[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

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

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

[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

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

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

[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

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