update description
This commit is contained in:
parent
0e8de95a62
commit
4ce13d27b1
|
@ -596,14 +596,14 @@ the module.
|
||||||
.. attribute:: __file__
|
.. attribute:: __file__
|
||||||
.. attribute:: __cached__
|
.. attribute:: __cached__
|
||||||
|
|
||||||
``__file__`` is the pathname of the file from which the module
|
``__file__`` is optional (if set, value must be a string). It indicates
|
||||||
was loaded, if it was loaded from a file. The ``__file__`` attribute
|
the pathname of the file from which the module was loaded (if
|
||||||
might be missing for certain types of modules, such as C modules that
|
loaded from a file), or the pathname of the shared libray file
|
||||||
are statically linked into the interpreter; for extension modules
|
for extension modules loaded dynamically from a shared library.
|
||||||
loaded dynamically from a shared library, it is the pathname of the
|
It might be missing for certain types of modules, such as C
|
||||||
shared libray file. ``__file__`` is optional. If set, this attribute'
|
modules that are statically linked into the interpreter, and the
|
||||||
value must be a string.The import system may opt to leave ``__file__``
|
import system may opt to leave it unset if it has no semantic
|
||||||
unset if it has no semantic meaning (e.g. a module loaded from a database).
|
meaning (e.g. a module loaded from a database).
|
||||||
|
|
||||||
If ``__file__`` is set, it may also be appropriate to set the
|
If ``__file__`` is set, it may also be appropriate to set the
|
||||||
``__cached__`` attribute which is the path to any compiled version of
|
``__cached__`` attribute which is the path to any compiled version of
|
||||||
|
|
Loading…
Reference in New Issue