Re: [Python-Dev] PEP 594 - a proposal for unmaintained modules

2019-05-24 Thread Steve Dower
On 23May2019 2355, Steven D'Aprano wrote: I don't know if this is a good idea or a terrible idea or somewhere in between, so I'm throwing it out to see if anyone likes it. Let's add a third option to PEP 594 between "keep" and "remove": explicitly flagging a module as unmaintained. Unmaintained

Re: [Python-Dev] PEP 590: vectorcall without tp_call

2019-05-31 Thread Steve Dower
On 29May2019 1311, Petr Viktorin wrote: On 5/29/19 3:36 PM, Jeroen Demeyer wrote: On 2019-05-29 15:29, Petr Viktorin wrote: That sounds like a good idea for PyType_FromSpec. I don't think we're planning to support vectorcall in PyType_FromSpec for now. That's maybe for 3.9 when vectorcall is

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

2019-06-06 Thread Steve Dower
On 04Jun2019 1721, 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? It seems like most people are confused by the intent of the PEP. IMHO it would be better to rewrite "Remove packages from the stdlib" as "Mov

[Python-Dev] Re: Enum and annotations

2019-06-10 Thread Steve Dower
On 10Jun2019 1429, Ethan Furman wrote: I saw my first annotation mix-up with regards to Enum today:   https://stackoverflow.com/q/56532591/208880     #enum import:     from enum import Enum     # enum definition:     class Status(Enum):     on: 1     off: 2 For those who don't

[Python-Dev] Re: PyAPI_FUNC() is needed to private APIs?

2019-06-13 Thread Steve Dower
On 13Jun2019 0643, Jeroen Demeyer wrote: On 2019-06-13 15:36, Victor Stinner wrote: The main risk is that people start to use it If people use it, it should be taken as a sign that the function is useful and deserves to be public API. If it's useful, then someone can write a justification (

[Python-Dev] Re: PyAPI_FUNC() is needed to private APIs?

2019-06-13 Thread Steve Dower
On 13Jun2019 0816, Jeroen Demeyer wrote: On 2019-06-13 17:11, Steve Dower wrote: The cost of that convenience is that we can never optimise internals because they are now public API. I think that the opposite is true actually: the reason that people access internals is because there is no

[Python-Dev] EuroPython 2019 sprints

