Re: [Python-Dev] Standardize error message for non-pickleable types

2018-10-29 Thread Terry Reedy
On 10/29/2018 5:17 PM, MRAB wrote: On 2018-10-29 19:38, Serhiy Storchaka wrote: When you try to to pickle or copy a non-pickleable object, you will get an error. In most cases this will be a TypeError with one of few similar, but different variants:     "can't pickle XXX objects" (default)    

Re: [Python-Dev] any way to subscribe to bugs and PRs on a particular topic?

2018-12-04 Thread Terry Reedy
On 12/4/2018 2:13 PM, Chris Withers wrote: Hello, Welcome back. unittest.mock is important for everyone writing non-trivial tests. I'd like to see if I can help with unittest.mock, but don't have a huge amount of bandwidth and can't even parse let alone process the whole firehose of bpo a

Re: [Python-Dev] I reverted "Add Windows App Store package" change

2018-12-07 Thread Terry Reedy
On 12/7/2018 11:31 AM, Victor Stinner wrote: I would be simpler if it would be possible to have a "patch serie": list of pull requests, One can make an 'index issue' with multiple dependencies, each with a PR. I do this for multiple independent changes to a module or related modules. or

Re: [Python-Dev] I reverted "Add Windows App Store package" change

2018-12-08 Thread Terry Reedy
On 12/8/2018 11:32 AM, Nick Coghlan wrote: Whether the UX counts as "good" or not is open to debate (I consider it pretty good for the complexity of the task it handles), but if you ever want to revise the history of a complex patch series to make it easier for reviewers to follow: 1. Use "git

Re: [Python-Dev] 3.7.2rc1 and 3.6.8rc1 cutoffs ahead, last 3.6.x bugfix release!

2018-12-19 Thread Terry Reedy
On 12/19/2018 4:14 AM, Serhiy Storchaka wrote: I propose to allow backporting bugfixes to 3.6 if they do not need excessive work, but stop to fix 3.6 only bugs. I think this would need a PEP. After migrating to GitHab, backporting became less painful, Before GitHub, we forward ported. For

Re: [Python-Dev] Windows porting: request to review PR #880

2018-12-21 Thread Terry Reedy
On 12/21/2018 6:26 AM, Jeroen Demeyer wrote: Can somebody please review https://github.com/python/cpython/pull/880 That addresses a severe problem on Windows making it impossible to build any C++ extension module with some compilers. Issue is https://bugs.python.org/issue11566. Someone needs t

[Python-Dev] Add more SyntaxWarnings?

2019-01-24 Thread Terry Reedy
https://bugs.python.org/issue15248 is about situations like the following: >>> [(1,2,3) (4,5,6)] Traceback (most recent call last): File "", line 2, in (4,5,6)] TypeError: 'tuple' object is not callable The original poster requested that the error message be augmented with something

Re: [Python-Dev] Anyone else seeing a lack of caching in local docs builds?

2019-01-27 Thread Terry Reedy
On 1/27/2019 9:01 AM, Nick Coghlan wrote: Hi folks, I'm currently seeing a behaviour where every time I run "make html", all 474 source files get rebuilt. I just rebuilt, ditto, all 474. Caching only works when I rebuild 'soon' (at least within same day) after a complete rebuild. I just up

Re: [Python-Dev] Asking for reversion

2019-02-03 Thread Terry Reedy
On 2/3/2019 4:03 PM, Antoine Pitrou wrote: Hello, I'd like to ask for the reversion of the changes done in https://github.com/python/cpython/pull/11664 The reason is simple: [over 1000 lines not reviewed, no tests, no docs] Aside from the technical reasons Antoine gave, which I agree with, I

Re: [Python-Dev] Asking for reversion

2019-02-03 Thread Terry Reedy
On 2/3/2019 7:55 PM, Guido van Rossum wrote: Also, did anyone ask Davin directly to roll it back? Antoine posted on the issue, along with Robert O. Robert reviewed and make several suggestions. -- Terry Jan Reedy ___ Python-Dev mailing list Pytho

Re: [Python-Dev] bpo-32972: Add unittest.AsyncioTestCase review (for 3.8?)

2019-02-05 Thread Terry Reedy
On 2/5/2019 11:44 AM, Antoine Pitrou wrote: I cannot comment on the PR, but since the functionality is asyncio-specific, I would suggest moving it to a dedicate `asyncio.testing` module, or something similar, rather than leaving it in `unittest` proper. That is one of the options discussed on

Re: [Python-Dev] CPython on Windows ARM32

2019-02-06 Thread Terry Reedy
On 2/5/2019 10:10 PM, Zachary Ware wrote: I'm all for the first two changes (especially the second), and if 10 years of pledged corporate support for a new platform is the price we have to pay for them, I'm ok with that :). I would expect that the main question should be the density of WinArm

Re: [Python-Dev] [bpo-35155] Requesting a review

