dcf097b55f
Python used to use C-style division, where division of two ints was truncated, and division involving a float resulted in a float. This is confusing, because you often can't tell from looking at a line of code in isolation what sort of division it's supposed to do. With 'from __future__ import division' Python ensures that division is always explicit. // means (floored) integer division / means float division regardless of argument types. This should make the source a bit clearer now, as well as removing one obstacle if Anki is ever ported to Python 3. |
||
---|---|---|
anki | ||
aqt | ||
designer | ||
oldanki | ||
tests | ||
thirdparty | ||
tools | ||
.gitignore | ||
anki.1 | ||
anki.bat | ||
anki.desktop | ||
anki.png | ||
anki.xml | ||
anki.xpm | ||
LICENSE | ||
LICENSE.logo | ||
Makefile | ||
README | ||
README.development | ||
runanki |
Anki ------------------------------------- Prerequisites --------------- To install the prerequisites on Ubuntu/Debian, please use the following command: sudo apt-get install python-qt4 mplayer lame libportaudio2 python-sqlalchemy If you're on another distribution the packages may be named differently, so please consult your package manager. Your Python version will need to be 2.6 or 2.7 (not 3+), and both Qt and PyQt need to be 4.7 or later. Installation & Running ------------------------ Anki does not need installing, and can be run from the directory it is extracted to. If you extracted it to ~/anki-2.0 for example, you can run Anki by simply typing ~/anki-2.0/runanki in a terminal. If you'd like to install it system wide, change to the folder you extracted it to, and run 'sudo make install'. If you need to uninstall Anki in the future, you can do so by typing 'sudo make uninstall'. More information ----------------- For more information and the latest version, please see the website at: http://ankisrs.net/