<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/test/test_cmd_line_script.py, branch benjamin-interp-initialize</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-33053: Remove test_cmd_line_script debugging print (GH-6237)</title>
<updated>2018-03-25T13:47:54+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2018-03-25T13:47:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a9e5d0e9ef27b14e34631d415e727a07d0f63bef'/>
<id>a9e5d0e9ef27b14e34631d415e727a07d0f63bef</id>
<content type='text'>
I noticed this had slipped into the original commit when
resolving a merge conflict for the backport to 3.7.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I noticed this had slipped into the original commit when
resolving a merge conflict for the backport to 3.7.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33053: -m now adds *starting* directory to sys.path (GH-6231)</title>
<updated>2018-03-25T13:03:10+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2018-03-25T13:03:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d5d9e02dd3c6df06a8dd9ce75ee9b52976420a8b'/>
<id>d5d9e02dd3c6df06a8dd9ce75ee9b52976420a8b</id>
<content type='text'>
Historically, -m added the empty string as sys.path
zero, meaning it resolved imports against the current
working directory, the same way -c and the interactive
prompt do.

This changes the sys.path initialisation to add the
*starting* working directory as sys.path[0] instead,
such that changes to the working directory while the
program is running will have no effect on imports
when using the -m switch.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Historically, -m added the empty string as sys.path
zero, meaning it resolved imports against the current
working directory, the same way -c and the interactive
prompt do.

This changes the sys.path initialisation to add the
*starting* working directory as sys.path[0] instead,
such that changes to the working directory while the
program is running will have no effect on imports
when using the -m switch.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-30436: Raise ModuleNotFoundError for importlib.util.find_spec() when parent isn't a package (GH-1899)</title>
<updated>2017-06-14T21:34:50+00:00</updated>
<author>
<name>Milan Oberkirch</name>
<email>zvyn@oberkirch.org</email>
</author>
<published>2017-06-14T21:34:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8c3f05e9f0f0b30a3d4a2433e92471794d8258af'/>
<id>8c3f05e9f0f0b30a3d4a2433e92471794d8258af</id>
<content type='text'>
Previously AttributeError was raised, but that's not very reflective of the fact that the requested module can't be found since the specified parent isn't actually a package.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously AttributeError was raised, but that's not very reflective of the fact that the requested module can't be found since the specified parent isn't actually a package.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-29723: Consistently configure sys.path[0] (#575)</title>
<updated>2017-03-12T10:38:32+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2017-03-12T10:38:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d2977a3ae2cc6802921b1e3b6e9d13fcfbda872d'/>
<id>d2977a3ae2cc6802921b1e3b6e9d13fcfbda872d</id>
<content type='text'>
Directory and zipfile execution previously added
the parent directory of the directory or zipfile
as sys.path[0] and then subsequently overwrote
it with the directory or zipfile itself.

This caused problems in isolated mode, as it
overwrote the "stdlib as a zip archive" entry
in sys.path, as the parent directory was
never added.

The attempted fix to that issue in bpo-29319
created the opposite problem in *non*-isolated
mode, by potentially leaving the parent
directory on sys.path instead of overwriting it.

This change fixes the root cause of the problem
by removing the whole "add-and-overwrite" dance
for sys.path[0], and instead simply never adds
the parent directory to sys.path in the first
place.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Directory and zipfile execution previously added
the parent directory of the directory or zipfile
as sys.path[0] and then subsequently overwrote
it with the directory or zipfile itself.

This caused problems in isolated mode, as it
overwrote the "stdlib as a zip archive" entry
in sys.path, as the parent directory was
never added.

The attempted fix to that issue in bpo-29319
created the opposite problem in *non*-isolated
mode, by potentially leaving the parent
directory on sys.path instead of overwriting it.

This change fixes the root cause of the problem
by removing the whole "add-and-overwrite" dance
for sys.path[0], and instead simply never adds
the parent directory to sys.path in the first
place.</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #25677: Merge SyntaxError caret positioning from 3.5</title>
<updated>2016-12-19T06:46:01+00:00</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2016-12-19T06:46:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=619555d77bba05c71d9ef0a1c29ec53a17ebe2ca'/>
<id>619555d77bba05c71d9ef0a1c29ec53a17ebe2ca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #25677: Correct syntax error caret for indented blocks.</title>
<updated>2016-12-11T00:18:36+00:00</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2016-12-11T00:18:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=ca3263c50c3b3a3719d2ec3ee7b30b8c669dcb19'/>
<id>ca3263c50c3b3a3719d2ec3ee7b30b8c669dcb19</id>
<content type='text'>
Based on patch by Michael Layzell.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Based on patch by Michael Layzell.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #15767: Use ModuleNotFoundError.</title>
<updated>2016-09-07T23:56:15+00:00</updated>
<author>
<name>Eric Snow</name>
<email>ericsnowcurrently@gmail.com</email>
</author>
<published>2016-09-07T23:56:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=46f97b85a8ce9ae67b6e4bc32e94f7827df7bab7'/>
<id>46f97b85a8ce9ae67b6e4bc32e94f7827df7bab7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #27487: Merge runpy warning from 3.5</title>
<updated>2016-08-21T05:07:35+00:00</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2016-08-21T05:07:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f9ed528fafafda147f20f345195ced23b141ace9'/>
<id>f9ed528fafafda147f20f345195ced23b141ace9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #27487: Warn if submodule already imported before runpy execution</title>
<updated>2016-08-21T04:07:58+00:00</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2016-08-21T04:07:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=9c8aa9bffe755fe6126dc72dfd037c6b20e65906'/>
<id>9c8aa9bffe755fe6126dc72dfd037c6b20e65906</id>
<content type='text'>
Also try to clarify the find_spec() error message.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also try to clarify the find_spec() error message.
</pre>
</div>
</content>
</entry>
<entry>
<title>Backed out changeset af29d89083b3 (closes #25548) (closes #27498)</title>
<updated>2016-07-14T04:13:29+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2016-07-14T04:13:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=ab078e9ed1a5d1b693d6ee843f1a34e8993e9dee'/>
<id>ab078e9ed1a5d1b693d6ee843f1a34e8993e9dee</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
