summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.7.rst
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2018-04-15 13:32:05 (GMT)
committerGitHub <noreply@github.com>2018-04-15 13:32:05 (GMT)
commit1a5c4bdb6ecc6a8b19ff33bde323ab188ed60977 (patch)
treea5638ce6266eff14b579f0e1def8b7be2573a6f9 /Doc/whatsnew/3.7.rst
parent82a948105920100ca2ec5c2340bc3890adcfe778 (diff)
downloadcpython-1a5c4bdb6ecc6a8b19ff33bde323ab188ed60977.zip
cpython-1a5c4bdb6ecc6a8b19ff33bde323ab188ed60977.tar.gz
cpython-1a5c4bdb6ecc6a8b19ff33bde323ab188ed60977.tar.bz2
bpo-33185: Improve wording and markup (GH-6477)
Adds some working and markup fixes that I missed in the initial commit for this issue. (Follow-up to GH-6419)
Diffstat (limited to 'Doc/whatsnew/3.7.rst')
-rw-r--r--Doc/whatsnew/3.7.rst12
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index 81df398..0b82251 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -1144,11 +1144,13 @@ 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 checking for
- the empty string in :data:`sys.path`, or otherwise relying on the previous
- behaviour, will need to be updated accordingly (e.g. by checking for
- ``os.getcwd()`` in addition to checking for the empty string).
+* When using the :option:`-m` switch, the initial working directory is now added
+ to :data:`sys.path`, rather than an empty string (which dynamically denoted
+ the current working directory at the time of each import). Any programs that
+ are checking for the empty string, or otherwise relying on the previous
+ behaviour, will need to be updated accordingly (e.g. by also checking for
+ ``os.getcwd()`` or ``os.path.dirname(__main__.__file__)``, depending on why
+ the code was checking for the empty string in the first place).
Changes in the Python API