Re: Python 3.10 Fizzbuzz

2023-03-02 Thread Keith Thompson
Greg Ewing writes: > On 2/03/23 10:59 am, gene heskett wrote: >> Human skin always has the same color > > Um... no? You took that out of context. The assertion was that "Human skin always has the same color" and "the difference is not the color, but the brightness". I offer no opinion on

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread gene heskett
On 3/1/23 20:28, Greg Ewing via Python-list wrote: On 2/03/23 10:59 am, gene heskett wrote: Human skin always has the same color Um... no? Yes, only the intensity of the color changes, the vector angle remains the same within a degree or so. Cheers, Gene Heskett. -- "There are four boxes

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread Greg Ewing via Python-list
On 2/03/23 10:59 am, gene heskett wrote: Human skin always has the same color Um... no? -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread Cameron Simpson
On 26Feb2023 13:07, Hen Hanna wrote: is there any reason to prefer"over' ? Not inherently. It is only important if you want to embed one of those characters in a string, eg: x = "That's silly." versus: x = 'That\'s silly.' and the converse for the other quote

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread Cameron Simpson
On 28Feb2023 12:54, Greg Ewing wrote: I guess this means I can't use Black. :-( Black's treatment of quotes and docstrings is one of the largest reasons why I won't let it touch my personal code. yapf is far better behaved, and can be tuned as well! Cheers, Cameron Simpson --

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread gene heskett
On 3/1/23 11:41, rbowman wrote: On 1 Mar 2023 11:28:12 GMT, Stefan Ram wrote: IIRC, I've heard of professional video monitors which are set to standard values for color saturation, contrast, and brightness. They have no way to adjust these values, although they are more expensive

RE: Python 3.10 Fizzbuzz

2023-03-01 Thread avi.e.gross
rch 1, 2023 6:48 AM To: python-list@python.org Subject: Re: Python 3.10 Fizzbuzz On 2023-03-01, Simon Ward wrote: > On Tue, Feb 28, 2023 at 04:05:19PM -0500, avi.e.gr...@gmail.com wrote: >>Is it rude to name something "black" to make it hard for some of us to >>remind them of

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread rbowman
On 1 Mar 2023 11:28:12 GMT, Stefan Ram wrote: > IIRC, I've heard of professional video monitors which are set to > standard values for color saturation, contrast, and brightness. They > have no way to adjust these values, although they are more expensive > than normal screens. Probably

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread Jon Ribbens via Python-list
On 2023-03-01, Simon Ward wrote: > On Tue, Feb 28, 2023 at 04:05:19PM -0500, avi.e.gr...@gmail.com wrote: >>Is it rude to name something "black" to make it hard for some of us to >>remind them of the rules or claim that our personal style is so often >>the opposite that it should be called

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread Simon Ward
On Tue, Feb 28, 2023 at 04:05:19PM -0500, avi.e.gr...@gmail.com wrote: Is it rude to name something "black" to make it hard for some of us to remind them of the rules or claim that our personal style is so often the opposite that it should be called "white" or at least shade of gray? The

Re: Python 3.10 Fizzbuzz

2023-02-28 Thread Oscar Benjamin
On Tue, 28 Feb 2023 at 20:55, Mats Wichmann wrote: > > On 2/27/23 16:42, Oscar Benjamin wrote: > > On Mon, 27 Feb 2023 at 21:06, Ethan Furman wrote: > >> > >> On 2/27/23 12:20, rbowman wrote: > >> > >> > "By using Black, you agree to cede control over minutiae of hand- > >> > formatting. In

RE: Re: Python 3.10 Fizzbuzz

2023-02-28 Thread avi.e.gross
bruary 28, 2023 2:44 PM To: pythonl...@danceswithmice.info Cc: python-list@python.org Subject: Aw: Re: Python 3.10 Fizzbuzz > > I've never tried Black or any other code formatter, but I'm sure we > > wouldn't get on. > > Does this suggest, that because Black doesn't respect o

RE: Python 3.10 Fizzbuzz

2023-02-28 Thread avi.e.gross
2 PM To: python-list@python.org Subject: Re: Python 3.10 Fizzbuzz On 28/02/2023 12.55, Rob Cliffe via Python-list wrote: > > > On 27/02/2023 21:04, Ethan Furman wrote: >> On 2/27/23 12:20, rbowman wrote: >> >> > "By using Black, you agree to cede control over minutia

Re: Python 3.10 Fizzbuzz

2023-02-28 Thread Mats Wichmann
On 2/27/23 16:42, Oscar Benjamin wrote: On Mon, 27 Feb 2023 at 21:06, Ethan Furman wrote: On 2/27/23 12:20, rbowman wrote: > "By using Black, you agree to cede control over minutiae of hand- > formatting. In return, Black gives you speed, determinism, and freedom > from pycodestyle

Aw: Re: Python 3.10 Fizzbuzz

2023-02-28 Thread Karsten Hilbert
> > I've never tried Black or any other code formatter, but I'm sure we > > wouldn't get on. > > Does this suggest, that because Black doesn't respect other people's > opinions and feelings, that it wouldn't meet the PSF's Code of Conduct? That much depends on The Measure Of A Man. Karsten --

