[issue32122] Improve -x option documentation

STINNER Victor report at bugs.python.org
Mon Oct 26 23:10:18 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

The -x command line option is now stored as PyConfig.skip_source_first_line, documented as:
"Skip the first line of the source?"
https://docs.python.org/dev/c-api/init_config.html#c.PyConfig.skip_source_first_line

Include/cpython/initconfig.h contains a longer comment:

    /* Skip the first line of the source ('run_filename' parameter),
       allowing use of non-Unix forms of "#!cmd".
       This is intended for a DOS specific hack only.

       Set by the -x command line option. */
    int skip_source_first_line;

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32122>
_______________________________________


More information about the Python-bugs-list mailing list