2019-06-13 Thread Steve Dower
Hi all Just letting everyone know that I signed up any core devs who are going to be at EuroPython to run sprints :) (including myself, since I'll be there) Like PyCon US, the sprints at EuroPython will attract many first-time contributors, so it will be helpful to have as many people who u

[Python-Dev] Who uses libpython38.a on Windows?

2019-06-14 Thread Steve Dower
One of the most annoying steps in building the Windows installers is generating the libpython38.a file. It's annoying, because it requires having "generic enough" MinGW tools to ensure that the file is compatible with whatever version of MinGW might be trying to build against the regular Window

[Python-Dev] Re: How to (best) organize platform dependent blocks of Python code

2019-06-17 Thread Steve Dower
On 16Jun2019 2354, Michael wrote: CONCERN: How to organize platform dependent blocks of code POLICY/RECOMMENDATION: (today) seems to be: arbitrary, although sys.platform, seems to be the favorite. * I, as 'python-consumer' was very surprised when I learned that sys.platform is "set" when Python

[Python-Dev] Re: why is not 64-bit installer the default download link for Windows?

2019-06-18 Thread Steve Dower
On 18Jun2019 0309, smartmanoj42...@gmail.com wrote: why is not 64-bit installer the default download link for Windows? Because there are still 32-bit operating systems out there, and the 32-bit version of Python will work just fine on both 32 and 64-bit Windows (and will use less memory than

[Python-Dev] Re: why is not 64-bit installer the default download link for Windows?

2019-06-18 Thread Steve Dower
On 18Jun2019 1025, Stephen J. Turnbull wrote: Oleg Broytman writes: > On Tue, Jun 18, 2019 at 10:09:59AM -, smartmanoj42...@gmail.com wrote: > > Why don't we check the architecture using js and provide the > > appropriate version? > >Because the downloading computer is not nece

[Python-Dev] Re: why is not 64-bit installer the default download link for Windows?

2019-06-19 Thread Steve Dower
On 19Jun2019 0124, Steve Holden wrote: I just posted a webmaster reply about just such an inquiry. As one of the people who get to do the explaining, it would be nice if we (not the devs) could figure out some way of getting people to the download they want. Probably the easiest thing to do is

[Python-Dev] Re: _Py_Identifier should support non-ASCII string?

2019-06-20 Thread Steve Dower
On 20Jun2019 0205, Inada Naoki wrote: Hi, all. Both of PyUnicdoe_FromString() and _Py_Identifier are supporting UTF-8 for now. We can not change PyUnicode_FromString() for backward compatibility, so we have _PyUnicode_FromASCII instead. But _Py_Identifier is still private. And non-ASCII identi

[Python-Dev] Re: Who uses libpython38.a on Windows?

2019-06-20 Thread Steve Dower
On 14Jun2019 1930, MRAB wrote: I'm able to build the regex module without it; in fact, I believe I've been able to do so since Python 3.5! This is about the only specific feedback I've received (including on Twitter, where most reactions were "I have no idea what file you're talking about"),

[Python-Dev] Re: v3.8b1 Breaks PyQt on Windows (Issue 36085/os.add_dll_directory())

2019-06-22 Thread Steve Dower
On 22Jun.2019 1404, Phil Thompson wrote: > The implementation of issue 36085 breaks PyQt on Windows as it relies on > PATH to find the Qt DLLs. The problem is that PyQt is built using the > stable ABI and a single wheel is supposed to support all versions of > Python starting with v3.5. On the assu

[Python-Dev] Re: Sponsoring Python development via the PSF

2019-06-26 Thread Steve Dower
On 26Jun2019 1006, Ivan Pozdeev via Python-Dev wrote: +1. That's why I never donate to charity. I can't see or control what my money is going to be used for. That's not charity then, it's a purchase or an investment. On 26.06.2019 10:41, Pau Freixes wrote: Why not the other way around? Having

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

2019-07-02 Thread Steve Dower
On 02Jul2019 0707, brian.sk...@gmail.com wrote: Taking swapping a file extension as an example of a particular transformation of interest, it would be achieved with something like s.replace(".htm", ".html", only_end=True). Please don't use string functions for file system paths, they are not

[Python-Dev] Re: Annoying user on GitHub

2019-07-02 Thread Steve Dower
On 02Jul2019 0840, Mariatta wrote: I've used the "Report abuse" feature on GitHub for such situations. Most of the time I see the user suspended, and the associated comments deleted. Our GitHub admins can delete comments too. On Tue, Jul 2, 2019, 1:42 AM Victor Stinner

[Python-Dev] Re: bpo-37468: make install no longer install wininst-*.exe files

2019-07-16 Thread Steve Dower
We've tried this before, but apparently people were cross-compiling. I'd suggest not removing them any faster than whatever deprecation applies to the module on all platforms (which should still be as quickly as possible :-) ). Cheers, Steve On Mon, Jul 15, 2019 at 5:26 PM +0200, "Victo

[Python-Dev] Re: Python 3.7.4, Visual Studio versions for building modules from source

2019-07-22 Thread Steve Dower
On 22Jul.2019 0825, Kacvinsky, Tom wrote: > HI, > > Not sure if this is the right place to ask, but I am trying to build > pywin32-224 from source for Python 3.7.4. I think this might > be the right list as this seems to be a generic problem I am having, but I > want to focus on one particular

[Python-Dev] Re: Python 3.7.4, Visual Studio versions for building modules from source

2019-07-23 Thread Steve Dower
On 23Jul2019 0812, Kacvinsky, Tom wrote: Tests passed once I used the right Visual Studio Command prompt. I was using the x64 Native toolchain command shell. Once I switched to the generic command shell, all is well. Thanks for the lick in the right direction, it got me to thinking that eve

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

2019-07-23 Thread Steve Dower
On 22Jul2019 2051, Kyle Stanley wrote: Also, is the rule "unless explicitly documented public, all imports are private even if not prefixed with an underscore" officially stated anywhere, or is it mostly implied? Personally, I think that it should be explicitly stated in a public manner if it'

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

2019-07-23 Thread Steve Dower
On 23Jul2019 1128, Kyle Stanley wrote: Barry Warsaw wrote: My package has a C version. If public() were a builtin (which I’ve implemented) it wouldn’t have that much import time overhead. Is there a way we could estimate the approximate difference in overhead this would add using benchmarks?

[Python-Dev] Re: 🍝 New keyword in bpo: `newcomer friendly`

2019-07-27 Thread Steve Dower
On 26Jul.2019 1909, Guido van Rossum wrote: > See the thread 'The trouble with "Easy" issues' in > core-mentors...@python.org . > Essentially those "easy" issues aren't so easy, and we're starting over. Couldn't that be achieved just as easily by removing the "Ea

[Python-Dev] Re: What to do about invalid escape sequences

2019-08-05 Thread Steve Dower
On 04Aug2019 2122, raymond.hettin...@gmail.com wrote: We should revisit what we want to do (if anything) about invalid escape sequences. For Python 3.8, the DeprecationWarning was converted to a SyntaxWarning which is visible by default. The intention is to make it a SyntaxError in Python 3.9

[Python-Dev] Re: What to do about invalid escape sequences

2019-08-06 Thread Steve Dower
On 06Aug2019 0959, Neil Schemenauer wrote: Could PyPI and pip gain the ability to warn and even fix these issues? Having a warning from pip at install time could be better than a warning at import time. If linting was built into PyPI, we could even do a census to see how many packages would be

[Python-Dev] Re: What to do about invalid escape sequences

2019-08-07 Thread Steve Dower
On 07Aug2019 0247, Chris Angelico wrote: On Wed, Aug 7, 2019 at 7:33 PM Steven D'Aprano wrote: What's the rush? Let's be objective here: what benefit are we going to get from this change? Is there anyone hanging out desperately for "\d" and "\-" to become SyntaxErrors, so they can... do what?

[Python-Dev] Re: os.scandir bug in Windows?

2020-10-19 Thread Steve Dower
On 15Oct2020 2239, Rob Cliffe via Python-Dev wrote: TLDR: In os.scandir directory entries, atime is always a copy of mtime rather than the actual access time. Correction - os.stat() updates the access time to _now_, while os.scandir() returns the last access time without updating it. Eryk re

[Python-Dev] Re: os.scandir bug in Windows?

2020-10-19 Thread Steve Dower
On 19Oct2020 1242, Steve Dower wrote: On 15Oct2020 2239, Rob Cliffe via Python-Dev wrote: TLDR: In os.scandir directory entries, atime is always a copy of mtime rather than the actual access time. Correction - os.stat() updates the access time to _now_, while os.scandir() returns the last

[Python-Dev] Re: os.scandir bug in Windows?

2020-10-19 Thread Steve Dower
On 19Oct2020 1652, Gregory P. Smith wrote: I'm sure this is covered in MSDN.  Linking to that if it has it in a concise explanation would make sense from a note in our docs. Probably unlikely :) I'm pretty sure this started "perfect" and was then wound back to improve performance. But it's alm

[Python-Dev] Re: os.scandir bug in Windows?

2020-10-19 Thread Steve Dower
On 19Oct2020 1846, Eryk Sun wrote: On 10/19/20, Steve Dower wrote: On 15Oct2020 2239, Rob Cliffe via Python-Dev wrote: TLDR: In os.scandir directory entries, atime is always a copy of mtime rather than the actual access time. Correction - os.stat() updates the access time to _now_, while

[Python-Dev] Re: os.scandir bug in Windows?

2020-10-20 Thread Steve Dower
On 20Oct2020 0520, Rob Cliffe wrote: On 19/10/2020 12:42, Steve Dower wrote: On 15Oct2020 2239, Rob Cliffe via Python-Dev wrote: TLDR: In os.scandir directory entries, atime is always a copy of mtime rather than the actual access time. Correction - os.stat() updates the access time to _now_

[Python-Dev] Re: PEP 640: Unused variable syntax.

2020-10-20 Thread Steve Dower
On 20Oct2020 1021, Steven D'Aprano wrote: In my opinion, having a convention to treat certain variables as "unused" is great (I'm partial to `__` myself, to avoid clobbering the special variable `_` in the REPL). But having that be a pseudo-variable which is *actually* unused and unuseable strike

[Python-Dev] Re: PEP 640: Unused variable syntax.

2020-10-20 Thread Steve Dower
On 20Oct2020 1309, Thomas Wouters wrote: The reason for this PEP is that pattern matching will make '_' (but not any other names) have the behaviour suggested in this PEP, but *only* in pattern matching. Then why is this PEP proposing a different syntax? At the very least, wait for pattern ma

[Python-Dev] Re: Speeding up CPython

2020-10-22 Thread Steve Dower
On 22Oct2020 1341, Marco Sulla wrote: On Thu, 22 Oct 2020 at 14:25, Mark Shannon > wrote: MSVC seems to do better jump fusion than GCC. Maybe I'm wrong, since I only take a look at dict, tuple and set C code, but it does not seems to me that there's more than 1-2 GO

[Python-Dev] Re: Who is target reader of tutorial?

2020-11-06 Thread Steve Dower
It would also be nice for the tutorial to separate between "things you need to know to use Python" vs "things you need to write a Python library". For example, the fact that operators can do different things for different values (e.g. int, str, list, pathlib) would be in the first category, wh

[Python-Dev] Re: Who is target reader of tutorial?

2020-11-06 Thread Steve Dower
e conventional way to store parameters for ML models. --Guido On Fri, Nov 6, 2020 at 8:32 AM Steve Dower <mailto:steve.do...@python.org>> wrote: It would also be nice for the tutorial to separate between "things you need to know to use Python" vs "things

[Python-Dev] Re: Advice / RTFM needed for tool setup to participate in python development from a Windows host

2020-12-17 Thread Steve Dower
On 16Dec2020 2114, pjfarl...@earthlink.net wrote: If anyone has or knows of step-by-step instructions on how to set that debug environment up and start the outer-level script with debug breakpoints in the DLL I would greatly appreciate it. I'm also doing my own searches for tutorials on debug

[Python-Dev] Re: Where is the SQLite module maintainer

2021-01-04 Thread Steve Dower
On 12/28/2020 11:32 AM, Erlend Aasland wrote: On 27 Dec 2020, at 22:38, Christian Heimes > wrote: How about you put your name in the expert index instead of him? :) Thanks for your confidence, but I'm far from an expert :) Neither is anyone else :) I'm not lookin

[Python-Dev] Re: Enhancement request for PyUnicode proxies

2021-01-04 Thread Steve Dower
On 12/29/2020 5:23 PM, Antoine Pitrou wrote: The third option is to add a distinct "string view" protocol. There are peculiarities (such as the fact that different objects may have different internal representations - some utf8, some utf16...) that make the buffer protocol suboptimal for this.

[Python-Dev] Re: The SC is accepting PEP 632: deprecating distutils

2021-01-22 Thread Steve Dower
On 1/21/2021 6:30 PM, Brett Cannon wrote: On behalf of the SC, I'm happy to announce that we have chosen to accept PEP 632. Congrats, Steve, and thanks for the work on the PEP! I'll let Steve outline what the next steps are for implementing the PEP. Thanks. Work from this point on will be tra

[Python-Dev] Re: New sys.module_names attribute in Python 3.10: list of all stdlib modules

2021-01-26 Thread Steve Dower
On 1/26/2021 8:32 PM, Steve Holden wrote: If the length of the name is any kind of issue, since the stdlib only contains modules (and packages), why not just sys.stdlib_names? And since the modules can vary between platforms and builds, why wouldn't this be sysconfig.stdlib_names rather than s

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

