Re: why no camelCase in PEP 8?

2020-05-19 Thread Barry Scott
> On 18 May 2020, at 22:07, Eli the Bearded <*@eli.users.panix.com> wrote: > > camelCase -> noCamelCase > snake_case -> no_snake_case > > One of those is easier to "grep" for than the other. I guess you mean that a case-sensitive grep can tell camelCase from

Re: why no camelCase in PEP 8?

2020-05-19 Thread Rhodri James
On 18/05/2020 22:07, Eli the Bearded wrote: camelCase ->noCamelCase snake_case ->no_snake_case One of those is easier to "grep" for than the other. Eh. A changed case in the one, an extra character in the other; that's pretty much the same difficulty really

Re: Subprocess Popen confusion

2020-05-19 Thread Barry Scott
> On 18 May 2020, at 21:50, Dick Holmes wrote: snip > Per Peter's suggestion I tried readline and it works "as expected". I > also discovered that the reason the read operations were stalling was > that they followed a write and the write doesn't actually occur until > "flush" is called ev

[RELEASE] Python 3.9.0b1 is now available for testing

2020-05-19 Thread Łukasz Langa
On behalf of the entire Python development community, and the currently serving Python release team in particular, I’m pleased to announce the release of Python 3.9.0b1. Get it here: https://www.python.org/downloads/release/python-390b1/

Re: why no camelCase in PEP 8?

2020-05-19 Thread Richard Damon
On 5/19/20 4:02 AM, Barry Scott wrote: > >> On 18 May 2020, at 22:07, Eli the Bearded <*@eli.users.panix.com> wrote: >> >> camelCase -> noCamelCase >> snake_case -> no_snake_case >> >> One of those is easier to "grep" for than the other. > I guess you mean that a ca

RE: why no camelCase in PEP 8?

2020-05-19 Thread Schachner, Joseph
I don't actually know, but I can take a guess. CamelCase can be problematic with terms that are abbreviations and always upper case. For example FIRFilter or USBPLL The first violated camelCase because it has no lower case letters before Filter, and the second completely violates camelCase bec

Strings: double versus single quotes

2020-05-19 Thread Manfred Lotz
Hi there, I am asking myself if I should preferably use single or double quotes for strings? If I need a single quote in a string I would use double quotes for the whole string and vice versa. For f-strings I mostly see double quotes but single quotes would work as well I think. Is there a recomm

Re: why no camelCase in PEP 8?

2020-05-19 Thread Chris Angelico
On Wed, May 20, 2020 at 4:03 AM Schachner, Joseph wrote: > > And, because '_' looks sort of like a space, the individual words are more > easily readable. notEveyoneThinksReadingCamelCaseIsEasy. > Me: "What does casels mean?" *beat* Me: "Well, I guess that's the point then, isn't it." ChrisA

Re: Strings: double versus single quotes

2020-05-19 Thread Chris Angelico
On Wed, May 20, 2020 at 4:21 AM Manfred Lotz wrote: > > Hi there, > I am asking myself if I should preferably use single or double quotes > for strings? > > If I need a single quote in a string I would use double quotes for the > whole string and vice versa. For f-strings I mostly see double > quo

Re: Strings: double versus single quotes

2020-05-19 Thread Joel Goldstick
On Tue, May 19, 2020 at 2:27 PM Chris Angelico wrote: > > On Wed, May 20, 2020 at 4:21 AM Manfred Lotz wrote: > > > > Hi there, > > I am asking myself if I should preferably use single or double quotes > > for strings? > > > > If I need a single quote in a string I would use double quotes for the

Re: Determining index of range of values in a matrix

2020-05-19 Thread DL Neil via Python-list
On 19/05/20 6:40 AM, swaroop.sahoo...@gmail.com wrote: Hi All, I am using python for doing the following: I have a matrix which has dimension of 174*993. Each row of the matrix has some numbers in the range of 30-30.5. I would like to determine the index of the numbers in the range of 30-30.5 in

Re: Strings: double versus single quotes

2020-05-19 Thread DL Neil via Python-list
On 20/05/20 6:26 AM, Chris Angelico wrote: On Wed, May 20, 2020 at 4:21 AM Manfred Lotz wrote: Hi there, I am asking myself if I should preferably use single or double quotes for strings? If I need a single quote in a string I would use double quotes for the whole string and vice versa. For f

