Re: asyncio await different coroutines on the same socket?

2018-10-05 Thread Russell Owen
On Oct 3, 2018, Ian Kelly wrote (in article): > On Wed, Oct 3, 2018 at 7:47 AM Russell Owen wrote: > > Using asyncio I am looking for a simple way to await multiple events where > > notification comes over the same socket (or other serial stream) in > > arbitrary > > order. For example, suppose

Re: Python indentation (3 spaces)

2018-10-05 Thread Ryan Johnson
The point that OP is trying to make is that a fixed standard that is distinguishable from the even-spacing Tab-length convention in code and text editors will establish a level of trust between the end developer and upstream developers or co-developers who may not have the same development environm

How to await multiple replies in arbitrary order (one coroutine per reply)?

2018-10-05 Thread Russell Owen
I am using asyncio and am fairly new to it. I have a stream to which I write commands and from which I read replies. (In this case the stream is custom wrapper around DDS written in C++ and pybind11). Multiple commands can run at the same time and I cannot predict which will finish first. I ne

Re: Python indentation (3 spaces)

2018-10-05 Thread Terry Reedy
On 10/5/2018 4:48 PM, ts9...@gmail.com wrote: I am new to Python programming but have significant SQL and C experience. My simple question is,"Why not standardize Python indentations to 3 spaces instead of 4 in order to avoid potential programming errors associated with using "TAB" instead

Re: Python indentation (3 spaces)

2018-10-05 Thread Chris Angelico
On Sat, Oct 6, 2018 at 7:25 AM Serhiy Storchaka wrote: > > 05.10.18 23:53, Chris Angelico пише: > > I don't understand how three spaces would prevent errors in a way that > > four wouldn't. > In many editors and on terminal > > for a in x: > if a: > b() > <-tab-->c() > > looks indist

Re: Python indentation (3 spaces)

2018-10-05 Thread Karsten Hilbert
On Sat, Oct 06, 2018 at 12:23:49AM +0300, Serhiy Storchaka wrote: > > I don't understand how three spaces would prevent errors in a way that > > four wouldn't. > In many editors and on terminal > > for a in x: > if a: > b() > <-tab-->c() > > looks indistinguishable from > > for a in

Re: Python indentation (3 spaces)

2018-10-05 Thread Serhiy Storchaka
05.10.18 23:53, Chris Angelico пише: I don't understand how three spaces would prevent errors in a way that four wouldn't. In many editors and on terminal for a in x: if a: b() <-tab-->c() looks indistinguishable from for a in x: if a: b() c() but the former i

Re: Python indentation (3 spaces)

2018-10-05 Thread Chris Angelico
On Sat, Oct 6, 2018 at 6:51 AM wrote: > >I am new to Python programming but have significant SQL and C experience. > My simple question is,"Why not standardize Python indentations to 3 spaces > instead of 4 in order to avoid potential programming errors associated with > using "TAB" instead

Python indentation (3 spaces)

2018-10-05 Thread ts9564
I am new to Python programming but have significant SQL and C experience. My simple question is,"Why not standardize Python indentations to 3 spaces instead of 4 in order to avoid potential programming errors associated with using "TAB" instead of 4 spaces?" Thoughts? Thomas -- https://mail.

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-10-05 Thread pjmclenon
On Wednesday, June 13, 2018 at 7:14:06 AM UTC-4, INADA Naoki wrote: > ​> 1st is this script is from a library module online open source > > If it's open source, why didn't you show the link to the soruce? > I assume your code is this: > > https://github.com/siddharth2010/String-Search/blob/6770c7

Solved: pip hangs after successful operation (sandboxed environment problem)

2018-10-05 Thread Ryan Johnson
It turns out that Comodo Antivirus auto-sandboxes any program that it doesn’t recognize, and this included python in the C:\Users\$user\AppData\Programs directory. This also affects Cygwin and MSYS2 (but not MSYS). If you are thinking about using Comodo, disable the Auto-Containment feature. A

Observations on the List - "Be More Kind"

2018-10-05 Thread Bruce Coram
I will declare at the outset, I am a lurker.  I don't know enough about Python to give advice that I could 100% guarantee would be helpful. There have been two recent threads that summarise for me where the Python Mailing List has lost its way (and this started before Trump arrived as a new ro