Re: [Python-Dev] cpython (2.7): Issue #6074: Restore the long-broken support for running with read-only source
On 19.10.12 14:58, nick.coghlan wrote:
http://hg.python.org/cpython/rev/321414874b26 changeset: 79827:321414874b26 branch: 2.7 parent: 79814:2f0770cc6d3f user: Nick Coghlan
date: Fri Oct 19 21:58:18 2012 +1000 summary: Issue #6074: Restore the long-broken support for running with read-only source files on Windows
+def _iter_files(name): for f in (name + os.extsep + "py", name + os.extsep + "pyc", name + os.extsep + "pyo", name + os.extsep + "pyw", name + "$py.class"): + yield f
Why not just return (name + os.extsep + "py", name + os.extsep + "pyc", name + os.extsep + "pyo", name + os.extsep + "pyw", name + "$py.class") ?
On Fri, Oct 19, 2012 at 11:36 PM, Serhiy Storchaka
Why not just
return (name + os.extsep + "py",
name + os.extsep + "pyc", name + os.extsep + "pyo", name + os.extsep + "pyw", name + "$py.class")
No good reason - I copied the shape of the existing code without really thinking about it. Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia
participants (2)
-
Nick Coghlan
-
Serhiy Storchaka