Atelier des rouesLab FR
Objects/Documentation

transfertmemoire31.py

Testing a memory correction on a second Python · transfertmemoire31.py

Download ↓
"""Replay frozen corrections on the executing runtime and compare the same ranks."""
from pathlib import Path
import json,platform
from transfert29 import study
if __name__=='__main__':
    p=Path(__file__);old=json.loads(p.with_name('ordre30.json').read_bytes())
    new=study(str(p.with_name('ordre30.py')))
    for a,b in zip(new,old):
        assert a['cap']==b['cap'] and a['correction']==b['correction']
        for x,y in zip(a['rows'],b['rows']):x['previous']=y['corrected']
    print(json.dumps(dict(version=platform.python_version(),capacities=new)))

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.