cpython/Python
Victor Stinner b5cf308de8
bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642) (GH-23692) (GH-23696)
Fix encoding name when running a ".pyc" file on Windows:
PyRun_SimpleFileExFlags() now uses the correct encoding to decode the
filename.

* Add pyrun_file() subfunction.
* Add pyrun_simple_file() subfunction.
* PyRun_SimpleFileExFlags() now calls _Py_fopen_obj() rather than
  _Py_fopen().

(cherry picked from commit b6d98c10ff)
(cherry picked from commit f0e42ae03c)
2020-12-08 17:42:31 +01:00
..
clinic
Python-ast.c bpo-36290: Fix keytword collision handling in AST node constructors (GH-12382) 2020-05-24 14:31:47 -07:00
README
_warnings.c bpo-39831: Remove outdated comment. (GH-18764) 2020-03-03 10:01:09 -08:00
asdl.c
ast.c [3.8] bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags (#21023) 2020-06-27 17:35:05 -07:00
ast_opt.c Fix constant folding optimization for positional only arguments (GH-17837) 2020-01-05 09:21:47 -08:00
ast_unparse.c [3.8] bpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH-20156). (GH-20191) 2020-05-22 23:32:40 +01:00
bltinmodule.c bpo-42536: GC track recycled tuples (GH-23623) (GH-23652) 2020-12-07 20:08:24 +00:00
bootstrap_hash.c bpo-35890: Use RegQueryInfoKeyW and CryptAcquireContextW explicitly (GH-19974) 2020-05-18 10:09:59 -07:00
ceval.c bpo-40048: Fix _PyCode_InitOpcache() error path (GH-19691) (GH-19698) 2020-04-24 03:07:20 +02:00
ceval_gil.h
codecs.c [3.8] closes bpo-39630: Update pointers to string literals to be const char *. (GH-18511) 2020-02-13 21:05:00 -08:00
compile.c bpo-41218: Only mark async code with CO_COROUTINE. (GH-21357) 2020-07-06 14:44:16 -07:00
condvar.h [3.8] Typo fix: "throuhgh" should be "through". (GH-16713) 2019-10-10 21:02:38 -07:00
context.c bpo-38979: fix ContextVar "__class_getitem__" method (GH-17497) 2019-12-08 04:49:07 -08:00
dtoa.c
dup2.c
dynamic_annotations.c
dynload_aix.c bpo-41894: Fix UnicodeDecodeError while loading native module (GH-22466) 2020-10-14 19:11:08 -07:00
dynload_dl.c
dynload_hpux.c bpo-41894: Fix UnicodeDecodeError while loading native module (GH-22466) 2020-10-14 19:11:08 -07:00
dynload_shlib.c bpo-41894: Fix UnicodeDecodeError while loading native module (GH-22466) 2020-10-14 19:11:08 -07:00
dynload_stub.c
dynload_win.c bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded (GH-21297) (GH-21352) 2020-07-06 19:12:16 +02:00
errors.c [3.8] closes bpo-39630: Update pointers to string literals to be const char *. (GH-18511) 2020-02-13 21:05:00 -08:00
fileutils.c bpo-38324: Fix test__locale.py Windows failures (GH-20529) 2020-10-20 04:58:06 -07:00
formatter_unicode.c Fix typo in formatter_unicode (GH-16831) 2019-10-25 10:03:23 -07:00
frozen.c
frozenmain.c bpo-38304: PyConfig_InitPythonConfig() cannot fail anymore (GH-16509) 2019-10-01 03:26:04 -07:00
future.c
getargs.c bpo-38540: Fix possible leak in PyArg_Parse for "esGH-" and "etGH-". (GH-16869) 2019-10-21 02:12:37 -07:00
getcompiler.c
getcopyright.c Bring Python into the next decade. (GH-17801) 2020-01-02 19:15:37 -08:00
getopt.c bpo-40527: Fix command line argument parsing (GH-19955) 2020-05-06 06:43:09 -07:00
getplatform.c
getversion.c
graminit.c
hamt.c closes bpo-37446: resolve undefined behavior in Python/hamt.c (GH-17727) 2019-12-30 18:51:18 -08:00
import.c [3.8] bpo-40417: Fix deprecation warning in PyImport_ReloadModule (GH-19750) (GH-19934) 2020-05-05 17:32:14 -07:00
importdl.c
importdl.h
importlib.h
importlib_external.h
importlib_zipimport.h [3.8] bpo-39033: Fix NameError in zipimport during hash validation (GH-17588) (GH-17642) 2020-01-14 03:39:19 -08:00
initconfig.c bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332) 2020-10-21 17:55:38 +09:00
makeopcodetargets.py
marshal.c bpo-41180: Audit code.__new__ when unmarshalling (GH-21271) 2020-07-03 14:13:29 -07:00
modsupport.c [3.8] closes bpo-41533: Fix a potential memory leak when allocating a stack (GH-21847) (GH-22015) 2020-09-04 15:26:05 -07:00
mysnprintf.c
mystrtoul.c
opcode_targets.h
pathconfig.c bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded (GH-21297) (GH-21352) 2020-07-06 19:12:16 +02:00
peephole.c
preconfig.c bpo-38304: Remove PyConfig.struct_size (GH-16500) 2019-10-01 08:46:42 +10:00
pyarena.c
pyctype.c
pyfpe.c
pyhash.c [3.8] closes bpo-40184: Only define pysiphash if the hash algorithm is SIPHASH24. (GH-19373) 2020-04-04 16:46:54 -05:00
pylifecycle.c bpo-41686: Always create the SIGINT event on Windows (GH-23344) (GH-23347) (GH-23349) 2020-11-17 22:23:18 +01:00
pymath.c
pystate.c bpo-40834: Fix truncate when sending str object with channel (GH-20555) 2020-06-13 05:44:50 -07:00
pystrcmp.c bpo-41524: fix pointer bug in PyOS_mystr{n}icmp (GH-21845) (GH-22016) 2020-08-30 16:20:40 +09:00
pystrhex.c
pystrtod.c
pythonrun.c bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642) (GH-23692) (GH-23696) 2020-12-08 17:42:31 +01:00
pytime.c bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137) 2020-05-18 09:42:14 -07:00
strdup.c
structmember.c
symtable.c Fix SystemError when nested function has annotation on positional-only argument (GH-17826) 2020-01-04 18:14:58 -08:00
sysmodule.c bpo-38410: Properly handle PySys_Audit() failures (GH-18658) 2020-03-02 09:58:48 +02:00
thread.c
thread_nt.h bpo-39847: EnterNonRecursiveMutex() uses GetTickCount64() (GH-18780) 2020-03-11 16:57:16 -07:00
thread_pthread.h Fix -Wstrict-prototypes warning in thread_pthread.h. (GH-21477) 2020-07-15 12:04:59 -07:00
traceback.c
wordcode_helpers.h

README

Miscellaneous source files for the main Python shared library