2019-02-12 Thread Terry Reedy
On 2/12/2019 5:14 AM, Denton Liu wrote: Hello all, A couple months back, I reported bpo-35155[1] and I submitted a PR for consideration[2]. After a couple of reviews, it seems like progress has stalled. Would it be possible for someone to review this? Thanks, Denton [1]: https://bugs.python.o

Re: [Python-Dev] [bpo-35155] Requesting a review

2019-02-12 Thread Terry Reedy
On 2/12/2019 3:24 PM, Terry Reedy wrote: The problem is that the urllib.request doc has several 'placeholder-literal' and 'literal-placeholder' constructs where Correction: The result must be a legal function name, so that should be 'placeholder_literal' and &#

Re: [Python-Dev] Another update for PEP 394 -- The "python" Command on Unix-Like Systems

2019-02-13 Thread Terry Reedy
On 2/13/2019 3:26 PM, Barry Warsaw wrote: I personally would like for `python` to be the latest Python 3 version (or perhaps Brett’s launcher), `python2` to be Python 2.7 where installed (and not mandatory). `python3` would be an alias for the latest Python 3. It appears python is already p

Re: [Python-Dev] Another update for PEP 394 -- The "python" Command on Unix-Like Systems

2019-02-13 Thread Terry Reedy
On 2/13/2019 10:25 PM, Steven D'Aprano wrote: I haven't come across this FUD about Python 4, I have, on StackOverflow, induced by people reading something like "deprecated now, removed in 4.0" -- Terry Jan Reedy ___ Python-Dev mailing list Pytho

Re: [Python-Dev] "Good first issues" on the bug tracker

2019-02-23 Thread Terry Reedy
On 2/23/2019 2:50 PM, Cheryl Sabella wrote: AM Karthikeyan wrote: I would also recommend waiting for a core dev or someone to provide some feedback or confirmation on even an easy issue's fix since it's easy to propose a fix to be later rejected due to various reasons resulting

Re: [Python-Dev] datetime.timedelta total_microseconds

2019-02-26 Thread Terry Reedy
On 2/26/2019 7:03 PM, Chris Barker via Python-Dev wrote: So: it would be good to provide a correct, simple,  intuitive, and discoverable way to do that. timedelta.total_seconds() To me, total_x implies that there is a summation of multiple timedeltas, and there is not. So not intuitive to

Re: [Python-Dev] Summary of Python tracker Issues

2019-02-28 Thread Terry Reedy
On 2/28/2019 8:07 AM, Jonathan Goble wrote: On Thu, Feb 28, 2019, 8:02 AM INADA Naoki > wrote: No stats for last week? Been missing for two weeks actually. I did not receive a summary on either the 15th or 22nd. Ditto for me. I get pydev via gmane. Anyon

Re: [Python-Dev] Summary of Python tracker Issues

2019-02-28 Thread Terry Reedy
On 2/28/2019 5:38 PM, Glenn Linderman wrote: On 2/28/2019 2:18 PM, Jonathan Goble wrote: On Thu, Feb 28, 2019, 5:11 PM Terry Reedy <mailto:tjre...@udel.edu>> wrote: On 2/28/2019 8:07 AM, Jonathan Goble wrote: > On Thu, Feb 28, 2019, 8:02 AM INADA Naoki mailto:songofaca.

Re: [Python-Dev] Summary of Python tracker Issues

2019-02-28 Thread Terry Reedy
On 2/28/2019 6:54 PM, Glenn Linderman wrote: There seems to be enough evidence that something went wrong somewhere, though, and whoever maintains that process should start investigating, but it would still be nice to get confirmation from a non-Google email recipient whether they did or did no

Re: [Python-Dev] [RELEASE] Python 2.7.16

2019-03-04 Thread Terry Reedy
On 3/3/2019 10:30 PM, Benjamin Peterson wrote: I'm pleased to announce the immediate availability of Python 2.7.16 for download at https://www.python.org/downloads/release/python-2716/. On Windows 10, this is an 'unrecognized app' and Windows Defender SmartScreen, now default, refuses to run

Re: [Python-Dev] (Licensing question) backport of shutil.copyfile() functionality

2019-03-11 Thread Terry Reedy
On 3/11/2019 10:54 PM, Inada Naoki wrote: Hello, some time ago I contributed a couple of patches to speedup shutil.copy*() functions: https://bugs.python.org/issue33671 https://bugs.python.org/issue33695 You retain copyright on the code you contributed. I would like to backport both functio

Re: [Python-Dev] Tests for internal functionality

2019-03-16 Thread Terry Reedy
On 3/16/2019 3:10 AM, Ivan Pozdeev via Python-Dev wrote: In https://github.com/python/cpython/pull/6541 , I was requested to add tests for an internal C function. As I wrote in https://github.com/python/cpython/pull/6541#issuecomment-445514807 , it's not clear from the codebase 1) where tes

Re: [Python-Dev] Is XML serialization output guaranteed to be bytewise identical forever?

2019-03-18 Thread Terry Reedy
On 3/18/2019 6:41 PM, Raymond Hettinger wrote: We're having a super interesting discussion on https://bugs.python.org/issue34160 . It is now marked as a release blocker and warrants a broader discussion. Our problem is that at least two distinct and important users have written tests that de

