[issue33276] Clarify that __path__ can't be set to just anything

Brett Cannon report at bugs.python.org
Fri Apr 13 15:08:16 EDT 2018


New submission from Brett Cannon <brett at python.org>:

https://docs.python.org/3/reference/import.html#module-path says that "regardless of its value", __path__'s mere existence is key. But then later the docs say "__path__ must be an iterable of strings, but it may be empty". Technically the latter is more accurate, so the docs should get touched up to match itself better.

----------
assignee: brett.cannon
components: Documentation
keywords: easy
messages: 315256
nosy: brett.cannon
priority: normal
severity: normal
stage: needs patch
status: open
title: Clarify that __path__ can't be set to just anything
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33276>
_______________________________________


More information about the Python-bugs-list mailing list