LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-20-2015, 07:49 AM   #1
Nexusfactor
Member
 
Registered: Jan 2015
Distribution: Ubuntu
Posts: 50

Rep: Reputation: Disabled
Python Asyncio and Async/Await


Please bare with me, I'm learning Python, more specially parallel programming. At the time the book was published Async/Await was still in the beta version of Python, and so, the book doesn't cover it. It covers Asyncio.

Now with the release of Python 3.5, Async/Await has been implemented in python. My question is, is the logic behind Asyncio.wait() and async/await, the same, just the code is written differently? Would I be wasting my time learning Asyncio? I just got the book in the mail, and I would appreciate it if it wasn't out of date so fast.

Side Note: I posted this question on SO, but, I'm getting no where. It's been downvoted and only 1 comment. Still doesn't help.

Last edited by Nexusfactor; 11-20-2015 at 08:57 AM. Reason: python
 
Old 11-20-2015, 11:49 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

Rep: Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319
A quick skim of the official Python documentation tells me that Asyncio is not deprecated and that it's very much still relevant.
 
Old 11-20-2015, 11:51 AM   #3
Nexusfactor
Member
 
Registered: Jan 2015
Distribution: Ubuntu
Posts: 50

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
A quick skim of the official Python documentation tells me that Asyncio is not deprecated and that it's very much still relevant.
Good to hear, thanks for the reply.

1. So, what exactly is the difference between Asyncio.wait() and async/await? Is the logic behind them the same?
2. Would it be better to learn asyncio first and then async/await?

Last edited by Nexusfactor; 11-20-2015 at 11:53 AM.
 
Old 11-20-2015, 12:00 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

Rep: Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319
Quote:
Originally Posted by Nexusfactor View Post
Good to hear, thanks for the reply.

1. So, what exactly is the difference between Asyncio.wait() and async/await? Is the logic behind them the same?
2. Would it be better to learn asyncio first and then async/await?
No idea. I'm afraid I'm quite behind on these.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Great Talks Await at Xen Project User Summit, Sept 15 in New York City LXer Syndicated Linux News 0 08-12-2014 03:30 PM
LXer: The New asyncio in Python 3.4: Servers, Protocols, and Transports LXer Syndicated Linux News 0 06-24-2014 07:53 PM
LXer: The New asyncio Module in Python 3.4: Event Loops LXer Syndicated Linux News 0 06-17-2014 01:30 PM
sar disk activity question - await svctm blockdump Linux - Server 6 04-15-2013 04:02 AM
LXer: Emulate the Turbo-Duo in Linux. Castlevania, Bonk and Blazing Lazers await. LXer Syndicated Linux News 0 02-07-2012 10:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration