Skip to content
Johnny Robeson edited this page Aug 4, 2016 · 54 revisions

Porting to Python 3

We're in the process of porting the entire beets codebase to Python 3.x.

Coding conventions

  • all python 2 files must contain from __future__ import division, absolute_import, print_function
  • exceptions must use except A as B: instead of except A, B:
  • str.format() should be used instead of the % operator
  • calls to map() should be wrapped in list() when a list is expected as it returns an iter in python 3

PY3 initial support TODO

  • add python 3 to trove classification

PY3 only TODO

Clone this wiki locally