[Python-Dev] Re: Retiring this mailing list ?

2023-11-14 Thread Steve Holden
and retain the release announcements? Kind regards, Steve PS: Your mail triggered a visit to https://www.python.org/community/lists/ - it seems it could use some updates. For example, comp.lang.python-announce is a news URL, which in this day and age will baffle most visitors! At the very least

[Python-Dev] Re: detecting statements which result is not stored

2023-10-05 Thread Steve Holden
Sounds like you might want the "Python Help" group on https;// discuss.python.org - the dev conversation migrated there quite a while ago now, so thighs channel is more or less announcements only. Good luck with your project! Kind regards, Steve On Thu, 5 Oct 2023 at 16:07, Guent

[Python-Dev] Re: Some pattern annoyance

2023-08-02 Thread Steve Holden
at you are managing to approach the same level of performance! Kind regards, Steve On Wed, 2 Aug 2023 at 18:26, Christian Tismer-Sperling wrote: > On 02.08.23 18:30, Paul Moore wrote: > > On Wed, 2 Aug 2023 at 15:24, Stephen J. Turnbull > > > <mailto:turnbull.stephen...@u.

[Python-Dev] Re: Debugging of native extensions on windows

2023-03-14 Thread Steve Dower
.c right now (for py.exe). Native debuggers usually hook process creation, so they should attach immediately with no risk of missing anything. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-de

[Python-Dev] Re: Debugging of native extensions on windows

2023-03-13 Thread Steve Dower
days. You'll likely find more help and discussion over there. Cheers, Steve On 3/13/2023 3:25 PM, Rokas Kupstys wrote: Hello! I am dropping this mail to bring up an issue which cost me three good evenings of time. Now that i figured it out i believe it is quite a serious usability pro

[Python-Dev] Re: C- Python on Windows

2023-01-18 Thread Steve Dower
it pieces (such as the headers and libs files), but the embeddable package is one you can include straight into your project and redistribute. The binaries are the same, it's just laid out differently. And yes, discuss.python.org is the best place to ask these days.

[Python-Dev] Re: Feature Request: Adding Way to Annotate Class Variables Distinct from Instance Variables

2022-12-21 Thread Steve Holden
#x27;ve missed your point? Kind regards, Steve On Wed, Dec 21, 2022 at 4:15 PM wrote: > Hello folks, I am Chihiro, a.k.a. Frodo821, and this is my first post to > this group. > > I searched for a way to annotate both class variables and instance > variables with different types and

[Python-Dev] Re: RFC: expose ssl internals for use by ctypes/cffi

2022-11-30 Thread Steve Dower
'll work for you, that's great. Nobody else should ever think they're doing the "right thing". Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org h

[Python-Dev] Re: problem with Distributed File System Replication and Namespacing and different versions of Python 3

2022-10-26 Thread Steve Holden
I don't remember it being mentioned, but much of the traffic recently migrated from this list to https://discuss.python.org/c/core-dev/23, which you may wish to keep in touch with. Kind regards, Steve On Tue, Oct 25, 2022 at 7:53 AM Juan Cristóbal Quesada < rainonthescarecrow

[Python-Dev] Re: problem with Distributed File System Replication and Namespacing and different versions of Python 3

2022-10-24 Thread Steve Dower
you might also be able to use PYTHONPYCACHEPREFIX to reference a local directory and avoid issues that way. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.py

[Python-Dev] Re: Accepting PEP 681 – Data Class Transforms

2022-06-06 Thread Steve Dower
ge specification" from "Typing specification" would be helpful. (Packaging is already separate, but doesn't appear in release announcements anyway.) Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe sen

[Python-Dev] Re: PEP 689 – Unstable C API tier (was: Semi-stable C API tier)

2022-05-30 Thread Steve Dower
rsions, or having to set them before knowing what version is being used, seems more complicated. Cheers, Steve On 5/30/2022 8:26 PM, Brett Cannon wrote: We discussed having leading underscores for this API tier, and it was decided that a leading underscore was preferred. This did start a

[Python-Dev] Re: Issue: 92359 - Python 3.10 IDLE 64-bit doesn't open any files names code (code.py, code.pyw) - found a partial fix but looking for input

2022-05-16 Thread Steve Dower
On 5/14/2022 8:37 PM, Terry Reedy wrote: On 5/14/2022 12:40 AM, Guido van Rossum wrote: Probably "Edit with IDLE" should be changed. I have no idea where that is defined. I presume somewhere in PCBuild.  Steve Dower knows and is in charge of the Windows installer. FTR, the beh

[Python-Dev] Re: Migration plan for the distutils removal in Python 3.12

2022-05-10 Thread Steve Dower
s or tools. There's nothing wrong with setuptools's functionality, merely the fact that it isn't part of the CPython repository and we don't like relying on third-party repositories for a CPython build/test. Cheers, Steve ___ Python-

[Python-Dev] Re: Migration plan for the distutils removal in Python 3.12

2022-05-10 Thread Steve Dower
scattered around PC, PCbuild and Tools/msi. Easier to just remove it from Lib. Cheers, Steve On 5/10/2022 9:24 PM, Victor Stinner wrote: On Tue, May 10, 2022 at 6:16 PM Steve Dower wrote: I agree. The internal tools that use it are all in our Tools directory, so we can move distutils there and

[Python-Dev] Re: Migration plan for the distutils removal in Python 3.12

2022-05-10 Thread Steve Dower
ly on their copy being the "main" one. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message arc

[Python-Dev] Re: Test Python 3.11 beta1 with PYTHONSAFEPATH=1

2022-05-09 Thread Steve Dower
seful enough, but it could also serve as a deprecation warning without necessarily putting a timeline on it (and also as advertising for the new option). Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an em

[Python-Dev] Re: Using the Python C API in C++

2022-05-02 Thread Steve Dower
there. Then the test suite can check whether it was built or not. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org

[Python-Dev] Re: Add -P command line option to not add sys.path[0]

2022-04-26 Thread Steve Dower
he biggest issue I see is that the obvious command line options for "import site" are already used to imply "do not import site". But then, -P isn't obvious either. Maybe an -X option would suffice? Cheers, Steve ___ Python-Dev m

[Python-Dev] Re: Declarative imports

2022-04-08 Thread Steve Dower
On 4/8/2022 12:51 PM, Daniel Pope wrote: On Fri, 8 Apr 2022 at 12:23, Steve Dower wrote: I've read the rest of the thread so far, and agree strongly that we can't do this at the language/runtime level. You mean the hoisting, right? I don't see any reason why an import exp

[Python-Dev] Re: Declarative imports

2022-04-08 Thread Steve Dower
7;t need the runtime to do anything differently if the module isn't really going to be used at that point. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https

[Python-Dev] Re: C API: Move PEP 523 "Adding a frame evaluation API to CPython" private C API to the internal C API

2022-04-06 Thread Steve Dower
On 4/5/2022 11:52 PM, Victor Stinner wrote: On Fri, Apr 1, 2022 at 12:36 PM Steve Dower wrote: I don't see any additional discussion on the bug, and the prevailing opinion from actual users of this API is that it probably shouldn't change, From what I understood my change basi

[Python-Dev] Re: Descriptions in unittest and avoiding confusion

2022-04-06 Thread Steve Holden
ators are redundant in the second example, and without them (thanks to the parentheses) the literals will be concatenated at compile time. I often use (code of some sort)'''\ SELECT foo FROM bar WHERE baz = %s""" to ensure the multiline string literal is correctly alig

[Python-Dev] Re: Make HAMT available to python script

2022-04-02 Thread Steve Dower
On 02Apr2022 0925, Paul Moore wrote: On Sat, 2 Apr 2022 at 02:30, Christopher Barker wrote: On Fri, Apr 1, 2022 at 4:06 AM Steve Dower wrote: The main difference is that 'immutables' offers you a stable/versioned interface to use it, while the one that's in CPython

[Python-Dev] Re: Make HAMT available to python script

2022-04-01 Thread Steve Dower
change it was an important compromise.) There are plenty of other things in this same category, and because we want to keep things as stable as possible while also improving performance and reliability, we have to keep pretty tight limits on what we promise will remain stable.

[Python-Dev] Re: C API: Move PEP 523 "Adding a frame evaluation API to CPython" private C API to the internal C API

2022-04-01 Thread Steve Dower
ld help to have outside perspective on this potential change.) Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Mess

[Python-Dev] Re: Enhancing generic type documentation in the standard library

2022-03-30 Thread Steve Holden
them well. Kind regards, Steve On Wed, Mar 30, 2022 at 5:24 PM Christopher Barker wrote: > > I personally would love for a typing.python.org or equivalent > subsection of docs.python.org to exist. > > +1 > > There’s a wrinkle here, however. The type specs are Python, bu

[Python-Dev] Re: C API: Move PEP 523 "Adding a frame evaluation API to CPython" private C API to the internal C API

2022-03-30 Thread Steve Dower
tic linking of the Python DLL. Easy enough things to work around, but they probably need to be explicitly documented as well if we're going to document public APIs as requiring Py_BUILD_CORE (and I don't want to have to document that kind of stuff). Cheers, Steve __

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-30 Thread Steve Dower
On 30Mar2022 1132, Baptiste Carvello wrote: Le 28/03/2022 à 18:44, Steve Dower a écrit : I think to most people "batteries included" doesn't necessarily mean "standard library," with all that implies. It just means "it came with the first thing that I instal

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-30 Thread Steve Dower
ould urlparse("http://[::1]spam:80";) raise? - I have literally no idea :) ), but feel free to nosy me on issues you think you've figured out and I can help confirm your logic and do merges. Or if another core dev has been helping you, keep nosying them. Cheers, Steve

[Python-Dev] Re: C API: Move PEP 523 "Adding a frame evaluation API to CPython" private C API to the internal C API

2022-03-29 Thread Steve Dower
want to state explicit support for either keeping the APIs public and slightly-flexible, or making them internal but stable. (Public and stable won't work at all for us, and normal internal won't work at all for you.) Cheers, Steve ___ P

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-28 Thread Steve Dower
On 3/28/2022 7:26 PM, Paul Moore wrote: To be honest, I feel like I'm just reiterating stuff I've said before here, and I think the same is true of the points I'm responding to. Is there actually any new development here, or is it just a repeat of the same positions people have expressed in the p

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-28 Thread Steve Dower
ot even care that the batteries just came in the same package and aren't actually an integral part of the core product. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.or

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-27 Thread Steve Holden
Time for a __legacy__ package? Kind regards, Steve On Sun, Mar 27, 2022 at 7:06 PM Paul Moore wrote: > On Sun, 27 Mar 2022 at 17:11, Christopher Barker > wrote: > > > > With the json package included, all they need to do is `import json`. If > that wasn't there,

[Python-Dev] Re: C API: Move PEP 523 "Adding a frame evaluation API to CPython" private C API to the internal C API

2022-03-23 Thread Steve Dower
On 3/22/2022 11:28 PM, Victor Stinner wrote: On Tue, Mar 22, 2022 at 7:33 PM Steve Dower wrote: After a normal deprecation period, yes? There is no backward compatibility warranty and no deprecation process for private APIs. And yet you're asking the question, which means you know

[Python-Dev] Re: C API: Move PEP 523 "Adding a frame evaluation API to CPython" private C API to the internal C API

2022-03-22 Thread Steve Dower
default because of reliability, but that was a few years back so maybe they fixed it. So it's likely only being used by the project that requested it, though I don't think that's enough to justify skipping normal deprecation. Cheers, Steve _

[Python-Dev] Re: Restrict the type of __slots__

2022-03-18 Thread Steve Dower
ome a language-wide backwards compatibility break, even if it perhaps would've been better to have had the restriction from the start. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@

[Python-Dev] Re: Python 3.9.11

2022-03-16 Thread Steve Dower
We're still working on it. Hopefully it will be today, but we have had other issues arise that have delayed things by a few days (including new critical OpenSSL fixes that were just released yesterday). Cheers, Steve On 15Mar2022 1743, Prasad, PCRaghavendra wrote: Hi Team, Can so

[Python-Dev] Re: Require a C compiler supporting C99 to build Python 3.11

2022-02-28 Thread Steve Dower
r bugs are fixed. If we're going to specify anything about MSVC, I'd prefer it was the v142 label rather than the Visual Studio version (though we can include the latter as a convenience for the reader, and hopefully clearly enough that people stop filing bug reports about it

[Python-Dev] Re: Should we require IEEE 754 floating-point for CPython?

2022-02-09 Thread Steve Dower
ns about the VS version for building CPython due to how the wiki and devguide mention it). I'm just trying to make sure we don't add more of these, by ensuring that we properly scope things. In this case *CPython requires IEEE 754 flo

[Python-Dev] Re: Require a C compiler supporting C99 to build Python 3.11

2022-02-08 Thread Steve Dower
x27;s the compiler features that seem to have less coverage. Cheers, Steve [1]: https://devblogs.microsoft.com/cppblog/c11-and-c17-standard-support-arriving-in-msvc/ ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to

[Python-Dev] Re: Should we require IEEE 754 floating-point for CPython?

2022-02-08 Thread Steve Dower
ing a brand new language for it. The more "it's-only-Python-if-it-has-X" restrictions we have, the less appealing we become. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to pyt

[Python-Dev] Re: It's now time to deprecate the stdlib urllib module

2022-02-07 Thread Steve Dower
e last 30+ years is eventually going to be found to be exploitable. I'd be quite happy to say "Python gives you what your OS gives you; update the OS for fixes". Cheers, Steve ___ Python-Dev mailing list -- python-dev@python

[Python-Dev] Re: Moving away from _Py_IDENTIFIER().

2022-02-07 Thread Steve Dower
On 2/5/2022 4:09 PM, Guido van Rossum wrote: On Sat, Feb 5, 2022 at 5:18 AM Steve Dower <mailto:steve.do...@python.org>> wrote: The gap this has with what I'd like to see is that it will only work for compile-time strings. If instead it could work for an arb

[Python-Dev] Re: Moving away from _Py_IDENTIFIER().

2022-02-05 Thread Steve Dower
ps I'll put something together that does what I'd like and give us concrete things to discuss. (Is there a requirement that an Id only contain ASCII characters (i.e., 7-bit)?) I don't think it's unreasonable to require that for these inter

[Python-Dev] Re: Moving away from _Py_IDENTIFIER().

2022-02-04 Thread Steve Dower
ct then we aren't on the hook for the allocations. Cheers, Steve [1]: https://devblogs.microsoft.com/oldnewthing/20160615-00/?p=93675 ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@p

[Python-Dev] Re: Slowly bend the C API towards the limited API to get a stable ABI for everyone

2022-01-28 Thread Steve Dower
orm-specific tags in extension modules. These do not support combining tags as in wheels (and unfortunately do not match wheel tags at all), but do allow you to have version/platform-specific .pyd/.dylib/.so files in a single wheel. Again, it's just that none of the current b

[Python-Dev] Re: Slowly bend the C API towards the limited API to get a stable ABI for everyone

2022-01-28 Thread Steve Dower
On 1/28/2022 5:15 PM, Barry Warsaw wrote: On Jan 28, 2022, at 09:00, Steve Dower wrote: Does HPy have any clear guidance or assistance for their users to keep it up to date? I'm concerned that if we simply substitute "support the C API for everyone" with "support

[Python-Dev] Re: Slowly bend the C API towards the limited API to get a stable ABI for everyone

2022-01-28 Thread Steve Dower
to manage it okay. I can't remember the last compat issue I had there that wasn't on our (C-API) side. Thoughts? Cheers, Steve On 1/28/2022 4:50 PM, Victor Stinner wrote: Wait, where is the HPy project in that plan? :-) The HPy project (brand new C API) is a good solution for the long t

[Python-Dev] Re: 3.11 enhanced error location - can it be smarter?

2022-01-18 Thread Steve Dower
There's no reliable way to detect what's displaying console output, and while many now support ANSI colours, we can't be assured of it. Omitting the line of ^ where over x% (75%? 90%?) of characters on the line would be marked would be fi

[Python-Dev] Re: Request to revert unittest and configparser incompatible changes in Python 3.11

2022-01-18 Thread Steve Dower
rd with the changes, or we admit we don't really need them. With this amount of time before the release, we can't blame downstream users for reverting it. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an em

[Python-Dev] Re: Is anyone using 15-bit PyLong digits (PYLONG_BITS_IN_DIGIT=15)?

2022-01-17 Thread Steve Dower
ler but it's the linker that does most of the optimisation. Attaching to a running process is what I normally do. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://ma

[Python-Dev] Re: Minor inconvenience: f-string not recognized as docstring

2022-01-13 Thread Steve Holden
On Tue, Jan 11, 2022 at 6:24 PM Guido van Rossum wrote: > I personally think F-strings should not be usable as docstrings. If you > want a dynamically calculated docstring you should assign it dynamically, > not smuggle it in using a string-like expression. We don't allow "blah {x} > blah".format

[Python-Dev] Re: PEP 674: Disallow using macros as l-value

2021-12-07 Thread Steve Dower
age during beta for it to be worthwhile, though we still have the problem of knock-on effects (where e.g. until NumPy works, nothing that depends on it can even begin testing). Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubs

[Python-Dev] Re: Tool to search in the source code of PyPI top 5000 projects

2021-12-03 Thread Steve Dower
all means, use this tool for checking stuff. But it's not a substitute for justifying every incompatible change in its own right. /rant Cheers, Steve On 12/2/2021 11:44 PM, Victor Stinner wrote: Hi, I wrote two scripts based on the work of INADA-san's work to (1) download the so

[Python-Dev] Re: The current state of typing PEPs

2021-12-02 Thread Steve Holden
On Tue, Nov 30, 2021 at 5:05 PM Steven D'Aprano wrote: > On Tue, Nov 30, 2021 at 02:30:18PM +, Paul Moore wrote: > [...] > Aside: I'm a little disappointed in the way the typing ecosystem has > developed. What I understood was that we'd get type inference like ML or > Haskell use, so we would

[Python-Dev] Re: Expectations of typing (was: The current state of typing PEPs)

2021-11-30 Thread Steve Dower
grams and libraries being annotated, in exchange for being much lighter on memory use and preprocessing. But it should stay out of your way on unannotated code if you haven't enabled its more strict modes. Cheers, Steve ___ Python-Dev mailing li

[Python-Dev] Re: The current state of typing PEPs

2021-11-29 Thread Steve Dower
ic discourse on the topics. And this kind of reiteration is easier when our official documents (PEPs, etc.) state it explicitly. Cheers, Steve [1]: Okay, I will call out the Python Bytes podcast - which I've been on a couple of times - as one that regularly opines on topics based on very l

[Python-Dev] Re: Preventing Unicode-related gotchas (Was: pre-PEP: Unicode Security Considerations for Python)

2021-11-29 Thread Steve Holden
e and the design or programming languages. It's interesting that the egalitarian wish to allow use of native "alphabetics" has turned out to be such a viper's nest. Particular thanks to Stephen J. Turnbull for his thoughtful and well-informed contribution above. Kind regards,

[Python-Dev] Re: Remove asyncore, asynchat and smtpd modules

2021-11-28 Thread Steve Holden
pproach to asynchronous networking, but I think it's safe to say that world has moved on in 20 years. Kind regards, Steve On Wed, Nov 17, 2021 at 6:13 AM Kyle Stanley wrote: > I think it would be fine to wait just one release, until 3.12. Makes no > substantial maintenance difference and m

[Python-Dev] Re: Should python-config be an stdlib module?

2021-10-25 Thread Steve Dower
Over at https://discuss.python.org/t/towards-standardizing-cross-compiling/10357/ about the *only* thing we could agree on is needing a static, cross-platform way to read config values from a Python build (essentially "python -m sysconfig" without being able to run Pyth

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2021-10-18 Thread Steve Dower
ed to a rich DBModel subclass that *knows* it is empty. --- So to summarise my core concern - allowing an API designer to "just use None" is a cop out, and it lets people write lazy/bad APIs rather than coming up with good ones. Cheers, Steve

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2021-10-18 Thread Steve Dower
a lot of time arguing against those that I believe will not. Cheers, Steve On 10/15/2021 3:08 AM, Doug Swarin wrote: Steven D'Aprano wrote: Hello Doug, On Thu, Oct 14, 2021 at 03:45:07PM -, Doug Swarin wrote: I believe strong and valid arguments can be made about the use of None

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

2021-10-06 Thread Steve Dower
, virtually any alternative is going to be more readable. So enjoy bikeshedding, everyone :) Please don't break any of our code. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@p

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

2021-10-04 Thread Steve Dower
, and "except * E" looks like a binary operator and/or grit on the screen. Cheers, Steve [1]: Meaning to "give it a different meaning in particular context", not _literally_ modify in any permanent sense. ___ Python-Dev mai

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

2021-09-27 Thread Steve Dower
quot; option is totally fine (and we'd add one to build.bat for this), but I still think it needs to be discoverable later whether the frozen modules build option was used or not, independent of other build options. Cheers, Steve ___ Python-Dev m

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

2021-09-27 Thread Steve Dower
e? Would that defeat the performance improvement of freezing? Is it just a terrible idea? The filesystem access is what hurts the most, so yeah, that check won't even be considered here without a manual opt-in (which is the option Eric is dis

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

2021-09-27 Thread Steve Dower
nt with #2, there's no reliable way to detect whether profile-guided optimisations were used on all CPython builds, which means there'd be no reliable way to detect whether frozen modules are going to be enabled by default or not. Adding a separate option handles this case.

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

2021-09-21 Thread Steve Dower
to break any existing code, so safe enough to enable if we can. Agreed with Eric on the rest. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailma

[Python-Dev] Re: Should the definition of an "(async) iterator" include __iter__?

2021-09-19 Thread Steve Holden
I understood that _iterables_ are required to have an __iter__ method, not iterators. Therefore, are we simply discussing whether all iterators should be iterable? At the moment the CPython implementation does't require that AFAIK. regards Steve On Tue, Sep 14, 2021 at 8:39 PM Guido van R

[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: PEP 663: Improving and Standardizing Enum str(), repr(), and format() behaviors

2021-09-13 Thread Steve Dower
t, and this one does not, so I stopped. (Might come back later when I'm not trying to catch up on my weekend's email though.) Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to pyt

[Python-Dev] Re: Should PEP 8 be updated for Python 3 only?

2021-08-25 Thread Steve Holden
I suspect it's the same motivation that makes us comment out a block of code rather than deleting it, even though we know the VCS will let us retirive it whenever we want. If I'm wrong it won't be fatal. Or surprising ;-) Kind regards, Steve On Wed, Aug 25, 2021 at 8:53 PM Eric

[Python-Dev] Re: My apologies to the list

2021-08-25 Thread Steve Holden
You forgot: 5. When I just don't damned well feel like it. Kind regards, Steve On Wed, Aug 25, 2021 at 8:25 PM Brett Cannon wrote: > I just wanted to apologize for any angst or noise my replies to Marco > caused folks. I should have known that correcting Marco on how to address

[Python-Dev] Re: Problems with dict subclassing performance

2021-08-18 Thread Steve Holden
Your inflated sense of your own significance is unfortunate, since it appears to prohibit you from considering the possibility you might have made a rather silly mistake here, and one which is calculated to move you further away from your stated goals. Kind regards, Steve On Tue, Aug 17, 2021

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

2021-08-16 Thread Steve Dower
hey may be in email/issue archives), but since they exist, presumably they are useful and viable _despite_ the bytecode varying between releases. This suggests there's probably a better API we should add at the same time - possibly some kind of unmarshalling or cloning-with-updates function?

[Python-Dev] Re: PEP 649: Deferred Evaluation Of Annotations

2021-08-11 Thread Steve Holden
On Wed, Aug 11, 2021 at 7:09 AM Larry Hastings wrote: > On 8/10/21 11:15 AM, Thomas Grainger wrote: > > Although the co_annoations code could intercept the NameError and replace > return a ForwardRef object instead of the resolved name > > > No, it should raise a NameError, just like any other P

[Python-Dev] Re: PEP 649: Deferred Evaluation Of Annotations

2021-08-11 Thread Steve Holden
On Wed, Aug 11, 2021 at 2:27 PM Guido van Rossum wrote: > As it happens, I have a working prototype of lazy in marshaling that would > work well for this. > > Nice to see you keep the time machine in working order ... Kind regards, Steve __

[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: Repealing PEP 509 (Add a private version to dict)

2021-07-29 Thread Steve Dower
m to implement "standard" Python, having an explicit distinction here would be helpful. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.

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

2021-07-12 Thread Steve Dower
nsible. There's nothing wrong with the randomness from the function. It'll be using the new API under the covers. So this is an enhancement, not a security issue, and should only target 3.11. Cheers, Steve ___ Python-Dev mailing list -- python-d

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

2021-07-02 Thread Steve Holden
p somehow. They can't, and it's a little offensive to assume that your perceptions of the project will somehow be revelatory. You describe real problems, but these problems are well-known to the development team and you offer no new insights

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

2021-07-01 Thread Steve Dower
ourself in a position where you have to justify it to someone outside of the project (e.g. using work time for open source), hopefully any core developer you've interacted with a bit will gladly write a short endorsement for that. Cheers, Steve

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

2021-06-17 Thread Steve Dower
going to become significantly more attractive than those two - even IronPython still lives on for embedding because it works so well). Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@p

[Python-Dev] Re: name for new Enum decorator

2021-06-06 Thread Steve Holden
seems intentional and not an error. > > > > Are you looking for a decorator for the whole Enum, or a way to mark > individual *values* as masks? > > The decorator is for whole enum. The issue is not that some values are > masks, but whether the absence of named bits > cov

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

2021-06-04 Thread Steve Dower
he importlib module's methods (but your *best* bet overall is to run separate test suites in their own process so you can avoid the CWD changes). Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to p

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

2021-05-25 Thread Steve Dower
obvious option), and use the complex overrides in our own automated systems. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python

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

2021-05-24 Thread Steve Dower
an use any version at all to build CPython and/or extension modules. Our official releases are always using relatively up-to-date compilers, but provided the compatibility is maintained on Microsoft's side, there's no need to worry about the specific versions. Cheers, Steve On

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

2021-05-21 Thread Steve Dower
ase. All the other situations where we want arguments with unspecified default values can use ..., and the few cases where ... is a valid value (semantically, for the API, not syntactically) can spend the time figuring out a different API design. Cheers, Steve _

[Python-Dev] Re: PEP 659: Specializing Adaptive Interpreter

2021-05-14 Thread Steve Holden
On Thu, May 13, 2021 at 11:07 PM Steven D'Aprano wrote: > Steve > (one of the other ones) > We are all other Steves! ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@py

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

2021-05-14 Thread Steve Dower
ue that wouldn't also apply to any other kind of shared sentinel. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.

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

2021-05-13 Thread Steve Dower
rly say what the default value is, either.  So in all cases I have to read the docstring in addition to the function signature. Is the term you're looking for? Perhaps or ? Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org

[Python-Dev] Re: PEP 659: Specializing Adaptive Interpreter

2021-05-13 Thread Steve Holden
On Thu, May 13, 2021 at 9:18 AM Mark Shannon wrote: > Hi Terry, > > On 13/05/2021 5:32 am, Terry Reedy wrote: > > On 5/12/2021 1:40 PM, Mark Shannon wrote: > > > >> This is an informational PEP about a key part of our plan to improve > >> CPython performance for 3.11 and beyond. > > > >> As alway

[Python-Dev] Re: How about using modern C++ in development of CPython ?

2021-04-20 Thread Steve Holden
On Fri, Apr 16, 2021 at 7:15 PM Denis Kotov wrote: > Ethan Furman wrote: > > On 4/16/21 10:43 AM, redrad...@gmail.com wrote: > > > Take a look at this video https://www.youtube.com/watch?v=D7Sd8A6_fYU > > > or read some articles ... otherwise I will need to spend too many time > providing evidenc

[Python-Dev] Re: gzip.py: allow deterministic compression (without time stamp)

2021-04-14 Thread Steve Holden
DEFAULT_TIMESTAMP? Kind regards, Steve On Wed, Apr 14, 2021 at 8:03 PM wrote: > If the so, then a better name than NO_TIMESTAMP should be chosen, as the > gzip specification does not allow for no timestamp. > ___ > Python-Dev mailing li

[Python-Dev] Re: Typing syntax and ecosystem

2021-04-13 Thread Steve Holden
The old rule is best: be strict in what you produce and liberal i what you accept. Kind regards, Steve On Tue, Apr 13, 2021 at 12:52 AM Edwin Zimmerman wrote: > On 4/12/2021 6:34 PM, Brett Cannon wrote: > > Had the sentences ended at "confusing" or said something like "

[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: pth file encoding

2021-03-17 Thread Steve Dower
lly come around to the idea that UTF-8 is the only needed encoding, and I'm sure if it had existed when Windows decided to support a universal character set, it would have been chosen. But with what we have now, UTF-16-LE is not a good choice for anything apart from compatibility with Wind

[Python-Dev] Re: pth file encoding

2021-03-17 Thread Steve Dower
want. Cheers, Steve ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/

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

2021-02-24 Thread Steve Dower
asier way to patch the location of user site packages? I also had to do this for the Store install on Windows, and it's a little bit of a hack... but maybe having an official recommendation would help encourage distributors to use the mechanism? Cheers, Steve ___

  1   2   3   4   5   6   7   8   9   10   >