PEP 510: rephrase the sentence about serialization

This commit is contained in:
Victor Stinner 2016-01-11 17:49:07 +01:00
parent 86af87adc3
commit 89f64fa84b
1 changed files with 4 additions and 2 deletions

View File

@ -257,8 +257,10 @@ Behaviour
When a function code is replaced (``func.__code__ = new_code``), all When a function code is replaced (``func.__code__ = new_code``), all
specialized functions are removed. specialized functions are removed.
When a function is serialized (by ``marshal`` or ``pickle`` for When a function is serialized ``pickle``, specialized functions and
example), specialized functions and guards are ignored (not serialized). guards are ignored (not serialized). Specialized functions and guards
are not stored in ``.pyc`` files but created and registered at runtime,
when a module is loaded.
Discussion Discussion