Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaces async occurrences with alternatives #306

Merged
merged 1 commit into from
Aug 1, 2018
Merged

Conversation

P-EB
Copy link
Contributor

@P-EB P-EB commented Jul 16, 2018

  • async is now a reserved word in python3.7
  • Rename async function to enqueue
  • Rename all async_ functions to enqueue_
  • Rename Async class to AsyncTask
  • Updates the docs.

 * async is now a reserved word in python3.7
 * Rename async function to enqueue
 * Rename all async_ functions to enqueue_
 * Rename Async class to AsyncTask
 * Updates the docs.
@P-EB
Copy link
Contributor Author

P-EB commented Jul 16, 2018

@Koed00 here!

@P-EB
Copy link
Contributor Author

P-EB commented Jul 29, 2018

@Koed00 did you get some time to review these changes? Especially, the change of the naming convention, as it's an API change.

@aleksihakli
Copy link

@Koed00 it would be awesome to have this available on PyPI as a lot of projects (including ours) are currently upgrading to the new Python 3.7 release.

@doko42
Copy link

doko42 commented Jul 30, 2018

any advice, how upstream will rename the module?

@P-EB
Copy link
Contributor Author

P-EB commented Jul 30, 2018

@doko42 what module? Did I miss a filename in my patch? :/

@doko42
Copy link

doko42 commented Jul 30, 2018

no, I'd just like to see an approval / integration of this patch before pulling it into any distro package.

@P-EB
Copy link
Contributor Author

P-EB commented Aug 1, 2018

I agree, I'll delay until @Koed00 is there and answers :)

@Koed00
Copy link
Owner

Koed00 commented Aug 1, 2018

Sorry everyone. Between holidays and my job , it's been hard to put some time in this.

I did review the code and it's all good, except that I just didn't like the word 'enqueue'.
But seeing your renaming of Async to AsyncTask, I felt that this was mnemonically better.
So I'll merge it and then rename all enqueue_ to async_task_, since you did all the work.

@Koed00 Koed00 merged commit 887870b into Koed00:python37 Aug 1, 2018
@P-EB
Copy link
Contributor Author

P-EB commented Aug 1, 2018

Sure, I'm fine with this. :)

I'll wait for your next release before releasing into debian.

@P-EB P-EB deleted the fix_304 branch August 1, 2018 19:12
KlaasH added a commit to azavea/pfb-network-connectivity that referenced this pull request Sep 9, 2019
"async" is a reserved word in Python 3.7, so django-q had to rename their
thing. Unfortunately they didn't make documentation or CHANGELOG changes
to go with the code changes and releases, so see
Koed00/django-q#306 and
Koed00/django-q#310 for more information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants