Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix build warnings #804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 4 docs/dev/env.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ over the syntax file included in Vim 6.1.
These plugins supply you with a basic environment for developing in Python.
To get the most out of Vim, you should continually check your code for syntax
errors and PEP8 compliance. Luckily PEP8_ and Pyflakes_ will do this for you.
If your Vim is compiled with :option:`+python` you can also utilize some very
If your Vim is compiled with ``+python`` you can also utilize some very
handy plugins to do these checks from within the editor.

For PEP8 checking and pyflakes, you can install vim-flake8_. Now you can map the
Expand Down Expand Up @@ -151,7 +151,7 @@ versions of PyCharm: Professional Edition (Free 30-day trial) and Community
Edition (Apache 2.0 License) with fewer features.

Python (on Visual Studio Code)
-----------------------------
------------------------------

`Python for Visual Studio <https://marketplace.visualstudio.com/items?itemName=donjayamanne.python>`_ is an extension for the `Visual Studio Code IDE <https://code.visualstudio.com>`_.
This is a free, light weight, open source IDE, with support for Mac, Windows, and Linux.
Expand Down
2 changes: 1 addition & 1 deletion 2 docs/dev/virtualenvs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ where they were placed.
Other Notes
~~~~~~~~~~~

Running ``virtualenv`` with the option :option:`--no-site-packages` will not
Running ``virtualenv`` with the option ``--no-site-packages`` will not
include the packages that are installed globally. This can be useful
for keeping the package list clean in case it needs to be accessed later.
[This is the default behavior for ``virtualenv`` 1.7 and later.]
Expand Down
2 changes: 2 additions & 0 deletions 2 docs/intro/learning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,10 @@ in Python. Magic methods are surrounded by double underscores (i.e. __init__)
and can make classes and objects behave in different and magical ways.

`A Guide to Python's Magic Methods <http://www.rafekettler.com/magicmethods.html>`_

.. note:: The Rafekettler.com is currently down, you can go to their Github version directly. Here you can find a PDF version:
`A Guide to Python's Magic Methods (repo on GitHub) <https://github.com/RafeKettler/magicmethods/blob/master/magicmethods.pdf>`_



For Engineers and Scientists
Expand Down
2 changes: 1 addition & 1 deletion 2 docs/intro/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ delivered in your inbox. Keep Your Python Programming Skills Updated.
`Import Python Weekly Newsletter <http://www.importpython.com/newsletter/>`_

Awesome Python Newsletter
~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~

A weekly overview of the most popular Python news, articles and packages.

Expand Down
9 changes: 5 additions & 4 deletions 9 docs/scenarios/clibs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,26 +96,27 @@ Example: Overloading __repr__
std::string getName();
};


:file:`myclass.i`

.. code-block:: c++
.. code-block:: idl
:linenos:

%include "string.i"

%module myclass
%{
#include <string>
#include "MyClass.h"
%}

%extend MyClass {
std::string __repr__()
{
return $self->getName();
}
}

%include "MyClass.h"


Expand Down
1 change: 1 addition & 0 deletions 1 docs/scenarios/speed.rst
Original file line number Diff line number Diff line change
Expand Up @@ -448,3 +448,4 @@ Multiprocessing
.. _`threading`: https://docs.python.org/3/library/threading.html
.. _`stackoverflow post`: http://stackoverflow.com/questions/26688424/python-threads-are-printing-at-the-same-time-messing-up-the-text-output
.. _`data race`: https://en.wikipedia.org/wiki/Race_condition
.. _`Lock`: https://docs.python.org/3/library/threading.html#lock-objects
3 changes: 2 additions & 1 deletion 3 docs/scenarios/web.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Context
:::::::



WSGI
----

Expand Down Expand Up @@ -457,7 +458,7 @@ frameworks.

An example template in Mako looks like:

.. code-block:: html
.. code-block:: mako

<%inherit file="base.html"/>
<%
Expand Down
2 changes: 1 addition & 1 deletion 2 docs/shipping/freezing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ py2app no no yes yes MIT no yes yes
.. note::
All solutions need MS Visual C++ dll to be installed on target machine, except py2app.
Only Pyinstaller makes self-executable exe that bundles the dll when
passing :option:`--onefile` to :file:`Configure.py`.
passing ``--onefile`` to :file:`Configure.py`.

Windows
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 docs/shipping/packaging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pypiserver
`Pypiserver <https://pypi.python.org/pypi/pypiserver>`_ is a minimal PyPI
compatible server. It can be used to serve a set of packages to easy_install
or pip. It includes helpful features like an administrative command
(:option:`-U`) which will update all its packages to their latest versions
(``-U``) which will update all its packages to their latest versions
found on PyPI.


Expand Down
2 changes: 2 additions & 0 deletions 2 docs/starting/install3/osx.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan: This article should not be added to a toctree for now

.. _install3-osx:

Installing Python 3 on Mac OS X
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.