Getting up-to-date before pushing changes

This commit is contained in:
Can Ibanoglu
2014-03-06 17:00:57 +02:00
26 changed files with 462 additions and 90 deletions
+8 -8
View File
@@ -3,7 +3,7 @@
Installing Python on Mac OS X
=============================
The latest version of Mac OS X, Mountain Lion, **comes with Python 2.7 out of the box**.
The latest version of Mac OS X, Mavericks, **comes with Python 2.7 out of the box**.
You do not need to install or configure anything else to use Python. Having
said that, I would strongly recommend that you install the tools and libraries
@@ -33,14 +33,14 @@ package.
While Lion comes with a large number of UNIX utilities, those familiar with
Linux systems will notice one key component missing: a decent package manager.
`Homebrew <http://mxcl.github.com/homebrew/>`_ fills this void.
`Homebrew <http://brew.sh>`_ fills this void.
To `install Homebrew <https://github.com/mxcl/homebrew/wiki/installation>`_,
To `install Homebrew <https://github.com/Homebrew/homebrew/wiki/installation>`_,
simply run
.. code-block:: console
$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
The script will explain what changes it will make and prompt you before the
installation begins.
@@ -50,7 +50,7 @@ line at the bottom of your ``~/.bashrc`` file
.. code-block:: console
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
Now, we can install Python 2.7: ::
@@ -96,9 +96,9 @@ habit of using it to create completely clean Python environments for each
project. This is particularly important for Web development, where each
framework and application will have many dependencies.
To set up a new Python environment, change the working directory to where ever
you want to store the environment, and run the virtualenv utility in your
project's directory
To set up a new Python environment, move into the directory where you would
like to store the environment, and use the ``virtualenv`` utility to create
the new environment.
.. code-block:: console
+2 -2
View File
@@ -3,7 +3,7 @@
Installing Python on Windows
============================
First, download the `latest version <http://python.org/ftp/python/2.7.4/python-2.7.4.msi>`_
First, download the `latest version <http://python.org/ftp/python/2.7.6/python-2.7.6.msi>`_
of Python 2.7 from the official Website. If you want to be sure you are installing a fully
up-to-date version then use the "Windows Installer" link from the home page of the
`Python.org web site <http://python.org>`_ .
@@ -80,7 +80,7 @@ project. This is particularly important for Web development, where each
framework and application will have many dependencies.
To set up a new Python environment, change the working directory to where ever
To set up a new Python environment, change the working directory to wherever
you want to store the environment, and run the virtualenv utility in your
project's directory
+5 -4
View File
@@ -47,11 +47,11 @@ level of compatibility with Python packages and C extension modules.
If you are writing open-source Python code and want to reach the widest possible
audience, targeting CPython is your best bet. If you need to use any packages
that rely on C extensions for their functionality (e.g. numpy) then CPython
that rely on C extensions for their functionality (e.g., numpy) then CPython
is your only choice.
Being the reference implementation, all versions of the Python language are
available as CPython. Python 3 is only available as a CPython implementation.
available as CPython.
PyPy
----
@@ -67,13 +67,14 @@ If you are looking to squeeze more performance out of your Python code, it's
worth giving PyPy a try. On a suite of benchmarks, it's currently `over 5 times
faster than CPython <http://speed.pypy.org/>`_.
Currently PyPy supports Python 2.7. [#pypy_ver]_
Currently PyPy supports Python 2.7. PyPy3 which targets Python 3 was recently
available as a beta release. [#pypy_ver]_
Jython
------
`Jython <http://www.jython.org/>`_ is a Python implementation that compiles
Python code to Java byte code that is then executed in a JVM. It has the additional
Python code to Java bytecode that is then executed in a JVM. It has the additional
advantage of being able to import and use any Java class like a Python
module.