RE: COnvert to unicode

2016-04-08 Thread Joaquin Alzola
Thanks Peter. Much appreciate will look into codecs and how they work. -Original Message- From: Python-list [mailto:python-list-bounces+joaquin.alzola=lebara@python.org] On Behalf Of Peter Otten Sent: 07 April 2016 19:14 To: python-list@python.org Subject: Re: COnvert to unicode Joa

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Paul Rubin
Marko Rauhamaa writes: > On the surface, the garbage collection scheme looks dubious, but maybe > it works perfect in practice. It looked suspicious at first glance but I think it is ok. Basically on at most every timeout event (scheduling, expiration, or cancellation), it does an O(n) operation

Re: From email addresses sometimes strange on this list - was Re: [beginner] What's wrong?

2016-04-08 Thread Cameron Simpson
On 05Apr2016 08:58, Chris Angelico wrote: On Tue, Apr 5, 2016 at 8:55 AM, Michael Torrie wrote: Usenet-orginating posts look fine. For example: From: Marko Rauhamaa Newsgroups: comp.lang.python Whereas email ones are sometimes looking like this: From: Mark Lawrence via Python-list Reply-

Python,ping,csv

2016-04-08 Thread Smith
Hello to all, I have this little script that pings certain ip addresses. Considering that I am a newbie to the Python programming language, can you help me change these lines in order to put the output into a csv file? Sorry for unclear English Thanks in advance import subprocess for ping in

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Antoon Pardon
Op 08-04-16 om 00:21 schreef Chris Angelico: > On Fri, Apr 8, 2016 at 6:56 AM, Antoon Pardon > wrote: >> That solution will mean I will have to do about 100% more comparisons >> than previously. > Try it regardless. You'll probably find that performance is fine. > Don't prematurely optimize! > > C

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Chris Angelico
On Fri, Apr 8, 2016 at 5:35 PM, Antoon Pardon wrote: > Op 08-04-16 om 00:21 schreef Chris Angelico: >> On Fri, Apr 8, 2016 at 6:56 AM, Antoon Pardon >> wrote: >>> That solution will mean I will have to do about 100% more comparisons >>> than previously. >> Try it regardless. You'll probably find

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Marko Rauhamaa
Paul Rubin : > Marko Rauhamaa writes: >> On the surface, the garbage collection scheme looks dubious, but >> maybe it works perfect in practice. > > It looked suspicious at first glance but I think it is ok. Basically > on at most every timeout event (scheduling, expiration, or > cancellation), i

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Antoon Pardon
Op 07-04-16 om 23:08 schreef Ben Finney: > Antoon Pardon writes: > >> With this method I have to traverse the two tuples almost always >> twice. Once to find out if they are equal and if not a second time to >> find out which is greater. > You are essentially describing the new internal API of com

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Ben Finney
Antoon Pardon writes: > But it was already working and optimized. The python3 approach forces > me to make changes to working code and make the performance worse. Yes, changing from Python 2 to Python 3 entails changing working code, and entails different implementations for some things. As for

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Ben Finney
Antoon Pardon writes: > Op 07-04-16 om 23:08 schreef Ben Finney: > > You are essentially describing the new internal API of comparison > > operators. That's pretty much unavoidable. > > And nobody thought about this kind of cases I'm quite confident the API changes were thought about by many peo

Re: Untrusted code execution

2016-04-08 Thread Lele Gaifax
Paul Rubin writes: > Lua is supposed to be easy to embed and sandbox. It might be > interesting to write Python bindings for the Lua interpreter sometime. Isn't this something similar to already existing https://pypi.python.org/pypi/lupa/? ciao, lele. -- nickname: Lele Gaifax | Quando vivrò d

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Marko Rauhamaa
Antoon Pardon : > In python2 descending the tree would only involve at most one > expensive comparison, because using cmp would codify that comparison > into an integer which would then be cheap to compare with 0. Now in > python3, I may need to do two expensive comparisons, because there is > no

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Paul Rubin
Marko Rauhamaa writes: > With AVL trees, it's easier to be convinced about worst-case > performance. I'd have thought the main reason to use AVL trees was persistence, so you could have multiple slightly different trees sharing most of their structures. > It is more difficult to see the potentia