Re: [Python-Dev] Can I submit more support of standard library for VxWorks after 3.8.0 beta1?

2019-03-19 Thread Terry Reedy
One main purpose of the beta period is to discover and fix bugs and otherwise tweek behavior in the new features included in the first beta. This usually presupposes that the feature is thought to be 'ready-to-go' as-is, absent new discoveries. Interpretation and issuance of exceptions is usu

Re: [Python-Dev] Is XML serialization output guaranteed to be bytewise identical forever?

2019-03-21 Thread Terry Reedy
On 3/21/2019 1:23 PM, Paul Moore wrote: On Thu, 21 Mar 2019 at 17:05, Steve Holden wrote: Especially as the standards specifically say that ordering has no semantic impact. Byte-by-byte comparison of XML is almost always inappropriate. Conversely, if ordering has no semantic impact, there

Re: [Python-Dev] BDFL-Delegate appointments for several PEPs

2019-03-24 Thread Terry Reedy
On 3/24/2019 8:21 AM, Nick Coghlan wrote: We'll be announcing those appointments as we go, so I'm happy to report that I will be handling the BDFL-Delegate responsibilities for the following PEPs: Where do we discuss these? If a delegate has a provisional view, it might help focus discussion

Re: [Python-Dev] BDFL-Delegate appointments for several PEPs

2019-03-24 Thread Terry Reedy
On 3/24/2019 7:00 PM, Cameron Simpson wrote: On 24Mar2019 17:02, Terry Reedy wrote: On 3/24/2019 8:21 AM, Nick Coghlan wrote: * PEP 499: Binding "-m" executed modules under their module name as well as `__main__` My brief response: +1 unless there is a good reason not. There t

Re: [Python-Dev] BDFL-Delegate appointments for several PEPs

2019-03-24 Thread Terry Reedy
On 3/24/2019 10:01 PM, Terry Reedy wrote: On 3/24/2019 7:00 PM, Cameron Simpson wrote: Did you have a specific scenario in mind? I was thinking about IDLE and its tangled web of circular inports, but I am now convinced that this change will not affect it.  Indeed, idlelib/pyshell.py

Re: [Python-Dev] BDFL-Delegate appointments for several PEPs

2019-03-25 Thread Terry Reedy
On 3/25/2019 12:27 AM, Cameron Simpson wrote: On 24Mar2019 23:22, Terry Reedy wrote: On 3/24/2019 10:01 PM, Terry Reedy wrote: On 3/24/2019 7:00 PM, Cameron Simpson wrote: Did you have a specific scenario in mind? I was thinking about IDLE and its tangled web of circular inports, but I am

Re: [Python-Dev] (no subject)

2019-04-10 Thread Terry Reedy
On 4/10/2019 7:24 AM, Robert Okadar wrote: Hi community, I have developed a tkinter GUI component, Python v3.7. It runs very well in Linux but seeing a huge performance impact in Windows 10. While in Linux an almost real-time performance is achieved, in Windows it is slow to an unusable level.

Re: [Python-Dev] No longer enable Py_TRACE_REFS by default in debug build

2019-04-10 Thread Terry Reedy
On 4/10/2019 2:45 PM, Steve Dower wrote: It's debug mode, and so you should expect less efficient memory and CPU usage. On my Windows machine, 'python -m test -ugui' takes about twice as long. That's why we have two modes - so that it's easier to debug issues. -- Terry Jan Reedy ___

Re: [Python-Dev] Fixing the ctypes implementation of the PEP3118 buffer interface

2019-04-14 Thread Terry Reedy
On 4/14/2019 2:54 AM, Eric Wieser wrote: I've recently been adding better support to Numpy 1.16 for interoperability with ctypes. In doing so, I came across two bugs in the implementation of the PEP3118 buffer interface within ctypes, affecting `Structure`s and arrays. Rather than repeating the

Re: [Python-Dev] Python Documentation Translation in italian language

2019-04-20 Thread Terry Reedy
On 4/20/2019 4:14 AM, Alessandro Cucci wrote: Hello folks, I want to start a project for translating the Python Documentation in Italian. I'm reading the PEP545, trying to understand how it works. I founded a Python User Group in my city and I can work with them on the translations, plus next

Re: [Python-Dev] "if __name__ == '__main__'" at the bottom of python unittest files

2019-04-30 Thread Terry Reedy
On 4/30/2019 5:24 PM, Chris Withers wrote: Hi All, I have a crazy idea of getting unittest.mock up to 100% code coverage. I noticed at the bottom of all of the test files in testmock/, there's a: if __name__ == '__main__':     unittest.main() ...block. Such blocks should be excluded from c

Re: [Python-Dev] "if __name__ == '__main__'" at the bottom of python unittest files

2019-05-01 Thread Terry Reedy
On 5/1/2019 2:13 AM, Chris Withers wrote: On 01/05/2019 06:12, Terry Reedy wrote: Such blocks should be excluded from coverage by the default .coveragerc file.  Mine came with exclude_lines = # Don't complain if non-runnable code isn't run: if 0: if __name__ ==

