| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
(cherry picked from commit 46521826cb1883e29e4640f94089dd92c57efc5b)
Co-authored-by: Éric <earaujo@caravan.coop>
|
| |
|
|
|
|
|
|
|
| |
Make --help output shorter and add new help options.
--help-env, --help-xoptions and --help-all command-line options are
added to complement --help.
(cherry picked from commit 8aa9d40b00741213c5a53b1ae15509998893ae31)
Co-authored-by: Éric <earaujo@caravan.coop>
|
| |
|
|
|
| |
(cherry picked from commit da397194832c4b8db8446af42919d8ad47b3cb4a)
Co-authored-by: Éric <merwok@netwok.org>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add the -P command line option and the PYTHONSAFEPATH environment
variable to not prepend a potentially unsafe path to sys.path.
* Add sys.flags.safe_path flag.
* Add PyConfig.safe_path member.
* Programs/_bootstrap_python.c uses config.safe_path=0.
* Update subprocess._optim_args_from_interpreter_flags() to handle
the -P command line option.
* Modules/getpath.py sets safe_path to 1 if a "._pth" file is
present.
|
| |
|
|
|
| |
The threading debug (PYTHONTHREADDEBUG environment variable) is
deprecated in Python 3.10 and will be removed in Python 3.12. This
feature requires a debug build of Python.
|
| |
|
|
|
| |
The -W format is "action:message:category:module:lineno".
Update also the Python manual page.
|
| | |
|
| | |
|
| |
|
|
| |
(GH-20605)
|
| |
|
|
|
|
|
|
|
|
|
| |
Remove:
* COUNT_ALLOCS macro
* sys.getcounts() function
* SHOW_ALLOC_COUNT code in listobject.c
* SHOW_TRACK_COUNT code in tupleobject.c
* PyConfig.show_alloc_count field
* -X showalloccount command line option
* @test.support.requires_type_collecting decorator
|
| |
|
|
|
|
|
| |
https://bugs.python.org/issue39427
Automerge-Triggered-By: @pablogsal
|
| |
|
|
| |
(GH-15269)
|
| |
|
| |
More specifically, the options of --check-hash-based-pycs.
|
| | |
|
| |
|
|
| |
Initial patch by Joshua Jay Herman.
|
| | |
|
| |
|
| |
The 'optimization' is for space in the executable file, not for run time.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Python now supports checking bytecode cache up-to-dateness with a hash of the
source contents rather than volatile source metadata. See the PEP for details.
While a fairly straightforward idea, quite a lot of code had to be modified due
to the pervasiveness of pyc implementation details in the codebase. Changes in
this commit include:
- The core changes to importlib to understand how to read, validate, and
regenerate hash-based pycs.
- Support for generating hash-based pycs in py_compile and compileall.
- Modifications to our siphash implementation to support passing a custom
key. We then expose it to importlib through _imp.
- Updates to all places in the interpreter, standard library, and tests that
manually generate or parse pyc files to grok the new format.
- Support in the interpreter command line code for long options like
--check-hash-based-pycs.
- Tests and documentation for all of the above.
|
| |
|
|
| |
Explicitly document C functions and C variables that can be set
before Py_Initialize().
|
| | |
|
| |
|
| |
Update old devguide links from https://docs.python.org/devguide to https://devguide.python.org
|
| | |
|
| |
|
|
| |
Thanks to Ville Skyttä for the patch.
|
| |\ |
|
| | | |
|
| | |
| |
| |
| | |
to ASCII replacements. Original patch by Chris Angelico.
|
| |\ \
| |/ |
|
| | | |
|
| |\ \
| |/ |
|
| | | |
|
| |\ \
| |/ |
|
| | | |
|
| |\ \
| |/ |
|
| | | |
|
| |/
|
|
|
|
| |
The concept of .pyo files no longer exists. Now .pyc files have an
optional `opt-` tag which specifies if any extra optimizations beyond
the peepholer were applied.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
-I
Run Python in isolated mode. This also implies -E and -s. In isolated mode
sys.path contains neither the script’s directory nor the user’s
site-packages directory. All PYTHON* environment variables are ignored,
too. Further restrictions may be imposed to prevent the user from
injecting malicious code.
|
| |
|
|
| |
by Elena Oat.
|
| |
|
|
| |
Patch contributed by Corey Brune.
|
| | |
|
| | |
|
| |\ |
|
| | |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.
The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.
The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
|
| |\ \ \
| |/ / |
|
| | | | |
|
| |\ \ \
| |/ /
| | |
| | | |
Patch by Lars Michelsen.
|
| | |\ \
| | |/
| | |
| | | |
Patch by Lars Michelsen.
|
| | | |
| | |
| | |
| | | |
Patch by Lars Michelsen.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85436 | benjamin.peterson | 2010-10-13 17:20:15 -0500 (Wed, 13 Oct 2010) | 1 line
put PYTHONIOENCODING in man page
........
|