diff --git a/docs/dev/virtualenvs.rst b/docs/dev/virtualenvs.rst
index ee6ace244..c08f1118e 100644
--- a/docs/dev/virtualenvs.rst
+++ b/docs/dev/virtualenvs.rst
@@ -60,7 +60,7 @@ where they were placed.
virtualenvwrapper
-----------------
-`virtualenvwrapper `_
+`virtualenvwrapper `_
provides a set of commands which makes working with virtual environments much
more pleasant. It also places all your virtual environments in one place.
@@ -72,7 +72,7 @@ To install (make sure **virtualenv** is already installed):
$ export WORKON_HOME=~/Envs
$ source /usr/local/bin/virtualenvwrapper.sh
-(`Full virtualenvwrapper install instructions `_.)
+(`Full virtualenvwrapper install instructions `_.)
For Windows, you can use the `virtualenvwrapper-powershell `_ clone.
@@ -136,7 +136,7 @@ Other useful commands
``lssitepackages``
Shows contents of ``site-packages`` directory.
-`Full list of virtualenvwrapper commands `_.
+`Full list of virtualenvwrapper commands `_.
autoenv
-------
diff --git a/docs/intro/learning.rst b/docs/intro/learning.rst
index 852e786cb..b8e31c499 100644
--- a/docs/intro/learning.rst
+++ b/docs/intro/learning.rst
@@ -92,7 +92,7 @@ A free introductory book that teaches python at the beginner level, it assumes n
previous programming experience.
`A Byte of Python for Python 2.x `_
- `A Byte of Python for Python 3.x `_
+ `A Byte of Python for Python 3.x `_
Advanced
@@ -162,7 +162,6 @@ as writing C extensions.
`Python in a Nutshell `_
-
The Python Language Reference
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/docs/scenarios/ci.rst b/docs/scenarios/ci.rst
index 3a80c70b3..6e2025d91 100644
--- a/docs/scenarios/ci.rst
+++ b/docs/scenarios/ci.rst
@@ -26,7 +26,7 @@ engine. Use it.
Buildbot
--------
-`Buildbot `_ is a Python system to
+`Buildbot `_ is a Python system to
automate the compile/test cycle to validate code changes.
@@ -38,7 +38,7 @@ Mule?
Tox
---
-`tox `_ is an automation tool providing
+`tox `_ is an automation tool providing
packaging, testing and deployment of Python software right from the console or
CI server. It is a generic virtualenv management and test command line tool
which provides the following features:
@@ -53,7 +53,7 @@ which provides the following features:
Travis-CI
---------
-`Travis-CI `_ is a distributed CI server which builds tests
+`Travis-CI `_ is a distributed CI server which builds tests
for open source projects for free. It provides multiple workers to run Python tests
on and seamlessly integrates with Github. You can even have it comment on your Pull
Requests whether this particular changeset breaks the build or not. So if you are
@@ -83,6 +83,6 @@ notifications, before and after steps and much more. The
`travis-ci docs `_ explain all of those and are very
thorough.
-In order to activate testing for your project, go to `the travis-ci site `_
+In order to activate testing for your project, go to `the travis-ci site `_
and login with your Github account. Then activate your project in your profile settings and that's
-it. From now on, your project's tests will be run on every push to Github.
+it. From now on, your project's tests will be run on every push to Github.
diff --git a/docs/scenarios/db.rst b/docs/scenarios/db.rst
index 5d12c2a51..6d6d6ce7a 100644
--- a/docs/scenarios/db.rst
+++ b/docs/scenarios/db.rst
@@ -11,7 +11,7 @@ Nearly all Python database modules such as `sqlite3`, `psycopg` and
Tutorials that explain how to work with modules that conform to this interface can be found
`here `__ and
-`here `__.
+`here `__.
SQLAlchemy
----------
diff --git a/docs/scenarios/gui.rst b/docs/scenarios/gui.rst
index 4dbc650b8..d85a83663 100644
--- a/docs/scenarios/gui.rst
+++ b/docs/scenarios/gui.rst
@@ -4,7 +4,7 @@ GUI Applications
Qt
--
-Qt is a cross-platform application framework that is widely used for developing
+`Qt `_ is a cross-platform application framework that is widely used for developing
software with a GUI but can also be used for non-GUI applications.
PySide
diff --git a/docs/scenarios/web.rst b/docs/scenarios/web.rst
index 588dbb285..4574096e7 100644
--- a/docs/scenarios/web.rst
+++ b/docs/scenarios/web.rst
@@ -92,7 +92,7 @@ Support can be found on its `mailing list `_ is a scalable, non-blocking web server and web application framework with
+`Tornado `_ is a scalable, non-blocking web server and web application framework with
a relative simple usage. Tornado is known for his high performance.
It was initially developed for `friendfeed `_ , a real time chat and blog system.
@@ -152,7 +152,7 @@ lightweight, easy to use, and uses many UNIX idioms. Gunicorn is not designed
to face the internet -- it was designed to run behind Nginx which buffers
slow requests and takes care of other important considerations. A sample
setup for Nginx + Gunicorn can be found in the
-`Gunicorn help `_.
+`Gunicorn help `_.
.. _uwsgi-ref:
@@ -235,9 +235,7 @@ and Pinax applications. Gondor supports Django versions 1.2 and 1.3 on
Python version 2.7, and can automatically configure your Django site if you
use ``local_settings.py`` for site-specific configuration information.
-Gondor publishes guides to deploying `Django projects
-`_ and `Pinax projects
-`_ on their platform.
+Gondor has a guide on deploying `Django projects `_.
Templating
diff --git a/docs/scenarios/xml.rst b/docs/scenarios/xml.rst
index df89d580a..1f8db9c4c 100644
--- a/docs/scenarios/xml.rst
+++ b/docs/scenarios/xml.rst
@@ -32,3 +32,42 @@ and then you can get the child elements name like this:
untangle also supports loading XML from a string or an URL.
+xmltodict
+---------
+
+`xmltodict `_ is another simple
+library that aims at making xml feel like working with json.
+
+An xml file like this:
+
+.. code-block:: xml
+
+
+
+ elements
+ more elements
+
+
+ element as well
+
+
+
+can be loaded into a python dict like this:
+
+.. code-block:: python
+
+ import xmltodict
+ obj = xmltodict.parse('path/to/file.xml')
+
+and then you can access elements, attributes and values like this:
+
+.. code-block:: python
+
+ doc['mydocument']['@has'] # == u'an attribute'
+ doc['mydocument']['and']['many'] # == [u'elements', u'more elements']
+ doc['mydocument']['plus']['@a'] # == u'complex'
+ doc['mydocument']['plus']['#text'] # == u'element as well'
+
+xmltodict also lets you roundtrip back to xml with the unparse function,
+has a streaming mode suitable for handling files that don't fit in memory
+and supports namespaces.
diff --git a/docs/starting/install/osx.rst b/docs/starting/install/osx.rst
index 0711b1928..dc6676733 100644
--- a/docs/starting/install/osx.rst
+++ b/docs/starting/install/osx.rst
@@ -54,7 +54,7 @@ line at the bottom of your ``~/.bashrc`` file
Now, we can install Python 2.7: ::
- $ brew install python --framework
+ $ brew install python
This will take a minute or two. Once that's complete, you'll have to add the
new Python scripts directory to your ``PATH``
@@ -63,11 +63,6 @@ new Python scripts directory to your ``PATH``
export PATH=/usr/local/share/python:$PATH
-The ``--framework`` option tells Homebrew to compile a Framework-style Python
-build, rather than a UNIX-style build. The outdated version of Python that
-Snow Leopard comes packaged with is built as a Framework, so this helps avoid
-some future module installation bugs.
-
Distribute & Pip
----------------