Re: Python,ping,csv

2016-04-08 Thread Joel Goldstick
On Fri, Apr 8, 2016 at 3:25 AM, Smith wrote: > Hello to all, > I have this little script that pings certain ip addresses. > Considering that I am a newbie to the Python programming language, can you > help me change these lines in order to put the output into a csv file? > Sorry for unclear Englis

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Steven D'Aprano
On Fri, 8 Apr 2016 06:34 pm, Marko Rauhamaa wrote: > Antoon Pardon : > >> In python2 descending the tree would only involve at most one >> expensive comparison, because using cmp would codify that comparison >> into an integer which would then be cheap to compare with 0. Now in >> python3, I may

Python, Linux, default search places.

2016-04-08 Thread Frantisek . Fridrich
Hello. Thank you to Karim, thank you to Wildman for response. I will describe my problem in more detail. Python on my computer is installed in /usr directory. My Python contains additional modules such as numpy, scipy, matplotlib, h5py, … . Python runs correctly. Third party program opens Pyt

MySQL - Django can not display international characters

2016-04-08 Thread asimkon .
I have connected successfully MySQL with Django after installing MySQL module via easy_install command. But unfortunately I have a problem setting mysql db to properly recognise greek characters in django. In my setting.py file I have included the following options: 'OPTIONS': { 'charset': 'utf8',

Re: MySQL - Django can not display international characters

2016-04-08 Thread INADA Naoki
How did you create DB? http://dev.mysql.com/doc/refman/5.7/en/charset-database.html On Fri, Apr 8, 2016 at 7:26 PM, asimkon . wrote: > I have connected successfully MySQL with Django after installing MySQL > module via easy_install command. But unfortunately I have a problem setting > mysql db t

Re: Python, Linux, default search places.

2016-04-08 Thread Karim
On 08/04/2016 12:01, frantisek.fridr...@rubena.cgs.cz wrote: Hello. Thank you to Karim, thank you to Wildman for response. I will describe my problem in more detail. Python on my computer is installed in /usr directory. My Python contains additional modules such as numpy, scipy, matplotlib, h

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Steven D'Aprano
On Fri, 8 Apr 2016 05:35 pm, Antoon Pardon wrote: > Op 08-04-16 om 00:21 schreef Chris Angelico: >> On Fri, Apr 8, 2016 at 6:56 AM, Antoon Pardon >> wrote: >>> That solution will mean I will have to do about 100% more comparisons >>> than previously. >> Try it regardless. You'll probably find tha

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Steven D'Aprano
On Fri, 8 Apr 2016 05:45 pm, Antoon Pardon wrote: > Op 07-04-16 om 23:08 schreef Ben Finney: >> Antoon Pardon writes: >> >>> With this method I have to traverse the two tuples almost always >>> twice. Once to find out if they are equal and if not a second time to >>> find out which is greater. >>

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Marko Rauhamaa
Steven D'Aprano : > I would be stunned if tuple comparisons with only a handful of values > were slow enough that its worth caching their results with an > lru_cache. But try it, and see how you go. There are two ways your Python program can be slow: * You are doing something stupid like an O(e

I'd like to add -march=native to my pip builds

2016-04-08 Thread Neal Becker
I'd like to add -march=native to my pip builds. How can I do this? -- https://mail.python.org/mailman/listinfo/python-list

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Antoon Pardon
Op 08-04-16 om 09:47 schreef Ben Finney: > Antoon Pardon writes: > >> But it was already working and optimized. The python3 approach forces >> me to make changes to working code and make the performance worse. > Yes, changing from Python 2 to Python 3 entails changing working code, > and entails d

Re: I'd like to add -march=native to my pip builds

2016-04-08 Thread Stefan Behnel
Neal Becker schrieb am 08.04.2016 um 15:27: > I'd like to add -march=native to my pip builds. How can I do this? First of all, make sure you don't install binary packages and wheels. Changing the C compiler flags will require source builds. Then, it should be enough to set the CFLAGS environment

Re: I'd like to add -march=native to my pip builds

2016-04-08 Thread Neal Becker
Stefan Behnel wrote: > CFLAGS="-O3 -march=native" pip install --no-use-wheel Thanks, not bad. But no way to put this in a config file so I don't have to remember it, I guess? -- https://mail.python.org/mailman/listinfo/python-list

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Marko Rauhamaa
Antoon Pardon : > Well having a list of 1000 Sequence like object. Each sequence > containing between 1 and 100 numbers. Comparing each sequence > to each other a 100 times. I get the following results. > > Doing it as follows: > seq1 < seq2 > seq2 < seq1 > > takes about 110 seconds. > > D

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Chris Angelico
On Fri, Apr 8, 2016 at 11:31 PM, Antoon Pardon wrote: > Doing it as follows: > seq1 < seq2 > seq2 < seq1 > > takes about 110 seconds. > > > Doing it like this: > delta = cmp(seq1, seq2) > delta < 0 > delta > 0 > > takes about 50 seconds. Why are you comparing in both direction

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Ian Kelly
On Fri, Apr 8, 2016 at 3:23 AM, Steven D'Aprano wrote: > On Fri, 8 Apr 2016 06:34 pm, Marko Rauhamaa wrote: > >> Antoon Pardon : >> >>> In python2 descending the tree would only involve at most one >>> expensive comparison, because using cmp would codify that comparison >>> into an integer which w

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Antoon Pardon
Op 08-04-16 om 16:08 schreef Chris Angelico: > On Fri, Apr 8, 2016 at 11:31 PM, Antoon Pardon > wrote: >> Doing it as follows: >> seq1 < seq2 >> seq2 < seq1 >> >> takes about 110 seconds. >> >> >> Doing it like this: >> delta = cmp(seq1, seq2) >> delta < 0 >> delta > 0 >> >> ta

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Antoon Pardon
Op 08-04-16 om 15:52 schreef Marko Rauhamaa: > Antoon Pardon : > >> Well having a list of 1000 Sequence like object. Each sequence >> containing between 1 and 100 numbers. Comparing each sequence >> to each other a 100 times. I get the following results. >> >> Doing it as follows: >> seq1 < seq

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Ian Kelly
On Fri, Apr 8, 2016 at 8:08 AM, Chris Angelico wrote: > On Fri, Apr 8, 2016 at 11:31 PM, Antoon Pardon > wrote: >> Doing it as follows: >> seq1 < seq2 >> seq2 < seq1 >> >> takes about 110 seconds. >> >> >> Doing it like this: >> delta = cmp(seq1, seq2) >> delta < 0 >> delta >

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Chris Angelico
On Sat, Apr 9, 2016 at 12:20 AM, Antoon Pardon wrote: >> You only need ONE comparison, and the other is presumed to be its >> opposite. When, in the Python 3 version, would you need to compare >> twice? > > About 50% of the time. When I traverse the tree I go left when the > argument key is smalle

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Random832
On Fri, Apr 8, 2016, at 10:08, Chris Angelico wrote: > seq1 == seq2 > seq1 < seq2 > > You only need ONE comparison, and the other is presumed to be its > opposite. When, in the Python 3 version, would you need to compare > twice? == might be just as expensive as the others, particularly if the se

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Chris Angelico
On Sat, Apr 9, 2016 at 12:22 AM, Ian Kelly wrote: >> seq1 == seq2 >> seq1 < seq2 >> >> You only need ONE comparison, and the other is presumed to be its >> opposite. When, in the Python 3 version, would you need to compare >> twice? > > When there are three possible code paths depending on the res

Python 3.4 problem with requests module

2016-04-08 Thread 1leefig
Hi all, I would appreciate any thoughts that you may have regarding a troublesome build error. I am at my wits end. For some strange reason a get a single error on importing. It's to do with the requests module and pyopenssl.py The comment block indicates: This needs the following packages ins

Re: Python 3.4 problem with requests module

2016-04-08 Thread Steven D'Aprano
On Sat, 9 Apr 2016 02:00 am, 1lee...@gmail.com wrote: > import OpenSSL.SSL > from pyasn1.codec.der import decoder as der_decoder > from pyasn1.type import univ, constraint > from socket import _fileobject, timeout, error as SocketError > > But I get a python exception on this last line: > > Impo

Re: Python 3.4 problem with requests module

2016-04-08 Thread Chris Angelico
On Sat, Apr 9, 2016 at 2:00 AM, <1lee...@gmail.com> wrote: > from socket import _fileobject, timeout, error as SocketError > > But I get a python exception on this last line: > > ImportError was unhandled by user code > Message: cannot import name '_fileobject' > > > I am running Python 3.4 and ha

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Marko Rauhamaa
Ian Kelly : > That's fine for those operations and probably insert, but how do you > search an AVL tree for a specific key without also using __eq__? Not needed: if key < node.key: look_right() elif node.key < key:

Re: Python programs and relative imports

2016-04-08 Thread Rob Gaddi
Rob Gaddi wrote: > Does anyone know the history of why relative imports are only available > for packages and not for "programs"? It certainly complicates life. > Really, no one? It seems like a fairly obvious thing to have included; all of the reasons that you want to be explicit in saying:

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Ian Kelly
On Fri, Apr 8, 2016 at 10:33 AM, Marko Rauhamaa wrote: > Ian Kelly : > >> That's fine for those operations and probably insert, but how do you >> search an AVL tree for a specific key without also using __eq__? > > Not needed: > > ===

Re: Python programs and relative imports

2016-04-08 Thread Chris Angelico
On Sat, Apr 9, 2016 at 2:59 AM, Rob Gaddi wrote: > Rob Gaddi wrote: > >> Does anyone know the history of why relative imports are only available >> for packages and not for "programs"? It certainly complicates life. >> > > Really, no one? It seems like a fairly obvious thing to have included; >

Re: how to convert code that uses cmp to python3

2016-04-08 Thread Marko Rauhamaa
Ian Kelly : > On Fri, Apr 8, 2016 at 10:33 AM, Marko Rauhamaa wrote: >> Ian Kelly : >> >>> That's fine for those operations and probably insert, but how do you >>> search an AVL tree for a specific key without also using __eq__? >> >> Not needed: >> >>

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Peter Pearson
On Fri, 08 Apr 2016 16:00:10 +1000, Steven D'Aprano wrote: > On Fri, 8 Apr 2016 02:51 am, Peter Pearson wrote: >> >> The Unicode consortium was certifiably insane when it went into the >> typesetting business. > > They are not, and never have been, in the typesetting business. Perhaps > character

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Marko Rauhamaa
Peter Pearson : > On Fri, 08 Apr 2016 16:00:10 +1000, Steven D'Aprano > wrote: >> They are not, and never have been, in the typesetting business. >> Perhaps characters are not the only things easily confused *wink* > > Defining codepoints that deal with appearance but not with meaning is > going

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Chris Angelico
On Sat, Apr 9, 2016 at 3:44 AM, Marko Rauhamaa wrote: > Unicode heroically and definitively solved the problems ASCII had posed > but introduced a bag of new, trickier problems. > > (As for ligatures, I understand that there might be quite a bit of > legacy software that dedicated code points and

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Rustom Mody
On Friday, April 8, 2016 at 10:24:17 AM UTC+5:30, Chris Angelico wrote: > On Fri, Apr 8, 2016 at 2:43 PM, Rustom Mody wrote: > > No I am not clever/criminal enough to know how to write a text that is > > visually > > close to > > print "Hello World" > > but is internally closer to > > rm -rf / >

Re: Python programs and relative imports

2016-04-08 Thread Rob Gaddi
Chris Angelico wrote: > On Sat, Apr 9, 2016 at 2:59 AM, Rob Gaddi > wrote: >> Rob Gaddi wrote: >> >>> Does anyone know the history of why relative imports are only available >>> for packages and not for "programs"? It certainly complicates life. >>> >> >> Really, no one? It seems like a fairly

Re: Python programs and relative imports

2016-04-08 Thread Chris Angelico
On Sat, Apr 9, 2016 at 3:50 AM, Rob Gaddi wrote: > Sort of. If I've got a directory full of files (in a package) > that I'm working on, the relative import semantics change based on > whether I'm one directory up and importing the package or in the same > directory and importing the files locally

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Peter Pearson
On Sat, 9 Apr 2016 03:50:16 +1000, Chris Angelico wrote: > On Sat, Apr 9, 2016 at 3:44 AM, Marko Rauhamaa wrote: [snip] >> (As for ligatures, I understand that there might be quite a bit of >> legacy software that dedicated code points and code pages for ligatures. >> Translating that legacy soft

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Rustom Mody
On Friday, April 8, 2016 at 11:14:21 PM UTC+5:30, Marko Rauhamaa wrote: > Peter Pearson : > > > On Fri, 08 Apr 2016 16:00:10 +1000, Steven D'Aprano wrote: > >> They are not, and never have been, in the typesetting business. > >> Perhaps characters are not the only things easily confused *wink* >

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Rustom Mody
On Friday, April 8, 2016 at 11:33:38 PM UTC+5:30, Peter Pearson wrote: > On Sat, 9 Apr 2016 03:50:16 +1000, Chris Angelico wrote: > > On Sat, Apr 9, 2016 at 3:44 AM, Marko Rauhamaa wrote: > [snip] > >> (As for ligatures, I understand that there might be quite a bit of > >> legacy software that ded

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Rustom Mody
Adding link On Friday, April 8, 2016 at 11:48:07 PM UTC+5:30, Rustom Mody wrote: > 5.12 Deprecation > > In the Unicode Standard, the term deprecation is used somewhat differently > than it is in some other standards. Deprecation is used to mean that a > character or other feature is strongly d

Re: Python 3.4 problem with requests module

2016-04-08 Thread Chris Angelico
On Sat, Apr 9, 2016 at 4:24 AM, Lee Fig <1lee...@gmail.com> wrote: > print(socket.__file__) > > seems to confirm that all is well. It refers to my Lib folder: > C:\work\tools\WinPython-64bit-3.4.4.1\python-3.4.4.amd64\Lib\socket.py > > How frustrating. I will Google shadow importing as thats a new

Re: Python programs and relative imports

2016-04-08 Thread Ian Kelly
On Fri, Apr 8, 2016 at 11:50 AM, Rob Gaddi wrote: > Sort of. If I've got a directory full of files (in a package) > that I'm working on, the relative import semantics change based on > whether I'm one directory up and importing the package or in the same > directory and importing the files locall

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Steven D'Aprano
On Sat, 9 Apr 2016 03:21 am, Peter Pearson wrote: > On Fri, 08 Apr 2016 16:00:10 +1000, Steven D'Aprano > wrote: >> On Fri, 8 Apr 2016 02:51 am, Peter Pearson wrote: >>> >>> The Unicode consortium was certifiably insane when it went into the >>> typesetting business. >> >> They are not, and neve

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Marko Rauhamaa
Steven D'Aprano : > But when you get down to fundamentals, character sets and alphabets have > always blurred the line between presentation and meaning. W ("double-u") > was, once upon a time, UU But as every Finnish-speaker now knows, "w" is only an old-fashioned typographic variant of the glyph

Re: [beginner] What's wrong?

2016-04-08 Thread sohcahtoa82
On Friday, April 1, 2016 at 3:57:40 PM UTC-7, Mark Lawrence wrote: > On 01/04/2016 23:44, sohcahto...@gmail.com wrote: > > On Friday, April 1, 2016 at 3:10:51 PM UTC-7, Michael Okuntsov wrote: > >> Nevermind. for j in range(1,8) should be for j in range(8). > > > > I can't tell you how many times I

Re: [beginner] What's wrong?

2016-04-08 Thread Mark Lawrence via Python-list
On 08/04/2016 23:59, sohcahto...@gmail.com wrote: On Friday, April 1, 2016 at 3:57:40 PM UTC-7, Mark Lawrence wrote: On 01/04/2016 23:44, sohcahto...@gmail.com wrote: On Friday, April 1, 2016 at 3:10:51 PM UTC-7, Michael Okuntsov wrote: Nevermind. for j in range(1,8) should be for j in range(8

(Python 3.5) Asyncio and an attempt to run loop.run_until_complete() from within a running loop

2016-04-08 Thread Alexander Myodov
Hello. TLDR: how can I use something like loop.run_until_complete(coro), to execute a coroutine synchronously, while the loop is already running? More on this: I was trying to create an aio_map(coro, iterable) function (which would asynchronously launch a coroutine for each iteration over iter

QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-08 Thread Ben Finney
Dennis Lee Bieber writes: > [The QWERTY keyboard layout] was a sane design -- for early mechanical > typewrites. It fulfills its goal of slowing down a typist to reduce > jamming print-heads at the platen. This is an often-repeated myth, with citations back as far as the 1970s. It is false. The

Repair??

2016-04-08 Thread Amaya McLean
After I install Python, I try to run it, and it always says it needs to be repaired, and when I do, it still doesn't fix the problem. If you could help me out, that would be great! Thanks, Amaya -- https://mail.python.org/mailman/listinfo/python-list

Re: Repair??

2016-04-08 Thread Ben Finney
Amaya McLean writes: > After I install Python How, specifically, are you installing Python? There are many ways, and we can't guess which you use. Which particular Python installation have you obtained? From what specific URL? Python is available from many sources and we can't guess which you o

test post please ignore

2016-04-08 Thread Random832
Testing posting from an email address other than the one I'm subscribed in, to determine whether it's possible to post to the list without being subscribed. -- https://mail.python.org/mailman/listinfo/python-list

Re: Repair??

2016-04-08 Thread Random832
I suspect that the reason that a lot of people who report issues like this don't seem to follow up is that they may not be subscribed to the list, and replies are sent to the list exclusively. Quoting the entire reply so they see it. On Fri, Apr 8, 2016, at 21:24, Ben Finney wrote: > Amaya McLean

Re: test post please ignore

2016-04-08 Thread Ethan Furman
On 04/08/2016 06:32 PM, Random832 wrote: Testing posting from an email address other than the one I'm subscribed in, to determine whether it's possible to post to the list without being subscribed. Kinda. :) -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list

Re: QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-08 Thread Steven D'Aprano
On Sat, 9 Apr 2016 10:43 am, Ben Finney wrote: > Dennis Lee Bieber writes: > >> [The QWERTY keyboard layout] was a sane design -- for early mechanical >> typewrites. It fulfills its goal of slowing down a typist to reduce >> jamming print-heads at the platen. > > This is an often-repeated myth,

Re: (Python 3.5) Asyncio and an attempt to run loop.run_until_complete() from within a running loop

2016-04-08 Thread Frank Millman
"Alexander Myodov" wrote in message news:33e44698-2625-47c4-9595-00a8c79f2...@googlegroups.com... Hello. TLDR: how can I use something like loop.run_until_complete(coro), to execute a coroutine synchronously, while the loop is already running? I am no expert, but does this help? "If you'