Re: Strings: double versus single quotes

2020-05-19 Thread Tim Chase
On 2020-05-19 20:10, Manfred Lotz wrote: > Hi there, > I am asking myself if I should preferably use single or double > quotes for strings? I'd say your consistency matters more than which one you choose. According to a recent observation by Raymond H. """ Over time, the #python world has show

Re: Strings: double versus single quotes

2020-05-19 Thread Chris Angelico
On Wed, May 20, 2020 at 4:42 AM Joel Goldstick wrote: > > On Tue, May 19, 2020 at 2:27 PM Chris Angelico wrote: > > > > On Wed, May 20, 2020 at 4:21 AM Manfred Lotz wrote: > > > > > > Hi there, > > > I am asking myself if I should preferably use single or double quotes > > > for strings? > > > >

Re: [RELEASE] Python 3.9.0b1 is now available for testing

2020-05-19 Thread Robin Becker
On 19/05/2020 10:49, Łukasz Langa wrote: On behalf of the entire Python development community, and the currently serving Python release team in particular, I’m pleased to announce the release of Python 3.9.0b1. Get it here: https://www.python.org/downloads/release/python-390b1/

Missing python curses functions?

2020-05-19 Thread Alan Gauld via Python-list
During my Covid19 lock-down I thought I'd spend my time translating the "Linux Curses Programming HOWTO" document into Pythonic curses. One of the functions discussed that does not appear to have a Python equivalent is attr_get() which gets the current attributes. There are functions aplenty for

Re: why no camelCase in PEP 8?

2020-05-19 Thread Jim
On 5/19/20 1:24 PM, Chris Angelico wrote: On Wed, May 20, 2020 at 4:03 AM Schachner, Joseph wrote: And, because '_' looks sort of like a space, the individual words are more easily readable. notEveyoneThinksReadingCamelCaseIsEasy. Me: "What does casels mean?" *beat* Me: "Well, I guess t

Re: Strings: double versus single quotes

2020-05-19 Thread Ethan Furman
On 05/19/2020 11:40 AM, Joel Goldstick wrote: I thought triple quotes are for docstrings? It's the recommendation, but double and single quotes work just fine, too -- at least for docstrings that fit an one line. -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list

Re: why no camelCase in PEP 8?

2020-05-19 Thread Chris Angelico
On Wed, May 20, 2020 at 6:38 AM Jim wrote: > > On 5/19/20 1:24 PM, Chris Angelico wrote: > > On Wed, May 20, 2020 at 4:03 AM Schachner, Joseph > > wrote: > >> > >> And, because '_' looks sort of like a space, the individual words are more > >> easily readable. notEveyoneThinksReadingCamelCaseIs

Re: why no camelCase in PEP 8?

2020-05-19 Thread DL Neil via Python-list
On 20/05/20 8:49 AM, Chris Angelico wrote: On Wed, May 20, 2020 at 6:38 AM Jim wrote: On 5/19/20 1:24 PM, Chris Angelico wrote: On Wed, May 20, 2020 at 4:03 AM Schachner, Joseph wrote: And, because '_' looks sort of like a space, the individual words are more easily readable. notEveyoneT

Re: Strings: double versus single quotes

2020-05-19 Thread Manfred Lotz
On Tue, 19 May 2020 13:36:54 -0500 Tim Chase wrote: > On 2020-05-19 20:10, Manfred Lotz wrote: > > Hi there, > > I am asking myself if I should preferably use single or double > > quotes for strings? > > I'd say your consistency matters more than which one you choose. > > According to a recen

Re: [RELEASE] Python 3.9.0b1 is now available for testing

2020-05-19 Thread Barry
> On 19 May 2020, at 21:36, Robin Becker wrote: > > On 19/05/2020 10:49, Łukasz Langa wrote: >> On behalf of the entire Python development community, and the currently >> serving Python release team in particular, I’m pleased to announce the >> release of Python 3.9.0b1. Get it here: >> http

Re: [RELEASE] Python 3.9.0b1 is now available for testing