Re: [Python-Dev] "if __name__ == '__main__'" at the bottom of python unittest files

2019-05-01 Thread Terry Reedy
On 5/1/2019 9:30 AM, Chris Withers wrote: Agreed, but my focus here is to get to 100% for mock so that it's clear that all the code is there for a reason; mock is very complicated by necessity, and having examples of why code needs to be there is what I'm aiming for most of all. I agree that

Re: [Python-Dev] Redoing failed PR checks

2019-05-08 Thread Terry Reedy
On 5/8/2019 10:23 AM, Eric V. Smith wrote: I think you can close and reopen the PR. That’s what I’m trying on my blocked PR. That works but reruns all the CI checks, including the ones already passed. Some bots allow individual reruns, but it is not as clear as it should be. -- Terry Jan

[Python-Dev] Online Devguide mostly not working

2019-05-11 Thread Terry Reedy
https://devguide.python.org gives the intro page with TOC on sidebar and at end. Clicking anything, such as Getting Started, which tries to display https://devguide.python.org/setup/, returns a Read the Docs page "Sorry This page does not exist yet." 'Down for everyone' site also cannot acces

Re: [Python-Dev] Python Language Summit 2019 blog posts

2019-05-15 Thread Terry Reedy
On 5/15/2019 6:06 PM, Mariatta wrote: If you have FOMO (fear of missing out) of Python Language Summit 2019, worry no more. We invited A. Jesse Jiryu Davis to cover for the language summit, and the blog posts are starting to appear in The PSF's official blog. Starts here: http://pyfound.blo

Re: [Python-Dev] Parser module in the stdlib

2019-05-20 Thread Terry Reedy
On 5/20/2019 11:55 AM, Guido van Rossum wrote: On Thu, May 16, 2019 at 3:57 PM Steve Dower > wrote: [...] We still have the policy of not removing modules that exist in the Python 2 standard library. But 3.9 won't be covered by that :) I didn't even re

Re: [Python-Dev] PEP 594: Removing dead batteries from the standard library

2019-05-20 Thread Terry Reedy
On 5/20/2019 6:06 PM, Christian Heimes wrote: Removing the crypt module would remove support for system-standard password files. I don't understand the rationale. Applications *must* not access system-standard password files directly. On any sanely and securely configured systems, applicatio

Re: [Python-Dev] PEP 594: Removing dead batteries from the standard library

2019-05-21 Thread Terry Reedy
On 5/21/2019 9:01 AM, Steven D'Aprano wrote: ... Many Python users don't have the privilege of being able to install arbitrary, unvetted packages from PyPI. They get to use only packages from approved vendors, including the stdlib, what they write themselves, and nothing else. Please don't dismis

Re: [Python-Dev] PEP 594: update 1

2019-05-21 Thread Terry Reedy
On 5/21/2019 10:12 AM, Christian Heimes wrote: --- PEP: 594 Title: Removing dead batteries from the standard library 'dead' seems controversial. 'nearly useless' should be less so. I think 'after 2.7 end-of-life' is worth addin

Re: [Python-Dev] Missing testcase for bpo-34125

2019-05-22 Thread Terry Reedy
On 5/22/2019 5:41 AM, Jeroen Demeyer wrote: Could somebody please merge https://github.com/python/cpython/pull/13461 It adds a missing testcase for bpo-34125. This is testing code which is affected by PEP 590, so missing this test might accidentally break CPython if we screw up with implementi

Re: [Python-Dev] PEP 558: Defined semantics for locals()

2019-05-25 Thread Terry Reedy
On 5/25/2019 10:36 AM, Guido van Rossum wrote: This looks great. I agree. I understand and have tried to explain normal operation multiple times. The proposed new doc looks better than anything I ever wrote. (I never even thought about locals() with tracing on.) The improved clarity well

Re: [Python-Dev] Accepting PEP 587 (Python Initialization Configuration)

2019-05-26 Thread Terry Reedy
On 5/26/2019 10:02 AM, Thomas Wouters wrote: As PEP-delegate, I'm accepting version 5 of PEP 587 (Python Initialization Configuration). ... Thanks, Victor, for pushing this massive amount of work through; And thanks to you for reviewing and approving. it won't affect most people using Py

Re: [Python-Dev] [SPAM?] Re: PEP 558: Defined semantics for locals()

2019-05-27 Thread Terry Reedy
On 5/27/2019 3:18 AM, Greg Ewing wrote: Chris Angelico wrote: Except that it does. After calling locals() a second time, the result of the *first* call will be updated to reflect changes. Yeow. That's *really* unintuitive. There had better be an extremely good reason for this behaviour. I be

Re: [Python-Dev] PEP 558: Defined semantics for locals()

2019-05-27 Thread Terry Reedy
On 5/27/2019 9:52 AM, Richard Damon wrote: On 5/27/19 9:12 AM, Terry Reedy wrote: I believe that the situation is or can be thought of as this: there is exactly 1 function locals dict. per function invocation, or more generally, as Guido said, per stack frame. This part is obvious to me

