summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.7.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index 0b5ad00..e0c19cf 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -421,6 +421,12 @@ Other Language Changes
writable.
(Contributed by Nathaniel J. Smith in :issue:`30579`.)
+* When using the :option:`-m` switch, ``sys.path[0]`` is now eagerly expanded
+ to the full starting directory path, rather than being left as the empty
+ directory (which allows imports from the *current* working directory at the
+ time when an import occurs)
+ (Contributed by Nick Coghlan in :issue:`33053`.)
+
New Modules
===========
@@ -1138,6 +1144,11 @@ Changes in Python behavior
parentheses can be omitted only on calls.
(Contributed by Serhiy Storchaka in :issue:`32012` and :issue:`32023`.)
+* When using the ``-m`` switch, the starting directory is now added to sys.path,
+ rather than the current working directory. Any programs that are found to be
+ relying on the previous behaviour will need to be updated to manipulate
+ :data:`sys.path` appropriately.
+
Changes in the Python API
-------------------------