diff --git a/pep-0395.txt b/pep-0395.txt index 0194230d1..decab3e60 100644 --- a/pep-0395.txt +++ b/pep-0395.txt @@ -196,7 +196,7 @@ traversed while looking for a directory without an ``__init__`` file). The two current PEPs for namespace packages (PEP 382 and PEP 402) would both affect this part of the proposal. For PEP 382 (with its current suggestion of -"*.pyp" package directories, this check would instead just walk up the +"\*.pyp" package directories, this check would instead just walk up the supplied path, looking for the first non-package directory (this would not require any filesystem stat calls). Since PEP 402 deliberately omits explicit directory markers, it would need an alternative approach, based on checking @@ -236,6 +236,7 @@ functions and classes, in the ``__name__ == "__main__"`` case, the module ``__qname__`` attribute will be used to set ``__module__``. ``pydoc`` and ``inspect`` would also be updated appropriately to: + - use ``__qname__`` instead of ``__name__`` and ``__qmodule__`` instead of ``__module__``where appropriate (e.g. ``inspect.getsource()`` would prefer the qualified variants)