{
    "mode": "pydoc",
    "parameter": "__future__",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/__future__/json",
    "generated": "2026-06-02T15:03:39Z",
    "sections": {
        "NAME": {
            "content": "future - Record of phased-in incompatible language changes.\n",
            "subsections": []
        },
        "MODULE REFERENCE": {
            "content": "https://docs.python.org/3.10/library/future.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Each line is of the form:\n\nFeatureName = \"Feature(\" OptionalRelease \",\" MandatoryRelease \",\"\nCompilerFlag \")\"\n\nwhere, normally, OptionalRelease < MandatoryRelease, and both are 5-tuples\nof the same form as sys.versioninfo:\n\n(PYMAJORVERSION, # the 2 in 2.1.0a3; an int\nPYMINORVERSION, # the 1; an int\nPYMICROVERSION, # the 0; an int\nPYRELEASELEVEL, # \"alpha\", \"beta\", \"candidate\" or \"final\"; string\nPYRELEASESERIAL # the 3; an int\n)\n\nOptionalRelease records the first release in which\n\nfrom future import FeatureName\n\nwas accepted.\n\nIn the case of MandatoryReleases that have not yet occurred,\nMandatoryRelease predicts the release in which the feature will become part\nof the language.\n\nElse MandatoryRelease records when the feature became part of the language;\nin releases at or after that, modules no longer need\n\nfrom future import FeatureName\n\nto use the feature in question, but may continue to use such imports.\n\nMandatoryRelease may also be None, meaning that a planned feature got\ndropped.\n\nInstances of class Feature have two corresponding methods,\n.getOptionalRelease() and .getMandatoryRelease().\n\nCompilerFlag is the (bitfield) flag that should be passed in the fourth\nargument to the builtin function compile() to enable the feature in\ndynamically compiled code.  This flag is stored in the .compilerflag\nattribute on Future instances.  These values must match the appropriate\n#defines of COxxx flags in Include/cpython/compile.h.\n\nNo feature line is ever to be deleted from this file.\n",
            "subsections": []
        },
        "DATA": {
            "content": "all = ['allfeaturenames', 'nestedscopes', 'generators', 'divisi...\nabsoluteimport = Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0...\nallfeaturenames = ['nestedscopes', 'generators', 'division', 'absol...\nannotations = Feature((3, 7, 0, 'beta', 1), (3, 11, 0, 'alpha', 0), 1...\nbarryasFLUFL = Feature((3, 1, 0, 'alpha', 2), (4, 0, 0, 'alpha', 0)...\ndivision = Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 1310...\ngeneratorstop = Feature((3, 5, 0, 'beta', 1), (3, 7, 0, 'alpha', 0),...\ngenerators = Feature((2, 2, 0, 'alpha', 1), (2, 3, 0, 'final', 0), 0)\nnestedscopes = Feature((2, 1, 0, 'beta', 1), (2, 2, 0, 'alpha', 0), ...\nprintfunction = Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0)...\nunicodeliterals = Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', ...\nwithstatement = Feature((2, 5, 0, 'alpha', 1), (2, 6, 0, 'alpha', 0)...\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3.10/future.py\n\n",
            "subsections": []
        }
    },
    "summary": "future - Record of phased-in incompatible language changes.",
    "flags": [],
    "examples": [],
    "see_also": []
}