cpython/Python
Victor Stinner 3939c321c9
bpo-20443: _PyConfig_Read() gets the absolute path of run_filename (GH-14053)
Python now gets the absolute path of the script filename specified on
the command line (ex: "python3 script.py"): the __file__ attribute of
the __main__ module, sys.argv[0] and sys.path[0] become an absolute
path, rather than a relative path.

* Add _Py_isabs() and _Py_abspath() functions.
* _PyConfig_Read() now tries to get the absolute path of
  run_filename, but keeps the relative path if _Py_abspath() fails.
* Reimplement os._getfullpathname() using _Py_abspath().
* Use _Py_isabs() in getpath.c.
2019-06-25 15:02:43 +02:00
..
clinic bpo-37392: Remove sys.setcheckinterval() (GH-14355) 2019-06-25 03:01:08 +02:00
_warnings.c bpo-36737: Use the module state C-API for warnings. (gh-13159) 2019-05-10 13:29:55 -04:00
asdl.c
ast.c remove dead code (GH-14104) 2019-06-18 15:36:34 +09:00
ast_opt.c
ast_unparse.c bpo-37050: Remove expr_text from FormattedValue ast node, use Constant node instead (GH-13597) 2019-05-27 15:31:52 -04:00
bltinmodule.c bpo-37363: Add audit events for a range of modules (GH-14301) 2019-06-24 08:42:54 -07:00
bootstrap_hash.c bpo-36763: Implement the PEP 587 (GH-13592) 2019-05-27 16:39:22 +02:00
ceval.c bpo-35224: Reverse evaluation order of key: value in dict comprehensions (GH-14139) 2019-06-22 07:40:55 -07:00
ceval_gil.h Revert "bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (gh-13714)" (GH-13780) 2019-06-03 18:14:24 +02:00
codecs.c
compile.c bpo-35224: Reverse evaluation order of key: value in dict comprehensions (GH-14139) 2019-06-22 07:40:55 -07:00
condvar.h
context.c bpo-36974: implement PEP 590 (GH-13185) 2019-05-29 20:31:52 +02:00
dtoa.c
dup2.c
dynamic_annotations.c
dynload_aix.c
dynload_dl.c
dynload_hpux.c bpo-36900: Fix compilation on HP-UX (GH-13614) 2019-05-28 12:24:00 +02:00
dynload_shlib.c
dynload_stub.c
dynload_win.c
errors.c bpo-36710: Pass explicitly tstate in sysmodule.c (GH-14060) 2019-06-13 22:41:23 +02:00
fileutils.c bpo-20443: _PyConfig_Read() gets the absolute path of run_filename (GH-14053) 2019-06-25 15:02:43 +02:00
formatter_unicode.c
frozen.c
frozenmain.c bpo-36763: Implement the PEP 587 (GH-13592) 2019-05-27 16:39:22 +02:00
future.c
getargs.c
getcompiler.c
getcopyright.c
getopt.c bpo-36763: Cleanup precmdline in _PyCoreConfig_Read() (GH-13371) 2019-05-17 03:15:12 +02:00
getplatform.c
getversion.c
graminit.c bpo-35814: Allow unpacking in r.h.s of annotated assignment expressions (GH-13760) 2019-06-03 08:34:20 +01:00
hamt.c bpo-35983: skip trashcan for subclasses (GH-11841) 2019-05-10 19:21:10 +02:00
import.c bpo-36710: Use tstate in pylifecycle.c (GH-14249) 2019-06-20 00:05:23 +02:00
importdl.c bpo-36842: Implement PEP 578 (GH-12613) 2019-05-23 08:45:22 -07:00
importdl.h
importlib.h bpo-37213: Handle negative line deltas correctly in the peephole optimizer (GH-13969) 2019-06-13 19:16:22 +01:00
importlib_external.h bpo-35224: Bump the pyc magic number by 1 instead of by 10 in last modification (GH-14320) 2019-06-23 17:00:08 +01:00
importlib_zipimport.h bpo-37213: Handle negative line deltas correctly in the peephole optimizer (GH-13969) 2019-06-13 19:16:22 +01:00
initconfig.c bpo-20443: _PyConfig_Read() gets the absolute path of run_filename (GH-14053) 2019-06-25 15:02:43 +02:00
makeopcodetargets.py
marshal.c
modsupport.c
mysnprintf.c
mystrtoul.c
opcode_targets.h
pathconfig.c bpo-36763: Implement the PEP 587 (GH-13592) 2019-05-27 16:39:22 +02:00
peephole.c bpo-37289: Remove 'if False' handling in the peephole optimizer (GH-14099) 2019-06-15 15:58:00 +01:00
preconfig.c bpo-36763: Implement the PEP 587 (GH-13592) 2019-05-27 16:39:22 +02:00
pyarena.c
pyctype.c
pyfpe.c
pyhash.c
pylifecycle.c bpo-36710: Use tstate in pylifecycle.c (GH-14249) 2019-06-20 00:05:23 +02:00
pymath.c
pystate.c bpo-37392: Remove sys.setcheckinterval() (GH-14355) 2019-06-25 03:01:08 +02:00
pystrcmp.c
pystrhex.c Fix compiler warnings in the pystrehex module (GH-13730) 2019-06-01 21:02:08 +01:00
pystrtod.c bpo-27268: Fix incorrect error message on float('') (GH-2745) 2019-05-17 18:32:44 -04:00
Python-ast.c bpo-37253: Remove PyAST_obj2mod_ex() function (GH-14020) 2019-06-13 09:18:45 +02:00
pythonrun.c bpo-37253: Add _PyCompilerFlags_INIT macro (GH-14018) 2019-06-13 02:16:41 +02:00
pytime.c
README
strdup.c
structmember.c
symtable.c bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464) 2019-05-30 19:13:39 -07:00
sysmodule.c bpo-37392: Remove sys.setcheckinterval() (GH-14355) 2019-06-25 03:01:08 +02:00
thread.c
thread_nt.h bpo-36084: Add native thread ID (TID) to threading.Thread (GH-13463) 2019-05-22 17:43:16 +02:00
thread_pthread.h bpo-37077: Add native thread ID (TID) for AIX (GH-13624) 2019-06-13 15:34:46 -07:00
traceback.c bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464) 2019-05-30 19:13:39 -07:00
wordcode_helpers.h

Miscellaneous source files for the main Python shared library