[issue33451] Start pyc file lock the file

2018-08-14 Thread Berker Peksag


Berker Peksag  added the comment:

All PRs have been merged (commit message from the 3.6 branch doesn't listed 
here but PR 7889 has been merged in 
https://github.com/python/cpython/commit/8f8ad2c38237caf5ee48f690289e8c811d245455)
 Closing this as 'fixed'. Please reopen if this issue needs to stay open.

--
nosy: +berker.peksag
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33451] Start pyc file lock the file

2018-06-23 Thread miss-islington


miss-islington  added the comment:


New changeset 56aaef0ddba6275b8043b58433739a64497f33b4 by Miss Islington (bot) 
in branch '3.7':
bpo-33451: Close pyc files before calling PyEval_EvalCode() (GH-7884)
https://github.com/python/cpython/commit/56aaef0ddba6275b8043b58433739a64497f33b4


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33451] Start pyc file lock the file

2018-06-23 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7497

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33451] Start pyc file lock the file

2018-06-23 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7496

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33451] Start pyc file lock the file

2018-06-23 Thread Nick Coghlan


Nick Coghlan  added the comment:


New changeset ea737751b10fff752aafed0231e8a02b82ba365d by Nick Coghlan (Zackery 
Spytz) in branch 'master':
bpo-33451: Close pyc files before calling PyEval_EvalCode() (GH-7884)
https://github.com/python/cpython/commit/ea737751b10fff752aafed0231e8a02b82ba365d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33451] Start pyc file lock the file

2018-06-23 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
pull_requests: +7493
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33451] Start pyc file lock the file

2018-05-16 Thread Eryk Sun

Eryk Sun  added the comment:

In Python/pythonrun.c, PyRun_SimpleFileExFlags() reopens the PYC file in binary 
mode, passes it to run_pyc_file(), and only closes it after executing the 
script. The file should instead be closed in run_pyc_file(), before calling 
PyEval_EvalCode().

--
nosy: +eryksun
versions: +Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33451] Start pyc file lock the file

2018-05-16 Thread Brett Cannon

Brett Cannon  added the comment:

There's no specific reason as to why that would happen as no files are kept 
open after importing is finished.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33451] Start pyc file lock the file

2018-05-15 Thread Antoine Pitrou

Change by Antoine Pitrou :


--
nosy: +brett.cannon, eric.snow, ncoghlan, paul.moore, steve.dower, tim.golden, 
zach.ware

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33451] Start pyc file lock the file

2018-05-15 Thread Jean-Louis Tamburini

Jean-Louis Tamburini  added the comment:

Same for python v3.6.5:f59c0932b4

--
Added file: https://bugs.python.org/file47592/dummy.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33451] Start pyc file lock the file

2018-05-09 Thread Jean-Louis Tamburini

New submission from Jean-Louis Tamburini :

Python v3.6.4:d48eceb
Windows 10.0.16299

I search on Internet and I don't find why Python Interpreter (v3.6.4) do that. 
With python 2.7, I don't have this "problem".

When I launch script like : 
c:\Python364\python.exe compile.py
While the execution, I can rename/modify the file "compile.py". 

But, when I compile the file to .pyc (with py_compile with an another script), 
and I launch the pyc like :
c:\Python364\python.exe dummy.pyc
While the execution, I CAN'T rename/modify the file because is locked by Python 
Interpreter. 

It's normal ?

--
components: Interpreter Core
messages: 316330
nosy: Jean-Louis Tamburini
priority: normal
severity: normal
status: open
title: Start pyc file lock the file
type: behavior
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com