peps: No trailing separators on strings returned by find_module.
http://hg.python.org/peps/rev/c833ec103ecf changeset: 4327:c833ec103ecf user: Eric V. Smith <eric@trueblade.com> date: Mon Apr 30 19:04:39 2012 -0400 summary: No trailing separators on strings returned by find_module. files: pep-0420.txt | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/pep-0420.txt b/pep-0420.txt --- a/pep-0420.txt +++ b/pep-0420.txt @@ -157,7 +157,8 @@ "loader" object or None. For a finder to contribute to namespace packages, ``find_module`` will return a third type: a string. This is the string that will be recorded and later used as a component of the -namespace module's __path__, as described above. +namespace module's ``__path__``, as described above. This string must +not contain a trailing path separator. There is no impact on PEP 302 "loaders". -- Repository URL: http://hg.python.org/peps
participants (1)
-
eric.smith