Changes between Version 7 and Version 8 of PythonGuidelines
- Timestamp:
- Mar 31, 2010, 9:22:46 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PythonGuidelines
v7 v8 34 34 This should usually not be necessary, but it ensures that you are not mistakenly using a wrong file since *.pyc files without a *.py file can still get executed. Incidentally, we try to use fully-qualified import statements throughout our code so that the location of modules in webkitpy/ is never be ambiguous. 35 35 36 == Installing a new version of Python==36 == Upgrading from Python 2.3 or Python 2.4 == 37 37 38 [Most of these instructions are Mac-specific.] 38 [Much of these instructions are Mac-specific.] 39 40 If you are upgrading from Python 2.3 or 2.4, you should upgrade to Python 2.6 rather than 2.5. 39 41 40 42 You can tell what version of Python you are currently using by typing-- … … 47 49 man python 48 50 }}} 49 On Snow Leopard you will find that your machine comes with Python 2.5, 2.6, and 3.0. The man page alsoprovides instructions on how to switch your system between these system-installed versions.51 For example, Snow Leopard comes with Python 2.5, 2.6, and 3.0. The man page provides instructions on how to switch your system between these system-installed versions. 50 52 51 53 If you need to install a new version not on your machine, you can use [http://guide.macports.org/ MacPorts] to do this. MacPorts allows you to install Python versions alongside your system versions without interfering with them. After installing MacPorts, simply type (for example)-- … … 53 55 sudo port install python26 54 56 }}} 55 We recommend that Tiger users with 2.3 install Python 2.6 for starters.56 57 57 58 You should probably also install python_select using MacPorts--