Re: Python 3.10 Fizzbuzz

2023-02-28 Thread Chris Angelico
On Wed, 1 Mar 2023 at 06:25, dn via Python-list wrote: > > On 28/02/2023 12.55, Rob Cliffe via Python-list wrote: > > > > > > On 27/02/2023 21:04, Ethan Furman wrote: > >> On 2/27/23 12:20, rbowman wrote: > >> > >> > "By using Black, you agree to cede control over minutiae of hand- > >> >

Re: Python 3.10 Fizzbuzz

2023-02-28 Thread dn via Python-list
On 28/02/2023 12.55, Rob Cliffe via Python-list wrote: On 27/02/2023 21:04, Ethan Furman wrote: On 2/27/23 12:20, rbowman wrote: > "By using Black, you agree to cede control over minutiae of hand- > formatting. In return, Black gives you speed, determinism, and freedom > from pycodestyle

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread Rob Cliffe via Python-list
On 27/02/2023 21:04, Ethan Furman wrote: On 2/27/23 12:20, rbowman wrote: > "By using Black, you agree to cede control over minutiae of hand- > formatting. In return, Black gives you speed, determinism, and freedom > from pycodestyle nagging about formatting. You will save time and mental >

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread Greg Ewing via Python-list
On 28/02/23 5:08 am, Thomas Passin wrote: On 2/27/2023 11:01 AM, Mats Wichmann wrote: If you intend to run Black on your code to ensure consistent formatting, you may as well learn to prefer double quotes, because it's going to convert single to double I prefer single quotes because they are

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread Oscar Benjamin
On Mon, 27 Feb 2023 at 21:06, Ethan Furman wrote: > > On 2/27/23 12:20, rbowman wrote: > > > "By using Black, you agree to cede control over minutiae of hand- > > formatting. In return, Black gives you speed, determinism, and freedom > > from pycodestyle nagging about formatting. You will save

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread Ethan Furman
On 2/27/23 12:20, rbowman wrote: > "By using Black, you agree to cede control over minutiae of hand- > formatting. In return, Black gives you speed, determinism, and freedom > from pycodestyle nagging about formatting. You will save time and mental > energy for more important matters." > >

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread rbowman
On Mon, 27 Feb 2023 11:08:22 -0500, Thomas Passin wrote: > I prefer single quotes because they are easier to type. There is that. JavaScript makes me lazy and C# slaps my knuckles with a steel edged ruler. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread rbowman
On Mon, 27 Feb 2023 09:01:26 -0700, Mats Wichmann wrote: > If you intend to run Black on your code to ensure consistent formatting, > you may as well learn to prefer double quotes, because it's going to > convert single to double (or: don't learn, and set your IDE to "convert > on save" and

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread Thomas Passin
On 2/27/2023 11:01 AM, Mats Wichmann wrote: On 2/26/23 14:07, Hen Hanna wrote: On Monday, August 29, 2022 at 7:18:22 PM UTC-7, Paul Rubin wrote: Just because. from math import gcd def fizz(n: int) -> str:     match gcd(n, 15):    case 3: return "Fizz"    case 5:

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread Mats Wichmann
On 2/26/23 14:07, Hen Hanna wrote: On Monday, August 29, 2022 at 7:18:22 PM UTC-7, Paul Rubin wrote: Just because. from math import gcd def fizz(n: int) -> str: match gcd(n, 15): case 3: return "Fizz" case 5: return "Buzz" case 15: return

RE: Python 3.10 Fizzbuzz

2023-02-26 Thread avi.e.gross
: Python-list On Behalf Of Hen Hanna Sent: Sunday, February 26, 2023 4:07 PM To: python-list@python.org Subject: Re: Python 3.10 Fizzbuzz On Monday, August 29, 2022 at 7:18:22 PM UTC-7, Paul Rubin wrote: > Just because. > > from math import gcd > def fizz(n: int) -> str: >

Re: Python 3.10 Fizzbuzz

2023-02-26 Thread Skip Montanaro
Dang auto-correct... Should read ... double quotes around "strings" and single quotes around 'c'haracters ... On Sun, Feb 26, 2023, 6:28 PM Skip Montanaro wrote: > is there any reason to prefer"over' ? >> > > Not really. As an old C programmer for many years I used double >

Re: Python 3.10 Fizzbuzz

2023-02-26 Thread Skip Montanaro
> > is there any reason to prefer"over' ? > Not really. As an old C programmer for many years I used double quotes"around "strings" and single word around 'c'haracters, because that's what I was used to. (This was long before triple quoted strings appeared in the language.) Aside:

Re: Python 3.10 Fizzbuzz

2023-02-26 Thread Hen Hanna
On Monday, August 29, 2022 at 7:18:22 PM UTC-7, Paul Rubin wrote: > Just because. > > from math import gcd > def fizz(n: int) -> str: >match gcd(n, 15): > case 3: return "Fizz" > case 5: return "Buzz" > case 15: return "FizzBuzz" >