├── Lib ├── test │ ├── nullcert.pem │ ├── leakers │ │ ├── __init__.py │ │ ├── test_selftype.py │ │ └── test_ctypes.py │ ├── typinganndata │ │ ├── __init__.py │ │ └── ann_module9.py │ ├── test_import │ │ ├── data │ │ │ ├── unwritable │ │ │ │ ├── x.py │ │ │ │ └── __init__.py │ │ │ ├── package │ │ │ │ ├── submodule.py │ │ │ │ └── __init__.py │ │ │ ├── package2 │ │ │ │ ├── submodule2.py │ │ │ │ └── submodule1.py │ │ │ └── circular_imports │ │ │ │ ├── subpkg2 │ │ │ │ ├── __init__.py │ │ │ │ └── parent │ │ │ │ │ ├── __init__.py │ │ │ │ │ └── child.py │ │ │ │ ├── basic2.py │ │ │ │ ├── util.py │ │ │ │ ├── indirect.py │ │ │ │ ├── source.py │ │ │ │ ├── subpkg │ │ │ │ ├── util.py │ │ │ │ └── subpackage2.py │ │ │ │ ├── use.py │ │ │ │ ├── from_cycle1.py │ │ │ │ ├── from_cycle2.py │ │ │ │ ├── binding2.py │ │ │ │ ├── binding.py │ │ │ │ ├── basic.py │ │ │ │ ├── rebinding2.py │ │ │ │ ├── subpackage.py │ │ │ │ └── rebinding.py │ │ └── __main__.py │ ├── test_importlib │ │ ├── data │ │ │ ├── __init__.py │ │ │ ├── example-21.12-py3.6.egg │ │ │ ├── example-21.12-py3-none-any.whl │ │ │ └── example2-1.0.0-py3-none-any.whl │ │ ├── data01 │ │ │ ├── __init__.py │ │ │ ├── binary.file │ │ │ ├── subdirectory │ │ │ │ ├── __init__.py │ │ │ │ └── binary.file │ │ │ ├── utf-8.file │ │ │ └── utf-16.file │ │ ├── data02 │ │ │ ├── __init__.py │ │ │ ├── one │ │ │ │ ├── __init__.py │ │ │ │ └── resource1.txt │ │ │ └── two │ │ │ │ ├── __init__.py │ │ │ │ └── resource2.txt │ │ ├── data03 │ │ │ ├── __init__.py │ │ │ └── namespace │ │ │ │ ├── resource1.txt │ │ │ │ ├── portion1 │ │ │ │ └── __init__.py │ │ │ │ └── portion2 │ │ │ │ └── __init__.py │ │ ├── resources │ │ │ └── __init__.py │ │ ├── zipdata01 │ │ │ ├── __init__.py │ │ │ └── ziptestdata.zip │ │ ├── zipdata02 │ │ │ ├── __init__.py │ │ │ └── ziptestdata.zip │ │ ├── namespacedata01 │ │ │ ├── binary.file │ │ │ ├── utf-8.file │ │ │ └── utf-16.file │ │ ├── namespace_pkgs │ │ │ ├── not_a_namespace_pkg │ │ │ │ └── foo │ │ │ │ │ ├── __init__.py │ │ │ │ │ └── one.py │ │ │ ├── module_and_namespace_package │ │ │ │ ├── a_test │ │ │ │ │ └── empty │ │ │ │ └── a_test.py │ │ │ ├── portion1 │ │ │ │ └── foo │ │ │ │ │ └── one.py │ │ │ ├── portion2 │ │ │ │ └── foo │ │ │ │ │ └── two.py │ │ │ ├── both_portions │ │ │ │ └── foo │ │ │ │ │ ├── one.py │ │ │ │ │ └── two.py │ │ │ ├── project1 │ │ │ │ └── parent │ │ │ │ │ └── child │ │ │ │ │ └── one.py │ │ │ ├── project2 │ │ │ │ └── parent │ │ │ │ │ └── child │ │ │ │ │ └── two.py │ │ │ ├── project3 │ │ │ │ └── parent │ │ │ │ │ └── child │ │ │ │ │ └── three.py │ │ │ ├── nested_portion1.zip │ │ │ ├── missing_directory.zip │ │ │ └── top_level_portion1.zip │ │ ├── __main__.py │ │ ├── builtin │ │ │ ├── __main__.py │ │ │ └── __init__.py │ │ ├── frozen │ │ │ ├── __main__.py │ │ │ └── __init__.py │ │ ├── import_ │ │ │ ├── __main__.py │ │ │ └── __init__.py │ │ ├── source │ │ │ ├── __main__.py │ │ │ └── __init__.py │ │ ├── extension │ │ │ ├── __main__.py │ │ │ └── __init__.py │ │ ├── __init__.py │ │ └── stubs.py │ ├── xmltestdata │ │ ├── c14n-20 │ │ │ ├── world.txt │ │ │ ├── out_inC14N6_c14nDefault.xml │ │ │ ├── out_inC14N5_c14nTrim.xml │ │ │ ├── inC14N6.xml │ │ │ ├── out_inC14N5_c14nDefault.xml │ │ │ ├── doc.dtd │ │ │ ├── inNsDefault.xml │ │ │ ├── out_inNsDefault_c14nDefault.xml │ │ │ ├── out_inC14N2_c14nTrim.xml │ │ │ ├── out_inNsDefault_c14nPrefix.xml │ │ │ ├── out_inC14N1_c14nDefault.xml │ │ │ ├── inNsPushdown.xml │ │ │ ├── out_inNsSuperfluous_c14nPrefix.xml │ │ │ ├── out_inNsXml_c14nDefault.xml │ │ │ ├── c14nDefault.xml │ │ │ ├── doc.xsl │ │ │ ├── out_inNsXml_c14nPrefix.xml │ │ │ ├── inNsRedecl.xml │ │ │ ├── inNsSort.xml │ │ │ ├── out_inC14N1_c14nComment.xml │ │ │ ├── inNsXml.xml │ │ │ ├── out_inNsRedecl_c14nPrefix.xml │ │ │ ├── out_inNsXml_c14nQname.xml │ │ │ ├── out_inNsRedecl_c14nDefault.xml │ │ │ ├── inNsSuperfluous.xml │ │ │ ├── out_inNsSort_c14nDefault.xml │ │ │ ├── out_inNsSuperfluous_c14nDefault.xml │ │ │ ├── out_inNsXml_c14nPrefixQname.xml │ │ │ ├── inC14N2.xml │ │ │ ├── out_inNsSort_c14nPrefix.xml │ │ │ ├── out_inNsPushdown_c14nDefault.xml │ │ │ ├── out_inC14N2_c14nDefault.xml │ │ │ ├── out_inNsPushdown_c14nPrefix.xml │ │ │ ├── out_inNsContent_c14nDefault.xml │ │ │ ├── c14nTrim.xml │ │ │ ├── c14nComment.xml │ │ │ ├── c14nPrefix.xml │ │ │ ├── inC14N1.xml │ │ │ ├── out_inNsContent_c14nQnameElem.xml │ │ │ ├── c14nQnameElem.xml │ │ │ ├── out_inC14N3_c14nTrim.xml │ │ │ ├── c14nQname.xml │ │ │ ├── out_inNsContent_c14nPrefixQnameXpathElem.xml │ │ │ ├── inC14N5.xml │ │ │ ├── out_inNsContent_c14nQnameXpathElem.xml │ │ │ ├── inNsContent.xml │ │ │ ├── c14nQnameXpathElem.xml │ │ │ ├── c14nPrefixQname.xml │ │ │ └── out_inC14N4_c14nTrim.xml │ │ ├── test.xml │ │ ├── test.xml.out │ │ ├── simple.xml │ │ ├── simple-ns.xml │ │ └── expat224_utf8_bug.xml │ ├── bad_coding.py │ ├── relimport.py │ ├── bad_coding2.py │ ├── test_tomllib │ │ ├── data │ │ │ ├── valid │ │ │ │ ├── no-newlines.json │ │ │ │ ├── trailing-comma.toml │ │ │ │ ├── boolean.toml │ │ │ │ ├── empty-inline-table.json │ │ │ │ ├── no-newlines.toml │ │ │ │ ├── dates-and-times │ │ │ │ │ ├── localtime.toml │ │ │ │ │ ├── localtime.json │ │ │ │ │ ├── datetimes.toml │ │ │ │ │ └── datetimes.json │ │ │ │ ├── hex-char.toml │ │ │ │ ├── empty-inline-table.toml │ │ │ │ ├── array │ │ │ │ │ ├── array-subtables.toml │ │ │ │ │ ├── open-parent-table.toml │ │ │ │ │ ├── open-parent-table.json │ │ │ │ │ └── array-subtables.json │ │ │ │ ├── boolean.json │ │ │ │ ├── multiline-basic-str │ │ │ │ │ ├── ends-in-whitespace-escape.json │ │ │ │ │ └── ends-in-whitespace-escape.toml │ │ │ │ ├── apostrophes-in-literal-string.toml │ │ │ │ ├── apostrophes-in-literal-string.json │ │ │ │ ├── five-quotes.toml │ │ │ │ ├── trailing-comma.json │ │ │ │ ├── hex-char.json │ │ │ │ └── five-quotes.json │ │ │ └── invalid │ │ │ │ ├── array │ │ │ │ ├── unclosed-empty.toml │ │ │ │ ├── file-end-after-val.toml │ │ │ │ └── unclosed-after-item.toml │ │ │ │ ├── non-scalar-escaped.toml │ │ │ │ ├── table │ │ │ │ ├── eof-after-opening.toml │ │ │ │ ├── redefine-1.toml │ │ │ │ └── redefine-2.toml │ │ │ │ ├── inline-table │ │ │ │ ├── unclosed-empty.toml │ │ │ │ ├── file-end-after-key-val.toml │ │ │ │ ├── mutate.toml │ │ │ │ ├── define-twice.toml │ │ │ │ ├── overwrite-implicitly.toml │ │ │ │ ├── define-twice-in-subtable.toml │ │ │ │ ├── override-val-with-array.toml │ │ │ │ ├── override-val-with-table.toml │ │ │ │ ├── overwrite-value-in-inner-array.toml │ │ │ │ ├── overwrite-value-in-inner-table.toml │ │ │ │ └── override-val-in-table.toml │ │ │ │ ├── invalid-hex.toml │ │ │ │ ├── keys-and-vals │ │ │ │ ├── ends-early.toml │ │ │ │ ├── no-value.toml │ │ │ │ ├── only-ws-after-dot.toml │ │ │ │ ├── ends-early-table-def.toml │ │ │ │ └── overwrite-with-deep-table.toml │ │ │ │ ├── boolean │ │ │ │ ├── invalid-false-casing.toml │ │ │ │ └── invalid-true-casing.toml │ │ │ │ ├── literal-str │ │ │ │ └── unclosed.toml │ │ │ │ ├── array-missing-comma.toml │ │ │ │ ├── unclosed-string.toml │ │ │ │ ├── multiline-basic-str │ │ │ │ ├── file-ends-after-opening.toml │ │ │ │ ├── escape-only.toml │ │ │ │ ├── last-line-escape.toml │ │ │ │ ├── unclosed-ends-in-whitespace-escape.toml │ │ │ │ └── carriage-return.toml │ │ │ │ ├── basic-str-ends-in-escape.toml │ │ │ │ ├── dotted-keys │ │ │ │ ├── access-non-table.toml │ │ │ │ ├── extend-defined-aot.toml │ │ │ │ ├── extend-defined-table.toml │ │ │ │ └── extend-defined-table-with-subtable.toml │ │ │ │ ├── multiline-literal-str │ │ │ │ ├── file-ends-after-opening.toml │ │ │ │ └── unclosed.toml │ │ │ │ ├── array-of-tables │ │ │ │ ├── overwrite-bool-with-aot.toml │ │ │ │ └── overwrite-array-in-parent.toml │ │ │ │ ├── invalid-escaped-unicode.toml │ │ │ │ ├── invalid-comment-char.toml │ │ │ │ ├── missing-closing-square-bracket.toml │ │ │ │ ├── dates-and-times │ │ │ │ └── invalid-day.toml │ │ │ │ ├── inline-table-missing-comma.toml │ │ │ │ ├── missing-closing-double-square-bracket.toml │ │ │ │ └── unclosed-multiline-string.toml │ │ └── __main__.py │ ├── coding20731.py │ ├── badsyntax_3131.py │ ├── cjkencodings │ │ ├── big5hkscs-utf8.txt │ │ ├── gbk.txt │ │ ├── hz-utf8.txt │ │ ├── big5.txt │ │ ├── cp949.txt │ │ ├── johab.txt │ │ ├── euc_jp.txt │ │ ├── euc_kr.txt │ │ ├── gb18030.txt │ │ ├── gb2312.txt │ │ ├── hz.txt │ │ ├── big5hkscs.txt │ │ ├── shift_jis.txt │ │ ├── euc_jisx0213.txt │ │ ├── shift_jisx0213.txt │ │ ├── gb2312-utf8.txt │ │ ├── cp949-utf8.txt │ │ ├── johab-utf8.txt │ │ ├── iso2022_kr-utf8.txt │ │ ├── euc_kr-utf8.txt │ │ └── big5-utf8.txt │ ├── test_zoneinfo │ │ ├── __init__.py │ │ └── __main__.py │ ├── __init__.py │ ├── __main__.py │ ├── empty.vbs │ ├── pstats.pck │ ├── test_capi │ │ ├── __main__.py │ │ └── __init__.py │ ├── zipdir.zip │ ├── audiotest.au │ ├── imp_dummy.py │ ├── testtar.tar │ ├── bad_getattr.py │ ├── cfgparser.1 │ ├── sgml_input.html │ ├── test_warnings │ │ ├── __main__.py │ │ └── data │ │ │ ├── import_warning.py │ │ │ └── stacklevel.py │ ├── testtar.tar.xz │ ├── test_asyncio │ │ ├── __main__.py │ │ ├── echo2.py │ │ ├── echo.py │ │ ├── echo3.py │ │ └── __init__.py │ ├── badsyntax_pep3120.py │ ├── dtracedata │ │ ├── assert_usable.d │ │ ├── assert_usable.stp │ │ ├── gc.d.expected │ │ ├── gc.stp.expected │ │ ├── line.d │ │ ├── gc.py │ │ ├── line.py │ │ ├── gc.d │ │ └── instance.py │ ├── sndhdrdata │ │ ├── sndhdr.au │ │ ├── sndhdr.8svx │ │ ├── sndhdr.aifc │ │ ├── sndhdr.aiff │ │ ├── sndhdr.hcom │ │ ├── sndhdr.sndt │ │ ├── sndhdr.voc │ │ ├── sndhdr.wav │ │ └── README │ ├── test_peg_generator │ │ └── __main__.py │ ├── zip_cp437_header.zip │ ├── Sine-1000Hz-300ms.aif │ ├── dis_module.py │ ├── imghdrdata │ │ ├── python.bmp │ │ ├── python.exr │ │ ├── python.gif │ │ ├── python.jpg │ │ ├── python.pbm │ │ ├── python.pgm │ │ ├── python.png │ │ ├── python.ppm │ │ ├── python.ras │ │ ├── python.sgi │ │ ├── python.tiff │ │ ├── python.webp │ │ ├── python-raw.jpg │ │ └── python.xbm │ ├── inspect_stringized_annotations_2.py │ ├── test_json │ │ ├── __main__.py │ │ └── test_default.py │ ├── audiodata │ │ ├── pluck-alaw.aifc │ │ ├── pluck-pcm16.au │ │ ├── pluck-pcm16.wav │ │ ├── pluck-pcm24.au │ │ ├── pluck-pcm24.wav │ │ ├── pluck-pcm32.au │ │ ├── pluck-pcm32.wav │ │ ├── pluck-pcm8.aiff │ │ ├── pluck-pcm8.au │ │ ├── pluck-pcm8.wav │ │ ├── pluck-ulaw.aifc │ │ ├── pluck-ulaw.au │ │ ├── pluck-pcm16.aiff │ │ ├── pluck-pcm24.aiff │ │ └── pluck-pcm32.aiff │ ├── test_email │ │ ├── __main__.py │ │ └── data │ │ │ ├── sndhdr.au │ │ │ ├── python.bmp │ │ │ ├── python.exr │ │ │ ├── python.gif │ │ │ ├── python.jpg │ │ │ ├── python.pbm │ │ │ ├── python.pgm │ │ │ ├── python.png │ │ │ ├── python.ppm │ │ │ ├── python.ras │ │ │ ├── python.sgi │ │ │ ├── python.tiff │ │ │ ├── python.webp │ │ │ ├── sndhdr.aifc │ │ │ ├── sndhdr.aiff │ │ │ ├── sndhdr.wav │ │ │ ├── msg_35.txt │ │ │ ├── msg_11.txt │ │ │ ├── msg_23.txt │ │ │ ├── msg_24.txt │ │ │ ├── msg_41.txt │ │ │ ├── msg_40.txt │ │ │ ├── msg_18.txt │ │ │ ├── msg_31.txt │ │ │ ├── python.xbm │ │ │ ├── msg_37.txt │ │ │ ├── msg_17.txt │ │ │ ├── msg_34.txt │ │ │ └── msg_42.txt │ ├── test_source_encoding.py │ ├── test_tools │ │ └── __main__.py │ ├── ziptestdata │ │ ├── exe_with_z64 │ │ ├── exe_with_zip │ │ └── testdata_module_inside_zip.py │ ├── ann_module4.py │ ├── test_doctest3.txt │ ├── bad_getattr2.py │ ├── badsyntax_future10.py │ ├── encoded_modules │ │ ├── module_koi8_r.py │ │ └── module_iso_8859_1.py │ ├── data │ │ └── README │ ├── libregrtest │ │ └── __init__.py │ ├── test_sqlite3 │ │ └── __main__.py │ ├── bad_getattr3.py │ ├── ann_module6.py │ ├── subprocessdata │ │ ├── input_reader.py │ │ ├── qcat.py │ │ └── qgrep.py │ ├── badsyntax_future8.py │ ├── dataclass_textanno.py │ ├── badsyntax_future9.py │ ├── tracedmodules │ │ ├── testmod.py │ │ └── __init__.py │ ├── future_test2.py │ ├── badsyntax_future4.py │ ├── badsyntax_future6.py │ ├── gdb_sample.py │ ├── ann_module8.py │ ├── autotest.py │ ├── badsyntax_future3.py │ ├── test_ctypes.py │ ├── ann_module5.py │ ├── badsyntax_future5.py │ ├── good_getattr.py │ ├── badsyntax_future7.py │ ├── test_future4.py │ ├── secp384r1.pem │ ├── test_longexp.py │ ├── future_test1.py │ ├── test_doctest4.txt │ ├── sample_doctest_no_docstrings.py │ ├── doctest_aliases.py │ ├── test_unittest.py │ ├── ann_module7.py │ ├── test_multiprocessing_spawn.py │ ├── sample_doctest_no_doctests.py │ ├── test_lib2to3.py │ ├── test_doctest.txt │ ├── tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt │ ├── crashers │ │ ├── underlying_dict.py │ │ └── recursive_call.py │ ├── tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt │ └── mp_preload.py ├── urllib │ └── __init__.py ├── __phello__ │ ├── ham │ │ ├── eggs.py │ │ └── __init__.py │ ├── spam.py │ └── __init__.py ├── email │ └── mime │ │ └── __init__.py ├── pydoc_data │ └── __init__.py ├── tkinter │ ├── test │ │ ├── __init__.py │ │ ├── test_ttk │ │ │ └── __init__.py │ │ └── test_tkinter │ │ │ └── __init__.py │ └── __main__.py ├── lib2to3 │ ├── tests │ │ ├── data │ │ │ ├── fixers │ │ │ │ ├── myfixes │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── fix_first.py │ │ │ │ │ ├── fix_explicit.py │ │ │ │ │ ├── fix_last.py │ │ │ │ │ ├── fix_preorder.py │ │ │ │ │ └── fix_parrot.py │ │ │ │ ├── parrot_example.py │ │ │ │ ├── no_fixer_cls.py │ │ │ │ └── bad_order.py │ │ │ ├── bom.py │ │ │ ├── false_encoding.py │ │ │ ├── crlf.py │ │ │ ├── different_encoding.py │ │ │ └── README │ │ ├── __main__.py │ │ └── __init__.py │ ├── fixes │ │ ├── __init__.py │ │ ├── fix_imports2.py │ │ └── fix_basestring.py │ ├── __main__.py │ ├── pgen2 │ │ └── __init__.py │ └── __init__.py ├── concurrent │ └── __init__.py ├── distutils │ ├── tests │ │ ├── includetest.rst │ │ └── test_versionpredicate.py │ ├── debug.py │ └── README ├── xmlrpc │ └── __init__.py ├── unittest │ └── test │ │ ├── dummy.py │ │ └── testmock │ │ └── support.py ├── dbm │ ├── gnu.py │ └── ndbm.py ├── idlelib │ ├── Icons │ │ ├── tk.gif │ │ ├── idle.ico │ │ ├── folder.gif │ │ ├── idle_16.gif │ │ ├── idle_16.png │ │ ├── idle_32.gif │ │ ├── idle_32.png │ │ ├── idle_48.gif │ │ ├── idle_48.png │ │ ├── python.gif │ │ ├── idle_256.png │ │ ├── minusnode.gif │ │ ├── plusnode.gif │ │ └── openfolder.gif │ ├── idle_test │ │ ├── example_noext │ │ ├── example_stub.pyi │ │ └── test_util.py │ ├── idle.bat │ ├── __main__.py │ └── __init__.py ├── ctypes │ ├── test │ │ └── __main__.py │ └── macholib │ │ ├── fetch_macholib.bat │ │ ├── fetch_macholib │ │ ├── __init__.py │ │ └── README.ctypes ├── xml │ ├── etree │ │ └── cElementTree.py │ └── parsers │ │ ├── __init__.py │ │ └── expat.py ├── curses │ └── panel.py ├── ensurepip │ ├── __main__.py │ └── _bundled │ │ ├── pip-22.3.1-py3-none-any.whl │ │ └── setuptools-65.5.0-py3-none-any.whl ├── collections │ └── abc.py ├── site-packages │ └── README.txt ├── contextvars.py ├── asyncio │ └── log.py ├── venv │ └── __main__.py ├── turtledemo │ ├── turtle.cfg │ └── __init__.py ├── sre_parse.py ├── sre_compile.py ├── sre_constants.py ├── __hello__.py ├── tomllib │ ├── _types.py │ └── __init__.py ├── struct.py ├── decimal.py └── importlib │ ├── readers.py │ └── simple.py ├── PC ├── layout │ ├── __init__.py │ ├── support │ │ └── __init__.py │ └── __main__.py ├── icons │ ├── py.icns │ ├── py.ico │ ├── py.png │ ├── pyc.ico │ ├── pyd.ico │ ├── pyc.icns │ ├── pyd.icns │ ├── python.ico │ ├── setup.icns │ ├── setup.ico │ ├── idlex150.png │ ├── idlex44.png │ ├── launcher.ico │ ├── logox128.png │ ├── python.icns │ ├── pythonw.icns │ ├── pythonw.ico │ ├── launcher.icns │ ├── pythonwx150.png │ ├── pythonwx44.png │ ├── pythonx150.png │ ├── pythonx44.png │ └── pythonx50.png ├── classicAppCompat.cat ├── pyshellext.def └── empty.c ├── compiled_tests └── __init__.py ├── Mac ├── Resources │ ├── app │ │ ├── PkgInfo │ │ └── Resources │ │ │ ├── PythonApplet.icns │ │ │ └── PythonInterpreter.icns │ └── iconsrc │ │ ├── IDE.psd │ │ ├── PythonIcon.psd │ │ ├── PythonApplet.psd │ │ ├── PythonSource.psd │ │ ├── PythonWSource.psd │ │ ├── PackageManager.psd │ │ └── PythonCompiled.psd ├── IDLE │ └── IDLE.app │ │ └── Contents │ │ ├── PkgInfo │ │ └── Resources │ │ ├── IDLE.icns │ │ ├── PythonSource.icns │ │ └── PythonCompiled.icns ├── Icons │ ├── IDLE.icns │ ├── Disk Image.icns │ ├── Python Folder.icns │ ├── PythonCompiled.icns │ ├── PythonLauncher.icns │ ├── PythonSource.icns │ └── ReadMe.txt ├── BuildScript │ └── resources │ │ └── background.jpg └── PythonLauncher │ ├── English.lproj │ ├── MainMenu.nib │ │ ├── objects.nib │ │ └── classes.nib │ ├── MyDocument.nib │ │ └── objects.nib │ └── PreferenceWindow.nib │ │ └── objects.nib │ ├── doscript.h │ ├── MyAppDelegate.h │ └── main.m ├── Tools ├── c-analyzer │ ├── c_common │ │ ├── info.py │ │ ├── show.py │ │ ├── __init__.py │ │ └── misc.py │ ├── cpython │ │ └── known.tsv │ ├── c_parser │ │ └── parser │ │ │ └── _alt.py │ └── c-analyzer.py ├── peg_generator │ ├── pegen │ │ └── __init__.py │ ├── peg_extension │ │ └── __init__.py │ ├── requirements.pip │ ├── scripts │ │ └── __init__.py │ ├── .gitignore │ ├── data │ │ ├── xxl.zip │ │ └── cprog.py │ └── pyproject.toml ├── freeze │ ├── hello.py │ ├── test │ │ ├── ok.py │ │ └── Makefile │ └── flag.py ├── msi │ ├── bundle │ │ ├── bootstrap │ │ │ └── pch.cpp │ │ └── SideBar.png │ ├── lib │ │ └── lib_en-US.wxl │ ├── core │ │ └── core_en-US.wxl │ ├── dev │ │ └── dev_en-US.wxl │ ├── tools │ │ └── tools_en-US.wxl │ ├── ucrt │ │ └── ucrt_en-US.wxl │ ├── pip │ │ └── pip_en-US.wxl │ ├── path │ │ └── path_en-US.wxl │ └── appendpath │ │ └── appendpath_en-US.wxl ├── i18n │ └── pygettext.py ├── scripts │ ├── pydoc3 │ ├── 2to3 │ ├── idle3 │ └── reindent-rst.py ├── buildbot │ └── buildmsi.bat ├── wasm │ ├── .editorconfig │ └── Setup.local.example ├── unicode │ └── genwincodecs.bat └── importbench │ └── README ├── Misc ├── requirements-test.txt ├── Porting ├── rhel7 │ ├── openssl.pc │ ├── tcl.pc │ └── tk.pc ├── NEWS.d │ ├── next │ │ ├── Library │ │ │ ├── 2023-04-04-12-43-38.gh-issue-93910.jurMzv.rst │ │ │ ├── 2023-04-12-17-59-55.gh-issue-103365.UBEE0U.rst │ │ │ ├── README.rst │ │ │ └── 2023-04-15-12-19-14.gh-issue-103556.TEf-2m.rst │ │ ├── Tests │ │ │ ├── 2023-04-08-00-50-23.gh-issue-103329.M38tqF.rst │ │ │ ├── README.rst │ │ │ └── 2022-11-06-18-42-38.gh-issue-75729.uGYJrv.rst │ │ ├── Build │ │ │ ├── README.rst │ │ │ └── 2023-02-11-05-31-05.gh-issue-99069.X4LDvY.rst │ │ ├── C API │ │ │ └── README.rst │ │ ├── IDLE │ │ │ └── README.rst │ │ ├── macOS │ │ │ └── README.rst │ │ ├── Security │ │ │ └── README.rst │ │ ├── Windows │ │ │ ├── README.rst │ │ │ └── 2023-03-18-21-38-00.gh-issue-88013.Z3loxC.rst │ │ ├── Documentation │ │ │ └── README.rst │ │ ├── Tools-Demos │ │ │ └── README.rst │ │ └── Core and Builtins │ │ │ ├── README.rst │ │ │ ├── 2023-04-01-00-46-31.gh-issue-102700.493NB4.rst │ │ │ └── 2023-04-08-17-13-07.gh-issue-103242.ysI1b3.rst │ ├── 3.6.0.rst │ ├── 3.6.2.rst │ ├── 3.5.3.rst │ ├── 3.5.5.rst │ ├── 3.6.6.rst │ ├── 3.5.0.rst │ ├── 3.6.4.rst │ ├── 3.5.4.rst │ ├── 3.5.0rc4.rst │ ├── 3.6.5.rst │ └── 3.5.1.rst ├── python.pc.in └── python-embed.pc.in ├── PCbuild ├── build_env.bat ├── env.ps1 ├── clean.bat ├── Directory.Build.targets └── Directory.Build.props ├── Modules ├── _xxtestfuzz │ ├── fuzz_struct_unpack_corpus │ │ ├── long_zero │ │ ├── hello_string │ │ └── varied_format_string │ ├── fuzz_json_loads_corpus │ │ ├── empty_array.json │ │ ├── empty_object.json │ │ ├── simple_array.json │ │ ├── pass2.json │ │ └── pass3.json │ ├── fuzz_sre_compile_corpus │ │ ├── anchor_links │ │ ├── characters │ │ ├── isbn │ │ └── phone_number │ ├── fuzz_csv_reader_corpus │ │ └── test.csv │ └── fuzz_tests.txt ├── _ctypes │ ├── _ctypes_test.h │ ├── libffi_osx │ │ └── README.pyobjc │ └── darwin │ │ └── README.ctypes ├── README ├── _decimal │ └── libmpdec │ │ └── examples │ │ └── README.txt ├── _sha3 │ └── README.txt ├── getpath_noop.c └── clinic │ └── _typingmodule.c.h ├── Objects ├── README └── stringlib │ └── undef.h ├── Python ├── README ├── getplatform.c ├── asdl.c ├── dynload_stub.c ├── deepfreeze │ └── README.txt └── frozen_modules │ └── README.txt ├── Programs ├── README └── python.c ├── Doc ├── _static │ └── og-image.png ├── library │ ├── tk_msg.png │ ├── tulip_coro.dia │ ├── tulip_coro.png │ ├── turtle-star.pdf │ ├── turtle-star.png │ ├── hashlib-blake2-tree.png │ ├── pathlib-inheritance.png │ ├── concurrent.rst │ ├── windows.rst │ ├── fileformats.rst │ ├── mm.rst │ ├── netdata.rst │ └── functional.rst ├── howto │ └── logging_flow.png ├── faq │ ├── python-video-icon.png │ └── index.rst ├── using │ └── win_installer.png ├── whatsnew │ └── changelog.rst ├── tools │ └── templates │ │ └── opensearch.xml ├── includes │ ├── turtle-star.py │ ├── wasm-notavail.rst │ └── setup.py ├── distutils │ ├── uploading.rst │ └── _setuptools_disclaimer.rst └── c-api │ └── objimpl.rst ├── .github ├── ISSUE_TEMPLATE │ ├── documentation.md │ └── config.yml ├── workflows │ └── regen-abidump.sh └── dependabot.yml ├── .editorconfig └── Include ├── cpython └── fileutils.h ├── internal └── pycore_pyhash.h ├── bltinmodule.h ├── enumobject.h ├── osmodule.h ├── README.rst ├── genericaliasobject.h └── frameobject.h /Lib/test/nullcert.pem: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/urllib/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PC/layout/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/__phello__/ham/eggs.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/email/mime/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/pydoc_data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/leakers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/tkinter/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /compiled_tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/__phello__/ham/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Mac/Resources/app/PkgInfo: -------------------------------------------------------------------------------- 1 | APPLPytX -------------------------------------------------------------------------------- /PC/layout/support/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Tools/c-analyzer/c_common/info.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Tools/c-analyzer/c_common/show.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/typinganndata/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/tkinter/test/test_ttk/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Tools/peg_generator/pegen/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/unwritable/x.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data01/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data02/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data03/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/world.txt: -------------------------------------------------------------------------------- 1 | world -------------------------------------------------------------------------------- /Lib/tkinter/test/test_tkinter/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Mac/IDLE/IDLE.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPL???? -------------------------------------------------------------------------------- /Lib/test/test_import/data/package/submodule.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/package2/submodule2.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data01/binary.file: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Lib/test/test_importlib/data02/one/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data02/two/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/resources/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/zipdata01/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/zipdata02/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Misc/requirements-test.txt: -------------------------------------------------------------------------------- 1 | tzdata==2020.3 2 | -------------------------------------------------------------------------------- /Tools/peg_generator/peg_extension/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/fixers/myfixes/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/bad_coding.py: -------------------------------------------------------------------------------- 1 | # -*- coding: uft-8 -*- 2 | -------------------------------------------------------------------------------- /Lib/test/relimport.py: -------------------------------------------------------------------------------- 1 | from .test_import import * 2 | -------------------------------------------------------------------------------- /PCbuild/build_env.bat: -------------------------------------------------------------------------------- 1 | @%comspec% /k env.bat %* 2 | -------------------------------------------------------------------------------- /Tools/freeze/hello.py: -------------------------------------------------------------------------------- 1 | print('Hello world...') 2 | -------------------------------------------------------------------------------- /Lib/test/bad_coding2.py: -------------------------------------------------------------------------------- 1 | #coding: utf8 2 | print('我') 3 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data01/subdirectory/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data03/namespace/resource1.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespacedata01/binary.file: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/no-newlines.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /Tools/freeze/test/ok.py: -------------------------------------------------------------------------------- 1 | import sys 2 | sys.exit(0) 3 | -------------------------------------------------------------------------------- /Tools/msi/bundle/bootstrap/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /Lib/test/coding20731.py: -------------------------------------------------------------------------------- 1 | #coding:latin1 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/subpkg2/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data01/subdirectory/binary.file: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Lib/test/test_importlib/data03/namespace/portion1/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data03/namespace/portion2/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/array/unclosed-empty.toml: -------------------------------------------------------------------------------- 1 | v=[ -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/trailing-comma.toml: -------------------------------------------------------------------------------- 1 | arr=[1,] -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_struct_unpack_corpus/long_zero: -------------------------------------------------------------------------------- 1 | >L -------------------------------------------------------------------------------- /Objects/README: -------------------------------------------------------------------------------- 1 | Source files for various builtin objects 2 | -------------------------------------------------------------------------------- /Lib/concurrent/__init__.py: -------------------------------------------------------------------------------- 1 | # This directory is a Python package. 2 | -------------------------------------------------------------------------------- /Lib/distutils/tests/includetest.rst: -------------------------------------------------------------------------------- 1 | This should be included. 2 | -------------------------------------------------------------------------------- /Lib/test/badsyntax_3131.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | € = 2 3 | -------------------------------------------------------------------------------- /Lib/test/cjkencodings/big5hkscs-utf8.txt: -------------------------------------------------------------------------------- 1 | 𠄌Ě鵮罓洆 2 | ÊÊ̄ê êê̄ 3 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data01/utf-8.file: -------------------------------------------------------------------------------- 1 | Hello, UTF-8 world! 2 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data02/one/resource1.txt: -------------------------------------------------------------------------------- 1 | one resource 2 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data02/two/resource2.txt: -------------------------------------------------------------------------------- 1 | two resource 2 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/array/file-end-after-val.toml: -------------------------------------------------------------------------------- 1 | a=[1 -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/non-scalar-escaped.toml: -------------------------------------------------------------------------------- 1 | a="\ud800" -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/table/eof-after-opening.toml: -------------------------------------------------------------------------------- 1 | [ -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/boolean.toml: -------------------------------------------------------------------------------- 1 | 'a'=true 2 | "b"=false -------------------------------------------------------------------------------- /Lib/test/test_zoneinfo/__init__.py: -------------------------------------------------------------------------------- 1 | from .test_zoneinfo import * 2 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inC14N6_c14nDefault.xml: -------------------------------------------------------------------------------- 1 | © -------------------------------------------------------------------------------- /Lib/xmlrpc/__init__.py: -------------------------------------------------------------------------------- 1 | # This directory is a Python package. 2 | -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_json_loads_corpus/empty_array.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_json_loads_corpus/empty_object.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_struct_unpack_corpus/hello_string: -------------------------------------------------------------------------------- 1 | 6sHello -------------------------------------------------------------------------------- /Tools/c-analyzer/c_common/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | NOT_SET = object() 3 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/bom.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | print "BOM BOOM!" 3 | -------------------------------------------------------------------------------- /Lib/test/__init__.py: -------------------------------------------------------------------------------- 1 | # Dummy file to make this directory a package. 2 | -------------------------------------------------------------------------------- /Lib/test/__main__.py: -------------------------------------------------------------------------------- 1 | from test.libregrtest import main 2 | main() 3 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/array/unclosed-after-item.toml: -------------------------------------------------------------------------------- 1 | v=[1, -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/inline-table/unclosed-empty.toml: -------------------------------------------------------------------------------- 1 | a={ -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/invalid-hex.toml: -------------------------------------------------------------------------------- 1 | hex = 0xgabba00f1 2 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/keys-and-vals/ends-early.toml: -------------------------------------------------------------------------------- 1 | fs.fw -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/empty-inline-table.json: -------------------------------------------------------------------------------- 1 | {"empty": {}} -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/no-newlines.toml: -------------------------------------------------------------------------------- 1 | #no newlines at all here -------------------------------------------------------------------------------- /Tools/freeze/flag.py: -------------------------------------------------------------------------------- 1 | initialized = True 2 | print("Hello world!") 3 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/fixers/parrot_example.py: -------------------------------------------------------------------------------- 1 | def parrot(): 2 | pass 3 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/basic2.py: -------------------------------------------------------------------------------- 1 | from . import basic 2 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespacedata01/utf-8.file: -------------------------------------------------------------------------------- 1 | Hello, UTF-8 world! 2 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/boolean/invalid-false-casing.toml: -------------------------------------------------------------------------------- 1 | val=falsE -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/boolean/invalid-true-casing.toml: -------------------------------------------------------------------------------- 1 | val=trUe -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/keys-and-vals/no-value.toml: -------------------------------------------------------------------------------- 1 | why-no-value= -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/keys-and-vals/only-ws-after-dot.toml: -------------------------------------------------------------------------------- 1 | fs. -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/literal-str/unclosed.toml: -------------------------------------------------------------------------------- 1 | unclosed='dwdd -------------------------------------------------------------------------------- /Lib/lib2to3/fixes/__init__.py: -------------------------------------------------------------------------------- 1 | # Dummy file to make this directory a package. 2 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/util.py: -------------------------------------------------------------------------------- 1 | def util(): 2 | pass 3 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test/empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/array-missing-comma.toml: -------------------------------------------------------------------------------- 1 | arrr = [true false] 2 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/inline-table/file-end-after-key-val.toml: -------------------------------------------------------------------------------- 1 | a={b=1 -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/unclosed-string.toml: -------------------------------------------------------------------------------- 1 | "a-string".must-be = "closed -------------------------------------------------------------------------------- /Lib/unittest/test/dummy.py: -------------------------------------------------------------------------------- 1 | # Empty module for testing the loading of modules 2 | -------------------------------------------------------------------------------- /Misc/Porting: -------------------------------------------------------------------------------- 1 | This document is moved to https://devguide.python.org/porting/ 2 | -------------------------------------------------------------------------------- /Python/README: -------------------------------------------------------------------------------- 1 | Miscellaneous source files for the main Python shared library 2 | -------------------------------------------------------------------------------- /Tools/peg_generator/requirements.pip: -------------------------------------------------------------------------------- 1 | memory-profiler==0.57.0 2 | psutil==5.7.0 3 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/false_encoding.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | print '#coding=0' 3 | -------------------------------------------------------------------------------- /Lib/test/empty.vbs: -------------------------------------------------------------------------------- 1 | 'Empty VBS file, does nothing. Helper for Lib\test\test_startfile.py. -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/indirect.py: -------------------------------------------------------------------------------- 1 | from . import basic, basic2 2 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/source.py: -------------------------------------------------------------------------------- 1 | from . import use 2 | spam = 1 3 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/subpkg/util.py: -------------------------------------------------------------------------------- 1 | def util(): 2 | pass 3 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/portion1/foo/one.py: -------------------------------------------------------------------------------- 1 | attr = 'portion1 foo one' 2 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/portion2/foo/two.py: -------------------------------------------------------------------------------- 1 | attr = 'portion2 foo two' 2 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/inline-table/mutate.toml: -------------------------------------------------------------------------------- 1 | a = { b = 1 } 2 | a.b = 2 -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/keys-and-vals/ends-early-table-def.toml: -------------------------------------------------------------------------------- 1 | [fwfw.wafw -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/multiline-basic-str/file-ends-after-opening.toml: -------------------------------------------------------------------------------- 1 | a=""" -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/dates-and-times/localtime.toml: -------------------------------------------------------------------------------- 1 | t=00:00:00.99999999999999 -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_sre_compile_corpus/anchor_links: -------------------------------------------------------------------------------- 1 | XX] 2 | -------------------------------------------------------------------------------- /PC/icons/py.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/py.icns -------------------------------------------------------------------------------- /PC/icons/py.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/py.ico -------------------------------------------------------------------------------- /PC/icons/py.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/py.png -------------------------------------------------------------------------------- /PC/icons/pyc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/pyc.ico -------------------------------------------------------------------------------- /PC/icons/pyd.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/pyd.ico -------------------------------------------------------------------------------- /Programs/README: -------------------------------------------------------------------------------- 1 | Source files for binary executables (as opposed to shared modules) 2 | -------------------------------------------------------------------------------- /Tools/peg_generator/scripts/__init__.py: -------------------------------------------------------------------------------- 1 | # This exists to let mypy find modules here 2 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/crlf.py: -------------------------------------------------------------------------------- 1 | print "hi" 2 | 3 | print "Like bad Windows newlines?" 4 | -------------------------------------------------------------------------------- /Lib/test/pstats.pck: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/pstats.pck -------------------------------------------------------------------------------- /Lib/test/test_capi/__main__.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | 3 | unittest.main('test.test_capi') 4 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/use.py: -------------------------------------------------------------------------------- 1 | from . import source 2 | source.spam 3 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/basic-str-ends-in-escape.toml: -------------------------------------------------------------------------------- 1 | "backslash is the last char\ -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/dotted-keys/access-non-table.toml: -------------------------------------------------------------------------------- 1 | a = false 2 | a.b = true -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/multiline-basic-str/escape-only.toml: -------------------------------------------------------------------------------- 1 | bee = """\""" 2 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/multiline-literal-str/file-ends-after-opening.toml: -------------------------------------------------------------------------------- 1 | a=''' -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/table/redefine-1.toml: -------------------------------------------------------------------------------- 1 | [t1] 2 | t2.t3.v = 0 3 | [t1.t2] 4 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/hex-char.toml: -------------------------------------------------------------------------------- 1 | a="\u0061" 2 | b="\u0062" 3 | c="\U00000063" -------------------------------------------------------------------------------- /Lib/test/zipdir.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/zipdir.zip -------------------------------------------------------------------------------- /Mac/Icons/IDLE.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Icons/IDLE.icns -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_json_loads_corpus/simple_array.json: -------------------------------------------------------------------------------- 1 | [1, 2, 3, "abcd", "xyz"] 2 | -------------------------------------------------------------------------------- /PC/icons/pyc.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/pyc.icns -------------------------------------------------------------------------------- /PC/icons/pyd.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/pyd.icns -------------------------------------------------------------------------------- /PC/icons/python.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/python.ico -------------------------------------------------------------------------------- /PC/icons/setup.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/setup.icns -------------------------------------------------------------------------------- /PC/icons/setup.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/setup.ico -------------------------------------------------------------------------------- /Tools/peg_generator/.gitignore: -------------------------------------------------------------------------------- 1 | peg_extension/parse.c 2 | data/xxl.py 3 | venv/ 4 | @data 5 | -------------------------------------------------------------------------------- /Lib/dbm/gnu.py: -------------------------------------------------------------------------------- 1 | """Provide the _gdbm module as a dbm submodule.""" 2 | 3 | from _gdbm import * 4 | -------------------------------------------------------------------------------- /Lib/dbm/ndbm.py: -------------------------------------------------------------------------------- 1 | """Provide the _dbm module as a dbm submodule.""" 2 | 3 | from _dbm import * 4 | -------------------------------------------------------------------------------- /Lib/test/audiotest.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiotest.au -------------------------------------------------------------------------------- /Lib/test/imp_dummy.py: -------------------------------------------------------------------------------- 1 | # Fodder for test of issue24748 in test_imp 2 | 3 | dummy_name = True 4 | -------------------------------------------------------------------------------- /Lib/test/test_import/__main__.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | 3 | unittest.main('test.test_import') 4 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/from_cycle1.py: -------------------------------------------------------------------------------- 1 | from .from_cycle2 import a 2 | b = 1 3 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/from_cycle2.py: -------------------------------------------------------------------------------- 1 | from .from_cycle1 import b 2 | a = 1 3 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/package/__init__.py: -------------------------------------------------------------------------------- 1 | import package.submodule 2 | package.submodule 3 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/both_portions/foo/one.py: -------------------------------------------------------------------------------- 1 | attr = 'both_portions foo one' 2 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/both_portions/foo/two.py: -------------------------------------------------------------------------------- 1 | attr = 'both_portions foo two' 2 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/project1/parent/child/one.py: -------------------------------------------------------------------------------- 1 | attr = 'parent child one' 2 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/project2/parent/child/two.py: -------------------------------------------------------------------------------- 1 | attr = 'parent child two' 2 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/array-of-tables/overwrite-bool-with-aot.toml: -------------------------------------------------------------------------------- 1 | a=true 2 | [[a]] -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/inline-table/define-twice.toml: -------------------------------------------------------------------------------- 1 | table = { dupe = 1, dupe = 2 } -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/invalid-escaped-unicode.toml: -------------------------------------------------------------------------------- 1 | escaped-unicode = "\uabag" 2 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/multiline-literal-str/unclosed.toml: -------------------------------------------------------------------------------- 1 | bee = ''' 2 | hee 3 | gee '' -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/table/redefine-2.toml: -------------------------------------------------------------------------------- 1 | [t1] 2 | t2.t3.v = 0 3 | [t1.t2.t3] 4 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/empty-inline-table.toml: -------------------------------------------------------------------------------- 1 | empty ={ }#nothing here 2 | -------------------------------------------------------------------------------- /Lib/test/testtar.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/testtar.tar -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inC14N5_c14nTrim.xml: -------------------------------------------------------------------------------- 1 | Hello, world! -------------------------------------------------------------------------------- /Misc/rhel7/openssl.pc: -------------------------------------------------------------------------------- 1 | Name: OpenSSL 2 | Version: 1.1.1k 3 | Requires: libssl11 libcrypto11 4 | -------------------------------------------------------------------------------- /PC/icons/idlex150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/idlex150.png -------------------------------------------------------------------------------- /PC/icons/idlex44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/idlex44.png -------------------------------------------------------------------------------- /PC/icons/launcher.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/launcher.ico -------------------------------------------------------------------------------- /PC/icons/logox128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/logox128.png -------------------------------------------------------------------------------- /PC/icons/python.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/python.icns -------------------------------------------------------------------------------- /PC/icons/pythonw.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/pythonw.icns -------------------------------------------------------------------------------- /PC/icons/pythonw.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/pythonw.ico -------------------------------------------------------------------------------- /Doc/_static/og-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Doc/_static/og-image.png -------------------------------------------------------------------------------- /Doc/library/tk_msg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Doc/library/tk_msg.png -------------------------------------------------------------------------------- /Lib/idlelib/Icons/tk.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/idlelib/Icons/tk.gif -------------------------------------------------------------------------------- /Lib/lib2to3/tests/__main__.py: -------------------------------------------------------------------------------- 1 | from . import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/test/bad_getattr.py: -------------------------------------------------------------------------------- 1 | x = 1 2 | 3 | __getattr__ = "Surprise!" 4 | __dir__ = "Surprise again!" 5 | -------------------------------------------------------------------------------- /Lib/test/cfgparser.1: -------------------------------------------------------------------------------- 1 | # Also used by idlelib.test_idle.test_config. 2 | [Foo Bar] 3 | foo=newbar 4 | -------------------------------------------------------------------------------- /Lib/test/sgml_input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/sgml_input.html -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test.py: -------------------------------------------------------------------------------- 1 | attr = 'in module' 2 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/one.py: -------------------------------------------------------------------------------- 1 | attr = 'portion1 foo one' 2 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/project3/parent/child/three.py: -------------------------------------------------------------------------------- 1 | attr = 'parent child three' 2 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/inline-table/overwrite-implicitly.toml: -------------------------------------------------------------------------------- 1 | a = { b = 1, b.c = 2 } 2 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/invalid-comment-char.toml: -------------------------------------------------------------------------------- 1 | # form feed ( ) not allowed in comments -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/keys-and-vals/overwrite-with-deep-table.toml: -------------------------------------------------------------------------------- 1 | a=1 2 | [a.b.c.d] 3 | -------------------------------------------------------------------------------- /Lib/test/test_warnings/__main__.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | 3 | unittest.main('test.test_warnings') 4 | -------------------------------------------------------------------------------- /Lib/test/test_zoneinfo/__main__.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | 3 | unittest.main('test.test_zoneinfo') 4 | -------------------------------------------------------------------------------- /Lib/test/testtar.tar.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/testtar.tar.xz -------------------------------------------------------------------------------- /PC/classicAppCompat.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/classicAppCompat.cat -------------------------------------------------------------------------------- /PC/icons/launcher.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/launcher.icns -------------------------------------------------------------------------------- /PC/icons/pythonwx150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/pythonwx150.png -------------------------------------------------------------------------------- /PC/icons/pythonwx44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/pythonwx44.png -------------------------------------------------------------------------------- /PC/icons/pythonx150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/pythonx150.png -------------------------------------------------------------------------------- /PC/icons/pythonx44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/pythonx44.png -------------------------------------------------------------------------------- /PC/icons/pythonx50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/PC/icons/pythonx50.png -------------------------------------------------------------------------------- /Tools/i18n/pygettext.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Tools/i18n/pygettext.py -------------------------------------------------------------------------------- /Doc/howto/logging_flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Doc/howto/logging_flow.png -------------------------------------------------------------------------------- /Doc/library/tulip_coro.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Doc/library/tulip_coro.dia -------------------------------------------------------------------------------- /Doc/library/tulip_coro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Doc/library/tulip_coro.png -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/idlelib/Icons/idle.ico -------------------------------------------------------------------------------- /Lib/lib2to3/__main__.py: -------------------------------------------------------------------------------- 1 | import sys 2 | from .main import main 3 | 4 | sys.exit(main("lib2to3.fixes")) 5 | -------------------------------------------------------------------------------- /Lib/test/test_asyncio/__main__.py: -------------------------------------------------------------------------------- 1 | from . import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Mac/Icons/Disk Image.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Icons/Disk Image.icns -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_json_loads_corpus/pass2.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_sre_compile_corpus/characters: -------------------------------------------------------------------------------- 1 | XX^(Tim|Robert)\s+the\s+(Enchanter|Shrubber)$ 2 | -------------------------------------------------------------------------------- /Doc/faq/python-video-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Doc/faq/python-video-icon.png -------------------------------------------------------------------------------- /Doc/library/turtle-star.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Doc/library/turtle-star.pdf -------------------------------------------------------------------------------- /Doc/library/turtle-star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Doc/library/turtle-star.png -------------------------------------------------------------------------------- /Doc/using/win_installer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Doc/using/win_installer.png -------------------------------------------------------------------------------- /Lib/ctypes/test/__main__.py: -------------------------------------------------------------------------------- 1 | from ctypes.test import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/idlelib/Icons/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/idlelib/Icons/folder.gif -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle_16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/idlelib/Icons/idle_16.gif -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/idlelib/Icons/idle_16.png -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle_32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/idlelib/Icons/idle_32.gif -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/idlelib/Icons/idle_32.png -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle_48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/idlelib/Icons/idle_48.gif -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/idlelib/Icons/idle_48.png -------------------------------------------------------------------------------- /Lib/idlelib/Icons/python.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/idlelib/Icons/python.gif -------------------------------------------------------------------------------- /Lib/test/badsyntax_pep3120.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/badsyntax_pep3120.py -------------------------------------------------------------------------------- /Lib/test/cjkencodings/gbk.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/cjkencodings/gbk.txt -------------------------------------------------------------------------------- /Lib/test/cjkencodings/hz-utf8.txt: -------------------------------------------------------------------------------- 1 | This sentence is in ASCII. 2 | The next sentence is in GB.己所不欲,勿施於人。Bye. 3 | -------------------------------------------------------------------------------- /Lib/test/dtracedata/assert_usable.d: -------------------------------------------------------------------------------- 1 | BEGIN 2 | { 3 | printf("probe: success\n"); 4 | exit(0); 5 | } 6 | -------------------------------------------------------------------------------- /Lib/test/dtracedata/assert_usable.stp: -------------------------------------------------------------------------------- 1 | probe begin 2 | { 3 | println("probe: success") 4 | exit () 5 | } 6 | -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/sndhdrdata/sndhdr.au -------------------------------------------------------------------------------- /Lib/test/test_importlib/__main__.py: -------------------------------------------------------------------------------- 1 | from . import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/test/test_peg_generator/__main__.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | from . import load_tests 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/dotted-keys/extend-defined-aot.toml: -------------------------------------------------------------------------------- 1 | [[tab.arr]] 2 | [tab] 3 | arr.val1=1 4 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/missing-closing-square-bracket.toml: -------------------------------------------------------------------------------- 1 | [closing-bracket.missingö 2 | blaa=2 3 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/inC14N6.xml: -------------------------------------------------------------------------------- 1 | 2 | © 3 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inC14N5_c14nDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | Hello, world! 3 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/test.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/xmltestdata/test.xml -------------------------------------------------------------------------------- /Lib/test/zip_cp437_header.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/zip_cp437_header.zip -------------------------------------------------------------------------------- /Mac/Icons/Python Folder.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Icons/Python Folder.icns -------------------------------------------------------------------------------- /Mac/Icons/PythonCompiled.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Icons/PythonCompiled.icns -------------------------------------------------------------------------------- /Mac/Icons/PythonLauncher.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Icons/PythonLauncher.icns -------------------------------------------------------------------------------- /Mac/Icons/PythonSource.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Icons/PythonSource.icns -------------------------------------------------------------------------------- /Mac/Resources/iconsrc/IDE.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Resources/iconsrc/IDE.psd -------------------------------------------------------------------------------- /Tools/msi/bundle/SideBar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Tools/msi/bundle/SideBar.png -------------------------------------------------------------------------------- /Lib/ctypes/macholib/fetch_macholib.bat: -------------------------------------------------------------------------------- 1 | svn export --force http://svn.red-bean.com/bob/macholib/trunk/macholib/ . 2 | -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/idlelib/Icons/idle_256.png -------------------------------------------------------------------------------- /Lib/idlelib/Icons/minusnode.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/idlelib/Icons/minusnode.gif -------------------------------------------------------------------------------- /Lib/idlelib/Icons/plusnode.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/idlelib/Icons/plusnode.gif -------------------------------------------------------------------------------- /Lib/test/Sine-1000Hz-300ms.aif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/Sine-1000Hz-300ms.aif -------------------------------------------------------------------------------- /Lib/test/cjkencodings/big5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/cjkencodings/big5.txt -------------------------------------------------------------------------------- /Lib/test/cjkencodings/cp949.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/cjkencodings/cp949.txt -------------------------------------------------------------------------------- /Lib/test/cjkencodings/johab.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/cjkencodings/johab.txt -------------------------------------------------------------------------------- /Lib/test/dis_module.py: -------------------------------------------------------------------------------- 1 | 2 | # A simple module for testing the dis module. 3 | 4 | def f(): pass 5 | def g(): pass 6 | -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/imghdrdata/python.bmp -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.exr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/imghdrdata/python.exr -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/imghdrdata/python.gif -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/imghdrdata/python.jpg -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.pbm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/imghdrdata/python.pbm -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.pgm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/imghdrdata/python.pgm -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/imghdrdata/python.png -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/imghdrdata/python.ppm -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.ras: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/imghdrdata/python.ras -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.sgi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/imghdrdata/python.sgi -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/imghdrdata/python.tiff -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/imghdrdata/python.webp -------------------------------------------------------------------------------- /Lib/test/inspect_stringized_annotations_2.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | def foo(a, b, c): pass 4 | -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.8svx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/sndhdrdata/sndhdr.8svx -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.aifc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/sndhdrdata/sndhdr.aifc -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/sndhdrdata/sndhdr.aiff -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.hcom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/sndhdrdata/sndhdr.hcom -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.sndt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/sndhdrdata/sndhdr.sndt -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.voc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/sndhdrdata/sndhdr.voc -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/sndhdrdata/sndhdr.wav -------------------------------------------------------------------------------- /Lib/test/test_importlib/builtin/__main__.py: -------------------------------------------------------------------------------- 1 | from . import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/frozen/__main__.py: -------------------------------------------------------------------------------- 1 | from . import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/import_/__main__.py: -------------------------------------------------------------------------------- 1 | from . import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/source/__main__.py: -------------------------------------------------------------------------------- 1 | from . import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/test/test_json/__main__.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | from test.test_json import load_tests 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/__main__.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | 3 | from . import load_tests 4 | 5 | 6 | unittest.main() 7 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/dates-and-times/invalid-day.toml: -------------------------------------------------------------------------------- 1 | "only 28 or 29 days in february" = 1988-02-30 2 | -------------------------------------------------------------------------------- /Modules/_ctypes/_ctypes_test.h: -------------------------------------------------------------------------------- 1 | extern int _testfunc_i_bhilfd(char b, short h, int i, long l, float f, double d); 2 | -------------------------------------------------------------------------------- /Lib/idlelib/Icons/openfolder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/idlelib/Icons/openfolder.gif -------------------------------------------------------------------------------- /Lib/idlelib/idle_test/example_noext: -------------------------------------------------------------------------------- 1 | #!usr/bin/env python 2 | 3 | def example_function(some_argument): 4 | pass 5 | -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-alaw.aifc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-alaw.aifc -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm16.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-pcm16.au -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm16.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-pcm16.wav -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm24.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-pcm24.au -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm24.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-pcm24.wav -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm32.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-pcm32.au -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm32.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-pcm32.wav -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm8.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-pcm8.aiff -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm8.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-pcm8.au -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm8.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-pcm8.wav -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-ulaw.aifc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-ulaw.aifc -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-ulaw.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-ulaw.au -------------------------------------------------------------------------------- /Lib/test/cjkencodings/euc_jp.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/cjkencodings/euc_jp.txt -------------------------------------------------------------------------------- /Lib/test/cjkencodings/euc_kr.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/cjkencodings/euc_kr.txt -------------------------------------------------------------------------------- /Lib/test/cjkencodings/gb18030.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/cjkencodings/gb18030.txt -------------------------------------------------------------------------------- /Lib/test/cjkencodings/gb2312.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/cjkencodings/gb2312.txt -------------------------------------------------------------------------------- /Lib/test/cjkencodings/hz.txt: -------------------------------------------------------------------------------- 1 | This sentence is in ASCII. 2 | The next sentence is in GB.~{<:Ky2;S{#,NpJ)l6HK!#~}Bye. 3 | -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python-raw.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/imghdrdata/python-raw.jpg -------------------------------------------------------------------------------- /Lib/test/test_email/__main__.py: -------------------------------------------------------------------------------- 1 | from test.test_email import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/sndhdr.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/sndhdr.au -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/binding2.py: -------------------------------------------------------------------------------- 1 | import test.test_import.data.circular_imports.binding as binding 2 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/subpkg/subpackage2.py: -------------------------------------------------------------------------------- 1 | #from .util import util 2 | from .. import subpackage 3 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/extension/__main__.py: -------------------------------------------------------------------------------- 1 | from . import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/test/test_source_encoding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_source_encoding.py -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/dotted-keys/extend-defined-table.toml: -------------------------------------------------------------------------------- 1 | [a.b.c] 2 | z = 9 3 | [a] 4 | b.c.t = 9 5 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/inline-table-missing-comma.toml: -------------------------------------------------------------------------------- 1 | arrr = { comma-missing = true valid-toml = false } 2 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/inline-table/define-twice-in-subtable.toml: -------------------------------------------------------------------------------- 1 | table1 = { table2.dupe = 1, table2.dupe = 2 } -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/missing-closing-double-square-bracket.toml: -------------------------------------------------------------------------------- 1 | [[closing-bracket.missing] 2 | blaa=2 3 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/multiline-basic-str/last-line-escape.toml: -------------------------------------------------------------------------------- 1 | bee = """ 2 | hee \ 3 | 4 | gee \ """ 5 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/multiline-basic-str/unclosed-ends-in-whitespace-escape.toml: -------------------------------------------------------------------------------- 1 | bee = """ 2 | hee 3 | gee\ -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/unclosed-multiline-string.toml: -------------------------------------------------------------------------------- 1 | not-closed= """ 2 | diibaa 3 | blibae ete 4 | eteta 5 | -------------------------------------------------------------------------------- /Lib/test/test_tools/__main__.py: -------------------------------------------------------------------------------- 1 | from test.test_tools import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/test.xml.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/xmltestdata/test.xml.out -------------------------------------------------------------------------------- /Lib/test/ziptestdata/exe_with_z64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/ziptestdata/exe_with_z64 -------------------------------------------------------------------------------- /Lib/test/ziptestdata/exe_with_zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/ziptestdata/exe_with_zip -------------------------------------------------------------------------------- /Lib/xml/etree/cElementTree.py: -------------------------------------------------------------------------------- 1 | # Deprecated alias for xml.etree.ElementTree 2 | 3 | from xml.etree.ElementTree import * 4 | -------------------------------------------------------------------------------- /Tools/peg_generator/data/xxl.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Tools/peg_generator/data/xxl.zip -------------------------------------------------------------------------------- /Tools/scripts/pydoc3: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import pydoc 4 | if __name__ == '__main__': 5 | pydoc.cli() 6 | -------------------------------------------------------------------------------- /Doc/library/hashlib-blake2-tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Doc/library/hashlib-blake2-tree.png -------------------------------------------------------------------------------- /Doc/library/pathlib-inheritance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Doc/library/pathlib-inheritance.png -------------------------------------------------------------------------------- /Lib/ctypes/macholib/fetch_macholib: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | svn export --force http://svn.red-bean.com/bob/macholib/trunk/macholib/ . 3 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/fixers/no_fixer_cls.py: -------------------------------------------------------------------------------- 1 | # This is empty so trying to fetch the fixer class gives an AttributeError 2 | -------------------------------------------------------------------------------- /Lib/test/ann_module4.py: -------------------------------------------------------------------------------- 1 | # This ann_module isn't for test_typing, 2 | # it's for test_module 3 | 4 | a:int=3 5 | b:str=4 6 | -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm16.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-pcm16.aiff -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm24.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-pcm24.aiff -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm32.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/audiodata/pluck-pcm32.aiff -------------------------------------------------------------------------------- /Lib/test/cjkencodings/big5hkscs.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/cjkencodings/big5hkscs.txt -------------------------------------------------------------------------------- /Lib/test/cjkencodings/shift_jis.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/cjkencodings/shift_jis.txt -------------------------------------------------------------------------------- /Lib/test/test_doctest3.txt: -------------------------------------------------------------------------------- 1 | 2 | Here we check that `__file__` is provided: 3 | 4 | >>> type(__file__) 5 | 6 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/python.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/python.bmp -------------------------------------------------------------------------------- /Lib/test/test_email/data/python.exr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/python.exr -------------------------------------------------------------------------------- /Lib/test/test_email/data/python.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/python.gif -------------------------------------------------------------------------------- /Lib/test/test_email/data/python.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/python.jpg -------------------------------------------------------------------------------- /Lib/test/test_email/data/python.pbm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/python.pbm -------------------------------------------------------------------------------- /Lib/test/test_email/data/python.pgm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/python.pgm -------------------------------------------------------------------------------- /Lib/test/test_email/data/python.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/python.png -------------------------------------------------------------------------------- /Lib/test/test_email/data/python.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/python.ppm -------------------------------------------------------------------------------- /Lib/test/test_email/data/python.ras: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/python.ras -------------------------------------------------------------------------------- /Lib/test/test_email/data/python.sgi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/python.sgi -------------------------------------------------------------------------------- /Lib/test/test_email/data/python.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/python.tiff -------------------------------------------------------------------------------- /Lib/test/test_email/data/python.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/python.webp -------------------------------------------------------------------------------- /Lib/test/test_email/data/sndhdr.aifc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/sndhdr.aifc -------------------------------------------------------------------------------- /Lib/test/test_email/data/sndhdr.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/sndhdr.aiff -------------------------------------------------------------------------------- /Lib/test/test_email/data/sndhdr.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_email/data/sndhdr.wav -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/binding.py: -------------------------------------------------------------------------------- 1 | import test.test_import.data.circular_imports.binding2 as binding2 2 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/dates-and-times/localtime.json: -------------------------------------------------------------------------------- 1 | {"t": 2 | {"type":"time-local","value":"00:00:00.999999"}} 3 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/doc.dtd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Lib/test/ziptestdata/testdata_module_inside_zip.py: -------------------------------------------------------------------------------- 1 | # Test data file to be stored within a zip file. 2 | FAVORITE_NUMBER = 5 3 | -------------------------------------------------------------------------------- /Mac/Resources/iconsrc/PythonIcon.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Resources/iconsrc/PythonIcon.psd -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2023-04-04-12-43-38.gh-issue-93910.jurMzv.rst: -------------------------------------------------------------------------------- 1 | Remove deprecation of enum ``memmber.member`` access. 2 | -------------------------------------------------------------------------------- /PCbuild/env.ps1: -------------------------------------------------------------------------------- 1 | $pcbuild = $script:MyInvocation.MyCommand.Path | Split-Path -parent; 2 | & cmd /K "$pcbuild\env.bat" $args 3 | -------------------------------------------------------------------------------- /Doc/whatsnew/changelog.rst: -------------------------------------------------------------------------------- 1 | .. _changelog: 2 | 3 | +++++++++ 4 | Changelog 5 | +++++++++ 6 | 7 | .. miscnews:: ../build/NEWS 8 | -------------------------------------------------------------------------------- /Lib/curses/panel.py: -------------------------------------------------------------------------------- 1 | """curses.panel 2 | 3 | Module for using panels with curses. 4 | """ 5 | 6 | from _curses_panel import * 7 | -------------------------------------------------------------------------------- /Lib/ensurepip/__main__.py: -------------------------------------------------------------------------------- 1 | import ensurepip 2 | import sys 3 | 4 | if __name__ == "__main__": 5 | sys.exit(ensurepip._main()) 6 | -------------------------------------------------------------------------------- /Lib/idlelib/idle_test/example_stub.pyi: -------------------------------------------------------------------------------- 1 | class Example: 2 | def method(self, argument1: str, argument2: list[int]) -> None: ... 3 | -------------------------------------------------------------------------------- /Lib/test/bad_getattr2.py: -------------------------------------------------------------------------------- 1 | def __getattr__(): 2 | "Bad one" 3 | 4 | x = 1 5 | 6 | def __dir__(bad_sig): 7 | return [] 8 | -------------------------------------------------------------------------------- /Lib/test/cjkencodings/euc_jisx0213.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/cjkencodings/euc_jisx0213.txt -------------------------------------------------------------------------------- /Lib/test/test_import/data/package2/submodule1.py: -------------------------------------------------------------------------------- 1 | import sys 2 | sys.modules.pop(__package__, None) 3 | from . import submodule2 4 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/inline-table/override-val-with-array.toml: -------------------------------------------------------------------------------- 1 | inline-t = { nest = {} } 2 | 3 | [[inline-t.nest]] 4 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/inline-table/override-val-with-table.toml: -------------------------------------------------------------------------------- 1 | inline-t = { nest = {} } 2 | 3 | [inline-t.nest] 4 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/dates-and-times/datetimes.toml: -------------------------------------------------------------------------------- 1 | local-dt=1988-10-27t01:01:01 2 | zulu-dt=1988-10-27t01:01:01z 3 | -------------------------------------------------------------------------------- /Mac/Resources/iconsrc/PythonApplet.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Resources/iconsrc/PythonApplet.psd -------------------------------------------------------------------------------- /Mac/Resources/iconsrc/PythonSource.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Resources/iconsrc/PythonSource.psd -------------------------------------------------------------------------------- /Mac/Resources/iconsrc/PythonWSource.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Resources/iconsrc/PythonWSource.psd -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_sre_compile_corpus/isbn: -------------------------------------------------------------------------------- 1 | XX/((978[\--– ])?[0-9][0-9\--– ]{10}[\--– ][0-9xX])|((978)?[0-9]{9}[0-9Xx])/ 2 | -------------------------------------------------------------------------------- /Lib/test/badsyntax_future10.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | "spam, bar, blah" 3 | from __future__ import print_function 4 | -------------------------------------------------------------------------------- /Lib/test/cjkencodings/shift_jisx0213.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/cjkencodings/shift_jisx0213.txt -------------------------------------------------------------------------------- /Lib/test/encoded_modules/module_koi8_r.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/encoded_modules/module_koi8_r.py -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/basic.py: -------------------------------------------------------------------------------- 1 | """Circular imports through direct, relative imports.""" 2 | from . import basic2 3 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/rebinding2.py: -------------------------------------------------------------------------------- 1 | from .subpkg import util 2 | from . import rebinding 3 | util = util.util 4 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/inline-table/overwrite-value-in-inner-array.toml: -------------------------------------------------------------------------------- 1 | tab = { inner.table = [{}], inner.table.val = "bad" } -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/inline-table/overwrite-value-in-inner-table.toml: -------------------------------------------------------------------------------- 1 | tab = { inner = { dog = "best" }, inner.cat = "worst" } -------------------------------------------------------------------------------- /Mac/BuildScript/resources/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/BuildScript/resources/background.jpg -------------------------------------------------------------------------------- /Mac/Resources/iconsrc/PackageManager.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Resources/iconsrc/PackageManager.psd -------------------------------------------------------------------------------- /Mac/Resources/iconsrc/PythonCompiled.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Resources/iconsrc/PythonCompiled.psd -------------------------------------------------------------------------------- /Modules/README: -------------------------------------------------------------------------------- 1 | Source files for standard library extension modules, 2 | and former extension modules that are now builtin modules. 3 | -------------------------------------------------------------------------------- /Tools/scripts/2to3: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import sys 3 | from lib2to3.main import main 4 | 5 | sys.exit(main("lib2to3.fixes")) 6 | -------------------------------------------------------------------------------- /Tools/scripts/idle3: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python3 2 | 3 | from idlelib.pyshell import main 4 | if __name__ == '__main__': 5 | main() 6 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/subpackage.py: -------------------------------------------------------------------------------- 1 | """Circular import involving a sub-package.""" 2 | from .subpkg import subpackage2 3 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/subpkg2/parent/__init__.py: -------------------------------------------------------------------------------- 1 | import test.test_import.data.circular_imports.subpkg2.parent.child 2 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data01/utf-16.file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_importlib/data01/utf-16.file -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/dotted-keys/extend-defined-table-with-subtable.toml: -------------------------------------------------------------------------------- 1 | [a.b.c.d] 2 | z = 9 3 | [a] 4 | b.c.d.k.t = 8 5 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/array/array-subtables.toml: -------------------------------------------------------------------------------- 1 | [[arr]] 2 | [arr.subtab] 3 | val=1 4 | 5 | [[arr]] 6 | [arr.subtab] 7 | val=2 8 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/boolean.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": {"type":"bool","value":"true"}, 3 | "b": {"type":"bool","value":"false"} 4 | } 5 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/multiline-basic-str/ends-in-whitespace-escape.json: -------------------------------------------------------------------------------- 1 | {"beee": {"type": "string", "value": "heeee\ngeeee"}} 2 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/inNsDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsDefault_c14nDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2023-04-12-17-59-55.gh-issue-103365.UBEE0U.rst: -------------------------------------------------------------------------------- 1 | Set default Flag boundary to ``STRICT`` and fix bitwise operations. 2 | -------------------------------------------------------------------------------- /Lib/__phello__/spam.py: -------------------------------------------------------------------------------- 1 | initialized = True 2 | 3 | def main(): 4 | print("Hello world!") 5 | 6 | if __name__ == '__main__': 7 | main() 8 | -------------------------------------------------------------------------------- /Lib/test/encoded_modules/module_iso_8859_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/encoded_modules/module_iso_8859_1.py -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/multiline-basic-str/carriage-return.toml: -------------------------------------------------------------------------------- 1 | s="""cr is not an allowed line ending but we just tried to use it 2 | """ -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/apostrophes-in-literal-string.toml: -------------------------------------------------------------------------------- 1 | this-str-has-apostrophes='''' there's one already 2 | '' two more 3 | ''''' 4 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/array/open-parent-table.toml: -------------------------------------------------------------------------------- 1 | [[parent-table.arr]] 2 | [[parent-table.arr]] 3 | [parent-table] 4 | not-arr = 1 5 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/multiline-basic-str/ends-in-whitespace-escape.toml: -------------------------------------------------------------------------------- 1 | beee = """ 2 | heeee 3 | geeee\ 4 | 5 | 6 | """ 7 | -------------------------------------------------------------------------------- /Lib/test/test_warnings/data/import_warning.py: -------------------------------------------------------------------------------- 1 | import warnings 2 | 3 | warnings.warn('module-level warning', DeprecationWarning, stacklevel=2) 4 | -------------------------------------------------------------------------------- /Mac/IDLE/IDLE.app/Contents/Resources/IDLE.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/IDLE/IDLE.app/Contents/Resources/IDLE.icns -------------------------------------------------------------------------------- /Mac/Resources/app/Resources/PythonApplet.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Resources/app/Resources/PythonApplet.icns -------------------------------------------------------------------------------- /Misc/rhel7/tcl.pc: -------------------------------------------------------------------------------- 1 | Name: Tool Command Language 2 | Version: 8.5.12 3 | Libs: -ltcl8.5 -ltclstub8.5 4 | # Libs.private: -ldl -lz -lpthread -lm 5 | -------------------------------------------------------------------------------- /Lib/__phello__/__init__.py: -------------------------------------------------------------------------------- 1 | initialized = True 2 | 3 | def main(): 4 | print("Hello world!") 5 | 6 | if __name__ == '__main__': 7 | main() 8 | -------------------------------------------------------------------------------- /Lib/collections/abc.py: -------------------------------------------------------------------------------- 1 | from _collections_abc import * 2 | from _collections_abc import __all__ 3 | from _collections_abc import _CallableGenericAlias 4 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/fixers/bad_order.py: -------------------------------------------------------------------------------- 1 | from lib2to3.fixer_base import BaseFix 2 | 3 | class FixBadOrder(BaseFix): 4 | 5 | order = "crazy" 6 | -------------------------------------------------------------------------------- /Lib/test/dtracedata/gc.d.expected: -------------------------------------------------------------------------------- 1 | gc-start:0 2 | gc-done:0 3 | gc-start:1 4 | gc-done:0 5 | gc-start:2 6 | gc-done:0 7 | gc-start:2 8 | gc-done:1 9 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/zipdata01/ziptestdata.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_importlib/zipdata01/ziptestdata.zip -------------------------------------------------------------------------------- /Lib/test/test_importlib/zipdata02/ziptestdata.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_importlib/zipdata02/ziptestdata.zip -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/array-of-tables/overwrite-array-in-parent.toml: -------------------------------------------------------------------------------- 1 | [[parent-table.arr]] 2 | [parent-table] 3 | not-arr = 1 4 | arr = 2 5 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inC14N2_c14nTrim.xml: -------------------------------------------------------------------------------- 1 | A BABA BC -------------------------------------------------------------------------------- /Lib/ensurepip/_bundled/pip-22.3.1-py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/ensurepip/_bundled/pip-22.3.1-py3-none-any.whl -------------------------------------------------------------------------------- /Lib/site-packages/README.txt: -------------------------------------------------------------------------------- 1 | This directory exists so that 3rd party packages can be installed 2 | here. Read the source for site.py for more details. 3 | -------------------------------------------------------------------------------- /Lib/test/data/README: -------------------------------------------------------------------------------- 1 | This empty directory serves as destination for temporary files 2 | created by some tests, in particular, the test_codecmaps_* tests. 3 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespacedata01/utf-16.file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_importlib/namespacedata01/utf-16.file -------------------------------------------------------------------------------- /Mac/Resources/app/Resources/PythonInterpreter.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/Resources/app/Resources/PythonInterpreter.icns -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2023-04-08-00-50-23.gh-issue-103329.M38tqF.rst: -------------------------------------------------------------------------------- 1 | Regression tests for the behaviour of ``unittest.mock.PropertyMock`` were added. 2 | -------------------------------------------------------------------------------- /PC/pyshellext.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | DllRegisterServer PRIVATE 3 | DllUnregisterServer PRIVATE 4 | DllGetClassObject PRIVATE 5 | DllCanUnloadNow PRIVATE 6 | -------------------------------------------------------------------------------- /Lib/contextvars.py: -------------------------------------------------------------------------------- 1 | from _contextvars import Context, ContextVar, Token, copy_context 2 | 3 | 4 | __all__ = ('Context', 'ContextVar', 'Token', 'copy_context') 5 | -------------------------------------------------------------------------------- /Lib/test/dtracedata/gc.stp.expected: -------------------------------------------------------------------------------- 1 | gc__start:0 2 | gc__done:0 3 | gc__start:1 4 | gc__done:0 5 | gc__start:2 6 | gc__done:0 7 | gc__start:2 8 | gc__done:1 9 | -------------------------------------------------------------------------------- /Lib/test/libregrtest/__init__.py: -------------------------------------------------------------------------------- 1 | from test.libregrtest.cmdline import _parse_args, RESOURCE_NAMES, ALL_RESOURCES 2 | from test.libregrtest.main import main 3 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data/example-21.12-py3.6.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_importlib/data/example-21.12-py3.6.egg -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsDefault_c14nPrefix.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Mac/IDLE/IDLE.app/Contents/Resources/PythonSource.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/IDLE/IDLE.app/Contents/Resources/PythonSource.icns -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Build/README.rst: -------------------------------------------------------------------------------- 1 | Put news entry `blurb`_ files for the *Build* section in this directory. 2 | 3 | .. _blurb: https://pypi.org/project/blurb/ 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/C API/README.rst: -------------------------------------------------------------------------------- 1 | Put news entry `blurb`_ files for the *C API* section in this directory. 2 | 3 | .. _blurb: https://pypi.org/project/blurb/ 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/IDLE/README.rst: -------------------------------------------------------------------------------- 1 | Put news entry `blurb`_ files for the *IDLE* section in this directory. 2 | 3 | .. _blurb: https://pypi.org/project/blurb/ 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/README.rst: -------------------------------------------------------------------------------- 1 | Put news entry `blurb`_ files for the *Tests* section in this directory. 2 | 3 | .. _blurb: https://pypi.org/project/blurb/ 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/macOS/README.rst: -------------------------------------------------------------------------------- 1 | Put news entry `blurb`_ files for the *macOS* section in this directory. 2 | 3 | .. _blurb: https://pypi.org/project/blurb/ 4 | -------------------------------------------------------------------------------- /Lib/test/test_sqlite3/__main__.py: -------------------------------------------------------------------------------- 1 | from test.test_sqlite3 import load_tests # Needed for the "load tests" protocol. 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/invalid/inline-table/override-val-in-table.toml: -------------------------------------------------------------------------------- 1 | [tab.nested] 2 | inline-t = { nest = {} } 3 | 4 | [tab] 5 | nested.inline-t.nest = 2 6 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inC14N1_c14nDefault.xml: -------------------------------------------------------------------------------- 1 | 3 | Hello, world! 4 | -------------------------------------------------------------------------------- /Mac/IDLE/IDLE.app/Contents/Resources/PythonCompiled.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/IDLE/IDLE.app/Contents/Resources/PythonCompiled.icns -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/README.rst: -------------------------------------------------------------------------------- 1 | Put news entry `blurb`_ files for the *Library* section in this directory. 2 | 3 | .. _blurb: https://pypi.org/project/blurb/ 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Security/README.rst: -------------------------------------------------------------------------------- 1 | Put news entry `blurb`_ files for the *Security* section in this directory. 2 | 3 | .. _blurb: https://pypi.org/project/blurb/ 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Windows/README.rst: -------------------------------------------------------------------------------- 1 | Put news entry `blurb`_ files for the *Windows* section in this directory. 2 | 3 | .. _blurb: https://pypi.org/project/blurb/ 4 | -------------------------------------------------------------------------------- /PC/empty.c: -------------------------------------------------------------------------------- 1 | #include 2 | int __stdcall 3 | WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) 4 | { 5 | return 0; 6 | } -------------------------------------------------------------------------------- /Lib/asyncio/log.py: -------------------------------------------------------------------------------- 1 | """Logging configuration.""" 2 | 3 | import logging 4 | 5 | 6 | # Name the logger after the package. 7 | logger = logging.getLogger(__package__) 8 | -------------------------------------------------------------------------------- /Lib/ensurepip/_bundled/setuptools-65.5.0-py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/ensurepip/_bundled/setuptools-65.5.0-py3-none-any.whl -------------------------------------------------------------------------------- /Lib/test/test_importlib/data/example-21.12-py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_importlib/data/example-21.12-py3-none-any.whl -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/nested_portion1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_importlib/namespace_pkgs/nested_portion1.zip -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/apostrophes-in-literal-string.json: -------------------------------------------------------------------------------- 1 | {"this-str-has-apostrophes": {"type": "string", "value": "' there's one already\n'' two more\n''"}} 2 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/five-quotes.toml: -------------------------------------------------------------------------------- 1 | five-quotes = """ 2 | Closing with five quotes 3 | """"" 4 | four-quotes = """ 5 | Closing with four quotes 6 | """" 7 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/trailing-comma.json: -------------------------------------------------------------------------------- 1 | {"arr": 2 | {"type":"array","value": 3 | [ 4 | {"type":"integer","value":"1"} 5 | ] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Mac/PythonLauncher/English.lproj/MainMenu.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/PythonLauncher/English.lproj/MainMenu.nib/objects.nib -------------------------------------------------------------------------------- /Mac/PythonLauncher/English.lproj/MyDocument.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/PythonLauncher/English.lproj/MyDocument.nib/objects.nib -------------------------------------------------------------------------------- /PCbuild/clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | rem A batch program to clean a particular configuration, 3 | rem just for convenience. 4 | 5 | call "%~dp0build.bat" -t Clean %* 6 | -------------------------------------------------------------------------------- /Lib/test/test_asyncio/echo2.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | if __name__ == '__main__': 4 | buf = os.read(0, 1024) 5 | os.write(1, b'OUT:'+buf) 6 | os.write(2, b'ERR:'+buf) 7 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data/example2-1.0.0-py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_importlib/data/example2-1.0.0-py3-none-any.whl -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/missing_directory.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_importlib/namespace_pkgs/missing_directory.zip -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/top_level_portion1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Lib/test/test_importlib/namespace_pkgs/top_level_portion1.zip -------------------------------------------------------------------------------- /Lib/test/xmltestdata/simple.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | text 4 | texttail 5 | 6 | 7 | -------------------------------------------------------------------------------- /Mac/Icons/ReadMe.txt: -------------------------------------------------------------------------------- 1 | The icons for use on MacOS X were created by Jacob Rus 2 | with some feedback from the folks on pythonmac-sig@python.org. 3 | 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/3.6.0.rst: -------------------------------------------------------------------------------- 1 | .. bpo: 0 2 | .. date: 9796 3 | .. no changes: True 4 | .. nonce: F9ENBV 5 | .. release date: 2016-12-23 6 | 7 | No changes since release candidate 2 8 | -------------------------------------------------------------------------------- /Misc/NEWS.d/3.6.2.rst: -------------------------------------------------------------------------------- 1 | .. bpo: 0 2 | .. date: 9993 3 | .. no changes: True 4 | .. nonce: F9ENBV 5 | .. release date: 2017-07-17 6 | 7 | No changes since release candidate 2 8 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/README.rst: -------------------------------------------------------------------------------- 1 | Put news entry `blurb`_ files for the *Documentation* section in this directory. 2 | 3 | .. _blurb: https://pypi.org/project/blurb/ 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tools-Demos/README.rst: -------------------------------------------------------------------------------- 1 | Put news entry `blurb`_ files for the *Tools/Demos* section in this directory. 2 | 3 | .. _blurb: https://pypi.org/project/blurb/ 4 | -------------------------------------------------------------------------------- /Tools/c-analyzer/cpython/known.tsv: -------------------------------------------------------------------------------- 1 | filename funcname name kind declaration 2 | #filename funcname name kind is_supported declaration 3 | #??? - PyWideStringList typedef ??? 4 | -------------------------------------------------------------------------------- /Lib/distutils/debug.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | # If DISTUTILS_DEBUG is anything other than the empty string, we run in 4 | # debug mode. 5 | DEBUG = os.environ.get('DISTUTILS_DEBUG') 6 | -------------------------------------------------------------------------------- /Lib/test/bad_getattr3.py: -------------------------------------------------------------------------------- 1 | def __getattr__(name): 2 | if name != 'delgetattr': 3 | raise AttributeError 4 | del globals()['__getattr__'] 5 | raise AttributeError 6 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/hex-char.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": {"type":"string","value":"a"}, 3 | "b": {"type":"string","value":"b"}, 4 | "c": {"type":"string","value":"c"} 5 | } 6 | -------------------------------------------------------------------------------- /Lib/lib2to3/pgen2/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2004-2005 Elemental Security, Inc. All Rights Reserved. 2 | # Licensed to PSF under a Contributor Agreement. 3 | 4 | """The pgen2 package.""" 5 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/msg_35.txt: -------------------------------------------------------------------------------- 1 | From: aperson@dom.ain 2 | To: bperson@dom.ain 3 | Subject: here's something interesting 4 | counter to RFC 2822, there's no separating newline here 5 | -------------------------------------------------------------------------------- /Mac/PythonLauncher/English.lproj/PreferenceWindow.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Mac/PythonLauncher/English.lproj/PreferenceWindow.nib/objects.nib -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/README.rst: -------------------------------------------------------------------------------- 1 | Put news entry `blurb`_ files for the *Core and Builtins* section in this directory. 2 | 3 | .. _blurb: https://pypi.org/project/blurb/ 4 | -------------------------------------------------------------------------------- /Misc/rhel7/tk.pc: -------------------------------------------------------------------------------- 1 | Name: The Tk Toolkit 2 | Version: 8.5.12 3 | Requires: tcl >= 8.5.12 4 | Libs: -ltk8.5 -ltkstub8.5 5 | # Libs.private: -lXft -lfontconfig -lfreetype -lfontconfig -lX11 6 | -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_csv_reader_corpus/test.csv: -------------------------------------------------------------------------------- 1 | header 1,header 2,header 3,"quoted header", trailing commas,,,, 2 | item, item, 23, xyz, {+} 3 | "1","(abc@example.com)",., 4 | 5 | -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_struct_unpack_corpus/varied_format_string: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycompiled/compiled/HEAD/Modules/_xxtestfuzz/fuzz_struct_unpack_corpus/varied_format_string -------------------------------------------------------------------------------- /Lib/test/ann_module6.py: -------------------------------------------------------------------------------- 1 | # Tests that top-level ClassVar is not allowed 2 | 3 | from __future__ import annotations 4 | 5 | from typing import ClassVar 6 | 7 | wrong: ClassVar[int] = 1 8 | -------------------------------------------------------------------------------- /Lib/test/test_capi/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | from test.support import load_package_tests 3 | 4 | def load_tests(*args): 5 | return load_package_tests(os.path.dirname(__file__), *args) 6 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/rebinding.py: -------------------------------------------------------------------------------- 1 | """Test the binding of names when a circular import shares the same name as an 2 | attribute.""" 3 | from .rebinding2 import util 4 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/fixers/myfixes/fix_first.py: -------------------------------------------------------------------------------- 1 | from lib2to3.fixer_base import BaseFix 2 | 3 | class FixFirst(BaseFix): 4 | run_order = 1 5 | 6 | def match(self, node): return False 7 | -------------------------------------------------------------------------------- /Lib/test/subprocessdata/input_reader.py: -------------------------------------------------------------------------------- 1 | """When called as a script, consumes the input""" 2 | 3 | import sys 4 | 5 | if __name__ == "__main__": 6 | for line in sys.stdin: 7 | pass 8 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/subpkg2/parent/child.py: -------------------------------------------------------------------------------- 1 | import test.test_import.data.circular_imports.subpkg2.parent 2 | 3 | test.test_import.data.circular_imports.subpkg2.parent 4 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | from test.support import load_package_tests 3 | 4 | def load_tests(*args): 5 | return load_package_tests(os.path.dirname(__file__), *args) 6 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/inNsPushdown.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsSuperfluous_c14nPrefix.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2023-04-01-00-46-31.gh-issue-102700.493NB4.rst: -------------------------------------------------------------------------------- 1 | Allow built-in modules to be submodules. This allows submodules to be statically linked into a CPython binary. 2 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/fixers/myfixes/fix_explicit.py: -------------------------------------------------------------------------------- 1 | from lib2to3.fixer_base import BaseFix 2 | 3 | class FixExplicit(BaseFix): 4 | explicit = True 5 | 6 | def match(self): return False 7 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/fixers/myfixes/fix_last.py: -------------------------------------------------------------------------------- 1 | from lib2to3.fixer_base import BaseFix 2 | 3 | class FixLast(BaseFix): 4 | 5 | run_order = 10 6 | 7 | def match(self, node): return False 8 | -------------------------------------------------------------------------------- /Lib/test/badsyntax_future8.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | 3 | from __future__ import * 4 | 5 | def f(x): 6 | def g(y): 7 | return x + y 8 | return g 9 | 10 | print(f(2)(4)) 11 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsXml_c14nDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | data 3 | -------------------------------------------------------------------------------- /Lib/tkinter/__main__.py: -------------------------------------------------------------------------------- 1 | """Main entry point""" 2 | 3 | import sys 4 | if sys.argv[0].endswith("__main__.py"): 5 | sys.argv[0] = "python -m tkinter" 6 | from . import _test as main 7 | main() 8 | -------------------------------------------------------------------------------- /Misc/NEWS.d/3.5.3.rst: -------------------------------------------------------------------------------- 1 | .. bpo: 0 2 | .. date: 9899 3 | .. no changes: True 4 | .. nonce: zYPqUK 5 | .. release date: 2017-01-17 6 | 7 | There were no code changes between 3.5.3rc1 and 3.5.3 final. 8 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2023-04-08-17-13-07.gh-issue-103242.ysI1b3.rst: -------------------------------------------------------------------------------- 1 | Migrate :meth:`~ssl.SSLContext.set_ecdh_curve` method not to use deprecated 2 | OpenSSL APIs. Patch by Dong-hee Na. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2022-11-06-18-42-38.gh-issue-75729.uGYJrv.rst: -------------------------------------------------------------------------------- 1 | Fix the :func:`os.spawn* ` tests failing on Windows 2 | when the working directory or interpreter path contains spaces. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Windows/2023-03-18-21-38-00.gh-issue-88013.Z3loxC.rst: -------------------------------------------------------------------------------- 1 | Fixed a bug where :exc:`TypeError` was raised when calling 2 | :func:`ntpath.realpath` with a bytes parameter in some cases. 3 | -------------------------------------------------------------------------------- /Tools/buildbot/buildmsi.bat: -------------------------------------------------------------------------------- 1 | @rem Used by the buildbot "buildmsi" step. 2 | setlocal 3 | 4 | pushd 5 | 6 | @rem build both snapshot MSIs 7 | call "%~dp0..\msi\build.bat" -x86 -x64 8 | 9 | popd -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/fixers/myfixes/fix_preorder.py: -------------------------------------------------------------------------------- 1 | from lib2to3.fixer_base import BaseFix 2 | 3 | class FixPreorder(BaseFix): 4 | order = "pre" 5 | 6 | def match(self, node): return False 7 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/msg_11.txt: -------------------------------------------------------------------------------- 1 | Content-Type: message/rfc822 2 | MIME-Version: 1.0 3 | Subject: The enclosing message 4 | 5 | Subject: An enclosed message 6 | 7 | Here is the body of the message. 8 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/msg_23.txt: -------------------------------------------------------------------------------- 1 | From: aperson@dom.ain 2 | Content-Type: multipart/mixed; boundary="BOUNDARY" 3 | 4 | --BOUNDARY 5 | Content-Type: text/plain 6 | 7 | A message part 8 | --BOUNDARY-- 9 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/builtin/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | from test.support import load_package_tests 3 | 4 | def load_tests(*args): 5 | return load_package_tests(os.path.dirname(__file__), *args) 6 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/extension/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | from test.support import load_package_tests 3 | 4 | def load_tests(*args): 5 | return load_package_tests(os.path.dirname(__file__), *args) 6 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/frozen/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | from test.support import load_package_tests 3 | 4 | def load_tests(*args): 5 | return load_package_tests(os.path.dirname(__file__), *args) 6 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/import_/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | from test.support import load_package_tests 3 | 4 | def load_tests(*args): 5 | return load_package_tests(os.path.dirname(__file__), *args) 6 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/source/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | from test.support import load_package_tests 3 | 4 | def load_tests(*args): 5 | return load_package_tests(os.path.dirname(__file__), *args) 6 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/array/open-parent-table.json: -------------------------------------------------------------------------------- 1 | { 2 | "parent-table": { 3 | "arr": {"type":"array","value":[{},{}]}, 4 | "not-arr": {"type":"integer","value":"1"} 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_sre_compile_corpus/phone_number: -------------------------------------------------------------------------------- 1 | XX(\+1|1)?[ \-\.]?\(?(?[0-9]{3})\)?[ \-\.]?(?[0-9]{3})[ \-\.]?(?[0-9]{4})[ \.]*(ext|x)?[ \.]*(?[0-9]{0,5}) 2 | -------------------------------------------------------------------------------- /Lib/idlelib/idle.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | rem Start IDLE using the appropriate Python interpreter 3 | set CURRDIR=%~dp0 4 | start "IDLE" "%CURRDIR%..\..\pythonw.exe" "%CURRDIR%idle.pyw" %1 %2 %3 %4 %5 %6 %7 %8 %9 5 | -------------------------------------------------------------------------------- /Lib/lib2to3/__init__.py: -------------------------------------------------------------------------------- 1 | import warnings 2 | 3 | 4 | warnings.warn( 5 | "lib2to3 package is deprecated and may not be able to parse Python 3.10+", 6 | DeprecationWarning, 7 | stacklevel=2, 8 | ) 9 | -------------------------------------------------------------------------------- /Lib/test/test_asyncio/echo.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | if __name__ == '__main__': 4 | while True: 5 | buf = os.read(0, 1024) 6 | if not buf: 7 | break 8 | os.write(1, buf) 9 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/c14nDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/doc.xsl: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsXml_c14nPrefix.xml: -------------------------------------------------------------------------------- 1 | 2 | data 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/3.5.5.rst: -------------------------------------------------------------------------------- 1 | .. bpo: 0 2 | .. date: 2018-02-04 3 | .. no changes: True 4 | .. nonce: G9yme3 5 | .. release date: 2018-02-04 6 | .. section: Library 7 | 8 | There were no new changes in version 3.5.5. 9 | -------------------------------------------------------------------------------- /Misc/NEWS.d/3.6.6.rst: -------------------------------------------------------------------------------- 1 | .. bpo: 0 2 | .. date: 2018-06-27 3 | .. no changes: True 4 | .. nonce: IWyX1H 5 | .. release date: 2018-06-27 6 | .. section: Library 7 | 8 | There were no new changes in version 3.6.6. 9 | -------------------------------------------------------------------------------- /Tools/c-analyzer/c_parser/parser/_alt.py: -------------------------------------------------------------------------------- 1 | 2 | def _parse(srclines, anon_name): 3 | text = ' '.join(l for _, l in srclines) 4 | 5 | from ._delim import parse 6 | yield from parse(text, anon_name) 7 | -------------------------------------------------------------------------------- /Lib/idlelib/__main__.py: -------------------------------------------------------------------------------- 1 | """ 2 | IDLE main entry point 3 | 4 | Run IDLE as python -m idlelib 5 | """ 6 | import idlelib.pyshell 7 | idlelib.pyshell.main() 8 | # This file does not work for 2.7; See issue 24212. 9 | -------------------------------------------------------------------------------- /Lib/test/dataclass_textanno.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | import dataclasses 4 | 5 | 6 | class Foo: 7 | pass 8 | 9 | 10 | @dataclasses.dataclass 11 | class Bar: 12 | foo: Foo 13 | -------------------------------------------------------------------------------- /Lib/test/subprocessdata/qcat.py: -------------------------------------------------------------------------------- 1 | """When ran as a script, simulates cat with no arguments.""" 2 | 3 | import sys 4 | 5 | if __name__ == "__main__": 6 | for line in sys.stdin: 7 | sys.stdout.write(line) 8 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/dates-and-times/datetimes.json: -------------------------------------------------------------------------------- 1 | { 2 | "local-dt": {"type":"datetime-local","value":"1988-10-27t01:01:01"}, 3 | "zulu-dt": {"type":"datetime","value":"1988-10-27t01:01:01z"} 4 | } 5 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/simple-ns.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | text 5 | texttail 6 | 7 | 8 | -------------------------------------------------------------------------------- /Lib/venv/__main__.py: -------------------------------------------------------------------------------- 1 | import sys 2 | from . import main 3 | 4 | rc = 1 5 | try: 6 | main() 7 | rc = 0 8 | except Exception as e: 9 | print('Error: %s' % e, file=sys.stderr) 10 | sys.exit(rc) 11 | -------------------------------------------------------------------------------- /Modules/_decimal/libmpdec/examples/README.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | This directory contains a number of examples. In order to compile, run 4 | (for example): 5 | 6 | gcc -Wall -W -O2 -o powmod powmod.c -lmpdec -lm 7 | 8 | 9 | -------------------------------------------------------------------------------- /Python/getplatform.c: -------------------------------------------------------------------------------- 1 | 2 | #include "Python.h" 3 | 4 | #ifndef PLATFORM 5 | #define PLATFORM "unknown" 6 | #endif 7 | 8 | const char * 9 | Py_GetPlatform(void) 10 | { 11 | return PLATFORM; 12 | } 13 | -------------------------------------------------------------------------------- /Tools/wasm/.editorconfig: -------------------------------------------------------------------------------- 1 | root = false # This extends the root .editorconfig 2 | 3 | [*.{html,js}] 4 | trim_trailing_whitespace = true 5 | insert_final_newline = true 6 | indent_style = space 7 | indent_size = 4 8 | -------------------------------------------------------------------------------- /Doc/library/concurrent.rst: -------------------------------------------------------------------------------- 1 | The :mod:`concurrent` package 2 | ============================= 3 | 4 | Currently, there is only one module in this package: 5 | 6 | * :mod:`concurrent.futures` -- Launching parallel tasks 7 | -------------------------------------------------------------------------------- /Doc/tools/templates/opensearch.xml: -------------------------------------------------------------------------------- 1 | {% extends "!opensearch.xml" %} 2 | {% block extra -%} 3 | https://www.python.org/images/favicon16x16.ico 4 | {%- endblock %} 5 | -------------------------------------------------------------------------------- /Lib/test/badsyntax_future9.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | 3 | from __future__ import nested_scopes, braces 4 | 5 | def f(x): 6 | def g(y): 7 | return x + y 8 | return g 9 | 10 | print(f(2)(4)) 11 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/five-quotes.json: -------------------------------------------------------------------------------- 1 | { 2 | "five-quotes": {"type":"string","value":"Closing with five quotes\n\"\""}, 3 | "four-quotes": {"type":"string","value":"Closing with four quotes\n\""} 4 | } 5 | -------------------------------------------------------------------------------- /Lib/test/tracedmodules/testmod.py: -------------------------------------------------------------------------------- 1 | def func(x): 2 | b = x + 1 3 | return b + 2 4 | 5 | def func2(): 6 | """Test function for issue 9936 """ 7 | return (1, 8 | 2, 9 | 3) 10 | -------------------------------------------------------------------------------- /Tools/c-analyzer/c_common/misc.py: -------------------------------------------------------------------------------- 1 | 2 | class Labeled: 3 | __slots__ = ('_label',) 4 | def __init__(self, label): 5 | self._label = label 6 | def __repr__(self): 7 | return f'<{self._label}>' 8 | -------------------------------------------------------------------------------- /Lib/test/future_test2.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | 3 | from __future__ import nested_scopes; import site 4 | 5 | def f(x): 6 | def g(y): 7 | return x + y 8 | return g 9 | 10 | result = f(2)(4) 11 | -------------------------------------------------------------------------------- /Lib/xml/parsers/__init__.py: -------------------------------------------------------------------------------- 1 | """Python interfaces to XML parsers. 2 | 3 | This package contains one module: 4 | 5 | expat -- Python wrapper for James Clark's Expat parser, with namespace 6 | support. 7 | 8 | """ 9 | -------------------------------------------------------------------------------- /Misc/NEWS.d/3.5.0.rst: -------------------------------------------------------------------------------- 1 | .. bpo: 25071 2 | .. date: 9305 3 | .. nonce: EwjXl1 4 | .. release date: 2015-09-13 5 | .. section: Build 6 | 7 | Windows installer should not require TargetDir parameter when installing 8 | quietly. 9 | -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_json_loads_corpus/pass3.json: -------------------------------------------------------------------------------- 1 | { 2 | "JSON Test Pattern pass3": { 3 | "The outermost value": "must be an object or array.", 4 | "In this test": "It is an object." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Python/asdl.c: -------------------------------------------------------------------------------- 1 | #include "Python.h" 2 | #include "pycore_asdl.h" 3 | 4 | GENERATE_ASDL_SEQ_CONSTRUCTOR(generic, void*); 5 | GENERATE_ASDL_SEQ_CONSTRUCTOR(identifier, PyObject*); 6 | GENERATE_ASDL_SEQ_CONSTRUCTOR(int, int); 7 | -------------------------------------------------------------------------------- /Doc/includes/turtle-star.py: -------------------------------------------------------------------------------- 1 | from turtle import * 2 | color('red', 'yellow') 3 | begin_fill() 4 | while True: 5 | forward(200) 6 | left(170) 7 | if abs(pos()) < 1: 8 | break 9 | end_fill() 10 | done() 11 | -------------------------------------------------------------------------------- /Lib/ctypes/macholib/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Enough Mach-O to make your head spin. 3 | 4 | See the relevant header files in /usr/include/mach-o 5 | 6 | And also Apple's documentation. 7 | """ 8 | 9 | __version__ = '1.0' 10 | -------------------------------------------------------------------------------- /Lib/test/badsyntax_future4.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | import __future__ 3 | from __future__ import nested_scopes 4 | 5 | def f(x): 6 | def g(y): 7 | return x + y 8 | return g 9 | 10 | result = f(2)(4) 11 | -------------------------------------------------------------------------------- /Lib/test/cjkencodings/gb2312-utf8.txt: -------------------------------------------------------------------------------- 1 | Python(派森)语言是一种功能强大而完善的通用型计算机程序设计语言, 2 | 已经具有十多年的发展历史,成熟且稳定。这种语言具有非常简捷而清晰 3 | 的语法特点,适合完成各种高层任务,几乎可以在所有的操作系统中 4 | 运行。这种语言简单而强大,适合各种人士学习使用。目前,基于这 5 | 种语言的相关技术正在飞速的发展,用户数量急剧扩大,相关的资源非常多。 6 | 7 | -------------------------------------------------------------------------------- /Lib/test/dtracedata/line.d: -------------------------------------------------------------------------------- 1 | python$target:::line 2 | /(copyinstr(arg1)=="test_line")/ 3 | { 4 | printf("%d\t%s:%s:%s:%d\n", timestamp, 5 | probename, basename(copyinstr(arg0)), 6 | copyinstr(arg1), arg2); 7 | } 8 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/inNsRedecl.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/inNsSort.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inC14N1_c14nComment.xml: -------------------------------------------------------------------------------- 1 | 3 | Hello, world! 4 | 5 | 6 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/different_encoding.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | print u'ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ' 4 | 5 | def f(x): 6 | print '%s\t-> α(%2i):%s β(%s)' 7 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/inNsXml.xml: -------------------------------------------------------------------------------- 1 | 2 | data 3 | 4 | -------------------------------------------------------------------------------- /Lib/turtledemo/turtle.cfg: -------------------------------------------------------------------------------- 1 | width = 800 2 | height = 600 3 | canvwidth = 1200 4 | canvheight = 900 5 | shape = arrow 6 | mode = standard 7 | resizemode = auto 8 | fillcolor = "" 9 | title = Python turtle graphics demo. 10 | 11 | -------------------------------------------------------------------------------- /Misc/NEWS.d/3.6.4.rst: -------------------------------------------------------------------------------- 1 | .. bpo: 0 2 | .. date: 2017-12-18 3 | .. no changes: True 4 | .. nonce: qH8KPG 5 | .. release date: 2017-12-18 6 | .. section: Library 7 | 8 | There were no new code changes in version 3.6.4 since v3.6.4rc1. 9 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Build/2023-02-11-05-31-05.gh-issue-99069.X4LDvY.rst: -------------------------------------------------------------------------------- 1 | Extended workaround defining ``static_assert`` when missing from the libc headers to all clang and gcc builds. In particular, this fixes building on macOS <= 10.10. 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/documentation.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Documentation 3 | about: Report a problem with the documentation 4 | labels: "docs" 5 | --- 6 | 7 | **Documentation** 8 | 9 | (A clear and concise description of the issue.) 10 | -------------------------------------------------------------------------------- /Lib/test/badsyntax_future6.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | "this isn't a doc string" 3 | from __future__ import nested_scopes 4 | 5 | def f(x): 6 | def g(y): 7 | return x + y 8 | return g 9 | 10 | result = f(2)(4) 11 | -------------------------------------------------------------------------------- /Lib/test/gdb_sample.py: -------------------------------------------------------------------------------- 1 | # Sample script for use by test_gdb.py 2 | 3 | def foo(a, b, c): 4 | bar(a=a, b=b, c=c) 5 | 6 | def bar(a, b, c): 7 | baz(a, b, c) 8 | 9 | def baz(*args): 10 | id(42) 11 | 12 | foo(1, 2, 3) 13 | -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/README: -------------------------------------------------------------------------------- 1 | Sound file samples used by Lib/test/test_sndhdr.py and generated using the 2 | following commands: 3 | 4 | dd if=/dev/zero of=sndhdr.raw bs=20 count=1 5 | sox -s -2 -c 2 -r 44100 sndhdr.raw sndhdr. 6 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/msg_24.txt: -------------------------------------------------------------------------------- 1 | Content-Type: multipart/mixed; boundary="BOUNDARY" 2 | MIME-Version: 1.0 3 | Subject: A subject 4 | To: aperson@dom.ain 5 | From: bperson@dom.ain 6 | 7 | --BOUNDARY 8 | 9 | 10 | --BOUNDARY-- 11 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsRedecl_c14nPrefix.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsXml_c14nQname.xml: -------------------------------------------------------------------------------- 1 | 2 | data 3 | -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_tests.txt: -------------------------------------------------------------------------------- 1 | fuzz_builtin_float 2 | fuzz_builtin_int 3 | fuzz_builtin_unicode 4 | fuzz_json_loads 5 | fuzz_sre_compile 6 | fuzz_sre_match 7 | fuzz_csv_reader 8 | fuzz_struct_unpack 9 | fuzz_ast_literal_eval 10 | -------------------------------------------------------------------------------- /Lib/test/dtracedata/gc.py: -------------------------------------------------------------------------------- 1 | import gc 2 | 3 | def start(): 4 | gc.collect(0) 5 | gc.collect(1) 6 | gc.collect(2) 7 | l = [] 8 | l.append(l) 9 | del l 10 | gc.collect(2) 11 | 12 | gc.collect() 13 | start() 14 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsRedecl_c14nDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Lib/test/ann_module8.py: -------------------------------------------------------------------------------- 1 | # Test `@no_type_check`, 2 | # see https://bugs.python.org/issue46571 3 | 4 | class NoTypeCheck_Outer: 5 | class Inner: 6 | x: int 7 | 8 | 9 | def NoTypeCheck_function(arg: int) -> int: 10 | ... 11 | -------------------------------------------------------------------------------- /Lib/test/autotest.py: -------------------------------------------------------------------------------- 1 | # This should be equivalent to running regrtest.py from the cmdline. 2 | # It can be especially handy if you're in an interactive shell, e.g., 3 | # from test import autotest. 4 | from test.libregrtest import main 5 | main() 6 | -------------------------------------------------------------------------------- /Lib/test/badsyntax_future3.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | from __future__ import nested_scopes 3 | from __future__ import rested_snopes 4 | 5 | def f(x): 6 | def g(y): 7 | return x + y 8 | return g 9 | 10 | result = f(2)(4) 11 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/msg_41.txt: -------------------------------------------------------------------------------- 1 | From: "Allison Dunlap" 2 | To: yyy@example.com 3 | Subject: 64423 4 | Date: Sun, 11 Jul 2004 16:09:27 -0300 5 | MIME-Version: 1.0 6 | Content-Type: multipart/alternative; 7 | 8 | Blah blah blah 9 | -------------------------------------------------------------------------------- /Lib/test/tracedmodules/__init__.py: -------------------------------------------------------------------------------- 1 | """This package contains modules that help testing the trace.py module. Note 2 | that the exact location of functions in these modules is important, as trace.py 3 | takes the real line numbers into account. 4 | """ 5 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2023-04-15-12-19-14.gh-issue-103556.TEf-2m.rst: -------------------------------------------------------------------------------- 1 | Now creating :class:`inspect.Signature` objects with positional-only 2 | parameter with a default followed by a positional-or-keyword parameter 3 | without one is impossible. 4 | -------------------------------------------------------------------------------- /Python/dynload_stub.c: -------------------------------------------------------------------------------- 1 | 2 | /* This module provides the necessary stubs for when dynamic loading is 3 | not present. */ 4 | 5 | #include "Python.h" 6 | #include "importdl.h" 7 | 8 | 9 | const char *_PyImport_DynLoadFiletab[] = {NULL}; 10 | -------------------------------------------------------------------------------- /Tools/c-analyzer/c-analyzer.py: -------------------------------------------------------------------------------- 1 | from cpython.__main__ import parse_args, main, configure_logger 2 | 3 | 4 | cmd, cmd_kwargs, verbosity, traceback_cm = parse_args() 5 | configure_logger(verbosity) 6 | with traceback_cm: 7 | main(cmd, cmd_kwargs) 8 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*.{py,c,cpp,h,rst,md,yml}] 4 | trim_trailing_whitespace = true 5 | insert_final_newline = true 6 | indent_style = space 7 | 8 | [*.{py,c,cpp,h}] 9 | indent_size = 4 10 | 11 | [*.yml] 12 | indent_size = 2 13 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/inNsSuperfluous.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsSort_c14nDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsSuperfluous_c14nDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsXml_c14nPrefixQname.xml: -------------------------------------------------------------------------------- 1 | 2 | data 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/3.5.4.rst: -------------------------------------------------------------------------------- 1 | .. bpo: 30119 2 | .. date: 2017-07-26-15-11-17 3 | .. nonce: DZ6C_S 4 | .. release date: 2017-08-07 5 | .. section: Library 6 | 7 | ftplib.FTP.putline() now throws ValueError on commands that contains CR or 8 | LF. Patch by Dong-hee Na. 9 | -------------------------------------------------------------------------------- /Modules/_sha3/README.txt: -------------------------------------------------------------------------------- 1 | tiny_sha3 2 | ========= 3 | 4 | https://github.com/mjosaarinen/tiny_sha3 5 | commit dcbb3192047c2a721f5f851db591871d428036a9 6 | 7 | - All functions have been converted to static functions. 8 | - sha3() function is commented out. 9 | -------------------------------------------------------------------------------- /Tools/peg_generator/pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.black] 2 | line-length = 99 3 | target_version = ['py38'] 4 | exclude = ''' 5 | ( 6 | /pegen/grammar_parser.py # generated file 7 | | /test/test_data/ # test files 8 | ) 9 | ''' 10 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/inC14N2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | A B 4 | 5 | A 6 | 7 | B 8 | A B 9 | C 10 | 11 | 12 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsSort_c14nPrefix.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Tools/unicode/genwincodecs.bat: -------------------------------------------------------------------------------- 1 | @rem Recreate some python charmap codecs from the Windows function 2 | @rem MultiByteToWideChar. 3 | 4 | @cd /d %~dp0 5 | @mkdir build 6 | @rem Arabic DOS code page 7 | c:\python30\python genwincodec.py 720 > build/cp720.py 8 | -------------------------------------------------------------------------------- /.github/workflows/regen-abidump.sh: -------------------------------------------------------------------------------- 1 | set -ex 2 | 3 | export DEBIAN_FRONTEND=noninteractive 4 | ./.github/workflows/posix-deps-apt.sh 5 | apt-get install -yq abigail-tools python3 6 | export CFLAGS="-g3 -O0" 7 | ./configure --enable-shared && make 8 | make regen-abidump 9 | -------------------------------------------------------------------------------- /Lib/sre_parse.py: -------------------------------------------------------------------------------- 1 | import warnings 2 | warnings.warn(f"module {__name__!r} is deprecated", 3 | DeprecationWarning, 4 | stacklevel=2) 5 | 6 | from re import _parser as _ 7 | globals().update({k: v for k, v in vars(_).items() if k[:2] != '__'}) 8 | -------------------------------------------------------------------------------- /Lib/test/test_ctypes.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | from test.support.import_helper import import_module 3 | 4 | 5 | ctypes_test = import_module('ctypes.test') 6 | 7 | load_tests = ctypes_test.load_tests 8 | 9 | if __name__ == "__main__": 10 | unittest.main() 11 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsPushdown_c14nDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Tools/peg_generator/data/cprog.py: -------------------------------------------------------------------------------- 1 | if 1: 2 | print("Hello " + "world") 3 | if 0: 4 | print("then") 5 | print("clause") 6 | elif 1: 7 | pass 8 | elif 1: 9 | pass 10 | else: 11 | print("else-clause") 12 | -------------------------------------------------------------------------------- /Lib/sre_compile.py: -------------------------------------------------------------------------------- 1 | import warnings 2 | warnings.warn(f"module {__name__!r} is deprecated", 3 | DeprecationWarning, 4 | stacklevel=2) 5 | 6 | from re import _compiler as _ 7 | globals().update({k: v for k, v in vars(_).items() if k[:2] != '__'}) 8 | -------------------------------------------------------------------------------- /Lib/test/ann_module5.py: -------------------------------------------------------------------------------- 1 | # Used by test_typing to verify that Final wrapped in ForwardRef works. 2 | 3 | from __future__ import annotations 4 | 5 | from typing import Final 6 | 7 | name: Final[str] = "final" 8 | 9 | class MyClass: 10 | value: Final = 3000 11 | -------------------------------------------------------------------------------- /Lib/test/badsyntax_future5.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | from __future__ import nested_scopes 3 | import foo 4 | from __future__ import nested_scopes 5 | 6 | 7 | def f(x): 8 | def g(y): 9 | return x + y 10 | return g 11 | 12 | result = f(2)(4) 13 | -------------------------------------------------------------------------------- /Lib/test/good_getattr.py: -------------------------------------------------------------------------------- 1 | x = 1 2 | 3 | def __dir__(): 4 | return ['a', 'b', 'c'] 5 | 6 | def __getattr__(name): 7 | if name == "yolo": 8 | raise AttributeError("Deprecated, use whatever instead") 9 | return f"There is {name}" 10 | 11 | y = 2 12 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inC14N2_c14nDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | A B 4 | 5 | A 6 | 7 | B 8 | A B 9 | C 10 | 11 | -------------------------------------------------------------------------------- /Python/deepfreeze/README.txt: -------------------------------------------------------------------------------- 1 | This directory contains the generated .c files for all the deep-frozen 2 | modules. Python/frozen.c depends on these files. 3 | 4 | None of these files are committed into the repo. 5 | 6 | See Tools/scripts/freeze_modules.py for more info. 7 | -------------------------------------------------------------------------------- /Lib/sre_constants.py: -------------------------------------------------------------------------------- 1 | import warnings 2 | warnings.warn(f"module {__name__!r} is deprecated", 3 | DeprecationWarning, 4 | stacklevel=2) 5 | 6 | from re import _constants as _ 7 | globals().update({k: v for k, v in vars(_).items() if k[:2] != '__'}) 8 | -------------------------------------------------------------------------------- /Lib/test/badsyntax_future7.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | 3 | from __future__ import nested_scopes; import string; from __future__ import \ 4 | nested_scopes 5 | 6 | def f(x): 7 | def g(y): 8 | return x + y 9 | return g 10 | 11 | result = f(2)(4) 12 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/msg_40.txt: -------------------------------------------------------------------------------- 1 | MIME-Version: 1.0 2 | Content-Type: text/html; boundary="--961284236552522269" 3 | 4 | ----961284236552522269 5 | Content-Type: text/html; 6 | Content-Transfer-Encoding: 7Bit 7 | 8 | 9 | 10 | ----961284236552522269-- 11 | -------------------------------------------------------------------------------- /Doc/distutils/uploading.rst: -------------------------------------------------------------------------------- 1 | :orphan: 2 | 3 | *************************************** 4 | Uploading Packages to the Package Index 5 | *************************************** 6 | 7 | References to up to date PyPI documentation can be found at 8 | :ref:`publishing-python-packages`. 9 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsPushdown_c14nPrefix.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Include/cpython/fileutils.h: -------------------------------------------------------------------------------- 1 | #ifndef Py_CPYTHON_FILEUTILS_H 2 | # error "this header file must not be included directly" 3 | #endif 4 | 5 | // Used by _testcapi which must not use the internal C API 6 | PyAPI_FUNC(FILE*) _Py_fopen_obj( 7 | PyObject *path, 8 | const char *mode); 9 | -------------------------------------------------------------------------------- /Include/internal/pycore_pyhash.h: -------------------------------------------------------------------------------- 1 | #ifndef Py_INTERNAL_HASH_H 2 | #define Py_INTERNAL_HASH_H 3 | 4 | #ifndef Py_BUILD_CORE 5 | # error "this header requires Py_BUILD_CORE define" 6 | #endif 7 | 8 | uint64_t _Py_KeyedHash(uint64_t, const char *, Py_ssize_t); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /Lib/test/cjkencodings/cp949-utf8.txt: -------------------------------------------------------------------------------- 1 | 똠방각하 펲시콜라 2 | 3 | ㉯㉯납!! 因九月패믤릔궈 ⓡⓖ훀¿¿¿ 긍뒙 ⓔ뎨 ㉯. . 4 | 亞영ⓔ능횹 . . . . 서울뤄 뎐학乙 家훀 ! ! !ㅠ.ㅠ 5 | 흐흐흐 ㄱㄱㄱ☆ㅠ_ㅠ 어릨 탸콰긐 뎌응 칑九들乙 ㉯드긐 6 | 설릌 家훀 . . . . 굴애쉌 ⓔ궈 ⓡ릘㉱긐 因仁川女中까즼 7 | 와쒀훀 ! ! 亞영ⓔ 家능궈 ☆上관 없능궈능 亞능뒈훀 글애듴 8 | ⓡ려듀九 싀풔숴훀 어릨 因仁川女中싁⑨들앜!! ㉯㉯납♡ ⌒⌒* 9 | 10 | -------------------------------------------------------------------------------- /Lib/test/cjkencodings/johab-utf8.txt: -------------------------------------------------------------------------------- 1 | 똠방각하 펲시콜라 2 | 3 | ㉯㉯납!! 因九月패믤릔궈 ⓡⓖ훀¿¿¿ 긍뒙 ⓔ뎨 ㉯. . 4 | 亞영ⓔ능횹 . . . . 서울뤄 뎐학乙 家훀 ! ! !ㅠ.ㅠ 5 | 흐흐흐 ㄱㄱㄱ☆ㅠ_ㅠ 어릨 탸콰긐 뎌응 칑九들乙 ㉯드긐 6 | 설릌 家훀 . . . . 굴애쉌 ⓔ궈 ⓡ릘㉱긐 因仁川女中까즼 7 | 와쒀훀 ! ! 亞영ⓔ 家능궈 ☆上관 없능궈능 亞능뒈훀 글애듴 8 | ⓡ려듀九 싀풔숴훀 어릨 因仁川女中싁⑨들앜!! ㉯㉯납♡ ⌒⌒* 9 | 10 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/msg_18.txt: -------------------------------------------------------------------------------- 1 | Content-Type: text/plain; charset="us-ascii" 2 | MIME-Version: 1.0 3 | Content-Transfer-Encoding: 7bit 4 | X-Foobar-Spoink-Defrobnit: wasnipoop; giraffes="very-long-necked-animals"; 5 | spooge="yummy"; hippos="gargantuan"; marshmallows="gooey" 6 | 7 | -------------------------------------------------------------------------------- /PCbuild/Directory.Build.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsContent_c14nDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | xsd:string 3 | /soap-env:body/child::b:foo[@att1 != "c:val" and @att2 != 'xsd:string'] 4 | -------------------------------------------------------------------------------- /PCbuild/Directory.Build.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Tools/msi/lib/lib_en-US.wxl: -------------------------------------------------------------------------------- 1 | 2 | 3 | Standard Library 4 | lib 5 | 6 | -------------------------------------------------------------------------------- /Doc/distutils/_setuptools_disclaimer.rst: -------------------------------------------------------------------------------- 1 | .. note:: 2 | 3 | This document is being retained solely until the ``setuptools`` documentation 4 | at https://setuptools.readthedocs.io/en/latest/setuptools.html 5 | independently covers all of the relevant information currently included here. 6 | -------------------------------------------------------------------------------- /Lib/test/cjkencodings/iso2022_kr-utf8.txt: -------------------------------------------------------------------------------- 1 | ◎ 파이썬(Python)은 배우기 쉽고, 강력한 프로그래밍 언어입니다. 파이썬은 2 | 효율적인 고수준 데이터 구조와 간단하지만 효율적인 객체지향프로그래밍을 3 | 지원합니다. 파이썬의 우아(優雅)한 문법과 동적 타이핑, 그리고 인터프리팅 4 | 환경은 파이썬을 스크립팅과 여러 분야에서와 대부분의 플랫폼에서의 빠른 5 | 애플리케이션 개발을 할 수 있는 이상적인 언어로 만들어줍니다. 6 | 7 | ☆첫가끝: 날아라 쓩~ 큼! 금없이 전니다. 그런거 다. 8 | -------------------------------------------------------------------------------- /Lib/test/test_future4.py: -------------------------------------------------------------------------------- 1 | from __future__ import unicode_literals 2 | import unittest 3 | 4 | 5 | class Tests(unittest.TestCase): 6 | def test_unicode_literals(self): 7 | self.assertIsInstance("literal", str) 8 | 9 | 10 | if __name__ == "__main__": 11 | unittest.main() 12 | -------------------------------------------------------------------------------- /Modules/_ctypes/libffi_osx/README.pyobjc: -------------------------------------------------------------------------------- 1 | This directory contains a slightly modified version of libffi, extracted from 2 | the GCC source-tree. 3 | 4 | The only modifications are those that are necessary to compile libffi using 5 | the Apple provided compiler and outside of the GCC source tree. 6 | -------------------------------------------------------------------------------- /Tools/msi/core/core_en-US.wxl: -------------------------------------------------------------------------------- 1 | 2 | 3 | Core Interpreter 4 | core 5 | 6 | -------------------------------------------------------------------------------- /Tools/msi/dev/dev_en-US.wxl: -------------------------------------------------------------------------------- 1 | 2 | 3 | Development Libraries 4 | dev 5 | 6 | -------------------------------------------------------------------------------- /Tools/msi/tools/tools_en-US.wxl: -------------------------------------------------------------------------------- 1 | 2 | 3 | Utility Scripts 4 | tools 5 | 6 | -------------------------------------------------------------------------------- /Tools/msi/ucrt/ucrt_en-US.wxl: -------------------------------------------------------------------------------- 1 | 2 | 3 | C Runtime Library 4 | ucrt 5 | 6 | -------------------------------------------------------------------------------- /Lib/test/cjkencodings/euc_kr-utf8.txt: -------------------------------------------------------------------------------- 1 | ◎ 파이썬(Python)은 배우기 쉽고, 강력한 프로그래밍 언어입니다. 파이썬은 2 | 효율적인 고수준 데이터 구조와 간단하지만 효율적인 객체지향프로그래밍을 3 | 지원합니다. 파이썬의 우아(優雅)한 문법과 동적 타이핑, 그리고 인터프리팅 4 | 환경은 파이썬을 스크립팅과 여러 분야에서와 대부분의 플랫폼에서의 빠른 5 | 애플리케이션 개발을 할 수 있는 이상적인 언어로 만들어줍니다. 6 | 7 | ☆첫가끝: 날아라 쓔쓔쓩~ 닁큼! 뜽금없이 전홥니다. 뷁. 그런거 읎다. 8 | -------------------------------------------------------------------------------- /Lib/test/secp384r1.pem: -------------------------------------------------------------------------------- 1 | $ openssl genpkey -genparam -algorithm EC -pkeyopt ec_paramgen_curve:secp384r1 -pkeyopt ec_param_enc:named_curve -text 2 | -----BEGIN EC PARAMETERS----- 3 | BgUrgQQAIg== 4 | -----END EC PARAMETERS----- 5 | ECDSA-Parameters: (384 bit) 6 | ASN1 OID: secp384r1 7 | NIST CURVE: P-384 8 | -------------------------------------------------------------------------------- /Lib/test/test_longexp.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | 3 | class LongExpText(unittest.TestCase): 4 | def test_longexp(self): 5 | REPS = 65580 6 | l = eval("[" + "2," * REPS + "]") 7 | self.assertEqual(len(l), REPS) 8 | 9 | if __name__ == "__main__": 10 | unittest.main() 11 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/c14nTrim.xml: -------------------------------------------------------------------------------- 1 | 2 | true 3 | 4 | 5 | -------------------------------------------------------------------------------- /Lib/xml/parsers/expat.py: -------------------------------------------------------------------------------- 1 | """Interface to the Expat non-validating XML parser.""" 2 | import sys 3 | 4 | from pyexpat import * 5 | 6 | # provide pyexpat submodules as xml.parsers.expat submodules 7 | sys.modules['xml.parsers.expat.model'] = model 8 | sys.modules['xml.parsers.expat.errors'] = errors 9 | -------------------------------------------------------------------------------- /Objects/stringlib/undef.h: -------------------------------------------------------------------------------- 1 | #undef FASTSEARCH 2 | #undef STRINGLIB 3 | #undef STRINGLIB_SIZEOF_CHAR 4 | #undef STRINGLIB_MAX_CHAR 5 | #undef STRINGLIB_CHAR 6 | #undef STRINGLIB_STR 7 | #undef STRINGLIB_LEN 8 | #undef STRINGLIB_NEW 9 | #undef STRINGLIB_IS_UNICODE 10 | #undef STRINGLIB_MUTABLE 11 | -------------------------------------------------------------------------------- /Lib/test/future_test1.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | 3 | # Import the name nested_scopes twice to trigger SF bug #407394 (regression). 4 | from __future__ import nested_scopes, nested_scopes 5 | 6 | def f(x): 7 | def g(y): 8 | return x + y 9 | return g 10 | 11 | result = f(2)(4) 12 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/msg_31.txt: -------------------------------------------------------------------------------- 1 | From: aperson@dom.ain 2 | MIME-Version: 1.0 3 | Content-Type: multipart/mixed; boundary=BOUNDARY_ 4 | 5 | --BOUNDARY 6 | Content-Type: text/plain 7 | 8 | message 1 9 | 10 | --BOUNDARY 11 | Content-Type: text/plain 12 | 13 | message 2 14 | 15 | --BOUNDARY-- 16 | -------------------------------------------------------------------------------- /Lib/test/test_tomllib/data/valid/array/array-subtables.json: -------------------------------------------------------------------------------- 1 | {"arr": 2 | {"type":"array","value": 3 | [ 4 | {"subtab": 5 | {"val": {"type":"integer","value":"1"} 6 | } 7 | }, 8 | {"subtab": {"val": {"type":"integer","value":"2"}}} 9 | ] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/c14nComment.xml: -------------------------------------------------------------------------------- 1 | 2 | true 3 | 4 | 5 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/stubs.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | 3 | 4 | class fake_filesystem_unittest: 5 | """ 6 | Stubbed version of the pyfakefs module 7 | """ 8 | class TestCase(unittest.TestCase): 9 | def setUpPyfakefs(self): 10 | self.skipTest("pyfakefs not available") 11 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/c14nPrefix.xml: -------------------------------------------------------------------------------- 1 | 2 | sequential 3 | 4 | 5 | -------------------------------------------------------------------------------- /Mac/PythonLauncher/doscript.h: -------------------------------------------------------------------------------- 1 | /* 2 | * doscript.h 3 | * PythonLauncher 4 | * 5 | * Created by Jack Jansen on Wed Jul 31 2002. 6 | * Copyright (c) 2002 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include 11 | 12 | extern int doscript(const char *command); 13 | -------------------------------------------------------------------------------- /Tools/freeze/test/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile to test freeze 2 | # set PYTHON to path of Python interpreter to test 3 | PYTHON=python 4 | # set OUTDIR to the temp directory for freeze 5 | OUTDIR=outdir 6 | 7 | test: 8 | $(PYTHON) ../freeze.py -o $(OUTDIR) ok.py 9 | make -C $(OUTDIR) 10 | $(OUTDIR)/ok 11 | 12 | -------------------------------------------------------------------------------- /Lib/distutils/README: -------------------------------------------------------------------------------- 1 | This directory contains the Distutils package. 2 | 3 | There's a full documentation available at: 4 | 5 | https://docs.python.org/distutils/ 6 | 7 | The Distutils-SIG web page is also a good starting point: 8 | 9 | https://www.python.org/sigs/distutils-sig/ 10 | 11 | $Id$ 12 | -------------------------------------------------------------------------------- /Lib/test/test_doctest4.txt: -------------------------------------------------------------------------------- 1 | This is a sample doctest in a text file that contains non-ASCII characters. 2 | This file is encoded using UTF-8. 3 | 4 | In order to get this test to pass, we have to manually specify the 5 | encoding. 6 | 7 | >>> 'föö' 8 | 'f\xf6\xf6' 9 | 10 | >>> 'bąr' 11 | 'b\u0105r' 12 | -------------------------------------------------------------------------------- /Doc/includes/wasm-notavail.rst: -------------------------------------------------------------------------------- 1 | .. include for modules that don't work on WASM 2 | 3 | .. availability:: not Emscripten, not WASI. 4 | 5 | This module does not work or is not available on WebAssembly platforms 6 | ``wasm32-emscripten`` and ``wasm32-wasi``. See 7 | :ref:`wasm-availability` for more information. 8 | -------------------------------------------------------------------------------- /Lib/__hello__.py: -------------------------------------------------------------------------------- 1 | initialized = True 2 | 3 | class TestFrozenUtf8_1: 4 | """\u00b6""" 5 | 6 | class TestFrozenUtf8_2: 7 | """\u03c0""" 8 | 9 | class TestFrozenUtf8_4: 10 | """\U0001f600""" 11 | 12 | def main(): 13 | print("Hello world!") 14 | 15 | if __name__ == '__main__': 16 | main() 17 | -------------------------------------------------------------------------------- /Lib/test/sample_doctest_no_docstrings.py: -------------------------------------------------------------------------------- 1 | # This is a sample module used for testing doctest. 2 | # 3 | # This module is for testing how doctest handles a module with no 4 | # docstrings. 5 | 6 | 7 | class Foo(object): 8 | 9 | # A class with no docstring. 10 | 11 | def __init__(self): 12 | pass 13 | -------------------------------------------------------------------------------- /Lib/test/test_warnings/data/stacklevel.py: -------------------------------------------------------------------------------- 1 | # Helper module for testing the skipmodules argument of warnings.warn() 2 | 3 | import warnings 4 | 5 | def outer(message, stacklevel=1): 6 | inner(message, stacklevel) 7 | 8 | def inner(message, stacklevel=1): 9 | warnings.warn(message, stacklevel=stacklevel) 10 | -------------------------------------------------------------------------------- /Lib/tomllib/_types.py: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: MIT 2 | # SPDX-FileCopyrightText: 2021 Taneli Hukkinen 3 | # Licensed to PSF under a Contributor Agreement. 4 | 5 | from typing import Callable, Tuple 6 | 7 | # Type annotations 8 | ParseFloat = Callable[[str], object] 9 | Key = Tuple[str, ...] 10 | Pos = int 11 | -------------------------------------------------------------------------------- /Lib/test/doctest_aliases.py: -------------------------------------------------------------------------------- 1 | # Used by test_doctest.py. 2 | 3 | class TwoNames: 4 | '''f() and g() are two names for the same method''' 5 | 6 | def f(self): 7 | ''' 8 | >>> print(TwoNames().f()) 9 | f 10 | ''' 11 | return 'f' 12 | 13 | g = f # define an alias for f 14 | -------------------------------------------------------------------------------- /Lib/test/test_unittest.py: -------------------------------------------------------------------------------- 1 | import unittest.test 2 | 3 | from test import support 4 | 5 | 6 | def load_tests(*_): 7 | # used by unittest 8 | return unittest.test.suite() 9 | 10 | 11 | def tearDownModule(): 12 | support.reap_children() 13 | 14 | 15 | if __name__ == "__main__": 16 | unittest.main() 17 | -------------------------------------------------------------------------------- /Python/frozen_modules/README.txt: -------------------------------------------------------------------------------- 1 | This directory contains the generated .h files for all the frozen 2 | modules. Python/frozen.c depends on these files. 3 | 4 | Note that, other than the required frozen modules, none of these files 5 | are committed into the repo. 6 | 7 | See Tools/scripts/freeze_modules.py for more info. 8 | -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.xbm: -------------------------------------------------------------------------------- 1 | #define python_width 16 2 | #define python_height 16 3 | static char python_bits[] = { 4 | 0xDF, 0xFE, 0x8F, 0xFD, 0x5F, 0xFB, 0xAB, 0xFE, 0xB5, 0x8D, 0xDA, 0x8F, 5 | 0xA5, 0x86, 0xFA, 0x83, 0x1A, 0x80, 0x0D, 0x80, 0x0D, 0x80, 0x0F, 0xE0, 6 | 0x0F, 0xF8, 0x0F, 0xF8, 0x0F, 0xFC, 0xFF, 0xFF, }; 7 | -------------------------------------------------------------------------------- /Lib/test/subprocessdata/qgrep.py: -------------------------------------------------------------------------------- 1 | """When called with a single argument, simulated fgrep with a single 2 | argument and no options.""" 3 | 4 | import sys 5 | 6 | if __name__ == "__main__": 7 | pattern = sys.argv[1] 8 | for line in sys.stdin: 9 | if pattern in line: 10 | sys.stdout.write(line) 11 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/inC14N1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | Hello, world! 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/python.xbm: -------------------------------------------------------------------------------- 1 | #define python_width 16 2 | #define python_height 16 3 | static char python_bits[] = { 4 | 0xDF, 0xFE, 0x8F, 0xFD, 0x5F, 0xFB, 0xAB, 0xFE, 0xB5, 0x8D, 0xDA, 0x8F, 5 | 0xA5, 0x86, 0xFA, 0x83, 0x1A, 0x80, 0x0D, 0x80, 0x0D, 0x80, 0x0F, 0xE0, 6 | 0x0F, 0xF8, 0x0F, 0xF8, 0x0F, 0xFC, 0xFF, 0xFF, }; 7 | -------------------------------------------------------------------------------- /Modules/getpath_noop.c: -------------------------------------------------------------------------------- 1 | /* Implements the getpath API for compiling with no functionality */ 2 | 3 | #include "Python.h" 4 | #include "pycore_pathconfig.h" 5 | 6 | PyStatus 7 | _PyConfig_InitPathConfig(PyConfig *config, int compute_path_config) 8 | { 9 | return PyStatus_Error("path configuration is unsupported"); 10 | } 11 | -------------------------------------------------------------------------------- /Lib/struct.py: -------------------------------------------------------------------------------- 1 | __all__ = [ 2 | # Functions 3 | 'calcsize', 'pack', 'pack_into', 'unpack', 'unpack_from', 4 | 'iter_unpack', 5 | 6 | # Classes 7 | 'Struct', 8 | 9 | # Exceptions 10 | 'error' 11 | ] 12 | 13 | from _struct import * 14 | from _struct import _clearcache 15 | from _struct import __doc__ 16 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsContent_c14nQnameElem.xml: -------------------------------------------------------------------------------- 1 | 2 | xsd:string 3 | /soap-env:body/child::b:foo[@att1 != "c:val" and @att2 != 'xsd:string'] 4 | -------------------------------------------------------------------------------- /Doc/library/windows.rst: -------------------------------------------------------------------------------- 1 | .. _mswin-specific-services: 2 | 3 | **************************** 4 | MS Windows Specific Services 5 | **************************** 6 | 7 | This chapter describes modules that are only available on MS Windows platforms. 8 | 9 | 10 | .. toctree:: 11 | 12 | msvcrt.rst 13 | winreg.rst 14 | winsound.rst 15 | -------------------------------------------------------------------------------- /Lib/ctypes/macholib/README.ctypes: -------------------------------------------------------------------------------- 1 | Files in this directory come from Bob Ippolito's py2app. 2 | 3 | License: Any components of the py2app suite may be distributed under 4 | the MIT or PSF open source licenses. 5 | 6 | This is version 1.0, SVN revision 789, from 2006/01/25. 7 | The main repository is http://svn.red-bean.com/bob/macholib/trunk/macholib/ -------------------------------------------------------------------------------- /Misc/python.pc.in: -------------------------------------------------------------------------------- 1 | # See: man pkg-config 2 | prefix=@prefix@ 3 | exec_prefix=@exec_prefix@ 4 | libdir=@libdir@ 5 | includedir=@includedir@ 6 | 7 | Name: Python 8 | Description: Build a C extension for Python 9 | Requires: 10 | Version: @VERSION@ 11 | Libs.private: @LIBS@ 12 | Libs: 13 | Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@ 14 | -------------------------------------------------------------------------------- /Include/bltinmodule.h: -------------------------------------------------------------------------------- 1 | #ifndef Py_BLTINMODULE_H 2 | #define Py_BLTINMODULE_H 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | PyAPI_DATA(PyTypeObject) PyFilter_Type; 8 | PyAPI_DATA(PyTypeObject) PyMap_Type; 9 | PyAPI_DATA(PyTypeObject) PyZip_Type; 10 | 11 | #ifdef __cplusplus 12 | } 13 | #endif 14 | #endif /* !Py_BLTINMODULE_H */ 15 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/msg_37.txt: -------------------------------------------------------------------------------- 1 | Content-Type: multipart/mixed; boundary=ABCDE 2 | 3 | --ABCDE 4 | Content-Type: text/x-one 5 | 6 | Blah 7 | 8 | --ABCDE 9 | --ABCDE 10 | Content-Type: text/x-two 11 | 12 | Blah 13 | 14 | --ABCDE 15 | --ABCDE 16 | --ABCDE 17 | --ABCDE 18 | Content-Type: text/x-two 19 | 20 | Blah 21 | 22 | --ABCDE-- 23 | -------------------------------------------------------------------------------- /Include/enumobject.h: -------------------------------------------------------------------------------- 1 | #ifndef Py_ENUMOBJECT_H 2 | #define Py_ENUMOBJECT_H 3 | 4 | /* Enumerate Object */ 5 | 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | PyAPI_DATA(PyTypeObject) PyEnum_Type; 11 | PyAPI_DATA(PyTypeObject) PyReversed_Type; 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | #endif /* !Py_ENUMOBJECT_H */ 18 | -------------------------------------------------------------------------------- /Lib/test/test_asyncio/echo3.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | if __name__ == '__main__': 4 | while True: 5 | buf = os.read(0, 1024) 6 | if not buf: 7 | break 8 | try: 9 | os.write(1, b'OUT:'+buf) 10 | except OSError as ex: 11 | os.write(2, b'ERR:' + ex.__class__.__name__.encode('ascii')) 12 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/c14nQnameElem.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Tools/wasm/Setup.local.example: -------------------------------------------------------------------------------- 1 | # Module/Setup.local with reduced stdlib 2 | *disabled* 3 | _asyncio 4 | audioop 5 | _bz2 6 | _crypt 7 | _decimal 8 | _pickle 9 | pyexpat _elementtree 10 | _sha3 _blake2 11 | _zoneinfo 12 | xxsubtype 13 | 14 | # cjk codecs 15 | #_multibytecodec _codecs_cn _codecs_hk _codecs_iso2022 _codecs_jp _codecs_kr _codecs_tw 16 | -------------------------------------------------------------------------------- /Programs/python.c: -------------------------------------------------------------------------------- 1 | /* Minimal main program -- everything is loaded from the library */ 2 | 3 | #include "Python.h" 4 | 5 | #ifdef MS_WINDOWS 6 | int 7 | wmain(int argc, wchar_t **argv) 8 | { 9 | return Py_Main(argc, argv); 10 | } 11 | #else 12 | int 13 | main(int argc, char **argv) 14 | { 15 | return Py_BytesMain(argc, argv); 16 | } 17 | #endif 18 | -------------------------------------------------------------------------------- /Tools/importbench/README: -------------------------------------------------------------------------------- 1 | Importbench is a set of micro-benchmarks for various import scenarios. 2 | 3 | It should not be used as an overall benchmark of import performance, but rather 4 | an easy way to measure impact of possible code changes. For a real-world 5 | benchmark of import, use the normal_startup benchmark from 6 | https://github.com/python/performance 7 | -------------------------------------------------------------------------------- /Lib/test/ann_module7.py: -------------------------------------------------------------------------------- 1 | # Tests class have ``__text_signature__`` 2 | 3 | from __future__ import annotations 4 | 5 | DEFAULT_BUFFER_SIZE = 8192 6 | 7 | class BufferedReader(object): 8 | """BufferedReader(raw, buffer_size=DEFAULT_BUFFER_SIZE)\n--\n\n 9 | Create a new buffered reader using the given readable raw IO object. 10 | """ 11 | pass 12 | -------------------------------------------------------------------------------- /Lib/test/test_multiprocessing_spawn.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | import test._test_multiprocessing 3 | 4 | from test import support 5 | 6 | if support.PGO: 7 | raise unittest.SkipTest("test is not helpful for PGO") 8 | 9 | test._test_multiprocessing.install_tests_in_module_dict(globals(), 'spawn') 10 | 11 | if __name__ == '__main__': 12 | unittest.main() 13 | -------------------------------------------------------------------------------- /Doc/faq/index.rst: -------------------------------------------------------------------------------- 1 | .. _faq-index: 2 | 3 | ################################### 4 | Python Frequently Asked Questions 5 | ################################### 6 | 7 | .. toctree:: 8 | :maxdepth: 1 9 | 10 | general.rst 11 | programming.rst 12 | design.rst 13 | library.rst 14 | extending.rst 15 | windows.rst 16 | gui.rst 17 | installed.rst 18 | -------------------------------------------------------------------------------- /Lib/test/cjkencodings/big5-utf8.txt: -------------------------------------------------------------------------------- 1 | 如何在 Python 中使用既有的 C library? 2 |  在資訊科技快速發展的今天, 開發及測試軟體的速度是不容忽視的 3 | 課題. 為加快開發及測試的速度, 我們便常希望能利用一些已開發好的 4 | library, 並有一個 fast prototyping 的 programming language 可 5 | 供使用. 目前有許許多多的 library 是以 C 寫成, 而 Python 是一個 6 | fast prototyping 的 programming language. 故我們希望能將既有的 7 | C library 拿到 Python 的環境中測試及整合. 其中最主要也是我們所 8 | 要討論的問題就是: 9 | 10 | -------------------------------------------------------------------------------- /Lib/test/sample_doctest_no_doctests.py: -------------------------------------------------------------------------------- 1 | """This is a sample module used for testing doctest. 2 | 3 | This module is for testing how doctest handles a module with docstrings 4 | but no doctest examples. 5 | 6 | """ 7 | 8 | 9 | class Foo(object): 10 | """A docstring with no doctest examples. 11 | 12 | """ 13 | 14 | def __init__(self): 15 | pass 16 | -------------------------------------------------------------------------------- /Lib/test/test_lib2to3.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | from test.support.import_helper import import_fresh_module 3 | from test.support.warnings_helper import check_warnings 4 | 5 | with check_warnings(("", DeprecationWarning)): 6 | load_tests = import_fresh_module('lib2to3.tests', fresh=['lib2to3']).load_tests 7 | 8 | if __name__ == '__main__': 9 | unittest.main() 10 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inC14N3_c14nTrim.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Tools/msi/pip/pip_en-US.wxl: -------------------------------------------------------------------------------- 1 | 2 | 3 | pip Bootstrap 4 | pip 5 | No !(loc.ProductName) installation was detected. 6 | 7 | -------------------------------------------------------------------------------- /Tools/scripts/reindent-rst.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | # Make a reST file compliant to our pre-commit hook. 4 | # Currently just remove trailing whitespace. 5 | 6 | import sys 7 | 8 | import patchcheck 9 | 10 | def main(argv=sys.argv): 11 | patchcheck.normalize_docs_whitespace(argv[1:]) 12 | 13 | if __name__ == '__main__': 14 | sys.exit(main()) 15 | -------------------------------------------------------------------------------- /Lib/test/test_json/test_default.py: -------------------------------------------------------------------------------- 1 | from test.test_json import PyTest, CTest 2 | 3 | 4 | class TestDefault: 5 | def test_default(self): 6 | self.assertEqual( 7 | self.dumps(type, default=repr), 8 | self.dumps(repr(type))) 9 | 10 | 11 | class TestPyDefault(TestDefault, PyTest): pass 12 | class TestCDefault(TestDefault, CTest): pass 13 | -------------------------------------------------------------------------------- /Lib/test/typinganndata/ann_module9.py: -------------------------------------------------------------------------------- 1 | # Test ``inspect.formatannotation`` 2 | # https://github.com/python/cpython/issues/96073 3 | 4 | from typing import Union, List 5 | 6 | ann = Union[List[str], int] 7 | 8 | # mock typing._type_repr behaviour 9 | class A: ... 10 | 11 | A.__module__ = 'testModule.typing' 12 | A.__qualname__ = 'A' 13 | 14 | ann1 = Union[List[A], int] 15 | -------------------------------------------------------------------------------- /Lib/tomllib/__init__.py: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: MIT 2 | # SPDX-FileCopyrightText: 2021 Taneli Hukkinen 3 | # Licensed to PSF under a Contributor Agreement. 4 | 5 | __all__ = ("loads", "load", "TOMLDecodeError") 6 | 7 | from ._parser import load, loads 8 | 9 | 10 | class TOMLDecodeError(ValueError): 11 | """An error raised if a document is not valid TOML.""" 12 | -------------------------------------------------------------------------------- /Lib/unittest/test/testmock/support.py: -------------------------------------------------------------------------------- 1 | target = {'foo': 'FOO'} 2 | 3 | 4 | def is_instance(obj, klass): 5 | """Version of is_instance that doesn't access __class__""" 6 | return issubclass(type(obj), klass) 7 | 8 | 9 | class SomeClass(object): 10 | class_attribute = None 11 | 12 | def wibble(self): pass 13 | 14 | 15 | class X(object): 16 | pass 17 | -------------------------------------------------------------------------------- /Tools/msi/path/path_en-US.wxl: -------------------------------------------------------------------------------- 1 | 2 | 3 | Add to Path 4 | Path 5 | No !(loc.ProductName) installation was detected. 6 | 7 | -------------------------------------------------------------------------------- /Lib/decimal.py: -------------------------------------------------------------------------------- 1 | 2 | try: 3 | from _decimal import * 4 | from _decimal import __doc__ 5 | from _decimal import __version__ 6 | from _decimal import __libmpdec_version__ 7 | except ImportError: 8 | from _pydecimal import * 9 | from _pydecimal import __doc__ 10 | from _pydecimal import __version__ 11 | from _pydecimal import __libmpdec_version__ 12 | -------------------------------------------------------------------------------- /Lib/distutils/tests/test_versionpredicate.py: -------------------------------------------------------------------------------- 1 | """Tests harness for distutils.versionpredicate. 2 | 3 | """ 4 | 5 | import distutils.versionpredicate 6 | import doctest 7 | from test.support import run_unittest 8 | 9 | def test_suite(): 10 | return doctest.DocTestSuite(distutils.versionpredicate) 11 | 12 | if __name__ == '__main__': 13 | run_unittest(test_suite()) 14 | -------------------------------------------------------------------------------- /Lib/test/leakers/test_selftype.py: -------------------------------------------------------------------------------- 1 | # Reference cycles involving only the ob_type field are rather uncommon 2 | # but possible. Inspired by SF bug 1469629. 3 | 4 | import gc 5 | 6 | def leak(): 7 | class T(type): 8 | pass 9 | class U(type, metaclass=T): 10 | pass 11 | U.__class__ = U 12 | del U 13 | gc.collect(); gc.collect(); gc.collect() 14 | -------------------------------------------------------------------------------- /Doc/includes/setup.py: -------------------------------------------------------------------------------- 1 | from distutils.core import setup, Extension 2 | setup(name="noddy", version="1.0", 3 | ext_modules=[ 4 | Extension("noddy", ["noddy.c"]), 5 | Extension("noddy2", ["noddy2.c"]), 6 | Extension("noddy3", ["noddy3.c"]), 7 | Extension("noddy4", ["noddy4.c"]), 8 | Extension("shoddy", ["shoddy.c"]), 9 | ]) 10 | -------------------------------------------------------------------------------- /Include/osmodule.h: -------------------------------------------------------------------------------- 1 | 2 | /* os module interface */ 3 | 4 | #ifndef Py_OSMODULE_H 5 | #define Py_OSMODULE_H 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000 11 | PyAPI_FUNC(PyObject *) PyOS_FSPath(PyObject *path); 12 | #endif 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif /* !Py_OSMODULE_H */ 18 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/c14nQname.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Misc/NEWS.d/3.5.0rc4.rst: -------------------------------------------------------------------------------- 1 | .. bpo: 25029 2 | .. date: 9304 3 | .. nonce: Zf97rk 4 | .. release date: 2015-09-09 5 | .. section: Library 6 | 7 | Fixes MemoryError in test_strptime. 8 | 9 | .. 10 | 11 | .. bpo: 25027 12 | .. date: 9303 13 | .. nonce: Zaib78 14 | .. section: Build 15 | 16 | Reverts partial-static build options and adds vcruntime140.dll to Windows 17 | installation. 18 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | contact_links: 2 | - name: "Getting help" 3 | about: "Ask questions about using Python and debugging errors on Discourse." 4 | url: "https://discuss.python.org/c/users/7" 5 | - name: "Proposing new features" 6 | about: "Submit major feature proposal (e.g. syntax changes) to an ideas forum first." 7 | url: "https://discuss.python.org/c/ideas/6" 8 | -------------------------------------------------------------------------------- /Doc/library/fileformats.rst: -------------------------------------------------------------------------------- 1 | .. _fileformats: 2 | 3 | ************ 4 | File Formats 5 | ************ 6 | 7 | The modules described in this chapter parse various miscellaneous file formats 8 | that aren't markup languages and are not related to e-mail. 9 | 10 | 11 | .. toctree:: 12 | 13 | csv.rst 14 | configparser.rst 15 | tomllib.rst 16 | netrc.rst 17 | plistlib.rst 18 | -------------------------------------------------------------------------------- /Lib/lib2to3/fixes/fix_imports2.py: -------------------------------------------------------------------------------- 1 | """Fix incompatible imports and module references that must be fixed after 2 | fix_imports.""" 3 | from . import fix_imports 4 | 5 | 6 | MAPPING = { 7 | 'whichdb': 'dbm', 8 | 'anydbm': 'dbm', 9 | } 10 | 11 | 12 | class FixImports2(fix_imports.FixImports): 13 | 14 | run_order = 7 15 | 16 | mapping = MAPPING 17 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/__init__.py: -------------------------------------------------------------------------------- 1 | # Author: Collin Winter 2 | 3 | import os 4 | import warnings 5 | 6 | from test.support import load_package_tests 7 | 8 | def load_tests(*args): 9 | with warnings.catch_warnings(): 10 | warnings.filterwarnings('ignore', category=DeprecationWarning, message='lib2to3') 11 | return load_package_tests(os.path.dirname(__file__), *args) 12 | -------------------------------------------------------------------------------- /Mac/PythonLauncher/MyAppDelegate.h: -------------------------------------------------------------------------------- 1 | /* MyAppDelegate */ 2 | 3 | #import 4 | 5 | @interface MyAppDelegate : NSObject 6 | { 7 | BOOL initial_action_done; 8 | BOOL should_terminate; 9 | } 10 | - (id)init; 11 | - (IBAction)showPreferences:(id)sender; 12 | - (BOOL)shouldShowUI; 13 | - (BOOL)shouldTerminate; 14 | - (void)testFileTypeBinding; 15 | @end 16 | -------------------------------------------------------------------------------- /Misc/NEWS.d/3.6.5.rst: -------------------------------------------------------------------------------- 1 | .. bpo: 32872 2 | .. date: 2018-03-28-01-35-02 3 | .. nonce: J5NDUj 4 | .. release date: 2018-03-28 5 | .. section: Tests 6 | 7 | Avoid regrtest compatibility issue with namespace packages. 8 | 9 | .. 10 | 11 | .. bpo: 33163 12 | .. date: 2018-03-28-04-15-03 13 | .. nonce: hfpWuU 14 | .. section: Build 15 | 16 | Upgrade pip to 9.0.3 and setuptools to v39.0.1. 17 | -------------------------------------------------------------------------------- /Misc/python-embed.pc.in: -------------------------------------------------------------------------------- 1 | # See: man pkg-config 2 | prefix=@prefix@ 3 | exec_prefix=@exec_prefix@ 4 | libdir=@libdir@ 5 | includedir=@includedir@ 6 | 7 | Name: Python 8 | Description: Embed Python into an application 9 | Requires: 10 | Version: @VERSION@ 11 | Libs.private: @LIBS@ 12 | Libs: -L${libdir} -lpython@VERSION@@ABIFLAGS@ 13 | Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@ 14 | -------------------------------------------------------------------------------- /Doc/c-api/objimpl.rst: -------------------------------------------------------------------------------- 1 | .. highlight:: c 2 | 3 | .. _newtypes: 4 | 5 | ***************************** 6 | Object Implementation Support 7 | ***************************** 8 | 9 | This chapter describes the functions, types, and macros used when defining new 10 | object types. 11 | 12 | .. toctree:: 13 | 14 | allocation.rst 15 | structures.rst 16 | typeobj.rst 17 | gcsupport.rst 18 | -------------------------------------------------------------------------------- /Lib/test/dtracedata/line.py: -------------------------------------------------------------------------------- 1 | def test_line(): 2 | a = 1 3 | print('# Preamble', a) 4 | for i in range(2): 5 | a = i 6 | b = i+2 7 | c = i+3 8 | if c < 4: 9 | a = c 10 | d = a + b +c 11 | print('#', a, b, c, d) 12 | a = 1 13 | print('# Epilogue', a) 14 | 15 | 16 | if __name__ == '__main__': 17 | test_line() 18 | -------------------------------------------------------------------------------- /Tools/msi/appendpath/appendpath_en-US.wxl: -------------------------------------------------------------------------------- 1 | 2 | 3 | Append to Path 4 | AppendPath 5 | No !(loc.ProductName) installation was detected. 6 | 7 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: "github-actions" 4 | directory: "/" 5 | schedule: 6 | interval: "monthly" 7 | labels: 8 | - "skip issue" 9 | - "skip news" 10 | ignore: 11 | - dependency-name: "*" 12 | update-types: 13 | - "version-update:semver-minor" 14 | - "version-update:semver-patch" 15 | -------------------------------------------------------------------------------- /Lib/idlelib/idle_test/test_util.py: -------------------------------------------------------------------------------- 1 | """Test util, coverage 100%""" 2 | 3 | import unittest 4 | from idlelib import util 5 | 6 | 7 | class UtilTest(unittest.TestCase): 8 | def test_extensions(self): 9 | for extension in {'.pyi', '.py', '.pyw'}: 10 | self.assertIn(extension, util.py_extensions) 11 | 12 | 13 | if __name__ == '__main__': 14 | unittest.main(verbosity=2) 15 | -------------------------------------------------------------------------------- /Lib/importlib/readers.py: -------------------------------------------------------------------------------- 1 | """ 2 | Compatibility shim for .resources.readers as found on Python 3.10. 3 | 4 | Consumers that can rely on Python 3.11 should use the other 5 | module directly. 6 | """ 7 | 8 | from .resources.readers import ( 9 | FileReader, ZipReader, MultiplexedPath, NamespaceReader, 10 | ) 11 | 12 | __all__ = ['FileReader', 'ZipReader', 'MultiplexedPath', 'NamespaceReader'] 13 | -------------------------------------------------------------------------------- /Lib/test/dtracedata/gc.d: -------------------------------------------------------------------------------- 1 | python$target:::function-entry 2 | /copyinstr(arg1) == "start"/ 3 | { 4 | self->trace = 1; 5 | } 6 | 7 | python$target:::gc-start, 8 | python$target:::gc-done 9 | /self->trace/ 10 | { 11 | printf("%d\t%s:%ld\n", timestamp, probename, arg0); 12 | } 13 | 14 | python$target:::function-return 15 | /copyinstr(arg1) == "start"/ 16 | { 17 | self->trace = 0; 18 | } 19 | -------------------------------------------------------------------------------- /Lib/test/test_doctest.txt: -------------------------------------------------------------------------------- 1 | This is a sample doctest in a text file. 2 | 3 | In this example, we'll rely on a global variable being set for us 4 | already: 5 | 6 | >>> favorite_color 7 | 'blue' 8 | 9 | We can make this fail by disabling the blank-line feature. 10 | 11 | >>> if 1: 12 | ... print('a') 13 | ... print() 14 | ... print('b') 15 | a 16 | 17 | b 18 | -------------------------------------------------------------------------------- /Lib/test/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt: -------------------------------------------------------------------------------- 1 | # IMPORTANT: this file has the utf-8 BOM signature '\xef\xbb\xbf' 2 | # at the start of it. Make sure this is preserved if any changes 3 | # are made! 4 | 5 | # Arbitrary encoded utf-8 text (stolen from test_doctest2.py). 6 | x = 'ЉЊЈЁЂ' 7 | def y(): 8 | """ 9 | And again in a comment. ЉЊЈЁЂ 10 | """ 11 | pass 12 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsContent_c14nPrefixQnameXpathElem.xml: -------------------------------------------------------------------------------- 1 | 2 | n1:string 3 | /n3:body/child::n2:foo[@att1 != "c:val" and @att2 != 'xsd:string'] 4 | -------------------------------------------------------------------------------- /Lib/turtledemo/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | -------------------------------------- 3 | About this viewer 4 | -------------------------------------- 5 | 6 | Tiny demo viewer to view turtle graphics example scripts. 7 | 8 | Quickly and dirtyly assembled by Gregor Lingl. 9 | June, 2006 10 | 11 | For more information see: turtledemo - Help 12 | 13 | Have fun! 14 | """ 15 | -------------------------------------------------------------------------------- /Mac/PythonLauncher/English.lproj/MainMenu.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 4 | { 5 | ACTIONS = {showPreferences = id; }; 6 | CLASS = MyAppDelegate; 7 | LANGUAGE = ObjC; 8 | SUPERCLASS = NSObject; 9 | } 10 | ); 11 | IBVersion = 1; 12 | } -------------------------------------------------------------------------------- /Modules/_ctypes/darwin/README.ctypes: -------------------------------------------------------------------------------- 1 | The files in this directory are taken from 2 | http://www.opendarwin.org/cgi-bin/cvsweb.cgi/~checkout~/proj/dlcompat/ 3 | 4 | The LICENSE in this directory applies to these files. 5 | 6 | Thomas Heller, Jan 2003 7 | 8 | These files have been modified so they fall back to the system 9 | dlfcn calls if available in libSystem. 10 | 11 | Bob Ippolito, Feb 2006 12 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/inC14N5.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | ]> 8 | 9 | &ent1;, &ent2;! 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/expat224_utf8_bug.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /Include/README.rst: -------------------------------------------------------------------------------- 1 | The Python C API 2 | ================ 3 | 4 | The C API is divided into three sections: 5 | 6 | 1. ``Include/``: Limited API 7 | 2. ``Include/cpython/``: CPython implementation details 8 | 3. ``Include/internal/``: The internal API 9 | 10 | Information on changing the C API is available `in the developer guide`_ 11 | 12 | .. _in the developer guide: https://devguide.python.org/c-api/ 13 | -------------------------------------------------------------------------------- /Lib/test/crashers/underlying_dict.py: -------------------------------------------------------------------------------- 1 | import gc 2 | 3 | thingy = object() 4 | class A(object): 5 | def f(self): 6 | return 1 7 | x = thingy 8 | 9 | r = gc.get_referrers(thingy) 10 | if "__module__" in r[0]: 11 | dct = r[0] 12 | else: 13 | dct = r[1] 14 | 15 | a = A() 16 | for i in range(10): 17 | a.f() 18 | dct["f"] = lambda self: 2 19 | 20 | print(a.f()) # should print 1 21 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsContent_c14nQnameXpathElem.xml: -------------------------------------------------------------------------------- 1 | 2 | xsd:string 3 | /soap-env:body/child::b:foo[@att1 != "c:val" and @att2 != 'xsd:string'] 4 | -------------------------------------------------------------------------------- /Doc/library/mm.rst: -------------------------------------------------------------------------------- 1 | .. _mmedia: 2 | 3 | ******************* 4 | Multimedia Services 5 | ******************* 6 | 7 | The modules described in this chapter implement various algorithms or interfaces 8 | that are mainly useful for multimedia applications. They are available at the 9 | discretion of the installation. Here's an overview: 10 | 11 | 12 | .. toctree:: 13 | 14 | wave.rst 15 | colorsys.rst 16 | -------------------------------------------------------------------------------- /Doc/library/netdata.rst: -------------------------------------------------------------------------------- 1 | 2 | .. _netdata: 3 | 4 | ********************** 5 | Internet Data Handling 6 | ********************** 7 | 8 | This chapter describes modules which support handling data formats commonly used 9 | on the internet. 10 | 11 | 12 | .. toctree:: 13 | 14 | email.rst 15 | json.rst 16 | mailbox.rst 17 | mimetypes.rst 18 | base64.rst 19 | binascii.rst 20 | quopri.rst 21 | -------------------------------------------------------------------------------- /Lib/lib2to3/fixes/fix_basestring.py: -------------------------------------------------------------------------------- 1 | """Fixer for basestring -> str.""" 2 | # Author: Christian Heimes 3 | 4 | # Local imports 5 | from .. import fixer_base 6 | from ..fixer_util import Name 7 | 8 | class FixBasestring(fixer_base.BaseFix): 9 | BM_compatible = True 10 | 11 | PATTERN = "'basestring'" 12 | 13 | def transform(self, node, results): 14 | return Name("str", prefix=node.prefix) 15 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/msg_17.txt: -------------------------------------------------------------------------------- 1 | MIME-Version: 1.0 2 | From: Barry 3 | To: Dingus Lovers 4 | Subject: Here is your dingus fish 5 | Date: Fri, 20 Apr 2001 19:35:02 -0400 6 | Content-Type: multipart/mixed; boundary="BOUNDARY" 7 | 8 | Hi there, 9 | 10 | This is the dingus fish. 11 | 12 | [Non-text (image/gif) part of message omitted, filename dingusfish.gif] 13 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/inNsContent.xml: -------------------------------------------------------------------------------- 1 | 2 | xsd:string 3 | /soap-env:body/child::b:foo[@att1 != "c:val" and @att2 != 'xsd:string'] 4 | 5 | -------------------------------------------------------------------------------- /Include/genericaliasobject.h: -------------------------------------------------------------------------------- 1 | // Implementation of PEP 585: support list[int] etc. 2 | #ifndef Py_GENERICALIASOBJECT_H 3 | #define Py_GENERICALIASOBJECT_H 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | PyAPI_FUNC(PyObject *) Py_GenericAlias(PyObject *, PyObject *); 9 | PyAPI_DATA(PyTypeObject) Py_GenericAliasType; 10 | 11 | #ifdef __cplusplus 12 | } 13 | #endif 14 | #endif /* !Py_GENERICALIASOBJECT_H */ 15 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/msg_34.txt: -------------------------------------------------------------------------------- 1 | From: aperson@dom.ain 2 | To: bperson@dom.ain 3 | Content-Type: multipart/digest; boundary=XYZ 4 | 5 | --XYZ 6 | Content-Type: text/plain 7 | 8 | 9 | This is a text plain part that is counter to recommended practice in 10 | RFC 2046, $5.1.5, but is not illegal 11 | 12 | --XYZ 13 | 14 | From: cperson@dom.ain 15 | To: dperson@dom.ain 16 | 17 | A submessage 18 | 19 | --XYZ-- 20 | -------------------------------------------------------------------------------- /Modules/clinic/_typingmodule.c.h: -------------------------------------------------------------------------------- 1 | /*[clinic input] 2 | preserve 3 | [clinic start generated code]*/ 4 | 5 | PyDoc_STRVAR(_typing__idfunc__doc__, 6 | "_idfunc($module, x, /)\n" 7 | "--\n" 8 | "\n"); 9 | 10 | #define _TYPING__IDFUNC_METHODDEF \ 11 | {"_idfunc", (PyCFunction)_typing__idfunc, METH_O, _typing__idfunc__doc__}, 12 | /*[clinic end generated code: output=e7ea2a3cb7ab301a input=a9049054013a1b77]*/ 13 | -------------------------------------------------------------------------------- /Lib/test/leakers/test_ctypes.py: -------------------------------------------------------------------------------- 1 | 2 | # Taken from Lib/ctypes/test/test_keeprefs.py, PointerToStructure.test(). 3 | 4 | from ctypes import Structure, c_int, POINTER 5 | import gc 6 | 7 | def leak_inner(): 8 | class POINT(Structure): 9 | _fields_ = [("x", c_int)] 10 | class RECT(Structure): 11 | _fields_ = [("a", POINTER(POINT))] 12 | 13 | def leak(): 14 | leak_inner() 15 | gc.collect() 16 | -------------------------------------------------------------------------------- /Lib/test/tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # IMPORTANT: this file has the utf-8 BOM signature '\xef\xbb\xbf' 3 | # at the start of it. Make sure this is preserved if any changes 4 | # are made! 5 | 6 | # Arbitrary encoded utf-8 text (stolen from test_doctest2.py). 7 | x = 'ЉЊЈЁЂ' 8 | def y(): 9 | """ 10 | And again in a comment. ЉЊЈЁЂ 11 | """ 12 | pass 13 | -------------------------------------------------------------------------------- /Misc/NEWS.d/3.5.1.rst: -------------------------------------------------------------------------------- 1 | .. bpo: 25709 2 | .. date: 9452 3 | .. nonce: OPX2TS 4 | .. release date: 2015-12-06 5 | .. section: Core and Builtins 6 | 7 | Fixed problem with in-place string concatenation and utf-8 cache. 8 | 9 | .. 10 | 11 | .. bpo: 25715 12 | .. date: 9451 13 | .. nonce: 3LLYLj 14 | .. section: Windows 15 | 16 | Python 3.5.1 installer shows wrong upgrade path and incorrect logic for 17 | launcher detection. 18 | -------------------------------------------------------------------------------- /Lib/importlib/simple.py: -------------------------------------------------------------------------------- 1 | """ 2 | Compatibility shim for .resources.simple as found on Python 3.10. 3 | 4 | Consumers that can rely on Python 3.11 should use the other 5 | module directly. 6 | """ 7 | 8 | from .resources.simple import ( 9 | SimpleReader, ResourceHandle, ResourceContainer, TraversableReader, 10 | ) 11 | 12 | __all__ = [ 13 | 'SimpleReader', 'ResourceHandle', 'ResourceContainer', 'TraversableReader', 14 | ] 15 | -------------------------------------------------------------------------------- /Lib/test/test_asyncio/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | from test import support 3 | from test.support import load_package_tests 4 | from test.support import import_helper 5 | 6 | support.requires_working_socket(module=True) 7 | 8 | # Skip tests if we don't have concurrent.futures. 9 | import_helper.import_module('concurrent.futures') 10 | 11 | def load_tests(*args): 12 | return load_package_tests(os.path.dirname(__file__), *args) 13 | -------------------------------------------------------------------------------- /Lib/test/test_email/data/msg_42.txt: -------------------------------------------------------------------------------- 1 | Content-Type: multipart/mixed; boundary="AAA" 2 | From: Mail Delivery Subsystem 3 | To: yyy@example.com 4 | 5 | This is a MIME-encapsulated message 6 | 7 | --AAA 8 | 9 | Stuff 10 | 11 | --AAA 12 | Content-Type: message/rfc822 13 | 14 | From: webmaster@python.org 15 | To: zzz@example.com 16 | Content-Type: multipart/mixed; boundary="BBB" 17 | 18 | --BBB-- 19 | 20 | --AAA-- 21 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/c14nQnameXpathElem.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Mac/PythonLauncher/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // PythonLauncher 4 | // 5 | // Created by Jack Jansen on Fri Jul 19 2002. 6 | // Copyright (c) 2002 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #include 11 | 12 | int main(int argc, const char *argv[]) 13 | { 14 | char *home = getenv("HOME"); 15 | if (home) chdir(home); 16 | return NSApplicationMain(argc, argv); 17 | } 18 | -------------------------------------------------------------------------------- /PC/layout/__main__.py: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | try: 4 | import layout 5 | except ImportError: 6 | # Failed to import our package, which likely means we were started directly 7 | # Add the additional search path needed to locate our module. 8 | from pathlib import Path 9 | 10 | sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) 11 | 12 | from layout.main import main 13 | 14 | sys.exit(int(main() or 0)) 15 | -------------------------------------------------------------------------------- /Include/frameobject.h: -------------------------------------------------------------------------------- 1 | /* Frame object interface */ 2 | 3 | #ifndef Py_FRAMEOBJECT_H 4 | #define Py_FRAMEOBJECT_H 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | #include "pyframe.h" 10 | 11 | #ifndef Py_LIMITED_API 12 | # define Py_CPYTHON_FRAMEOBJECT_H 13 | # include "cpython/frameobject.h" 14 | # undef Py_CPYTHON_FRAMEOBJECT_H 15 | #endif 16 | 17 | #ifdef __cplusplus 18 | } 19 | #endif 20 | #endif /* !Py_FRAMEOBJECT_H */ 21 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/README: -------------------------------------------------------------------------------- 1 | In this directory: 2 | - py2_test_grammar.py -- test file that exercises most/all of Python 2.x's grammar. 3 | - py3_test_grammar.py -- test file that exercises most/all of Python 3.x's grammar. 4 | - infinite_recursion.py -- test file that causes lib2to3's faster recursive pattern matching 5 | scheme to fail, but passes when lib2to3 falls back to iterative pattern matching. 6 | - fixes/ -- for use by test_refactor.py 7 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/unwritable/__init__.py: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | class MyMod(object): 4 | __slots__ = ['__builtins__', '__cached__', '__doc__', 5 | '__file__', '__loader__', '__name__', 6 | '__package__', '__path__', '__spec__'] 7 | def __init__(self): 8 | for attr in self.__slots__: 9 | setattr(self, attr, globals()[attr]) 10 | 11 | 12 | sys.modules[__name__] = MyMod() 13 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/c14nPrefixQname.xml: -------------------------------------------------------------------------------- 1 | 2 | sequential 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inC14N4_c14nTrim.xml: -------------------------------------------------------------------------------- 1 | First line 2 | Second line2value>"0" && value<"10" ?"valid":"error"valid -------------------------------------------------------------------------------- /Doc/library/functional.rst: -------------------------------------------------------------------------------- 1 | ****************************** 2 | Functional Programming Modules 3 | ****************************** 4 | 5 | The modules described in this chapter provide functions and classes that support 6 | a functional programming style, and general operations on callables. 7 | 8 | The following modules are documented in this chapter: 9 | 10 | 11 | .. toctree:: 12 | 13 | itertools.rst 14 | functools.rst 15 | operator.rst 16 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/fixers/myfixes/fix_parrot.py: -------------------------------------------------------------------------------- 1 | from lib2to3.fixer_base import BaseFix 2 | from lib2to3.fixer_util import Name 3 | 4 | class FixParrot(BaseFix): 5 | """ 6 | Change functions named 'parrot' to 'cheese'. 7 | """ 8 | 9 | PATTERN = """funcdef < 'def' name='parrot' any* >""" 10 | 11 | def transform(self, node, results): 12 | name = results["name"] 13 | name.replace(Name("cheese", name.prefix)) 14 | -------------------------------------------------------------------------------- /Lib/test/mp_preload.py: -------------------------------------------------------------------------------- 1 | import multiprocessing 2 | 3 | multiprocessing.Lock() 4 | 5 | 6 | def f(): 7 | print("ok") 8 | 9 | 10 | if __name__ == "__main__": 11 | ctx = multiprocessing.get_context("forkserver") 12 | modname = "test.mp_preload" 13 | # Make sure it's importable 14 | __import__(modname) 15 | ctx.set_forkserver_preload([modname]) 16 | proc = ctx.Process(target=f) 17 | proc.start() 18 | proc.join() 19 | -------------------------------------------------------------------------------- /Lib/idlelib/__init__.py: -------------------------------------------------------------------------------- 1 | """The idlelib package implements the Idle application. 2 | 3 | Idle includes an interactive shell and editor. 4 | Starting with Python 3.6, IDLE requires tcl/tk 8.5 or later. 5 | Use the files named idle.* to start Idle. 6 | 7 | The other files are private implementations. Their details are subject to 8 | change. See PEP 434 for more. Import them at your own risk. 9 | """ 10 | testing = False # Set True by test.test_idle. 11 | -------------------------------------------------------------------------------- /Lib/test/crashers/recursive_call.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | # No bug report AFAIK, mail on python-dev on 2006-01-10 4 | 5 | # This is a "won't fix" case. It is known that setting a high enough 6 | # recursion limit crashes by overflowing the stack. Unless this is 7 | # redesigned somehow, it won't go away. 8 | 9 | import sys 10 | 11 | sys.setrecursionlimit(1 << 30) 12 | f = lambda f:f(f) 13 | 14 | if __name__ == '__main__': 15 | f(f) 16 | -------------------------------------------------------------------------------- /Lib/test/dtracedata/instance.py: -------------------------------------------------------------------------------- 1 | import gc 2 | 3 | class old_style_class(): 4 | pass 5 | class new_style_class(object): 6 | pass 7 | 8 | a = old_style_class() 9 | del a 10 | gc.collect() 11 | b = new_style_class() 12 | del b 13 | gc.collect() 14 | 15 | a = old_style_class() 16 | del old_style_class 17 | gc.collect() 18 | b = new_style_class() 19 | del new_style_class 20 | gc.collect() 21 | del a 22 | gc.collect() 23 | del b 24 | gc.collect() 25 | --------------------------------------------------------------------------------