2020-05-19 Thread Robin Becker
.. robin@minikat:~/devel/reportlab $ $HOME/LOCAL/3.9b1/bin/python3.9 Python 3.9.0b1 (default, May 19 2020, 12:50:30) [GCC 10.1.0] on linux Type "help", "copyright", "credits" or "license" for more information. import distutils /home/robin/LOCAL/3.9b1/lib/python3.9/distutils/__init__.py:

Re: Missing python curses functions?

2020-05-19 Thread Bill Campbell
On Tue, May 19, 2020, Alan Gauld via Python-list wrote: >During my Covid19 lock-down I thought I'd spend my time translating >the "Linux Curses Programming HOWTO" document into Pythonic curses. > >One of the functions discussed that does not appear to have >a Python equivalent is attr_get() which g

Re: Missing python curses functions?

2020-05-19 Thread Cameron Simpson
On 19May2020 20:53, Alan Gauld wrote: Is anyone other than me still even using Python curses? :-) Well, not curses full on (due to lack of time) but my cs.upd module uses the ti_getstr() et al functions for cursor motions and insert/delete line, etc. It may be that the person who wrote the

Re: Strings: double versus single quotes

2020-05-19 Thread Cameron Simpson
On 19May2020 22:04, Manfred Lotz wrote: On Tue, 19 May 2020 13:36:54 -0500 Tim Chase wrote: On 2020-05-19 20:10, Manfred Lotz wrote: > I am asking myself if I should preferably use single or double > quotes for strings? I'd say your consistency matters more than which one you choose. [...]

Re: Strings: double versus single quotes

2020-05-19 Thread Alan Gauld via Python-list
On 19/05/2020 19:10, Manfred Lotz wrote: > Hi there, > I am asking myself if I should preferably use single or double quotes > for strings? Personally laziness wins every time. Single quotes only require one finger from the home position using my right hand, double quotes require two and a big mov

Can't run program

2020-05-19 Thread Ryan Harrington
Hi - I'm not the least bit technical. Trying to learn through YouTube. I've gotten exit code 1, 2, 106. Tried setting up the project interpreter and can't figure it out. Tried uninstalling and reinstalling everything and still having problems. Any feedback appreciated. Thank you, -- Ryan Harringt

Re: Strings: double versus single quotes

2020-05-19 Thread Terry Reedy
On 5/19/2020 2:10 PM, Manfred Lotz wrote: Hi there, I am asking myself if I should preferably use single or double quotes for strings? If I need a single quote in a string I would use double quotes for the whole string and vice versa. For f-strings I mostly see double quotes but single quotes wo

Re: Can't run program

2020-05-19 Thread Yong Pang
Hi Ryan Harrington wrote: Hi - I'm not the least bit technical. Trying to learn through YouTube. I've gotten exit code 1, 2, 106. Tried setting up the project interpreter and can't figure it out. Tried uninstalling and reinstalling everything and still having problems. Any feedback appreciated.

Re: Strings: double versus single quotes

2020-05-19 Thread Souvik Dutta
I love and use only singel quotes. I think that looks clean... Nothing else. Souvik flutter dev On Tue, May 19, 2020, 11:50 PM Manfred Lotz wrote: > Hi there, > I am asking myself if I should preferably use single or double quotes > for strings? > > If I need a single quote in a string I would

Re: why no camelCase in PEP 8?

2020-05-19 Thread Jim
On 5/19/20 3:49 PM, Chris Angelico wrote: On Wed, May 20, 2020 at 6:38 AM Jim wrote: On 5/19/20 1:24 PM, Chris Angelico wrote: On Wed, May 20, 2020 at 4:03 AM Schachner, Joseph wrote: And, because '_' looks sort of like a space, the individual words are more easily readable. notEveyoneTh

Re: Can't run program

2020-05-19 Thread Bob Gailer
On May 19, 2020 9:02 PM, "Ryan Harrington" < ryan.harring...@whitesourcesoftware.com> wrote: > > Hi - I'm not the least bit technical. Trying to learn through YouTube. I've > gotten exit code 1, 2, 106. Tried setting up the project interpreter and > can't figure it out. Tried uninstalling and reins