some clarifcations I thought of
This commit is contained in:
parent
600fecb3b9
commit
e90fcb90fd
|
@ -118,7 +118,7 @@ The ``compileall`` tool will be extended with a command new option,
|
|||
taking values ``timestamp`` (the default), ``checked-hash``, and
|
||||
``unchecked-hash`` corresponding to the values of ``PycInvalidationMode``.
|
||||
|
||||
``importlib`` will be extended with a ``source_hash(source)`` function that
|
||||
``importlib.util`` will be extended with a ``source_hash(source)`` function that
|
||||
computes the hash used by the pyc writing code for a bytestring **source**.
|
||||
|
||||
Runtime configuration of hash-based pyc invalidation will be facilitated by a
|
||||
|
@ -128,7 +128,9 @@ value, ``default``, means the ``check_source`` flag in hash-based pycs
|
|||
determines invalidation as described above. ``always`` causes the interpreter to
|
||||
hash the source file for invalidation regardless of value of ``check_source``
|
||||
bit. ``never`` causes the interpreter to always assume hash-based pycs are
|
||||
valid. Timestamp-based pycs are unaffected by this option.
|
||||
valid. When ``--check-hash-based-pycs=never`` is in effect, unchecked hash-based
|
||||
pycs will be regenerated as unchecked hash-based pycs. Timestamp-based pycs are
|
||||
unaffected by ``--check-hash-based-pycs``.
|
||||
|
||||
|
||||
References
|
||||
|
|
Loading…
Reference in New Issue