Re: [Python-Dev] Overloading comparison operator for lists

2019-05-28 Thread Terry Reedy
On 5/28/2019 11:35 PM, Montana Burr wrote: What is the justification for causing list == 3 to evaluate to False, besides the obvious "a list cannot equal a number"? That is completely sufficient. The default comparison is by id, and a class must override to get something different. The 'def

Re: [Python-Dev] Expected stability of PyCode_New() and types.CodeType() signatures

2019-05-31 Thread Terry Reedy
On 5/31/2019 4:46 AM, Petr Viktorin wrote: Hello, PEP 570 (Positional-Only Parameters) changed the signatures of PyCode_New() and types.CodeType(), adding a new argument for "posargcount". Our policy for such changes seems to be fragmented tribal knowledge. I'm writing to check if my understand

Re: [Python-Dev] Should I postpone PEP 558 (locals() semantics) to Python 3.9?

2019-05-31 Thread Terry Reedy
On 5/31/2019 6:20 AM, Nick Coghlan wrote: On Fri., 31 May 2019, 6:34 pm Nathaniel Smith, > wrote: I wouldn't mind having a little more breathing room. It's frustrating to miss the train, but these bugs are several decades old so I guess nothing terrible will ha

Re: [Python-Dev] Expected stability of PyCode_New() and types.CodeType() signatures

2019-05-31 Thread Terry Reedy
On 5/31/2019 5:28 PM, Simon Cross wrote: As the maintainer of Genshi, one the libraries affected by the CodeType and similar changes, I thought I could add a users perspective to the discussion: Genshi is a templating engine that parses Python code from inside its templates. It supports Pytho

Re: [Python-Dev] PEP 594: update 1

2019-06-04 Thread Terry Reedy
On 6/4/2019 8:21 PM, Victor Stinner wrote: So what is happening for this PEP since Python 3.8 beta1 has been released? Is it too late for Python 3.8 or not? The only action proposed for 3.8 was soft deprecation in the docs, which I presume can be done later in the beta process. It seems lik

[Python-Dev] Re: Using vectorcall for tp_new and tp_init

2019-06-07 Thread Terry Reedy
On 6/7/2019 6:41 AM, Jeroen Demeyer wrote: Hello, I'm starting this thread to brainstorm for using vectorcall to speed up creating instances of Python classes. Currently the following happens when creating an instance of a Python class X using X(.) and assuming that __new__ and __init__

[Python-Dev] Re: 1 PR, multiple issues

2019-06-10 Thread Terry Reedy
This was more of a core-mentorship question (tracker management) than a pydev question (Python development). But since we are here... On 6/10/2019 11:41 PM, Mariatta wrote: Hmm, I personally would still consider the additional issues as duplicates. So I would make note in each of the duplicate

[Python-Dev] Re: strip behavior provides inconsistent results with certain strings

2019-07-01 Thread Terry Reedy
On 7/1/2019 1:57 PM, Chris Barker via Python-Dev wrote: This was quite extensively discussed on python-ideas recently: https://mail.python.org/archives/list/python-id...@python.org/thread/RJARZSUKCXRJIP42Z2YBBAEN5XA7KEC3/#WIRID57ESUFUAQQQ6ZUY2RK5PKQQYSJ3 The claim of 'inconsistent results' is

[Python-Dev] Re: Annoying user on GitHub

2019-07-02 Thread Terry Reedy
On 7/2/2019 12:09 PM, Steve Dower wrote: Maybe there's also a way to automatically lock conversations on commits and old issues? I occasionally add comments both to closed issues and merged commits. For commits, 'Thank you' or 'See # for followup' are examples Obviously we can lock them

[Python-Dev] Re: strip behavior provides inconsistent results with certain strings

2019-07-02 Thread Terry Reedy
On 7/2/2019 12:16 AM, Glenn Linderman wrote: On 7/1/2019 8:28 PM, Terry Reedy wrote: I did not read much of the thread, but the proposal is to wrap a near-trivial expression (2 operations) or replace a current method call with a method call than is more or less the same len as what it

[Python-Dev] Re: Removing dead bytecode vs reporting syntax errors

2019-07-05 Thread Terry Reedy
This thread is based on https://bugs.python.org/issue37500 to get the thoughts of a broader range of people. On 7/5/2019 5:28 PM, Pablo Galindo Salgado wrote: Recently, we moved the optimization for the removal of dead code of the form if 0:   to the ast My impression is that you

[Python-Dev] Re: Docs: audit event table empty

2019-07-09 Thread Terry Reedy
On 7/9/2019 6:44 AM, Christian Heimes wrote: Hi, the table with auditing events does not render on docs.python.org, https://docs.python.org/3.9/library/audit_events.html. Steve and I are going to present the auditing feature tomorrow at EuroPython. It would be helpful to have the table available

[Python-Dev] Re: Docs: audit event table empty

