Skip to content
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
2 changes: 1 addition & 1 deletion docs/starting/install3/win.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _install3-windows:

Installing Python 3 on Windows
============================
==============================

First, download the `latest version <https://www.python.org/ftp/python/3.6.0/python-3.6.0.exe>`_
of Python 3.6 from the official website. If you want to be sure you are installing a fully
Expand Down
12 changes: 11 additions & 1 deletion docs/writing/structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,17 @@ folder named :file:`my` which is not the case. There is an
dot notation should be used in the Python docs.

If you'd like you could name your module :file:`my_spam.py`, but even our
friend the underscore should not be seen often in module names.
friend the underscore should not be seen often in module names. However, using other
characters (spaces or hyphens) in module names will prevent importing
(- is the subtract operator), so try to keep module names short so there is
no need to separate words. And, most of all, don't namespace with underscores, use submodules instead.

.. code-block:: python

# OK
import library.plugin.foo
# not OK
import library.foo_plugin

Aside from some naming restrictions, nothing special is required for a Python
file to be a module, but you need to understand the import mechanism in order
Expand Down