Skip to content

Commit 9d76a93

Browse files
authored
fix module name access
1 parent c14e0aa commit 9d76a93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/tutorials/packaging-projects.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,14 @@ Run the Python interpreter (make sure you're still in your virtualenv):
303303
304304
python
305305
306-
And then import the module and print out the ``name`` property. This should be
306+
And then import the module and print out the ``__name__`` property. This should be
307307
the same regardless of what you name you gave your :term:`distribution package`
308308
in :file:`setup.py` (in this case, ``example-pkg-your-username``) because your :term:`import package` is ``example_pkg``.
309309

310310
.. code-block:: python
311311
312312
>>> import example_pkg
313-
>>> example_pkg.name
313+
>>> example_pkg.__name__
314314
'example_pkg'
315315
316316

0 commit comments

Comments
 (0)