Changes between Version 7 and Version 8 of PythonGuidelines


Ignore:
Timestamp:
Mar 31, 2010 9:22:46 AM (12 years ago)
Author:
Chris Jerdonek
Comment:

Wording improvements to upgrade section.

Legend:

Unmodified
Added
Removed
Modified
  • PythonGuidelines

    v7 v8  
    3434 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.
    3535
    36 == Installing a new version of Python ==
     36== Upgrading from Python 2.3 or Python 2.4 ==
    3737
    38 [Most of these instructions are Mac-specific.]
     38[Much of these instructions are Mac-specific.]
     39
     40If you are upgrading from Python 2.3 or 2.4, you should upgrade to Python 2.6 rather than 2.5.
    3941
    4042You can tell what version of Python you are currently using by typing--
     
    4749man python
    4850}}}
    49 On Snow Leopard you will find that your machine comes with Python 2.5, 2.6, and 3.0.  The man page also provides instructions on how to switch your system between these system-installed versions.
     51For 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.
    5052
    5153If 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)--
     
    5355sudo port install python26
    5456}}}
    55 We recommend that Tiger users with 2.3 install Python 2.6 for starters.
    5657
    5758You should probably also install python_select using MacPorts--