summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorKamil Turek <kamil.turek@hotmail.com>2024-01-15 16:58:50 (GMT)
committerGitHub <noreply@github.com>2024-01-15 16:58:50 (GMT)
commitd457345bbc6414db0443819290b04a9a4333313d (patch)
treed209b887124b5e3c0d5802ba1d61d477cdbf67aa /Misc
parent3eae76554b0687c6b9c5c019cc53bb76430488c9 (diff)
downloadcpython-d457345bbc6414db0443819290b04a9a4333313d.zip
cpython-d457345bbc6414db0443819290b04a9a4333313d.tar.gz
cpython-d457345bbc6414db0443819290b04a9a4333313d.tar.bz2
gh-99437: runpy: decode path-like objects before setting globals
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-08-04-18-43-21.gh-issue-99437.Et8hu8.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-08-04-18-43-21.gh-issue-99437.Et8hu8.rst b/Misc/NEWS.d/next/Library/2023-08-04-18-43-21.gh-issue-99437.Et8hu8.rst
new file mode 100644
index 0000000..da4e20f
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-08-04-18-43-21.gh-issue-99437.Et8hu8.rst
@@ -0,0 +1,2 @@
+:func:`runpy.run_path` now decodes path-like objects, making sure __file__
+and sys.argv[0] of the module being run are always strings.