[python-tulip] Motor, the async MongoDB driver, now supports asyncio

2015-12-03 Thread A. Jesse Jiryu Davis
Hi friends — with help from Andrew Svetlov, Nikolay Novik, and others, I've added asyncio support to Motor: http://motor.readthedocs.org/en/stable/changelog.html It also supports Python 3.5's "async" and "await", still works with Python 2.6 and 2.7, and it still works with Tornado. Peace, Jess

Re: [python-tulip] Re: Windows vs Linux/Mac Bug?

2015-12-03 Thread Guido van Rossum
You're welcome! It could well be that the sleep() is rounded up to 0.017 seconds on Windows, but not on Linux. On Thu, Dec 3, 2015 at 5:09 AM, Alan Yorinks wrote: > I found the problem and it was indeed in my code. To read serial data, I > wrap the pyserial read method in a future. This all work

Re: [python-tulip] Asynchronous console and interfaces

2015-12-03 Thread Imran Geriskovan
>> Regarding the "stream style", I can share some of my >> experience: >> >> For code below, other than some limited portion >> and awaits, can you see any line specific to asyncio? No? >> >> Well that's the point. With some little search replace, >> and tweaks it can easily be transformed into >>

Re: [python-tulip] Asynchronous console and interfaces

2015-12-03 Thread Gustavo Carneiro
On 3 December 2015 at 14:25, Imran Geriskovan wrote: > On 12/3/15, Vincent Michel wrote: > > there might be other, more powerful tools around to serve this purpose. > So > > I'm also interested in comments from people with a wider view of the > > asyncio ecosystem. > > Regarding the "stream styl

Re: [python-tulip] Asynchronous console and interfaces

2015-12-03 Thread Imran Geriskovan
On 12/3/15, Vincent Michel wrote: > there might be other, more powerful tools around to serve this purpose. So > I'm also interested in comments from people with a wider view of the > asyncio ecosystem. Regarding the "stream style", I can share some of my experience: For code below, other than s

[python-tulip] Asynchronous console and interfaces

2015-12-03 Thread Vincent Michel
Hi all, Last month I've been playing with asyncio and I ended up writing an asynchronous console. It's a python console just like the one in the 'code' module, but running in an asyncio event loop instead. That means it lets you interact with the program environment while it's running other as

Re: [python-tulip] Re: Windows vs Linux/Mac Bug?

2015-12-03 Thread Alan Yorinks
I found the problem and it was indeed in my code. To read serial data, I wrap the pyserial read method in a future. This all works without issue. After retrieving a character using this future, I had added (incorrectly) an additional asyncio.sleep(.001). Because of the constant barrage of data