Re: [python-committers] [RELEASE] Python 3.8.0b3 is now available for testing

2019-07-29 Thread Barry Warsaw
I have updated the official docker images with 3.8b3: https://gitlab.com/python-devs/ci-images/tree/master -Barry > On Jul 29, 2019, at 14:48, Łukasz Langa wrote: > > Signed PGP part > This time without delays, I present you Python 3.8.0b3: > > https://www.python.org/downloads/release/python-

Re: .python_history file

2019-07-29 Thread Thomas Jollans
On 29/07/2019 23:06, Harry Grey wrote: > Hy to Everyone > first of all : Sorry for my english > > what do you think about introducing a feature that allows you to group > by date > and after to filter the istruction that are written in the > .python_history file: > maybe with a new structure for .

[RELEASE] Python 3.8.0b3 is now available for testing

2019-07-29 Thread Łukasz Langa
This time without delays, I present you Python 3.8.0b3: https://www.python.org/downloads/release/python-380b3/ This release is the third of four planned beta release previews. Beta release previews are intended to give the wider community

.python_history file

2019-07-29 Thread Harry Grey
Hy to Everyone first of all : Sorry for my english what do you think about introducing a feature that allows you to group by date and after to filter the istruction that are written in the .python_history file: maybe with a new structure for .python_history:  """ ###DATE-OF-SOME-DAY-START

Re: Boolean comparison & PEP8

2019-07-29 Thread Michael F. Stemper
On 29/07/2019 12.56, Rob Gaddi wrote: > On 7/29/19 10:44 AM, Michael F. Stemper wrote: >> On 28/07/2019 19.04, Chris Angelico wrote: >>> On Mon, Jul 29, 2019 at 9:48 AM Michael Torrie >>> wrote: Yet the recommended solution to the problem of wanting a default argument of an empty list i

Re: Boolean comparison & PEP8

2019-07-29 Thread Rob Gaddi
On 7/29/19 10:44 AM, Michael F. Stemper wrote: On 28/07/2019 19.04, Chris Angelico wrote: On Mon, Jul 29, 2019 at 9:48 AM Michael Torrie wrote: On 7/28/19 5:55 AM, Jonathan Moules wrote: But this appears to be explicitly called out as being "Worse" in PEP8: """ Don't compare boolean values

Re: Boolean comparison & PEP8

2019-07-29 Thread Chris Angelico
On Tue, Jul 30, 2019 at 3:46 AM Michael F. Stemper wrote: > > On 28/07/2019 19.04, Chris Angelico wrote: > > On Mon, Jul 29, 2019 at 9:48 AM Michael Torrie wrote: > >> > >> On 7/28/19 5:55 AM, Jonathan Moules wrote: > >>> But this appears to be explicitly called out as being "Worse" in PEP8: > >>

Re: Boolean comparison & PEP8

2019-07-29 Thread Michael F. Stemper
On 28/07/2019 19.04, Chris Angelico wrote: > On Mon, Jul 29, 2019 at 9:48 AM Michael Torrie wrote: >> >> On 7/28/19 5:55 AM, Jonathan Moules wrote: >>> But this appears to be explicitly called out as being "Worse" in PEP8: >>> >>> """ >>> Don't compare boolean values to True or False using ==. >>>

Re: Definite or indefinite article for non-singletons?

2019-07-29 Thread MRAB
On 2019-07-29 03:59, Cameron Simpson wrote: On 29Jul2019 10:15, Chris Angelico wrote: On Mon, Jul 29, 2019 at 10:06 AM Richard Damon wrote: When talking of empty strings, we need to look a bit at context. "The empty string" implies that there is only one of them, and if we are talking about

Re: Boolean comparison & PEP8

2019-07-29 Thread Chris Angelico
On Tue, Jul 30, 2019 at 12:04 AM David Raymond wrote: > if shell: > #wait, "shell" is not really a statement or an instruction. "If shell"... > what? "I need to shell"? Is this whether we want to use a shell, or if we > discovered that we're already in one? Or is "shell" not really a boolean

Re: Boolean comparison & PEP8

2019-07-29 Thread Dan Sommers
On 7/29/19 10:02 AM, David Raymond wrote: > I think the other part of the discussion to be had here is: how do you > name your booleans? Yep. > ... To me the name of a boolean variable should be obvious that it's a > boolean ... Well, yeah, maybe. If it's really only a boolean, and its value

Re: Boolean comparison & PEP8

2019-07-29 Thread Grant Edwards
On 2019-07-29, Michael Torrie wrote: > On 7/28/19 6:04 PM, Chris Angelico wrote: >> This is a fairly unusual case, though. More commonly, the default >> would be None, not False, and "if bar is None:" is extremely well >> known and idiomatic. > > Ahh yes, true. No... None. ;) -- Grant Edwards

Re: ubuntu python 2.7 variations

2019-07-29 Thread Robin Becker
On 29/07/2019 12:33, Chris Angelico wrote: . Should I always be using self build python versions? If you want to maintain your own Python, then by all means, go ahead. I don't maintain my own Python 2.7, but I have a number of Python 3.x builds, since Debian Stretch doesn't ship with a

RE: Boolean comparison & PEP8

2019-07-29 Thread David Raymond
I think the other part of the discussion to be had here is: how do you name your booleans? As with other things, "x", and "greeting" aren't really the best names. "greeting" sounds like it should hold what the greeting _is_, not whether or not there _should be_ a greeting. If it were something

Re: ubuntu python 2.7 variations

2019-07-29 Thread Chris Angelico
On Mon, Jul 29, 2019 at 8:50 PM Robin Becker wrote: > My question is that since the package builders feel able to modify and affect > behaviour in such a simple case will they do it randomly elsewhere perhaps > leading to other less obvious changes. > > Should I always be using self build python v

ubuntu python 2.7 variations

2019-07-29 Thread Robin Becker
I help maintain apps on a number of machines and recently a bug surfaced which affected some of them using the preppy template module; the bug ended up being the way tokenize worked as in the following # from StringIO import StringIO import tokenize, token L = [] s='