[Python-Dev] Re: Replacing 4 underscores with a $ sign, idea for a PEP

2019-07-22 Thread Karl Dolenc
I have changed my mind. I will not be taking part in these mailing lists any further for the time being. My thinking about the issue I have raised has evolved and I have more developed ideas to offer, but for the case to be made properly with any chance of success, the first thing that should ha

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

2019-07-22 Thread Ivan Pozdeev via Python-Dev
On 22.07.2019 18:25, 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 module.

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

2019-07-22 Thread Kyle Stanley
Upon further consideration and reading your response, I'm starting to think that the proposal to perform a mass renaming across stdlib might have been a bit too drastic, even if it was done over a longer period of time. Thanks for the detailed explanation of the costs, that significantly improve

[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: What is a public API?

2019-07-22 Thread Steven D'Aprano
On Mon, Jul 22, 2019 at 10:02:12PM -, Kyle Stanley wrote about renaming non-public names with a leading underscore: > Good point, this would probably have to be a gradual change if it did > happen, rather than being at all once. If it were to happen with a > proper deprecation cycle and cle

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

2019-07-22 Thread Kyle Stanley
Brett Cannon wrote: > Same would happen with a rename where people's code suddenly broke. We > don't do renames on purpose without a proper deprecation cycle and doing that > en-mass would be extremely disruptive. Good point, this would probably have to be a gradual change if it did happen, rathe

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

2019-07-22 Thread Brett Cannon
Kyle Stanley wrote: > Serhiy Storchaka wrote: > > Either we establish the rule that all non-public > > names must be > > underscored, and do mass renaming through the whole stdlib. Or allow to > > use non-underscored names for internal things and leave the sources in > > Personally, I would be th

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

2019-07-22 Thread Kacvinsky, Tom
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 module. First, I know I could get this via 'pip insta

[Python-Dev] Re: The order of operands in the comparison

2019-07-22 Thread Serhiy Storchaka
22.07.19 11:04, Kyle Stanley пише: Serhiy Storchaka wrote: Thank you. The majority of the code uses needle on the right. There are just 6 places where it is on the left, and the half of them look copy-pasted, and in one place the C code differs from the corresponding Python implementation. There

[Python-Dev] Re: The order of operands in the comparison

2019-07-22 Thread Kyle Stanley
Serhiy Storchaka wrote: > Thank you. The majority of the code uses needle on the right. There are > just 6 places where it is on the left, and the half of them look > copy-pasted, and in one place the C code differs from the corresponding > Python implementation. There is an order more places wh

[Python-Dev] Re: The order of operands in the comparison

2019-07-22 Thread Serhiy Storchaka
20.07.19 18:26, Guido van Rossum пише: In an ideal world, needle is on the right. Let's replace needle with a constant: which of the following looks more natural?   for x in sequence:   if x == 5: return True or   for x in sequence:   if 5 == x: return True For me, 'x == 5' wins