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

Python 3.4 standard library modules #621

Closed
sampsyo opened this issue Mar 19, 2014 · 4 comments
Closed

Python 3.4 standard library modules #621

sampsyo opened this issue Mar 19, 2014 · 4 comments

Comments

@sampsyo
Copy link
Member

sampsyo commented Mar 19, 2014

Python 3.4 is out! Even though beets is not on py3k yet, there are a few implications for us. This is a meta-bug to discuss the new standard library modules in 3.4 and how beets could benefit.

  • There's a new enum module with a backport. We should take a dependency on this instead of using my aging hand-rolled implementation.
  • There's a new asyncio library that is very similar in purpose to Bluelet but better-maintained. There is a backport called trollius.
  • More ambitiously, pathlib could help us get rid of a lot of hand-rolled code for handling cross-platform paths and filenames. We could more the whole codebase to use path objects in place of bytestrings.

Contributions are welcome in any category!

geigerzaehler pushed a commit that referenced this issue Apr 7, 2014
Iincludes some more tests for the convert plugin. The test use the extended
TestHelper class and the new pathlib (see #621).
@geigerzaehler
Copy link
Collaborator

Unfortunately pathlib does not work on 2.6.

@sampsyo
Copy link
Member Author

sampsyo commented Apr 7, 2014

Tragic. Well, that's another reason to drop 2.6 compatibility sooner rather than later.

@brunal
Copy link
Collaborator

brunal commented Jan 5, 2015

The pathlib backport now works on python 2.6 (since version 1.0.1). See the changelog

@arcresu
Copy link
Member

arcresu commented Apr 29, 2019

The enum part was handled in #642, pathlib is covered by #1409, and I've now split the bluelet part into #3246. I think that takes care of everything here so I'll close this and let the discussion continue in those focused issues :)

@arcresu arcresu closed this as completed Apr 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants