Fix warnings in pep-395.
This commit is contained in:
parent
c2bcb46cf6
commit
cf4ae7b571
|
@ -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
|
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
|
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
|
supplied path, looking for the first non-package directory (this would not
|
||||||
require any filesystem stat calls). Since PEP 402 deliberately omits explicit
|
require any filesystem stat calls). Since PEP 402 deliberately omits explicit
|
||||||
directory markers, it would need an alternative approach, based on checking
|
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__``.
|
``__qname__`` attribute will be used to set ``__module__``.
|
||||||
|
|
||||||
``pydoc`` and ``inspect`` would also be updated appropriately to:
|
``pydoc`` and ``inspect`` would also be updated appropriately to:
|
||||||
|
|
||||||
- use ``__qname__`` instead of ``__name__`` and ``__qmodule__`` instead of
|
- use ``__qname__`` instead of ``__name__`` and ``__qmodule__`` instead of
|
||||||
``__module__``where appropriate (e.g. ``inspect.getsource()`` would prefer
|
``__module__``where appropriate (e.g. ``inspect.getsource()`` would prefer
|
||||||
the qualified variants)
|
the qualified variants)
|
||||||
|
|
Loading…
Reference in New Issue