2019-07-09 Thread Terry Reedy
On 7/9/2019 3:53 PM, Terry Reedy wrote: https://docs.python.org/3.9/library/audit_events.html. Steve and I are going to present the auditing feature tomorrow at EuroPython. That should be interesting. My experiment with the following >>> def audit(event, args): print(ev

[Python-Dev] Re: bpo-34788 needs a review

2019-07-15 Thread Terry Reedy
On 7/15/2019 3:55 AM, Sasha Pavlyuk wrote: Hello 2019-06-03 I have created PR https://github.com/python/cpython/pull/13772 , which adds IPv6 scoped addresses support to ipaddress module. It is very critical to everyone, who is dealing with IPv6  networking. For example, in salt project they u

[Python-Dev] Sphinx is blocking merges

2019-07-21 Thread Terry Reedy
One of the required CI tests is a Travis doc build, even if a PR does not touch any doc file. The following failure appears to be deterministic on master and 3.8. A 3.7 backport passed. It has happened multiple times on multiple PRs today. Example: https://travis-ci.org/python/cpython/jobs/

[Python-Dev] Re: Comparing dict.values()

2019-07-23 Thread Terry Reedy
On 7/23/2019 8:27 PM, Steven D'Aprano wrote: On Tue, Jul 23, 2019 at 08:59:09PM -, Kristian Klette wrote: Hi! During the sprints after EuroPython, I made an attempt at adding support for comparing the results from `.values()` of two dicts. Currently the following works as expected: ``` d

[Python-Dev] Re: Comparing dict.values()

2019-07-25 Thread Terry Reedy
On 7/25/2019 2:46 PM, Brett Cannon wrote: You're correct that I misspoke, but I personally still think a doc change is the best solution. Given the absence of a consensus on when values() views should be considered equal, I strongly agree. I strongly oppose raising an exception. -- Terry

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Terry Reedy
On 10/20/2020 2:49 PM, Dan Stromberg wrote: I suspect what it needs most is HPY work, which could benefit a lot of Python language implementations in the long term: https://github.com/hpyproject/hpy $2e6 spent on HPY could be pretty amazing. I don't think the two projects are mutually exclus

[Python-Dev] Re: PyPy performance stats (was Re: Speeding up CPython)

2020-10-26 Thread Terry Reedy
On 10/26/2020 11:42 AM, Matti Picus wrote: On 10/21/20 2:38 PM, Matti Picus wrote: [0] https://speed.pypy.org/comparison/ Just as a follow up: the front page of speed.pypy.org now shows the latest pypy 3.6 vs cpython 3.6.7. I just clicked the link and there is 3.7.6, not 3.6.7. But why

[Python-Dev] Re: Drop Solaris, OpenSolaris, Illumos and OpenIndiana support in Python

2020-10-31 Thread Terry Reedy
On 10/30/2020 5:08 PM, Garrett D'Amore via Python-Dev wrote: I’m not on this list. But I have offered to help - if there are tasks that need to be done to help this I can help put the weight of a commercial entity behind it whether that involves assigning our developers to work on this, helpi

[Python-Dev] Re: Please do not remove random bits of information from the tutorial

2020-11-08 Thread Terry Reedy
On 11/8/2020 5:51 PM, Inada Naoki wrote: On Mon, Nov 9, 2020 at 3:46 AM Riccardo Polignieri via Python-Dev wrote: Rather, I am slightly concerned about the method in itself - that a deletion may occur following only a brief exchange on the bug tracker. Again, I did it following not only a

[Python-Dev] Re: Questions about about the DLS 2020

