Python 3
    Python 3 - Overview
    Python 3 - Install
    Python 3 - REPL
    Python 3 - RegEx
    Python 3 - List
    Python 3 - XML/YAML
    Python 3 - DateTime
    Python 3 - Subprocess
    Python 3 - pickle
    Python 3 - env
    Python 3 - lib
    Python 3 - Trouble Shooting
    Python 2 to 3

Python 3 - Environment

Updated: 2022-08-06


Python 3.3 and greater, hash randomization is turned on by default.

On previous versions of Python, this option turns on hash randomization, so that the hash() values of str, bytes and datetime are “salted” with an unpredictable random value. Although they remain constant within an individual Python process, they are not predictable between repeated invocations of Python.

Hash randomization is intended to provide protection against a denial-of-service caused by carefully-chosen inputs that exploit the worst case performance of a dict construction, O(n^2) complexity.

PYTHONHASHSEED allows you to set a fixed value for the hash seed secret.

To disable randomized hash for string in Python 3.3+


Check OS Version

>>> import os
>>> os.environ

Check path

where the installed site-packages are found

>>> import sys
>>> sys.path