[Python-Dev] Re: Future PEP: Include Fine Grained Error Locations in Tracebacks

2021年5月09日 09:10:25 -0700

On 2021年5月09日 02:16:02 -0000
"Jim J. Jewett" <[email protected]> wrote:
> Antoine Pitrou wrote:
> > On Sat, 8 May 2021 02:58:40 +0000
> > Neil Schemenauer [email protected] wrote: 
> 
> > > It would be cool if we could mmap the pyc files and have the VM run
> > > code without an unmarshal step.
> > > What happens if another process mutates or truncates the file while the 
> > CPython VM is executing code from the mapped file? Crash? 
> 
> Why would this be any different than whatever happens now?
What happens now is that the pyc file is transferred at once to memory
using regular IO. So the chance is really slim that you read invalid
data due to concurrent mutation.
Regards
Antoine.
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/JRK7RPRG2ENUJRTNJU3PD47QSLVOSVXN/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to