2020-11-16 Thread Terry Reedy
On 11/16/2020 6:14 AM, Mark Shannon wrote: 2. Is the error in the ast matching example, an intentional "simplification" or just an oversight? The example: ``` def simplify(node):     match node:     case BinOp(Num(left), '+', Num(right)):     return Num(left + right)     c

[Python-Dev] Re: Questions about about the DLS 2020

2020-11-16 Thread Terry Reedy
On 11/16/2020 11:57 AM, Tobias Kohn wrote: 1.  This really comes down to how you look at it, or how you define pattern matching.  The issue here is that the concept of pattern matching has grown into a large and somewhat diverse flock of interpretations and implementations (as a side note: int

[Python-Dev] Re: Review patch fixing packed bitfields in ctypes struct/union

2020-11-20 Thread Terry Reedy
On 11/20/2020 4:03 AM, Simon Cross wrote: Thank you for this [cttpes] patch! > I can't help land it, but it looks sane to me. If you have a github account, you can help by reviewing it. Check the spelling, grammar, and clarity of comments, docstrings, and news item. Can the code be improve

[Python-Dev] Re: The semantics of pattern matching for Python

2020-11-20 Thread Terry Reedy
Mark, did you get the response I sent to hotpy.org 4 days ago? Is that a real address? I ask because the typos I reported are still there and trying to visit hotpy.org fails. -- Terry Jan Reedy ___ Python-Dev mailing list -- python-dev@python.org To

[Python-Dev] Re: NEWS, changelog, and blurb -- a teaching moment

2020-12-09 Thread Terry Reedy
On 12/9/2020 2:19 PM, Ethan Furman wrote: Greetings! I'm hoping somebody can alleviate my confusion.  I had thought that the blurb tool was created to resolve the near-constant push races when the NEWS file was updated; but it appears that it only affects the change log. Unreleased blurbs ar

[Python-Dev] Re: How to add multiple python kernel(2.7.x,3.6.x,3.7.x) to jupyterhub

2020-12-20 Thread Terry Reedy
On 12/20/2020 12:24 PM, Shaik Zainul wrote: Hi, i am new to jupyterhub and i am trying to setup 1. add multiple python kernel(2.7.x,3.6.x,3.7.x) to jupyterhub 2. setup user specific kernel - means i have 3 kernels PY3, Pyspark and R. how can i assign this 3 PY3, Pyspark and R kernels to User1, U

[Python-Dev] Re: 3.10 change (?) for __bool__

2021-01-13 Thread Terry Reedy
On 1/13/2021 8:56 PM, Greg Ewing wrote: On 14/01/21 1:13 pm, Paul Sokolovsky wrote: But nobody talked about optimizing away generic "pure"-annotated functions (which would differ from "mathematical" definition of purity), only about optimizing "pure" *dunder* methods The same thing applies. If

[Python-Dev] Re: seg fault in 3.10a4

2021-01-17 Thread Terry Reedy
On 1/17/2021 8:05 AM, Stestagg wrote: Hi Robin It would be ideal if you could please create a new issue here: https://bugs.python.org/ If 'reportlab userguide creation' uses any 3rd party compiled C code, this may be premature. bugs.python.org is for patching cpyt

[Python-Dev] Re: PEP 651 -- Robust Overflow Handling

2021-01-19 Thread Terry Reedy
On 1/19/2021 8:31 AM, Mark Shannon wrote: Hi everyone, It's time for yet another PEP :) Fortunately, this one is a small one that doesn't change much. It's aim is to make the VM more robust. Abstract This PEP proposes that machine stack overflow is treated differently from runaway r

[Python-Dev] Re: PEP 651 -- Robust Overflow Handling

2021-01-19 Thread Terry Reedy
On 1/19/2021 8:31 AM, Mark Shannon wrote: It's time for yet another PEP :) Fortunately, this one is a small one that doesn't change much. It's aim is to make the VM more robust. Abstract This PEP proposes that machine stack overflow is treated differently from runaway recursion. M

[Python-Dev] Re: PEP 651 -- Robust Overflow Handling

2021-01-19 Thread Terry Reedy
On 1/19/2021 10:01 AM, Mark Shannon wrote: The following program will run safely to completion: I interpreted this to mean 'works now', on whatever system you tested this on. You question suggests that you meant "fails now but will work with a successful patch for the PEP". sys.setr

[Python-Dev] Re: Speeding up CPython

2021-01-24 Thread Terry Reedy
On 1/24/2021 6:09 PM, Bruno Cabral wrote: Hello Everyone, I´m very curious about this proposal, but unfortunately it has been a while since I heard any news about this project. Does anyone know what happened? The Python Software Foundation currently has a shortfall of funds rather than a su

[Python-Dev] What is the pyclbr public API?

2021-01-27 Thread Terry Reedy
pyclbr is the stdlib module browser (once just class browser, hence the name). The doc https://docs.python.org/3/library/pyclbr.html#module-pyclbr, which I revised in 2017, documents readline and readline_ex as the public call interface. The functions return a hierarchical structure that inclu

[Python-Dev] Re: Why aren't we allowing the use of C11?

2021-01-28 Thread Terry Reedy
On 1/28/2021 11:26 AM, Mark Shannon wrote: PEP 7 says that C code should conform to C89 with a subset of C99 allowed. As I remember, when the Python C dialect was discussed about 4 years ago, no one seriously proposed moving beyond a subset of C99 addition, because of the state of MSVC.

[Python-Dev] Re: What is the pyclbr public API?

2021-01-28 Thread Terry Reedy
make the proposed positioning of 'end_lineno' acceptible? The tradeoff is some immediate annoyance versus forever annoyance of a misplaced required 'optional' parameter. Since I have in mind a possible IDLE use for end_lineno, quite different from that of the patch author, I

[Python-Dev] Re: What is the pyclbr public API?

2021-01-29 Thread Terry Reedy
admodule() function could return a proper tree with a root Module node, with attributes file, name, lineno (1), end_lineno, and children. On 1/28/2021 11:32 PM, Guido van Rossum wrote: On Thu, Jan 28, 2021 at 8:08 PM Terry Reedy <mailto:tjre...@udel.edu>> wrote: On 1/27/20

[Python-Dev] Re: What is the pyclbr public API?

2021-01-29 Thread Terry Reedy
On 1/29/2021 8:57 PM, Guido van Rossum wrote: On Fri, Jan 29, 2021 at 5:39 PM Terry Reedy <mailto:tjre...@udel.edu>> wrote: Guido, thank you for the helpful discussion.  I now think that we should just add 'end_lineno=None' at the end of the Function/Class __in

[Python-Dev] Re: PEP 563: get_type_hints should use closure when available

2021-02-03 Thread Terry Reedy
On 2/2/2021 8:37 PM, Caleb Donovick wrote: The discussion around PEP 649 got me thinking about what I believe is the largest downside to PEP 563: the inability to evaluate annotations created with closures.  While this is in general unavoidable,  if the type is ever referenced in an annotated f

[Python-Dev] Re: What's up with assignment expression and tuples?

2021-02-05 Thread Terry Reedy
On 2/5/2021 2:51 AM, Paul Sokolovsky wrote: https://www.python.org/dev/peps/pep-0572/ ... ((a, b) := (1, 2)) File "", line 1 SyntaxError: cannot use assignment expressions with tuple Why this accidental syntactic gap? As should be clear from reading "Differences between assignment

[Python-Dev] Re: PR Review request - bpo-41928: Add support for Unicode Path Extra Field in ZipFile

2021-02-08 Thread Terry Reedy
On 2/7/2021 1:55 PM, Andrea Giudiceandrea via Python-Dev wrote: Hi Python Dev team, I submitted a PR https://github.com/python/cpython/pull/23736 two months ago. The PR, which fixes an issue https://bugs.python.org/issue41928 in ZipFile, is "awaiting core review". I nosied and requested a rev

[Python-Dev] Re: Change windows installation program name

2021-02-08 Thread Terry Reedy
On 2/8/2021 3:12 PM, Ivan Pozdeev via Python-Dev wrote: You want to make a poll or something? Discourse can do that: https://meta.discourse.org/t/how-to-create-polls/77548 On 08.02.2021 23:07, Barry Scott wrote: I raise https://bugs.python.org/issue43156 that suggests that new users on windo

[Python-Dev] Re: PEP 647 (type guards) -- final call for comments

2021-02-09 Thread Terry Reedy
On 2/9/2021 11:21 AM, Guido van Rossum wrote: I think we have reached consensus on PEP 647 in typing-sig. We have implementations for mypy and pyright, not sure about the rest. This PEP does not affect CPython directly except for the addition of one special item (TypeGuard) to typing.py -- it w

[Python-Dev] Re: PEP 597: Add optional EncodingWarning

2021-02-09 Thread Terry Reedy
On 2/9/2021 8:28 PM, Inada Naoki wrote: Note that many Python users don't use consoles. Those of use who do may find it hard to imagine just how easy we have made computing. My daughter minored in Computer Science about 6 years ago. She never saw Command Prompt until the summer after her

[Python-Dev] Re: Security releases of CPython

2021-02-11 Thread Terry Reedy
On 2/11/2021 3:23 PM, Michał Górny wrote: Hello, I'm the primary maintainer of CPython packages in Gentoo. I would like to discuss possible improvement to the release process in order to accelerate releasing security fixes to users. I feel that vulnerability fixes do not make it to end users fa

[Python-Dev] Re: Security releases of CPython

2021-02-19 Thread Terry Reedy
On 2/19/2021 5:11 AM, Michał Górny wrote: On Thu, 2021-02-11 at 23:24 -0500, Terry Reedy wrote: Releases are not just a push of a button. Make the release job too onerous, and there might not be any more volunteers. While I understand your concerns and sympathize with them, Your

[Python-Dev] Re: Inadequate error reporting during function call setup stage

2021-02-21 Thread Terry Reedy
On 2/21/2021 12:04 PM, Paul Sokolovsky wrote: Traceback (most recent call last): File "pseudoc_tool.py", line 91, in first_class_function_value(func, **pass_params) TypeError: print() got an unexpected keyword argument 'noann' This is not typical behavior in current Python (3.8+). de

[Python-Dev] Re: Move support of legacy platforms/architectures outside Python

2021-02-22 Thread Terry Reedy
On 2/22/2021 6:20 AM, Victor Stinner wrote: To have an idea of the existing maintenance burden, look at emails sent to: https://mail.python.org/archives/list/buildbot-sta...@python.org/ Every single email is basically a problem. There are around 110 emails over the last 30 years: 30 days, not

[Python-Dev] Re: Move support of legacy platforms/architectures outside Python

2021-02-22 Thread Terry Reedy
On 2/22/2021 6:58 AM, Victor Stinner wrote: On Mon, Feb 22, 2021 at 12:51 PM Ivan Pozdeev via Python-Dev wrote: IIRC I suggested earlier that buildsbots should be integrated into the PR workflow in order to make it the contributor's rather than a core dev's burden to fix any breakages that res

[Python-Dev] Re: Steering Council update for February

2021-03-09 Thread Terry Reedy
On 3/9/2021 3:27 PM, Pablo Galindo Salgado wrote: The Steering Council just published the community update for February: Thank you for posting this. The Steering Council discussed renaming the master branch to main and the consensus was that we should do that. I did not that this w

<    1   2   3   4   5   6   7   8   9   10   >