2021-01-30 Thread Steve Dower
On 29Jan2021 2227, Random832 wrote: On Thu, Jan 28, 2021, at 22:57, Emily Bowman wrote: On Thu, Jan 28, 2021 at 1:31 PM MRAB wrote: I have Microsoft Visual Studio Community 2019 Version 16.8.4 (it's free) and it supports C11 and C17. While an upgrade for Community is free, for Pro/Enterpri

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

2021-01-30 Thread Steve Dower
On 29Jan2021 1715, Victor Stinner wrote: It seems like declaring a TLS in libpython and using it from an extension module (another dynamic library) is causing issues depending on the linker. It "should" work on macOS, but it doesn't. I'm pretty sure this is not defined in any calling convention

[Python-Dev] Re: PEP 624: Remove Py_UNICODE encoder APIs

2021-02-01 Thread Steve Dower
On 2/1/2021 5:16 PM, Christian Heimes wrote: On 01/02/2021 17.39, M.-A. Lemburg wrote: Can you explain where wchar_t* type is appropriate and how two conversions is a performance bottleneck? If an extension has a wchar_t* string, it should be easy to convert this in to a Python bytes object fo

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

2021-02-22 Thread Steve Dower
On 2/22/2021 5:18 PM, Matthias Klose wrote: On 2/21/21 1:13 PM, Victor Stinner wrote: Document what is supported, be inclusive about anything else. Don't make a distinction yet between legacy and upcoming new architectures. I agree with this, and I don't see any reason why we shouldn't just us

[Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Steve Dower
On 2/24/2021 4:26 PM, Christian Heimes wrote: On 24/02/2021 15.16, Random832 wrote: On Wed, Feb 24, 2021, at 06:27, Christian Heimes wrote: Separate directories don't prevent clashes and system breakage. But they provide an easy way to *recover* from a broken system. I think it could be turne

[Python-Dev] Re: pth file encoding

2021-03-17 Thread Steve Dower
On 3/17/2021 8:00 AM, Michał Górny wrote: How about writing paths as bytestrings in the long term? I think this should eliminate the necessity of knowing the correct encoding for the filesystem. That's what we're trying to do, the problem is that they start as strings, and so we need to conve

[Python-Dev] Re: pth file encoding

2021-03-17 Thread Steve Dower
On 3/17/2021 6:08 PM, Stefan Ring wrote: A somewhat radical idea carrying this to the extreme would be to use UTF-16 (LE) on Windows. After all, this _is_ the native file system encoding, and Notepad will happily read and write it. I'm not opposed to detecting a BOM by default (when no other en

[Python-Dev] Re: pth file encoding

2021-03-17 Thread Steve Dower
On 3/17/2021 7:34 PM, Ivan Pozdeev via Python-Dev wrote: On 17.03.2021 20:30, Steve Dower wrote: On 3/17/2021 8:00 AM, Michał Górny wrote: How about writing paths as bytestrings in the long term?  I think this should eliminate the necessity of knowing the correct encoding for the filesystem

[Python-Dev] Re: The repr of a sentinel

2021-05-13 Thread Steve Dower
On 13May2021 1248, Petr Viktorin wrote: On 13. 05. 21 11:45, Antoine Pitrou wrote: Le 13/05/2021 à 11:40, Irit Katriel a écrit : On Thu, May 13, 2021 at 10:28 AM Antoine Pitrou > wrote:  I agree that is a reasonable spelling. I initially suggested , but

[Python-Dev] Re: The repr of a sentinel

2021-05-14 Thread Steve Dower
On 14May2021 0622, micro codery wrote: There was a discussion a while back ( a year or so?? ) on Python-ideas that introduced the idea of having more "sentinel-like" singletons in Python -- right now, we only have None. Not quite true, we also have Ellipsis, which already has a nic

[Python-Dev] Re: The repr of a sentinel

2021-05-21 Thread Steve Dower
On 5/21/2021 9:36 AM, Petr Viktorin wrote: On 21. 05. 21 3:23, Eric V. Smith wrote: On 5/20/2021 3:24 PM, Ronald Oussoren via Python-Dev wrote: One example of this is the definition of dataclasses.field: |dataclasses.||field|(/*/, /default=MISSING/, /default_factory=MISSING/, /repr=True/, /ha

[Python-Dev] Re: Question for potential python development contributions on Windows

2021-05-24 Thread Steve Dower
When you're installing Visual Studio the C++ tools version is listed under the selected components as "v14x". However, at this stage, the *only* version in circulation is 14.x - mine shows v142. Until the 14 changes to a "15", it will be binary compatible and so you can use any version at all

[Python-Dev] Re: GDB not breaking at the right place

2021-05-25 Thread Steve Dower
On 5/24/2021 9:38 PM, Guido van Rossum wrote: To the contrary, I think if you want the CI jobs to be faster you should add the CFLAGS to the configure call used to run the CI jobs. Big +1 We should have the most useful interactive development/debugging options set by default (or with an obvio

[Python-Dev] Re: change of behaviour for '.' in sys.path between 3.10.0a7 and 3.10.0b1

2021-06-04 Thread Steve Dower
On 6/3/2021 7:42 PM, Senthil Kumaran wrote: On Thu, Jun 03, 2021 at 07:08:06PM +0100, Robin Becker wrote: The regression may well be a platform issue. I am by no means an expert at building python; I followed a recipe from the ARCH PKGBUILD of some time I meant the change in the diff we were s

[Python-Dev] Re: Making PY_SSIZE_T_CLEAN not mandatory.

2021-06-17 Thread Steve Dower
On 6/9/2021 2:20 PM, Petr Viktorin wrote: On 09. 06. 21 13:09, Paul Moore wrote: Also, I often use the stable ABI when embedding, so that I can replace the Python interpreter without needing to recompile my application and redeploy new binaries everywhere (my use case is pretty niche, though, so

[Python-Dev] Re: Is the Python review process flawed?

2021-07-01 Thread Steve Dower
On 7/1/2021 7:04 PM, Christopher Barker wrote: PS: All that being said, we, as a community, could do better. For instance, someone like me could do high-level triage on bug reports -- I need to set aside some time to do that. In addition/instead of triage, one thing we (as core maintainers) re

[Python-Dev] Re: [slightly OT] cryptographically strong random.SystemRandom()

2021-07-12 Thread Steve Dower
On 7/12/2021 4:11 PM, Dan Stromberg wrote: It looks like CPython could do better on Windows: SystemRandom (because of os.urandom()) is good on Linux and mac, but on Windows they use the CryptGenRandom deprecated API Supporting detail: https://docs.microsoft.com/en-us/windows/win32/api/win

[Python-Dev] Re: Repealing PEP 509 (Add a private version to dict)

2021-07-29 Thread Steve Dower
On 7/29/2021 11:41 AM, Mark Shannon wrote: The dictionary version number is currently unused in CPython and just wastes memory. I am not claiming that we will never need it, just that we shouldn't be required to have it. It should be an internal implementation detail that we can add or remove de

[Python-Dev] Re: Repealing PEP 509 (Add a private version to dict)

2021-07-29 Thread Steve Dower
On 7/29/2021 6:17 PM, Barry Warsaw wrote: On Jul 29, 2021, at 05:55, Steve Dower wrote: Maybe we should have a "Type" other than Standards Track for PEPs that are documenting implementation designs, rather than requirements for standardisation? Wouldn’t Informational fill

[Python-Dev] Re: Making code object APIs unstable

2021-08-16 Thread Steve Dower
On 8/16/2021 12:47 AM, Guido van Rossum wrote: My current proposal is to issue a DeprecationWarning in PyCode_New() and PyCode_NewWithPosArgs(), which can be turned into an error using a command-line flag. If it's made an error, we effectively have (B); by default, we have (A). Then in 3.13 w

[Python-Dev] Re: PEP 663: Improving and Standardizing Enum str(), repr(), and format() behaviors

2021-09-13 Thread Steve Dower
On 9/11/2021 6:53 AM, Ethan Furman wrote: Abstract Now that we have a few years experience with Enum usage it is time to update the ``repr()``, ``str()``, and ``format()`` of the various enumerations by their intended purpose. You *are* allowed to put some (brief) details in the ab

[Python-Dev] Re: PEP 663: Improving and Standardizing Enum str(), repr(), and format() behaviors

2021-09-13 Thread Steve Dower
On 9/13/2021 8:12 PM, Ethan Furman wrote: On 9/13/21 9:03 AM, Steve Dower wrote: > You *are* allowed to put some (brief) details in the abstract. No need to avoid spoilers ;) > > As it stands, "it is time" on its own is a really bad reason to change anything. So you&

[Python-Dev] Re: f-strings in the grammar

2021-09-21 Thread Steve Dower
On 9/21/2021 7:42 PM, Eric V. Smith wrote: I don't recall exactly why, but I disallowed backslashes inside expressions at the last minute before 3.6 was released. It might have been because I was interpreting them in a way that didn't make sense if a "real" parser were inspecting f-strings. The

[Python-Dev] Re: The Default for python -X frozen_modules.

2021-09-27 Thread Steve Dower
On 9/27/2021 5:51 PM, Eric Snow wrote: Possible solutions: 1. always default to "on" (the annoyance for contributors isn't big enough?) 2. default to "on" if it's a PGO build (and "off" otherwise) Just to air my concerns regarding option 2 (which I've already spoken to Eric about): I feel thi

[Python-Dev] Re: The Default for python -X frozen_modules.

2021-09-27 Thread Steve Dower
On 9/27/2021 6:40 PM, Patrick Reader wrote: I accidentally a word. "... module's hash and/or *timestamp* and comparing it ..." On 27/09/2021 18:38, Patrick Reader wrote: How about checking each non-frozen module's hash and/or and comparing it to that of the frozen module? Would that defeat th

[Python-Dev] Re: The Default for python -X frozen_modules.

2021-09-27 Thread Steve Dower
On 9/27/2021 7:15 PM, Ethan Furman wrote: On 9/27/21 10:50 AM, Guido van Rossum wrote: > So my *actual* proposal (call it #2') is to use a separate compile-time flag, which is set by `./configure > --enable-optimizations` regardless of whether PGO/LTO are possible, and which on Windows can b

[Python-Dev] Re: PEP 654 except* formatting

2021-10-04 Thread Steve Dower
On 10/4/2021 5:47 PM, Antoine Pitrou wrote: On Mon, 4 Oct 2021 12:18:35 -0400 Calvin Spealman wrote: On Mon, Oct 4, 2021 at 12:07 PM Guido van Rossum wrote: The question was about which style to *recommend* (a la PEP-8). I think the very fact that it can't (or is difficult) be enforce

[Python-Dev] Re: PEP 654 except* formatting

2021-10-06 Thread Steve Dower
On 10/6/2021 5:05 PM, Yury Selivanov wrote: So I'm -1 on `except group` or any variant that uses soft keywords. If the SC considers making `group` a proper keyword I can possibly change my mind on this. For the record (and I'm sure I'm not the only one), I'm -100 on making it a proper keyword

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Steve Dower
From: Terry Reedy > Clicking this link > http://www.microsoft.com/en-us/download/details.aspx?id=14597 > on this Developer Guide page > http://docs.python.org/devguide/setup.html#windows > now returns a > "We are sorry, the page you requested cannot be found." > page with search results. > > The f

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Steve Dower
From: Case Van Horsen > On Wed, Mar 6, 2013 at 2:20 AM, Terry Reedy wrote: > > Clicking this link > > http://www.microsoft.com/en-us/download/details.aspx?id=14597 > > on this Developer Guide page > > http://docs.python.org/devguide/setup.html#windows > > now returns a > > "We are sorry, the page

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-07 Thread Steve Dower
> From: Terry Reedy > On 3/6/2013 12:29 PM, Steve Dower wrote: > > From: Case Van Horsen > > >> The "Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1" > >> is still available for download. It includes the command line > >> compile

Re: [Python-Dev] PEP 4XX: pyzaa "Improving Python ZIP Application Support"

2013-04-02 Thread Steve Dower
> python -m pyzaa pack [-o path/name] [-m module.submodule:callable] [-c] [-w] > [-p interpreter] directory: > >ZIP the contents of directory as directory.pyz or [-w] directory.pyzw. > Adds the executable flag to the archive. > > ... > >-p interpreter include #!interpreter as the first li

Re: [Python-Dev] PEP 4XX: pyzaa "Improving Python ZIP Application Support"

2013-05-06 Thread Steve Dower
erShell. In the absence of > confirmation that 4-letter extensions work reliably in such cases, it seems > wise to abbreviate the Windows GUI application extension as .pzw. > > I've also cc'ed Steve Dower, since investigation of this kind of Windows > behavioural question i

Re: [Python-Dev] How to debug python crashes

2013-05-15 Thread Steve Dower
> From: Catalin Iacob > Hi Philippe, > > I don't have access to VS right now but out of my head what you need > to do is roughly outlined below. > > On Tue, May 14, 2013 at 5:29 PM, Philippe Fremy > wrote: > > But what's the reason for releasing them ? If you need to recompile > > Python to use

Re: [Python-Dev] Hooking into super() attribute resolution

2013-07-07 Thread Steve Dower
Could the same result be achieved by hooking the MRO that super uses and returning a list of proxy objects? And then wouldn't you only really need a __getattribute__ that doesn't recurse (__getlocalattribute__)? The end result may be conceptually simpler, but you've thought through the edge case

Re: [Python-Dev] Hooking into super() attribute resolution

2013-07-08 Thread Steve Dower
e proxy objects idea was a red herring, sorry :) ) Steve Sent from my Windows Phone From: Ronald Oussoren<mailto:ronaldousso...@mac.com> Sent: ‎7/‎7/‎2013 12:37 To: Steve Dower<mailto:steve.do...@microsoft.com> Cc: python-dev@python.org<mailto:python-

Re: [Python-Dev] Hooking into super() attribute resolution

2013-07-08 Thread Steve Dower
> From: Ronald Oussoren [mailto:ronaldousso...@mac.com] > Sent: Monday, July 8, 2013 0858 > > On 8 Jul, 2013, at 17:19, Steve Dower wrote: > > > The only real advantage is a simpler signature and more easily explained > use (assuming the person you're expl

Re: [Python-Dev] Python 3.4 and Windows XP: just 45 days until EOL

2013-07-11 Thread Steve Dower
+1. And maybe amend PEP 11 to specify "whose extended support phase does not expire within 6 months of release"? (I picked 6 for no particular reason.) I don't see any good reason for Python to support an OS that Microsoft doesn't, but once 3.4.0 has been released with XP support it can't really

Re: [Python-Dev] Building a Faster Python

2013-07-21 Thread Steve Dower
>From: Ben Hoyt >> PyBench2.0 shows the total running time dropping from 5653ms to 4571ms. > > That's very cool -- a significant improvement. Is this the kind of change > that could go into 2.7.6 binaries? > > As a Windows user, it makes me wonder if compiling with the latest version of > the M

Re: [Python-Dev] Adding Python scripts to PATHEXT on Windows

2013-07-27 Thread Steve Dower
Any chance of this being made optional when installing? It provides no benefit for people who prefer to associate scripts with an editor and may be a source of confusion/complaints. Env var changes typically require a reboot to take full effect, which I've also seen cause confusion. Also, it s

Re: [Python-Dev] Adding Python scripts to PATHEXT on Windows

2013-07-27 Thread Steve Dower
From: Paul Moore > I'm a bit confused by your comment about "people who prefer to associate > scripts > with an editor", though. This is only done in precisely those situations when > the installer associates .py scripts with py.exe (the launcher). So if you > switch that off, you don't get PATHE

Re: [Python-Dev] Adding Python scripts to PATHEXT on Windows

2013-07-28 Thread Steve Dower
f.mo...@gmail.com> Sent: ‎7/‎28/‎2013 1:00 To: Steve Dower<mailto:steve.do...@microsoft.com> Cc: Martin v. Löwis<mailto:mar...@v.loewis.de>; Python Dev<mailto:python-dev@python.org> Subject: Re: [Python-Dev] Adding Python scripts to PATHEXT on Windows On 28 July 2013 00:30, S

Re: [Python-Dev] PEP 447: add type.__locallookup__

2013-09-12 Thread Steve Dower
What about __getlocalattribute__ or __getattributenorecurse__? Long, but this isn't going to be used often. Putting "type" or "class" in the name would be misleading. It's an instance method (that is most useful when implemented on a metaclass). (Apologies for the top post.) Sent from my Windo

Re: [Python-Dev] PEP 447: add type.__locallookup__

2013-09-12 Thread Steve Dower
n Fri, Sep 13, 2013 at 03:04:49AM +, Steve Dower wrote: > What about __getlocalattribute__ or __getattributenorecurse__? Long, > but this isn't going to be used often. This has nothing to do with locals, nor does it have anything to do with recursion, so both those names are mislead

Re: [Python-Dev] PEP 447: add type.__locallookup__

2013-09-13 Thread Steve Dower
From: Steven D'Aprano > On Fri, Sep 13, 2013 at 04:26:06AM +0000, Steve Dower wrote: > >> Last I checked, looking up in the instance dict us exactly what it >> does. Even the example you posted is doing that. > > The example from the PEP shows: > > retur

Re: [Python-Dev] BDFL ruling request: should we block foreverwaiting for high-quality random bits?

2016-06-09 Thread Steve Dower
(fat fingered the send button, picking up where I left off) If the pattern is really going to be the hasattr check you posted earlier, can we just do it for people and save them writing code that won't work on different OSs? Cheers, Steve Top-posted from my Windows Phone -Original Message

Re: [Python-Dev] BDFL ruling request: should we block foreverwaiting for high-quality random bits?

2016-06-09 Thread Steve Dower
Can we get any new function on all platforms, deferring to urandom() if getrandom() isn't there? If the pattern is really going to be the hasattr check you posted earlier Top-posted from my Windows Phone -Original Message- From: "Larry Hastings" Sent: ‎6/‎10/‎2016 8:50 To: "python-dev@

Re: [Python-Dev] security SIG? (was: Discussion overload)

2016-06-18 Thread Steve Dower
It's not just security discussions. The same thing happened with fspath, tzinfo, and many others that I have erased from my own memory. distutils-sig sees them often as well. The whole thing seems like a limitation of written communication. There's no way to indicate or define whether something

Re: [Python-Dev] [RELEASED] Python 3.4.5 and Python 3.5.2 are now available

2016-06-27 Thread Steve Dower
On 26Jun2016 1932, Larry Hastings wrote: https://www.python.org/downloads/release/python-352/ ... /p.s. There appears to be a small oops with the Windows installers for 3.5.2--uploaded to the wrong directory or something. They'll be available soon, honest! That oops is now fixed, but I wanted

[Python-Dev] Issue 27417: Call CoInitializeEx on startup

2016-06-29 Thread Steve Dower
I know this is of fairly limited interest, so this is just advertising http://bugs.python.org/issue27417 where I propose enabling COM by default on startup. If you are someone who knows what CoInitializeEx is or why you may want to call it, I'm interested in your feedback/concerns. Come and po

Re: [Python-Dev] Request for CPython 3.5.3 release

2016-07-03 Thread Steve Dower
Many of our users prefer stability (the sort who plan operating system updates years in advance), but generally I'm in favor of more frequent releases. It will likely require more complex branching though, presumably based on the LTS model everyone else uses. One thing we've discussed before is

Re: [Python-Dev] release cadence (was: Request for CPython 3.5.3 release)

2016-07-03 Thread Steve Dower
;Paul Moore" Sent: ‎7/‎3/‎2016 14:23 To: "Brett Cannon" Cc: "Guido van Rossum" ; "Nick Coghlan" ; "Python-Dev" ; "Steve Dower" Subject: Re: [Python-Dev] release cadence (was: Request for CPython 3.5.3 release) On 3 July 2016 at 22:04, Brett Ca

Re: [Python-Dev] release cadence

2016-07-03 Thread Steve Dower
On 03Jul2016 1556, Terry Reedy wrote: On 7/3/2016 4:22 PM, Brett Cannon wrote: So if we really wanted to go this route of breaking out the stdlib, I think we have two options. One is to have the cpython repo represent the CPython interpreter and then have a separate stdlib repo. The other optio

Re: [Python-Dev] Request for CPython 3.5.3 release

2016-07-04 Thread Steve Dower
On 04Jul2016 0822, Kevin Ollivier wrote: On 7/4/16, 3:32 AM, "Python-Dev on behalf of Sven R. Kunze" wrote: If you need some assistance here, let me know. I also offer my help with setting up CI and automated builds. :) I've actually done build automation for a number of the projects I've

Re: [Python-Dev] [Webmaster] Unsafe listing by Norton's "File Insight"

2016-07-05 Thread Steve Dower
On 04Jul2016 2241, Steve Holden wrote: Hi Peter, While the humble webmasters can do little about this it's possible the developers can, so I am forwarding your email to their mailing list. regards Steve Steve Holden On Tue, Jul 5, 2016 at 3:30 AM, Peter via Webmaster mailto:webmas...@python.

Re: [Python-Dev] Breaking up the stdlib (Was: release cadence)

2016-07-05 Thread Steve Dower
On 05Jul2016 1021, Paul Moore wrote: On 5 July 2016 at 18:02, Steven D'Aprano wrote: Yes, we're all probably sick and tired of hearing all the Chicken Little scare stories about how the GIL is killing Python, how everyone is abandoning Python for Ruby/Javascript/Go/Swift, how Python 3 is killin

Re: [Python-Dev] release cadence

2016-07-05 Thread Steve Dower
On 05Jul2016 1028, Barry Warsaw wrote: On Jul 03, 2016, at 04:21 PM, Steve Dower wrote: A rough count of how I'd break up the current 3.5 Lib folder (which I happened to have handy) suggests no more than 50 repos. A concern with a highly split stdlib is local testing. I'm not wor

Re: [Python-Dev] Breaking up the stdlib (Was: release cadence)

2016-07-05 Thread Steve Dower
versioning, they are: 1. Break the stdlib out from CPython and have it be a stand-alone repo 2. Break the stdlib up into a bunch of independent repos that when viewed together make up the stdlib (Steve Dower did some back-of-envelope grouping and pegged the # of repos at ~50) Actually, I was

<    1   2   3   4   5   6   7   8   >