├── Doc ├── runtime.txt ├── 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 ├── howto │ └── logging_flow.png ├── faq │ └── python-video-icon.png ├── using │ └── win_installer.png ├── whatsnew │ └── changelog.rst ├── tools │ └── templates │ │ └── opensearch.xml ├── includes │ └── turtle-star.py └── distutils │ ├── uploading.rst │ └── _setuptools_disclaimer.rst ├── Lib ├── test │ ├── nullcert.pem │ ├── leakers │ │ └── __init__.py │ ├── test_import │ │ ├── data │ │ │ ├── unwritable │ │ │ │ └── x.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 │ │ ├── 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 │ │ ├── test.xml │ │ ├── test.xml.out │ │ ├── simple.xml │ │ └── simple-ns.xml │ ├── bad_coding.py │ ├── relimport.py │ ├── bad_coding2.py │ ├── coding20731.py │ ├── badsyntax_3131.py │ ├── cjkencodings │ │ ├── big5hkscs-utf8.txt │ │ ├── hz-utf8.txt │ │ ├── gbk.txt │ │ ├── big5.txt │ │ ├── cp949.txt │ │ ├── hz.txt │ │ ├── johab.txt │ │ ├── euc_jp.txt │ │ ├── euc_kr.txt │ │ ├── gb18030.txt │ │ ├── gb2312.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 │ ├── test_zoneinfo │ │ ├── __init__.py │ │ └── __main__.py │ ├── __init__.py │ ├── __main__.py │ ├── empty.vbs │ ├── imp_dummy.py │ ├── pstats.pck │ ├── zipdir.zip │ ├── audiotest.au │ ├── bad_getattr.py │ ├── cfgparser.1 │ ├── test_warnings │ │ ├── __main__.py │ │ └── data │ │ │ ├── import_warning.py │ │ │ └── stacklevel.py │ ├── testtar.tar │ ├── sgml_input.html │ ├── test_asyncio │ │ ├── __main__.py │ │ ├── echo2.py │ │ └── echo.py │ ├── testtar.tar.xz │ ├── dtracedata │ │ ├── assert_usable.d │ │ ├── assert_usable.stp │ │ ├── gc.d.expected │ │ ├── gc.stp.expected │ │ ├── line.d │ │ └── gc.py │ ├── test_peg_generator │ │ ├── __main__.py │ │ └── __init__.py │ ├── badsyntax_pep3120.py │ ├── dis_module.py │ ├── inspect_stringized_annotations_2.py │ ├── sndhdrdata │ │ ├── sndhdr.au │ │ ├── sndhdr.8svx │ │ ├── sndhdr.aifc │ │ ├── sndhdr.aiff │ │ ├── sndhdr.hcom │ │ ├── sndhdr.sndt │ │ ├── sndhdr.voc │ │ ├── sndhdr.wav │ │ └── README │ ├── test_json │ │ └── __main__.py │ ├── zip_cp437_header.zip │ ├── Sine-1000Hz-300ms.aif │ ├── 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 │ ├── test_email │ │ ├── __main__.py │ │ └── data │ │ │ ├── audiotest.au │ │ │ ├── PyBanner048.gif │ │ │ ├── msg_35.txt │ │ │ ├── msg_11.txt │ │ │ ├── msg_23.txt │ │ │ ├── msg_24.txt │ │ │ ├── msg_41.txt │ │ │ ├── msg_40.txt │ │ │ ├── msg_18.txt │ │ │ └── msg_31.txt │ ├── test_tools │ │ └── __main__.py │ ├── ann_module4.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_doctest3.txt │ ├── test_source_encoding.py │ ├── ziptestdata │ │ ├── exe_with_z64 │ │ ├── exe_with_zip │ │ └── testdata_module_inside_zip.py │ ├── bad_getattr2.py │ ├── badsyntax_future10.py │ ├── encoded_modules │ │ ├── module_koi8_r.py │ │ └── module_iso_8859_1.py │ ├── data │ │ └── README │ ├── libregrtest │ │ └── __init__.py │ ├── bad_getattr3.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 │ ├── gdb_sample.py │ ├── badsyntax_future6.py │ ├── autotest.py │ ├── badsyntax_future3.py │ ├── test_ctypes.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 ├── urllib │ └── __init__.py ├── email │ └── mime │ │ └── __init__.py ├── pydoc_data │ ├── __init__.py │ └── _pydoc.css ├── sqlite3 │ └── test │ │ └── __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 │ │ │ │ ├── parrot_example.py │ │ │ │ ├── no_fixer_cls.py │ │ │ │ └── bad_order.py │ │ │ ├── bom.py │ │ │ ├── false_encoding.py │ │ │ ├── crlf.py │ │ │ └── different_encoding.py │ │ ├── __main__.py │ │ └── __init__.py │ ├── fixes │ │ └── __init__.py │ ├── __main__.py │ ├── pgen2 │ │ └── __init__.py │ └── __init__.py ├── concurrent │ └── __init__.py ├── distutils │ ├── tests │ │ └── includetest.rst │ ├── debug.py │ └── README ├── xmlrpc │ └── __init__.py ├── unittest │ └── test │ │ └── dummy.py ├── __phello__.foo.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.bat │ └── __main__.py ├── ctypes │ ├── test │ │ └── __main__.py │ └── macholib │ │ ├── fetch_macholib.bat │ │ ├── fetch_macholib │ │ └── __init__.py ├── xml │ ├── etree │ │ └── cElementTree.py │ └── parsers │ │ ├── __init__.py │ │ └── expat.py ├── curses │ └── panel.py ├── ensurepip │ ├── __main__.py │ └── _bundled │ │ ├── pip-21.1.3-py3-none-any.whl │ │ └── setuptools-56.0.0-py3-none-any.whl ├── collections │ └── abc.py ├── site-packages │ └── README.txt ├── contextvars.py ├── asyncio │ └── log.py ├── venv │ └── __main__.py └── turtledemo │ └── turtle.cfg ├── PC ├── layout │ ├── __init__.py │ └── support │ │ └── __init__.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 ├── errmap.mak ├── pyshellext.def └── empty.c ├── 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 │ ├── MyDocument.nib │ │ └── objects.nib │ └── PreferenceWindow.nib │ │ └── objects.nib │ └── doscript.h ├── 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 ├── pynche │ ├── __init__.py │ ├── pynche │ └── pynche.pyw ├── i18n │ └── pygettext.py ├── scripts │ ├── pydoc3 │ ├── 2to3 │ └── idle3 ├── buildbot │ └── buildmsi.bat └── unicode │ └── genwincodecs.bat ├── Misc ├── requirements-test.txt ├── Porting └── NEWS.d │ ├── next │ ├── Library │ │ ├── 2021-06-26-12-27-14.bpo-44516.BVyX_y.rst │ │ ├── 2021-06-10-15-06-47.bpo-44342.qqkGlj.rst │ │ ├── 2021-06-12-22-58-20.bpo-44389.WTRnoC.rst │ │ ├── 2021-05-03-10-07-43.bpo-44018.VDyW8f.rst │ │ ├── 2021-05-21-21-23-43.bpo-44210.5afQ3K.rst │ │ ├── 2021-05-26-13-34-37.bpo-33693.3okzdo.rst │ │ ├── 2021-05-03-19-59-14.bpo-40465.1tB4Y0.rst │ │ ├── 2021-05-13-19-07-28.bpo-37788.adeFcf.rst │ │ ├── 2021-05-16-11-57-38.bpo-44150.xAhhik.rst │ │ ├── 2021-05-26-14-50-06.bpo-38693.NkMacJ.rst │ │ ├── 2021-05-28-09-43-33.bpo-44258.nh5F7R.rst │ │ ├── 2021-02-25-08-32-06.bpo-43318.bZJw6V.rst │ │ ├── 2021-05-06-16-01-55.bpo-44059.GF5r6O.rst │ │ ├── 2021-05-17-07-24-24.bpo-44154.GRI5bf.rst │ │ ├── 2021-05-21-12-12-35.bpo-43643.GWnmcF.rst │ │ ├── 2021-06-10-08-35-38.bpo-44356.6oDFhO.rst │ │ ├── 2021-07-16-08-57-27.bpo-44638.EwYKne.rst │ │ ├── 2021-07-20-19-35-49.bpo-44686.ucCGhu.rst │ │ ├── 2020-10-01-21-46-34.bpo-40956._tvsZ7.rst │ │ ├── 2020-10-11-20-23-48.bpo-37449.f-t3V6.rst │ │ ├── 2021-05-26-22-04-40.bpo-44235.qFBYpp.rst │ │ ├── 2021-06-09-08-32-39.bpo-44357.70Futb.rst │ │ ├── 2021-06-14-14-19-11.bpo-38291.ee4cSX.rst │ │ ├── 2021-06-30-11-34-35.bpo-44539.nP0Xi4.rst │ │ ├── 2021-07-05-18-13-25.bpo-44566.o51Bd1.rst │ │ ├── 2019-09-25-13-54-41.bpo-30256.wBkzox.rst │ │ ├── 2020-07-01-17-42-41.bpo-41137.AnqbP-.rst │ │ ├── 2021-06-10-21-53-46.bpo-34266.k3fxnm.rst │ │ ├── 2020-01-25-12-58-20.bpo-37022.FUZI25.rst │ │ ├── 2021-05-30-13-32-09.bpo-44260.ROEbVd.rst │ │ ├── 2021-06-07-10-26-14.bpo-44242.MKeMCQ.rst │ │ ├── 2021-06-17-22-39-34.bpo-44446.qwdRic.rst │ │ ├── 2021-06-22-08-43-04.bpo-44482.U9GznK.rst │ │ ├── 2021-06-12-10-08-14.bpo-44395.PcW6Sx.rst │ │ ├── 2021-06-20-19-01-11.bpo-44404.McfrYB.rst │ │ ├── 2021-07-19-18-45-00.bpo-44678.YMEAu0.rst │ │ ├── 2021-07-20-18-34-16.bpo-44353.ATuYq4.rst │ │ ├── 2021-07-21-23-16-30.bpo-44704.iqHLxQ.rst │ │ ├── README.rst │ │ ├── 2019-11-12-18-59-33.bpo-38741.W7IYkq.rst │ │ ├── 2020-07-30-14-37-15.bpo-20684.qV35GU.rst │ │ ├── 2021-05-05-11-44-49.bpo-36515.uOSa3q.rst │ │ ├── 2021-05-31-04-51-02.bpo-43858.r7LOu6.rst │ │ ├── 2021-06-20-14-03-18.bpo-41546.lO1jXU.rst │ │ ├── 2021-06-30-13-29-49.bpo-34798.t7FCa0.rst │ │ ├── 2021-07-19-22-43-15.bpo-44353.HF81_Q.rst │ │ ├── 2021-05-26-13-15-51.bpo-44241.TBqej8.rst │ │ ├── 2021-06-10-20-07-32.bpo-44362.oVOMfd.rst │ │ ├── 2021-06-29-21-17-17.bpo-44461.acqRnV.rst │ │ ├── 2021-01-16-18-36-00.bpo-33809.BiMK6V.rst │ │ ├── 2021-05-17-21-05-06.bpo-4928.Ot2yjO.rst │ │ ├── 2021-06-19-21-52-27.bpo-44464.U2oa-a.rst │ │ ├── 2021-07-13-09-01-33.bpo-44608.R3IcM1.rst │ │ ├── 2021-07-16-13-40-31.bpo-40897.aveAre.rst │ │ ├── 2017-09-20-14-43-03.bpo-29298._78CSN.rst │ │ ├── 2021-05-02-13-54-25.bpo-38352.N9MlhV.rst │ │ ├── 2021-06-20-07-14-46.bpo-44458.myqCQ0.rst │ │ ├── 2021-07-20-23-28-26.bpo-44688.buFgz3.rst │ │ ├── 2021-05-09-03-26-31.bpo-44081.A-Mrto.rst │ │ ├── 2021-05-16-02-24-23.bpo-44142.t-XU8k.rst │ │ ├── 2021-07-04-11-33-34.bpo-41249.sHdwBE.rst │ │ ├── 2021-07-04-21-16-53.bpo-44558.cm7Slv.rst │ │ ├── 2021-07-19-14-04-42.bpo-44524.Nbf2JC.rst │ │ ├── 2021-05-07-08-39-23.bpo-44061.MvElG6.rst │ │ ├── 2021-05-09-22-52-34.bpo-44089.IoANsN.rst │ │ ├── 2021-06-09-10-08-32.bpo-35800.3hmkWw.rst │ │ ├── 2020-09-10-07-23-24.bpo-41730.DyKFi9.rst │ │ ├── 2021-05-29-01-05-43.bpo-44254.f06xDm.rst │ │ ├── 2021-02-15-21-17-46.bpo-43232.awc4yZ.rst │ │ ├── 2021-04-29-00-48-00.bpo-28528.JLAVWj.rst │ │ ├── 2021-06-14-23-28-17.bpo-44422.BlWOgv.rst │ │ ├── 2021-06-21-12-43-04.bpo-44466.NSm6mv.rst │ │ ├── 2021-07-20-00-11-47.bpo-44682.3m2qVV.rst │ │ ├── 2019-06-03-23-53-25.bpo-27513.qITN7d.rst │ │ ├── 2021-05-14-16-06-02.bpo-44095.v_pLwY.rst │ │ ├── 2021-07-24-02-17-59.bpo-44720.shU5Qm.rst │ │ ├── 2021-01-25-21-24-55.bpo-43024.vAUrIi.rst │ │ ├── 2021-07-27-22-11-29.bpo-44752._bvbrZ.rst │ │ ├── 2021-03-29-00-23-30.bpo-43650.v01tic.rst │ │ ├── 2021-06-10-07-26-12.bpo-44351.rvyf2v.rst │ │ ├── 2021-06-12-21-25-35.bpo-27827.TMWh1i.rst │ │ ├── 2021-06-15-13-51-25.bpo-42972.UnyYo1.rst │ │ ├── 2021-06-23-19-02-00.bpo-44468.-klV5-.rst │ │ ├── 2021-07-02-18-17-56.bpo-44554.aBUmJo.rst │ │ ├── 2021-04-15-12-02-17.bpo-43853.XXCVAp.rst │ │ ├── 2021-06-23-01-33-01.bpo-44491.tiOlr5.rst │ │ ├── 2021-06-17-15-01-51.bpo-44439.1S7QhT.rst │ │ ├── 2021-02-15-22-14-31.bpo-43234.F-vKAT.rst │ │ ├── 2021-06-08-17-47-38.bpo-44339.9JwMSc.rst │ │ ├── 2021-05-31-11-28-03.bpo-44246.nhmt-v.rst │ │ ├── 2021-04-30-16-58-24.bpo-43972.Y2r9lg.rst │ │ ├── 2021-07-20-21-51-35.bpo-42854.ThuDMI.rst │ │ ├── 2021-05-16-00-00-38.bpo-44145.ko5SJ7.rst │ │ ├── 2021-06-22-16-45-48.bpo-43977.bamAGF.rst │ │ ├── 2021-07-08-12-22-54.bpo-44569.KZ02v9.rst │ │ ├── 2021-01-13-00-02-44.bpo-42862.Z6ACLN.rst │ │ ├── 2021-05-13-19-44-38.bpo-44077.04b2a4.rst │ │ ├── 2021-07-10-19-55-13.bpo-42799.ad4tq8.rst │ │ ├── 2021-05-16-17-48-24.bpo-33433.MyzO71.rst │ │ └── 2021-07-09-07-14-37.bpo-41928.Q1jMrr.rst │ ├── Documentation │ │ ├── 2021-07-12-11-39-20.bpo-44613.DIXNzc.rst │ │ ├── 2020-03-21-01-19-28.bpo-21760.CqofIc.rst │ │ ├── 2021-06-28-12-13-48.bpo-38062.9Ehp9O.rst │ │ ├── 2021-07-13-22-25-13.bpo-44631.qkGwe4.rst │ │ ├── 2021-05-03-22-08-08.bpo-44025.gcB7iP.rst │ │ ├── 2021-06-18-06-44-45.bpo-44453.3PIkj2.rst │ │ ├── 2021-07-18-22-26-02.bpo-44651.SjT9iY.rst │ │ ├── 2021-06-21-15-46-32.bpo-13814.LDcslu.rst │ │ ├── 2021-05-17-20-03-47.bpo-41963.eUz9_o.rst │ │ ├── 2021-06-26-17-41-06.bpo-40620.PAYDrB.rst │ │ ├── 2021-05-23-09-11-28.bpo-44195.1bqkOs.rst │ │ ├── README.rst │ │ ├── 2020-08-24-13-35-04.bpo-41621.nqaw9G.rst │ │ ├── 2021-05-26-11-16-33.bpo-42392.oxRx6E.rst │ │ ├── 2021-05-08-09-48-05.bpo-44072.fb2x5I.rst │ │ ├── 2021-07-03-18-25-17.bpo-44558.0pTknl.rst │ │ ├── 2021-07-20-21-03-18.bpo-30511.eMFkRi.rst │ │ ├── 2021-07-26-23-48-31.bpo-44740.zMFGMV.rst │ │ ├── 2021-07-25-23-04-15.bpo-44693.JuCbNq.rst │ │ ├── 2021-06-06-14-12-00.bpo-44322.K0PHfE.rst │ │ ├── 2021-06-14-09-20-37.bpo-38291.VMYa_Q.rst │ │ ├── 2021-06-16-18-09-49.bpo-44392.6RF1Sc.rst │ │ ├── 2021-05-07-12-27-09.bpo-43558.UGhA8R.rst │ │ ├── 2021-07-18-22-43-14.bpo-44561.T7HpWm.rst │ │ └── 2021-07-02-14-02-29.bpo-44544._5_aCz.rst │ ├── Tests │ │ ├── 2021-05-07-15-46-04.bpo-31904.8dk3la.rst │ │ ├── 2021-06-09-15-32-05.bpo-44364.zu9Zee.rst │ │ ├── 2021-07-24-20-09-15.bpo-44734.KKsNOV.rst │ │ ├── 2021-06-26-18-37-36.bpo-44515.e9fO6f.rst │ │ ├── README.rst │ │ ├── 2021-06-10-11-19-43.bpo-44363.-K9jD0.rst │ │ ├── 2021-05-14-14-13-44.bpo-44131.YPizoC.rst │ │ ├── 2020-10-25-19-20-26.bpo-35753.2LT-hO.rst │ │ ├── 2021-05-04-18-10-57.bpo-42083.EMS2TK.rst │ │ ├── 2021-07-22-16-38-39.bpo-44708.SYNaac.rst │ │ ├── 2019-09-25-18-10-10.bpo-30256.A5i76Q.rst │ │ ├── 2021-07-17-11-41-20.bpo-42095.kCB7oj.rst │ │ ├── 2021-06-02-17-41-42.bpo-43921.xP7yZ4.rst │ │ ├── 2021-06-03-03-29-34.bpo-43921.nwH1FS.rst │ │ └── 2021-06-18-15-19-35.bpo-44451.aj5pqE.rst │ ├── C API │ │ ├── 2021-06-22-17-00-06.bpo-40939.CGB0I5.rst │ │ ├── 2021-07-27-17-29-12.bpo-44751.4qmbDG.rst │ │ ├── 2020-12-23-01-28-50.bpo-42035.S9eUm0.rst │ │ ├── 2021-05-19-15-09-47.bpo-43795.WAHRxt.rst │ │ ├── 2021-07-29-16-04-28.bpo-41103.hiKKcF.rst │ │ ├── README.rst │ │ ├── 2021-05-05-19-04-50.bpo-43795.9Ojj73.rst │ │ ├── 2021-06-10-15-22-31.bpo-44378.jGYakF.rst │ │ ├── 2021-06-28-23-44-47.bpo-44530.qij7YC.rst │ │ ├── 2021-06-15-16-28-18.bpo-43795.fy0AXK.rst │ │ ├── 2021-05-31-11-31-13.bpo-44263.8mIOfV.rst │ │ ├── 2021-05-10-14-34-22.bpo-44094.HayXZO.rst │ │ ├── 2021-06-23-12-12-04.bpo-44441.3p14JB.rst │ │ └── 2021-07-20-16-21-06.bpo-42747.rRxjUY.rst │ ├── Core and Builtins │ │ ├── 2021-05-11-21-52-44.bpo-44110.VqbAsB.rst │ │ ├── 2021-07-26-15-27-03.bpo-44732.IxObt3.rst │ │ ├── 2021-01-13-19-34-41.bpo-28146.AZBBkH.rst │ │ ├── 2021-07-21-15-26-56.bpo-44698.DA4_0o.rst │ │ ├── 2021-07-23-01-52-13.bpo-44717.-vVmAh.rst │ │ ├── 2021-05-17-20-44-45.bpo-44156.8KSp9l.rst │ │ ├── 2021-07-14-13-54-07.bpo-44635.7ZMAdB.rst │ │ ├── 2021-03-22-17-50-30.bpo-17792._zssjS.rst │ │ ├── 2021-04-17-16-08-00.bpo-43879.zkyJgh.rst │ │ ├── 2021-06-06-00-29-14.bpo-44317.xPPhcZ.rst │ │ ├── 2021-06-09-22-56-59.bpo-44368.vgT0Cx.rst │ │ ├── 2021-07-13-20-22-12.bpo-44606.S3Bv2w.rst │ │ ├── 2021-07-19-20-49-06.bpo-44653.WcqGyI.rst │ │ ├── 2021-06-21-11-19-54.bpo-44472.Vvm1yn.rst │ │ ├── 2021-07-23-15-17-01.bpo-44725.qcuKaa.rst │ │ ├── 2021-07-13-17-47-32.bpo-42073.9wopiC.rst │ │ ├── 2021-07-16-09-59-13.bpo-44646.Yb6s05.rst │ │ ├── 2021-07-17-14-20-59.bpo-44661.BQbXiH.rst │ │ ├── 2021-07-19-19-53-46.bpo-44676.WgIMvh.rst │ │ ├── 2021-04-23-03-46-45.bpo-43918.nNDY3S.rst │ │ ├── 2021-05-14-20-03-32.bpo-44032.OzT1ob.rst │ │ ├── 2021-07-12-04-06-57.bpo-41972.nDX5k_.rst │ │ ├── 2021-07-16-21-35-14.bpo-44655.95I7M6.rst │ │ ├── 2021-06-18-22-08-25.bpo-44456.L0Rhko.rst │ │ ├── 2021-06-22-10-55-23.bpo-44486.wct-9X.rst │ │ ├── 2021-07-02-22-54-41.bpo-44553.l9YqGg.rst │ │ ├── 2021-06-08-01-13-47.bpo-44335.GQTTkl.rst │ │ ├── 2021-06-08-22-49-06.bpo-44349.xgEgeA.rst │ │ ├── 2021-06-22-19-08-19.bpo-44483.eq2f7T.rst │ │ ├── 2021-07-04-23-38-51.bpo-44562.QdeRQo.rst │ │ ├── README.rst │ │ ├── 2021-05-12-14-26-16.bpo-44114.p-WfAE.rst │ │ ├── 2021-05-18-11-27-02.bpo-44168.mgB-rt.rst │ │ ├── 2021-06-03-22-51-50.bpo-44305.66dVDG.rst │ │ ├── 2021-05-27-17-34-29.bpo-43667.ND9jP3.rst │ │ ├── 2021-06-11-18-17-42.bpo-44396.Z9EKim.rst │ │ ├── 2021-07-01-11-59-34.bpo-44490.xY80VR.rst │ │ ├── 2021-05-04-01-01-04.bpo-43822.9VeCg0.rst │ │ ├── 2021-06-13-23-12-18.bpo-44409.eW4LS-.rst │ │ ├── 2021-07-17-21-04-04.bpo-44633.5-zKeI.rst │ │ ├── 2021-05-08-17-18-37.bpo-43149.Kp5FxD.rst │ │ ├── 2021-07-13-23-19-41.bpo-44589.59OH8T.rst │ │ ├── 2021-05-21-01-42-45.bpo-44184.9qOptC.rst │ │ ├── 2021-06-11-17-37-15.bpo-44376.zhM1UW.rst │ │ ├── 2021-05-15-17-30-57.bpo-44143.7UTS6H.rst │ │ ├── 2021-07-16-20-25-37.bpo-44655.I3wRjL.rst │ │ ├── 2021-07-17-13-41-58.bpo-44662.q22kWR.rst │ │ ├── 2021-06-05-02-34-57.bpo-44304._MAoPc.rst │ │ ├── 2018-05-11-12-44-03.bpo-33346.ZgBkvB.rst │ │ ├── 2021-05-08-19-54-57.bpo-28307.7ysaVW.rst │ │ ├── 2021-05-19-20-33-36.bpo-44180.mQVaAs.rst │ │ ├── 2021-05-20-12-43-04.bpo-44187.3lk0L1.rst │ │ ├── 2021-07-16-01-01-11.bpo-44611.LcfHN-.rst │ │ ├── 2021-06-10-10-06-18.bpo-44338.c4Myr4.rst │ │ ├── 2021-06-19-12-41-13.bpo-44297.F53vHj.rst │ │ ├── 2020-06-02-13-21-14.bpo-11105.wceryW.rst │ │ ├── 2021-05-21-20-53-49.bpo-43693.-NN3J_.rst │ │ ├── 2021-05-21-21-16-03.bpo-44201.bGaSjt.rst │ │ ├── 2021-07-16-09-36-12.bpo-44636.ZWebi8.rst │ │ ├── 2021-07-27-11-14-22.bpo-34013.SjLFe-.rst │ │ ├── 2021-05-10-18-49-13.bpo-26110.EQzqqA.rst │ │ ├── 2021-07-04-17-41-47.bpo-41486.DiM24a.rst │ │ ├── 2021-07-06-22-22-15.bpo-44490.BJxPbZ.rst │ │ ├── 2021-07-14-10-31-10.bpo-26280.cgpM4B.rst │ │ ├── 2021-07-03-00-20-39.bpo-43908.YHuV_s.rst │ │ ├── 2021-06-29-11-49-29.bpo-44523.67-ZIP.rst │ │ ├── 2021-06-07-15-13-44.bpo-43693.c_zDeY.rst │ │ ├── 2021-06-08-10-22-46.bpo-44337.RTjmIt.rst │ │ ├── 2021-06-10-16-10-39.bpo-44313.34RjI8.rst │ │ └── 2021-04-18-18-07-33.bpo-43833.oChkCi.rst │ ├── IDLE │ │ ├── 2021-05-27-13-39-43.bpo-41611.liNQqj.rst │ │ ├── 2021-05-27-18-22-46.bpo-41611.jOKpfc.rst │ │ ├── README.rst │ │ ├── 2021-05-05-09-45-24.bpo-44026.m2Z0zR.rst │ │ ├── 2021-06-10-00-50-02.bpo-33962.ikAUNg.rst │ │ ├── 2021-06-11-17-43-39.bpo-40128.7vDN3U.rst │ │ └── 2021-06-08-03-04-51.bpo-40468.tUCGUb.rst │ ├── Windows │ │ ├── 2021-07-13-15-32-49.bpo-44572.gXvhDc.rst │ │ ├── 2021-01-01-21-21-03.bpo-42686.G_f-TC.rst │ │ ├── README.rst │ │ ├── 2021-07-07-21-07-18.bpo-44582.4Mm6Hh.rst │ │ ├── 2021-06-06-16-36-13.bpo-41299.Rg-vb_.rst │ │ └── 2020-04-13-15-20-28.bpo-40263.1KKEbu.rst │ ├── Build │ │ ├── 2021-06-30-02-32-46.bpo-44535.M9iN4-.rst │ │ ├── 2021-06-19-11-50-03.bpo-43298.9ircMb.rst │ │ ├── README.rst │ │ ├── 2021-06-10-18-08-44.bpo-44381.Xpc1iX.rst │ │ ├── 2021-07-19-01-09-56.bpo-44340.JNeOf4.rst │ │ └── 2021-05-24-03-31-17.bpo-41282.L8nP44.rst │ ├── macOS │ │ ├── 2021-03-29-21-11-23.bpo-34932.f3Hdyd.rst │ │ ├── 2021-05-24-21-15-41.bpo-43109.npKJ9c.rst │ │ ├── README.rst │ │ └── 2021-07-12-15-42-02.bpo-41972.yUjE8j.rst │ ├── Tools-Demos │ │ ├── 2020-02-25-18-22-09.bpo-20291.AyrDiZ.rst │ │ ├── 2021-05-08-13-57-00.bpo-44074.F09kCK.rst │ │ ├── README.rst │ │ └── 2021-07-01-22-21-25.bpo-43425.t65len.rst │ └── Security │ │ ├── README.rst │ │ ├── 2021-07-25-20-04-54.bpo-44600.0WMldg.rst │ │ └── 2021-05-05-17-37-04.bpo-44022.bS3XJ9.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 ├── PCbuild ├── build_env.bat ├── env.ps1 └── clean.bat ├── 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 ├── README ├── _decimal │ └── libmpdec │ │ └── examples │ │ └── README.txt └── _sha3 │ └── kcp │ ├── KeccakP-1600-opt64-config.h │ └── KeccakP-1600-SnP.h ├── Objects ├── README └── stringlib │ └── undef.h ├── Python ├── README ├── getplatform.c ├── asdl.c └── dynload_stub.c ├── Programs └── README ├── .github ├── FUNDING.yml └── dependabot.yml ├── netlify.toml └── Include └── internal └── pycore_pyhash.h /Doc/runtime.txt: -------------------------------------------------------------------------------- 1 | 3.7 -------------------------------------------------------------------------------- /Lib/test/nullcert.pem: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/urllib/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PC/layout/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/email/mime/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/pydoc_data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/sqlite3/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/test/leakers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Lib/tkinter/test/__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/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 |  -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Tools/pynche/__init__.py: -------------------------------------------------------------------------------- 1 | # Dummy file to make this directory a package. 2 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_sre_compile_corpus/anchor_links: -------------------------------------------------------------------------------- 1 | XX] 2 | -------------------------------------------------------------------------------- /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/__phello__.foo.py: -------------------------------------------------------------------------------- 1 | # This file exists as a helper for the test.test_frozen module. 2 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/data/crlf.py: -------------------------------------------------------------------------------- 1 | print "hi" 2 | 3 | print "Like bad Windows newlines?" 4 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/use.py: -------------------------------------------------------------------------------- 1 | from . import source 2 | source.spam 3 | -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_json_loads_corpus/simple_array.json: -------------------------------------------------------------------------------- 1 | [1, 2, 3, "abcd", "xyz"] 2 | -------------------------------------------------------------------------------- /PC/icons/py.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/py.icns -------------------------------------------------------------------------------- /PC/icons/py.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/py.ico -------------------------------------------------------------------------------- /PC/icons/py.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/py.png -------------------------------------------------------------------------------- /PC/icons/pyc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/pyc.ico -------------------------------------------------------------------------------- /PC/icons/pyd.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/pyd.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/imp_dummy.py: -------------------------------------------------------------------------------- 1 | # Fodder for test of issue24748 in test_imp 2 | 3 | dummy_name = True 4 | -------------------------------------------------------------------------------- /Lib/test/pstats.pck: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/pstats.pck -------------------------------------------------------------------------------- /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/xmltestdata/c14n-20/out_inC14N5_c14nTrim.xml: -------------------------------------------------------------------------------- 1 | Hello, world! -------------------------------------------------------------------------------- /Lib/test/zipdir.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/zipdir.zip -------------------------------------------------------------------------------- /Mac/Icons/IDLE.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Icons/IDLE.icns -------------------------------------------------------------------------------- /PC/icons/pyc.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/pyc.icns -------------------------------------------------------------------------------- /PC/icons/pyd.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/pyd.icns -------------------------------------------------------------------------------- /PC/icons/python.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/python.ico -------------------------------------------------------------------------------- /PC/icons/setup.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/setup.icns -------------------------------------------------------------------------------- /PC/icons/setup.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/setup.ico -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | custom: https://www.python.org/psf/donations/python-dev/ 2 | github: [python] 3 | -------------------------------------------------------------------------------- /Lib/lib2to3/tests/__main__.py: -------------------------------------------------------------------------------- 1 | from . import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/test/audiotest.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiotest.au -------------------------------------------------------------------------------- /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/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_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: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/testtar.tar -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-26-12-27-14.bpo-44516.BVyX_y.rst: -------------------------------------------------------------------------------- 1 | Update vendored pip to 21.1.3 2 | -------------------------------------------------------------------------------- /PC/icons/idlex150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/idlex150.png -------------------------------------------------------------------------------- /PC/icons/idlex44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/idlex44.png -------------------------------------------------------------------------------- /PC/icons/launcher.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/launcher.ico -------------------------------------------------------------------------------- /PC/icons/logox128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/logox128.png -------------------------------------------------------------------------------- /PC/icons/python.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/python.icns -------------------------------------------------------------------------------- /PC/icons/pythonw.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/pythonw.icns -------------------------------------------------------------------------------- /PC/icons/pythonw.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/pythonw.ico -------------------------------------------------------------------------------- /Doc/library/tk_msg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Doc/library/tk_msg.png -------------------------------------------------------------------------------- /Lib/idlelib/Icons/tk.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/idlelib/Icons/tk.gif -------------------------------------------------------------------------------- /Lib/lib2to3/__main__.py: -------------------------------------------------------------------------------- 1 | import sys 2 | from .main import main 3 | 4 | sys.exit(main("lib2to3.fixes")) 5 | -------------------------------------------------------------------------------- /Lib/test/sgml_input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/sgml_input.html -------------------------------------------------------------------------------- /Lib/test/test_asyncio/__main__.py: -------------------------------------------------------------------------------- 1 | from . import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/test/testtar.tar.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/testtar.tar.xz -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /PC/classicAppCompat.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/classicAppCompat.cat -------------------------------------------------------------------------------- /PC/icons/launcher.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/launcher.icns -------------------------------------------------------------------------------- /PC/icons/pythonwx150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/pythonwx150.png -------------------------------------------------------------------------------- /PC/icons/pythonwx44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/pythonwx44.png -------------------------------------------------------------------------------- /PC/icons/pythonx150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/pythonx150.png -------------------------------------------------------------------------------- /PC/icons/pythonx44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/pythonx44.png -------------------------------------------------------------------------------- /PC/icons/pythonx50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/PC/icons/pythonx50.png -------------------------------------------------------------------------------- /Tools/i18n/pygettext.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Tools/i18n/pygettext.py -------------------------------------------------------------------------------- /netlify.toml: -------------------------------------------------------------------------------- 1 | [build] 2 | base = "Doc/" 3 | command = "make html" 4 | publish = "Doc/build/html" -------------------------------------------------------------------------------- /Doc/howto/logging_flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Doc/howto/logging_flow.png -------------------------------------------------------------------------------- /Doc/library/tulip_coro.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Doc/library/tulip_coro.dia -------------------------------------------------------------------------------- /Doc/library/tulip_coro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Doc/library/tulip_coro.png -------------------------------------------------------------------------------- /Lib/ctypes/test/__main__.py: -------------------------------------------------------------------------------- 1 | from ctypes.test import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/idlelib/Icons/idle.ico -------------------------------------------------------------------------------- /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/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/xmltestdata/c14n-20/inC14N6.xml: -------------------------------------------------------------------------------- 1 | 2 | © 3 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inC14N5_c14nDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | Hello, world! 3 | -------------------------------------------------------------------------------- /Mac/Icons/Disk Image.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Icons/Disk Image.icns -------------------------------------------------------------------------------- /Doc/faq/python-video-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Doc/faq/python-video-icon.png -------------------------------------------------------------------------------- /Doc/library/turtle-star.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Doc/library/turtle-star.pdf -------------------------------------------------------------------------------- /Doc/library/turtle-star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Doc/library/turtle-star.png -------------------------------------------------------------------------------- /Doc/using/win_installer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Doc/using/win_installer.png -------------------------------------------------------------------------------- /Lib/ctypes/macholib/fetch_macholib.bat: -------------------------------------------------------------------------------- 1 | svn export --force http://svn.red-bean.com/bob/macholib/trunk/macholib/ . 2 | -------------------------------------------------------------------------------- /Lib/idlelib/Icons/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/idlelib/Icons/folder.gif -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle_16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/idlelib/Icons/idle_16.gif -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/idlelib/Icons/idle_16.png -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle_32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/idlelib/Icons/idle_32.gif -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/idlelib/Icons/idle_32.png -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle_48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/idlelib/Icons/idle_48.gif -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/idlelib/Icons/idle_48.png -------------------------------------------------------------------------------- /Lib/idlelib/Icons/python.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/idlelib/Icons/python.gif -------------------------------------------------------------------------------- /Lib/test/badsyntax_pep3120.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/badsyntax_pep3120.py -------------------------------------------------------------------------------- /Lib/test/cjkencodings/gbk.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/cjkencodings/gbk.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/inspect_stringized_annotations_2.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | def foo(a, b, c): pass 4 | -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/sndhdrdata/sndhdr.au -------------------------------------------------------------------------------- /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/xmltestdata/test.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/xmltestdata/test.xml -------------------------------------------------------------------------------- /Lib/test/zip_cp437_header.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/zip_cp437_header.zip -------------------------------------------------------------------------------- /Mac/Icons/Python Folder.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Icons/Python Folder.icns -------------------------------------------------------------------------------- /Mac/Icons/PythonCompiled.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Icons/PythonCompiled.icns -------------------------------------------------------------------------------- /Mac/Icons/PythonLauncher.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Icons/PythonLauncher.icns -------------------------------------------------------------------------------- /Mac/Icons/PythonSource.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Icons/PythonSource.icns -------------------------------------------------------------------------------- /Mac/Resources/iconsrc/IDE.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Resources/iconsrc/IDE.psd -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-10-15-06-47.bpo-44342.qqkGlj.rst: -------------------------------------------------------------------------------- 1 | [Enum] Change pickling from by-value to by-name. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-12-22-58-20.bpo-44389.WTRnoC.rst: -------------------------------------------------------------------------------- 1 | Fix deprecation of :data:`ssl.OP_NO_TLSv1_3` 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 | -------------------------------------------------------------------------------- /Tools/msi/bundle/SideBar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Tools/msi/bundle/SideBar.png -------------------------------------------------------------------------------- /Lib/idlelib/Icons/idle_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/idlelib/Icons/idle_256.png -------------------------------------------------------------------------------- /Lib/idlelib/Icons/minusnode.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/idlelib/Icons/minusnode.gif -------------------------------------------------------------------------------- /Lib/idlelib/Icons/plusnode.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/idlelib/Icons/plusnode.gif -------------------------------------------------------------------------------- /Lib/test/Sine-1000Hz-300ms.aif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/Sine-1000Hz-300ms.aif -------------------------------------------------------------------------------- /Lib/test/cjkencodings/big5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/cjkencodings/big5.txt -------------------------------------------------------------------------------- /Lib/test/cjkencodings/cp949.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/cjkencodings/cp949.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/cjkencodings/johab.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/cjkencodings/johab.txt -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/imghdrdata/python.bmp -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.exr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/imghdrdata/python.exr -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/imghdrdata/python.gif -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/imghdrdata/python.jpg -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.pbm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/imghdrdata/python.pbm -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.pgm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/imghdrdata/python.pgm -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/imghdrdata/python.png -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/imghdrdata/python.ppm -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.ras: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/imghdrdata/python.ras -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.sgi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/imghdrdata/python.sgi -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/imghdrdata/python.tiff -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/imghdrdata/python.webp -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.8svx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/sndhdrdata/sndhdr.8svx -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.aifc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/sndhdrdata/sndhdr.aifc -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/sndhdrdata/sndhdr.aiff -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.hcom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/sndhdrdata/sndhdr.hcom -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.sndt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/sndhdrdata/sndhdr.sndt -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.voc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/sndhdrdata/sndhdr.voc -------------------------------------------------------------------------------- /Lib/test/sndhdrdata/sndhdr.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/sndhdrdata/sndhdr.wav -------------------------------------------------------------------------------- /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_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_tools/__main__.py: -------------------------------------------------------------------------------- 1 | from test.test_tools import load_tests 2 | import unittest 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /Lib/xml/etree/cElementTree.py: -------------------------------------------------------------------------------- 1 | # Deprecated alias for xml.etree.ElementTree 2 | 3 | from xml.etree.ElementTree import * 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-07-12-11-39-20.bpo-44613.DIXNzc.rst: -------------------------------------------------------------------------------- 1 | importlib.metadata is no longer provisional. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-03-10-07-43.bpo-44018.VDyW8f.rst: -------------------------------------------------------------------------------- 1 | random.seed() no longer mutates bytearray inputs. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-21-21-23-43.bpo-44210.5afQ3K.rst: -------------------------------------------------------------------------------- 1 | Make importlib.metadata._meta.PackageMetadata public. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-26-13-34-37.bpo-33693.3okzdo.rst: -------------------------------------------------------------------------------- 1 | Importlib.metadata now prefers f-strings to .format. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2021-05-07-15-46-04.bpo-31904.8dk3la.rst: -------------------------------------------------------------------------------- 1 | Ignore error string case in test_file_not_exists(). 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2021-06-09-15-32-05.bpo-44364.zu9Zee.rst: -------------------------------------------------------------------------------- 1 | Add non integral tests for :func:`math.sqrt` function. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2021-07-24-20-09-15.bpo-44734.KKsNOV.rst: -------------------------------------------------------------------------------- 1 | Fixed floating point precision issue in turtle tests. 2 | -------------------------------------------------------------------------------- /Tools/scripts/pydoc3: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import pydoc 4 | if __name__ == '__main__': 5 | pydoc.cli() 6 | -------------------------------------------------------------------------------- /Lib/ctypes/macholib/fetch_macholib: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | svn export --force http://svn.red-bean.com/bob/macholib/trunk/macholib/ . 3 | -------------------------------------------------------------------------------- /Lib/idlelib/Icons/openfolder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/idlelib/Icons/openfolder.gif -------------------------------------------------------------------------------- /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-alaw.aifc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-alaw.aifc -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm16.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-pcm16.au -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm16.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-pcm16.wav -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm24.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-pcm24.au -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm24.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-pcm24.wav -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm32.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-pcm32.au -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm32.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-pcm32.wav -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm8.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-pcm8.aiff -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm8.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-pcm8.au -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm8.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-pcm8.wav -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-ulaw.aifc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-ulaw.aifc -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-ulaw.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-ulaw.au -------------------------------------------------------------------------------- /Lib/test/cjkencodings/euc_jp.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/cjkencodings/euc_jp.txt -------------------------------------------------------------------------------- /Lib/test/cjkencodings/euc_kr.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/cjkencodings/euc_kr.txt -------------------------------------------------------------------------------- /Lib/test/cjkencodings/gb18030.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/cjkencodings/gb18030.txt -------------------------------------------------------------------------------- /Lib/test/cjkencodings/gb2312.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/cjkencodings/gb2312.txt -------------------------------------------------------------------------------- /Lib/test/imghdrdata/python-raw.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/imghdrdata/python-raw.jpg -------------------------------------------------------------------------------- /Lib/test/test_doctest3.txt: -------------------------------------------------------------------------------- 1 | 2 | Here we check that `__file__` is provided: 3 | 4 | >>> type(__file__) 5 | 6 | -------------------------------------------------------------------------------- /Lib/test/test_import/data/circular_imports/binding.py: -------------------------------------------------------------------------------- 1 | import test.test_import.data.circular_imports.binding2 as binding2 2 | -------------------------------------------------------------------------------- /Lib/test/test_source_encoding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/test_source_encoding.py -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/doc.dtd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/test.xml.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/xmltestdata/test.xml.out -------------------------------------------------------------------------------- /Lib/test/ziptestdata/exe_with_z64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/ziptestdata/exe_with_z64 -------------------------------------------------------------------------------- /Lib/test/ziptestdata/exe_with_zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/ziptestdata/exe_with_zip -------------------------------------------------------------------------------- /Lib/test/ziptestdata/testdata_module_inside_zip.py: -------------------------------------------------------------------------------- 1 | # Test data file to be stored within a zip file. 2 | FAVORITE_NUMBER = 5 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/C API/2021-06-22-17-00-06.bpo-40939.CGB0I5.rst: -------------------------------------------------------------------------------- 1 | Removed documentation for the removed ``PyParser_*`` C API. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-05-11-21-52-44.bpo-44110.VqbAsB.rst: -------------------------------------------------------------------------------- 1 | Improve :func:`str.__getitem__` error message 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-26-15-27-03.bpo-44732.IxObt3.rst: -------------------------------------------------------------------------------- 1 | Rename ``types.Union`` to ``types.UnionType``. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/IDLE/2021-05-27-13-39-43.bpo-41611.liNQqj.rst: -------------------------------------------------------------------------------- 1 | Fix IDLE sometimes freezing upon tab-completion on macOS. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-03-19-59-14.bpo-40465.1tB4Y0.rst: -------------------------------------------------------------------------------- 1 | Remove random module features deprecated in Python 3.9. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-13-19-07-28.bpo-37788.adeFcf.rst: -------------------------------------------------------------------------------- 1 | Fix a reference leak when a Thread object is never joined. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-16-11-57-38.bpo-44150.xAhhik.rst: -------------------------------------------------------------------------------- 1 | Add optional *weights* argument to statistics.fmean(). 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-26-14-50-06.bpo-38693.NkMacJ.rst: -------------------------------------------------------------------------------- 1 | Prefer f-strings to ``.format`` in importlib.resources. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-28-09-43-33.bpo-44258.nh5F7R.rst: -------------------------------------------------------------------------------- 1 | Support PEP 515 for Fraction's initialization from string. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Windows/2021-07-13-15-32-49.bpo-44572.gXvhDc.rst: -------------------------------------------------------------------------------- 1 | Avoid consuming standard input in the :mod:`platform` module -------------------------------------------------------------------------------- /PC/errmap.mak: -------------------------------------------------------------------------------- 1 | errmap.h: generrmap.exe 2 | .\generrmap.exe > errmap.h 3 | 4 | genermap.exe: generrmap.c 5 | cl generrmap.c 6 | -------------------------------------------------------------------------------- /PCbuild/env.ps1: -------------------------------------------------------------------------------- 1 | $pcbuild = $script:MyInvocation.MyCommand.Path | Split-Path -parent; 2 | & cmd /K "$pcbuild\env.bat" $args 3 | -------------------------------------------------------------------------------- /Tools/peg_generator/data/xxl.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Tools/peg_generator/data/xxl.zip -------------------------------------------------------------------------------- /Doc/library/hashlib-blake2-tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Doc/library/hashlib-blake2-tree.png -------------------------------------------------------------------------------- /Doc/library/pathlib-inheritance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Doc/library/pathlib-inheritance.png -------------------------------------------------------------------------------- /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/test/audiodata/pluck-pcm16.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-pcm16.aiff -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm24.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-pcm24.aiff -------------------------------------------------------------------------------- /Lib/test/audiodata/pluck-pcm32.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/audiodata/pluck-pcm32.aiff -------------------------------------------------------------------------------- /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/big5hkscs.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/cjkencodings/big5hkscs.txt -------------------------------------------------------------------------------- /Lib/test/cjkencodings/shift_jis.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/cjkencodings/shift_jis.txt -------------------------------------------------------------------------------- /Lib/test/test_import/data/package2/submodule1.py: -------------------------------------------------------------------------------- 1 | import sys 2 | sys.modules.pop(__package__, None) 3 | from . import submodule2 4 | -------------------------------------------------------------------------------- /Mac/Resources/iconsrc/PythonIcon.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Resources/iconsrc/PythonIcon.psd -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Build/2021-06-30-02-32-46.bpo-44535.M9iN4-.rst: -------------------------------------------------------------------------------- 1 | Enable building using a Visual Studio 2022 install on Windows. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/C API/2021-07-27-17-29-12.bpo-44751.4qmbDG.rst: -------------------------------------------------------------------------------- 1 | Remove ``crypt.h`` include from the public ``Python.h`` header. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-01-13-19-34-41.bpo-28146.AZBBkH.rst: -------------------------------------------------------------------------------- 1 | Fix a confusing error message in :func:`str.format`. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-21-15-26-56.bpo-44698.DA4_0o.rst: -------------------------------------------------------------------------------- 1 | Fix undefined behaviour in complex object exponentiation. -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2020-03-21-01-19-28.bpo-21760.CqofIc.rst: -------------------------------------------------------------------------------- 1 | The description for __file__ fixed. 2 | Patch by Furkan Onder -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-06-28-12-13-48.bpo-38062.9Ehp9O.rst: -------------------------------------------------------------------------------- 1 | Clarify that atexit uses equality comparisons internally. 2 | -------------------------------------------------------------------------------- /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/euc_jisx0213.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/cjkencodings/euc_jisx0213.txt -------------------------------------------------------------------------------- /Lib/test/test_email/data/audiotest.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/test_email/data/audiotest.au -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Mac/Resources/iconsrc/PythonApplet.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Resources/iconsrc/PythonApplet.psd -------------------------------------------------------------------------------- /Mac/Resources/iconsrc/PythonSource.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Resources/iconsrc/PythonSource.psd -------------------------------------------------------------------------------- /Mac/Resources/iconsrc/PythonWSource.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Resources/iconsrc/PythonWSource.psd -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Build/2021-06-19-11-50-03.bpo-43298.9ircMb.rst: -------------------------------------------------------------------------------- 1 | Improved error message when building without a Windows SDK installed. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/C API/2020-12-23-01-28-50.bpo-42035.S9eUm0.rst: -------------------------------------------------------------------------------- 1 | Add a new :c:func:`PyType_GetName` function to get type's short name. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-23-01-52-13.bpo-44717.-vVmAh.rst: -------------------------------------------------------------------------------- 1 | Improve AttributeError on circular imports of submodules. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-07-13-22-25-13.bpo-44631.qkGwe4.rst: -------------------------------------------------------------------------------- 1 | Refactored the ``repr()`` code of the ``_Environ`` (os module). -------------------------------------------------------------------------------- /Misc/NEWS.d/next/IDLE/2021-05-27-18-22-46.bpo-41611.jOKpfc.rst: -------------------------------------------------------------------------------- 1 | Avoid uncaught exceptions in ``AutoCompleteWindow.winconfig_event()``. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-02-25-08-32-06.bpo-43318.bZJw6V.rst: -------------------------------------------------------------------------------- 1 | Fix a bug where :mod:`pdb` does not always echo cleared breakpoints. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-06-16-01-55.bpo-44059.GF5r6O.rst: -------------------------------------------------------------------------------- 1 | Register the SerenityOS Browser in the :mod:`webbrowser` module. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-17-07-24-24.bpo-44154.GRI5bf.rst: -------------------------------------------------------------------------------- 1 | Optimize :class:`fractions.Fraction` pickling for large components. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-21-12-12-35.bpo-43643.GWnmcF.rst: -------------------------------------------------------------------------------- 1 | Declare readers.MultiplexedPath.name as a property per the spec. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-10-08-35-38.bpo-44356.6oDFhO.rst: -------------------------------------------------------------------------------- 1 | [Enum] Allow multiple data-type mixins if they are all the same. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-16-08-57-27.bpo-44638.EwYKne.rst: -------------------------------------------------------------------------------- 1 | Add a reference to the zipp project and hint as to how to use it. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-20-19-35-49.bpo-44686.ucCGhu.rst: -------------------------------------------------------------------------------- 1 | Replace ``unittest.mock._importer`` with ``pkgutil.resolve_name``. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/macOS/2021-03-29-21-11-23.bpo-34932.f3Hdyd.rst: -------------------------------------------------------------------------------- 1 | Add socket.TCP_KEEPALIVE support for macOS. Patch by Shane Harvey. 2 | -------------------------------------------------------------------------------- /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/cjkencodings/shift_jisx0213.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/cjkencodings/shift_jisx0213.txt -------------------------------------------------------------------------------- /Lib/test/encoded_modules/module_koi8_r.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/encoded_modules/module_koi8_r.py -------------------------------------------------------------------------------- /Lib/test/test_email/data/PyBanner048.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/test_email/data/PyBanner048.gif -------------------------------------------------------------------------------- /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/xmltestdata/c14n-20/inNsDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsDefault_c14nDefault.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Mac/BuildScript/resources/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/BuildScript/resources/background.jpg -------------------------------------------------------------------------------- /Mac/Resources/iconsrc/PackageManager.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Resources/iconsrc/PackageManager.psd -------------------------------------------------------------------------------- /Mac/Resources/iconsrc/PythonCompiled.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Resources/iconsrc/PythonCompiled.psd -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-05-03-22-08-08.bpo-44025.gcB7iP.rst: -------------------------------------------------------------------------------- 1 | Clarify when '_' in match statements is a keyword, and when not. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2020-10-01-21-46-34.bpo-40956._tvsZ7.rst: -------------------------------------------------------------------------------- 1 | Use Argument Clinic in :mod:`sqlite3`. Patches by Erlend E. Aasland. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2020-10-11-20-23-48.bpo-37449.f-t3V6.rst: -------------------------------------------------------------------------------- 1 | ``ensurepip`` now uses ``importlib.resources.files()`` traversable APIs 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-26-22-04-40.bpo-44235.qFBYpp.rst: -------------------------------------------------------------------------------- 1 | Remove deprecated functions in the :mod:`gettext`. Patch by Dong-hee Na. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-09-08-32-39.bpo-44357.70Futb.rst: -------------------------------------------------------------------------------- 1 | Added a function that returns cube root of the given number :func:`math.cbrt` -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-14-14-19-11.bpo-38291.ee4cSX.rst: -------------------------------------------------------------------------------- 1 | Importing typing.io or typing.re now prints a ``DeprecationWarning``. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-30-11-34-35.bpo-44539.nP0Xi4.rst: -------------------------------------------------------------------------------- 1 | Added support for recognizing JPEG files without JFIF or Exif markers. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-05-18-13-25.bpo-44566.o51Bd1.rst: -------------------------------------------------------------------------------- 1 | handle StopIteration subclass raised from @contextlib.contextmanager generator -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tools-Demos/2020-02-25-18-22-09.bpo-20291.AyrDiZ.rst: -------------------------------------------------------------------------------- 1 | Added support for variadic positional parameters in Argument Clinic. 2 | -------------------------------------------------------------------------------- /Lib/pydoc_data/_pydoc.css: -------------------------------------------------------------------------------- 1 | /* 2 | CSS file for pydoc. 3 | 4 | Contents of this file are subject to change without notice. 5 | 6 | */ 7 | -------------------------------------------------------------------------------- /Lib/test/test_importlib/data01/utf-16.file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/test_importlib/data01/utf-16.file -------------------------------------------------------------------------------- /Lib/test/test_warnings/data/import_warning.py: -------------------------------------------------------------------------------- 1 | import warnings 2 | 3 | warnings.warn('module-level warning', DeprecationWarning, stacklevel=2) 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-05-17-20-44-45.bpo-44156.8KSp9l.rst: -------------------------------------------------------------------------------- 1 | String caches in ``compile.c`` are now subinterpreter compatible. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-14-13-54-07.bpo-44635.7ZMAdB.rst: -------------------------------------------------------------------------------- 1 | Convert ``None`` to ``type(None)`` in the union type constructor. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-06-18-06-44-45.bpo-44453.3PIkj2.rst: -------------------------------------------------------------------------------- 1 | Fix documentation for the return type of :func:`sysconfig.get_path`. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-07-18-22-26-02.bpo-44651.SjT9iY.rst: -------------------------------------------------------------------------------- 1 | Delete entry "coercion" in Doc/glossary.rst for its outdated definition. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2019-09-25-13-54-41.bpo-30256.wBkzox.rst: -------------------------------------------------------------------------------- 1 | Pass multiprocessing BaseProxy argument ``manager_owned`` through AutoProxy. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2020-07-01-17-42-41.bpo-41137.AnqbP-.rst: -------------------------------------------------------------------------------- 1 | Use utf-8 encoding while reading .pdbrc files. Patch by Srinivas Reddy Thatiparthy -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-10-21-53-46.bpo-34266.k3fxnm.rst: -------------------------------------------------------------------------------- 1 | Handle exceptions from parsing the arg of :mod:`pdb`'s run/restart command. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Windows/2021-01-01-21-21-03.bpo-42686.G_f-TC.rst: -------------------------------------------------------------------------------- 1 | Build :mod:`sqlite3` with math functions enabled. Patch by Erlend E. Aasland. 2 | -------------------------------------------------------------------------------- /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/encoded_modules/module_iso_8859_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/encoded_modules/module_iso_8859_1.py -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inC14N2_c14nTrim.xml: -------------------------------------------------------------------------------- 1 | A BABA BC -------------------------------------------------------------------------------- /Mac/IDLE/IDLE.app/Contents/Resources/IDLE.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/IDLE/IDLE.app/Contents/Resources/IDLE.icns -------------------------------------------------------------------------------- /Mac/Resources/app/Resources/PythonApplet.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Resources/app/Resources/PythonApplet.icns -------------------------------------------------------------------------------- /Misc/NEWS.d/next/C API/2021-05-19-15-09-47.bpo-43795.WAHRxt.rst: -------------------------------------------------------------------------------- 1 | The undocumented function :c:func:`Py_FrozenMain` is removed from the Limited API. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/C API/2021-07-29-16-04-28.bpo-41103.hiKKcF.rst: -------------------------------------------------------------------------------- 1 | Reverts removal of the old buffer protocol because they are part of stable 2 | ABI. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-03-22-17-50-30.bpo-17792._zssjS.rst: -------------------------------------------------------------------------------- 1 | More accurate error messages for access of unbound locals or free vars. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-04-17-16-08-00.bpo-43879.zkyJgh.rst: -------------------------------------------------------------------------------- 1 | Add native_thread_id to PyThreadState. Patch by Gabriele N. Tornetta. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-06-00-29-14.bpo-44317.xPPhcZ.rst: -------------------------------------------------------------------------------- 1 | Improve tokenizer error with improved locations. Patch by Pablo Galindo. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-09-22-56-59.bpo-44368.vgT0Cx.rst: -------------------------------------------------------------------------------- 1 | Improve syntax errors for invalid "as" targets. Patch by Pablo Galindo 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-13-20-22-12.bpo-44606.S3Bv2w.rst: -------------------------------------------------------------------------------- 1 | Fix ``__instancecheck__`` and ``__subclasscheck__`` for the union type. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-19-20-49-06.bpo-44653.WcqGyI.rst: -------------------------------------------------------------------------------- 1 | Support :mod:`typing` types in parameter substitution in the union type. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-06-21-15-46-32.bpo-13814.LDcslu.rst: -------------------------------------------------------------------------------- 1 | In the Design FAQ, answer "Why don't generators support the with statement?" 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2020-01-25-12-58-20.bpo-37022.FUZI25.rst: -------------------------------------------------------------------------------- 1 | :mod:`pdb` now displays exceptions from ``repr()`` with its ``p`` and ``pp`` commands. -------------------------------------------------------------------------------- /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/zipdata01/ziptestdata.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/test_importlib/zipdata01/ziptestdata.zip -------------------------------------------------------------------------------- /Lib/test/test_importlib/zipdata02/ziptestdata.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/test_importlib/zipdata02/ziptestdata.zip -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-21-11-19-54.bpo-44472.Vvm1yn.rst: -------------------------------------------------------------------------------- 1 | Fix ltrace functionality when exceptions are raised. Patch by Pablo Galindo 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-23-15-17-01.bpo-44725.qcuKaa.rst: -------------------------------------------------------------------------------- 1 | Expose specialization stats in python via :func:`_opcode.get_specialization_stats`. -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-05-17-20-03-47.bpo-41963.eUz9_o.rst: -------------------------------------------------------------------------------- 1 | Document that ``ConfigParser`` strips off comments when reading configuration files. -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-30-13-32-09.bpo-44260.ROEbVd.rst: -------------------------------------------------------------------------------- 1 | The :class:`random.Random` constructor no longer reads system entropy 2 | without need. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-07-10-26-14.bpo-44242.MKeMCQ.rst: -------------------------------------------------------------------------------- 1 | Remove missing flag check from Enum creation and move into a ``verify`` 2 | decorator. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-17-22-39-34.bpo-44446.qwdRic.rst: -------------------------------------------------------------------------------- 1 | Take into account that ``lineno`` might be ``None`` in :class:`traceback.FrameSummary`. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-22-08-43-04.bpo-44482.U9GznK.rst: -------------------------------------------------------------------------------- 1 | Fix very unlikely resource leak in :mod:`glob` in alternate Python 2 | implementations. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2021-06-26-18-37-36.bpo-44515.e9fO6f.rst: -------------------------------------------------------------------------------- 1 | Adjust recently added contextlib tests to avoid assuming the use of a 2 | refcounted GC 3 | -------------------------------------------------------------------------------- /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/ensurepip/_bundled/pip-21.1.3-py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/ensurepip/_bundled/pip-21.1.3-py3-none-any.whl -------------------------------------------------------------------------------- /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/namespacedata01/utf-16.file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/test_importlib/namespacedata01/utf-16.file -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inNsDefault_c14nPrefix.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Mac/Resources/app/Resources/PythonInterpreter.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/Resources/app/Resources/PythonInterpreter.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/Core and Builtins/2021-07-13-17-47-32.bpo-42073.9wopiC.rst: -------------------------------------------------------------------------------- 1 | The ``@classmethod`` decorator can now wrap other classmethod-like 2 | descriptors. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-16-09-59-13.bpo-44646.Yb6s05.rst: -------------------------------------------------------------------------------- 1 | Fix the hash of the union type: it no longer depends on the order of 2 | arguments. 3 | -------------------------------------------------------------------------------- /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/2021-05-24-21-15-41.bpo-43109.npKJ9c.rst: -------------------------------------------------------------------------------- 1 | Allow --with-lto configure option to work with Apple-supplied Xcode or 2 | Command Line Tools. 3 | -------------------------------------------------------------------------------- /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_importlib/data/example-21.12-py3.6.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/test_importlib/data/example-21.12-py3.6.egg -------------------------------------------------------------------------------- /Lib/test/xmltestdata/c14n-20/out_inC14N1_c14nDefault.xml: -------------------------------------------------------------------------------- 1 | 3 | Hello, world! 4 | -------------------------------------------------------------------------------- /Mac/IDLE/IDLE.app/Contents/Resources/PythonSource.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/IDLE/IDLE.app/Contents/Resources/PythonSource.icns -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Build/2021-06-10-18-08-44.bpo-44381.Xpc1iX.rst: -------------------------------------------------------------------------------- 1 | The Windows build now accepts :envvar:`EnableControlFlowGuard` set to 2 | ``guard`` to enable CFG. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-17-14-20-59.bpo-44661.BQbXiH.rst: -------------------------------------------------------------------------------- 1 | Update ``property_descr_set`` to use vectorcall if possible. Patch by Dong-hee 2 | Na. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-19-19-53-46.bpo-44676.WgIMvh.rst: -------------------------------------------------------------------------------- 1 | Add ability to serialise ``types.Union`` objects. Patch provided by Yurii 2 | Karabas. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-06-26-17-41-06.bpo-40620.PAYDrB.rst: -------------------------------------------------------------------------------- 1 | Convert examples in tutorial controlflow.rst section 4.3 to be interpreter-demo 2 | style. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-12-10-08-14.bpo-44395.PcW6Sx.rst: -------------------------------------------------------------------------------- 1 | Fix :meth:`~email.message.MIMEPart.as_string` to pass unixfrom properly. 2 | Patch by Dong-hee Na. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-20-19-01-11.bpo-44404.McfrYB.rst: -------------------------------------------------------------------------------- 1 | :mod:`tkinter`'s ``after()`` method now supports callables without the ``__name__`` attribute. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-19-18-45-00.bpo-44678.YMEAu0.rst: -------------------------------------------------------------------------------- 1 | Added a separate error message for discontinuous padding in *binascii.a2b_base64* strict mode. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-20-18-34-16.bpo-44353.ATuYq4.rst: -------------------------------------------------------------------------------- 1 | Make ``NewType.__call__`` faster by implementing it in C. 2 | Patch provided by Yurii Karabas. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-21-23-16-30.bpo-44704.iqHLxQ.rst: -------------------------------------------------------------------------------- 1 | The implementation of ``collections.abc.Set._hash()`` now matches that of ``frozenset.__hash__()``. -------------------------------------------------------------------------------- /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/Tests/2021-06-10-11-19-43.bpo-44363.-K9jD0.rst: -------------------------------------------------------------------------------- 1 | Account for address sanitizer in test_capi. test_capi now passes when run 2 | GCC address sanitizer. 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Mac/IDLE/IDLE.app/Contents/Resources/PythonCompiled.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/IDLE/IDLE.app/Contents/Resources/PythonCompiled.icns -------------------------------------------------------------------------------- /Misc/NEWS.d/next/C API/2021-05-05-19-04-50.bpo-43795.9Ojj73.rst: -------------------------------------------------------------------------------- 1 | :c:func:`PyCodec_Unregister` is now properly exported as a function in the 2 | Windows Stable ABI DLL. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-04-23-03-46-45.bpo-43918.nNDY3S.rst: -------------------------------------------------------------------------------- 1 | Document the signature and ``default`` argument in the docstring of the new ``anext`` builtin. -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-05-14-20-03-32.bpo-44032.OzT1ob.rst: -------------------------------------------------------------------------------- 1 | Move 'fast' locals and other variables from the frame object to a per-thread 2 | datastack. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-12-04-06-57.bpo-41972.nDX5k_.rst: -------------------------------------------------------------------------------- 1 | Tuned the string-searching algorithm of fastsearch.h to have a shorter inner loop for most cases. -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-16-21-35-14.bpo-44655.95I7M6.rst: -------------------------------------------------------------------------------- 1 | Include the name of the type in unset __slots__ attribute errors. Patch by 2 | Pablo Galindo 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-05-23-09-11-28.bpo-44195.1bqkOs.rst: -------------------------------------------------------------------------------- 1 | Corrected references to ``TraversableResources`` in docs. There is no 2 | ``TraversableReader``. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2019-11-12-18-59-33.bpo-38741.W7IYkq.rst: -------------------------------------------------------------------------------- 1 | :mod:`configparser`: using ']' inside a section header will no longer cut the section name short at the ']' -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2020-07-30-14-37-15.bpo-20684.qV35GU.rst: -------------------------------------------------------------------------------- 1 | Remove unused ``_signature_get_bound_param`` function from :mod:`inspect` - 2 | by Anthony Sottile. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-05-11-44-49.bpo-36515.uOSa3q.rst: -------------------------------------------------------------------------------- 1 | The :mod:`hashlib` module no longer does unaligned memory accesses when 2 | compiled for ARM platforms. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-31-04-51-02.bpo-43858.r7LOu6.rst: -------------------------------------------------------------------------------- 1 | Added a function that returns a copy of a dict of logging levels: :func:`logging.getLevelNamesMapping` 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-20-14-03-18.bpo-41546.lO1jXU.rst: -------------------------------------------------------------------------------- 1 | Make :mod:`pprint` (like the builtin ``print``) not attempt to write to ``stdout`` when it is ``None``. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-30-13-29-49.bpo-34798.t7FCa0.rst: -------------------------------------------------------------------------------- 1 | Break up paragraph about :class:`pprint.PrettyPrinter` construction parameters to make it easier to read. -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-19-22-43-15.bpo-44353.HF81_Q.rst: -------------------------------------------------------------------------------- 1 | Refactor ``typing.NewType`` from function into callable class. Patch 2 | provided by Yurii Karabas. 3 | -------------------------------------------------------------------------------- /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/ensurepip/_bundled/setuptools-56.0.0-py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/ensurepip/_bundled/setuptools-56.0.0-py3-none-any.whl -------------------------------------------------------------------------------- /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/example-21.12-py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/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/Svenskithesource/cpython/HEAD/Lib/test/test_importlib/namespace_pkgs/nested_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 | -------------------------------------------------------------------------------- /Mac/PythonLauncher/English.lproj/MainMenu.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/PythonLauncher/English.lproj/MainMenu.nib/objects.nib -------------------------------------------------------------------------------- /Mac/PythonLauncher/English.lproj/MyDocument.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/PythonLauncher/English.lproj/MyDocument.nib/objects.nib -------------------------------------------------------------------------------- /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/Core and Builtins/2021-06-18-22-08-25.bpo-44456.L0Rhko.rst: -------------------------------------------------------------------------------- 1 | Improve the syntax error when mixing positional and keyword patterns. Patch 2 | by Pablo Galindo. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-22-10-55-23.bpo-44486.wct-9X.rst: -------------------------------------------------------------------------------- 1 | Modules will always have a dictionary, even when created by 2 | ``types.ModuleType.__new__()`` 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-02-22-54-41.bpo-44553.l9YqGg.rst: -------------------------------------------------------------------------------- 1 | Implement GC methods for ``types.Union`` to break reference cycles and 2 | prevent memory leaks. 3 | -------------------------------------------------------------------------------- /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/Library/2021-05-26-13-15-51.bpo-44241.TBqej8.rst: -------------------------------------------------------------------------------- 1 | Incorporate minor tweaks from importlib_metadata 4.1: SimplePath protocol, 2 | support for Metadata 2.2. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-10-20-07-32.bpo-44362.oVOMfd.rst: -------------------------------------------------------------------------------- 1 | Improve :mod:`ssl` module's deprecation messages, error reporting, and 2 | documentation for deprecations. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-29-21-17-17.bpo-44461.acqRnV.rst: -------------------------------------------------------------------------------- 1 | Fix bug with :mod:`pdb`'s handling of import error due to a package which does not have a ``__main__`` module -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2021-05-14-14-13-44.bpo-44131.YPizoC.rst: -------------------------------------------------------------------------------- 1 | Add test_frozenmain to test_embed to test the :c:func:`Py_FrozenMain` C 2 | function. Patch by Victor Stinner. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tools-Demos/2021-05-08-13-57-00.bpo-44074.F09kCK.rst: -------------------------------------------------------------------------------- 1 | Make patchcheck automatically detect the correct base branch name (previously it was hardcoded to 'master') -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Windows/2021-07-07-21-07-18.bpo-44582.4Mm6Hh.rst: -------------------------------------------------------------------------------- 1 | Accelerate speed of :mod:`mimetypes` initialization using a native 2 | implementation of the registry scan. 3 | -------------------------------------------------------------------------------- /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_importlib/namespace_pkgs/missing_directory.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/test_importlib/namespace_pkgs/missing_directory.zip -------------------------------------------------------------------------------- /Lib/test/test_importlib/namespace_pkgs/top_level_portion1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Lib/test/test_importlib/namespace_pkgs/top_level_portion1.zip -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Build/2021-07-19-01-09-56.bpo-44340.JNeOf4.rst: -------------------------------------------------------------------------------- 1 | Add support for building with clang thin lto via --with-lto=thin/full. Patch 2 | by Dong-hee Na and Brett Holman. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-08-01-13-47.bpo-44335.GQTTkl.rst: -------------------------------------------------------------------------------- 1 | Fix a regression when identifying incorrect characters in syntax errors. 2 | Patch by Pablo Galindo 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-08-22-49-06.bpo-44349.xgEgeA.rst: -------------------------------------------------------------------------------- 1 | Fix an edge case when displaying text from files with encoding in syntax errors. Patch by Pablo Galindo. -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-01-16-18-36-00.bpo-33809.BiMK6V.rst: -------------------------------------------------------------------------------- 1 | Add the :meth:`traceback.TracebackException.print` method which prints 2 | the formatted exception information. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-17-21-05-06.bpo-4928.Ot2yjO.rst: -------------------------------------------------------------------------------- 1 | Documented existing behavior on POSIX: NamedTemporaryFiles are not deleted when creating process is killed with SIGKILL -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-19-21-52-27.bpo-44464.U2oa-a.rst: -------------------------------------------------------------------------------- 1 | Remove exception for flake8 in deprecated importlib.metadata interfaces. 2 | Sync with importlib_metadata 4.6. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-13-09-01-33.bpo-44608.R3IcM1.rst: -------------------------------------------------------------------------------- 1 | Fix memory leak in :func:`_tkinter._flatten` if it is called with a sequence 2 | or set, but not list or tuple. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-16-13-40-31.bpo-40897.aveAre.rst: -------------------------------------------------------------------------------- 1 | Give priority to using the current class constructor in 2 | :func:`inspect.signature`. Patch by Weipeng Hong. 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-22-19-08-19.bpo-44483.eq2f7T.rst: -------------------------------------------------------------------------------- 1 | Fix a crash in ``types.Union`` objects when creating a union of an object 2 | with bad ``__module__`` field. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-04-23-38-51.bpo-44562.QdeRQo.rst: -------------------------------------------------------------------------------- 1 | Remove uses of :c:func:`PyObject_GC_Del` in error path when initializing 2 | :class:`types.GenericAlias`. 3 | -------------------------------------------------------------------------------- /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/NEWS.d/next/IDLE/2021-05-05-09-45-24.bpo-44026.m2Z0zR.rst: -------------------------------------------------------------------------------- 1 | Include interpreter's typo fix suggestions in message line for 2 | NameErrors and AttributeErrors. Patch by E. Paine. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/IDLE/2021-06-10-00-50-02.bpo-33962.ikAUNg.rst: -------------------------------------------------------------------------------- 1 | Move the indent space setting from the Font tab to the new Windows tab. 2 | Patch by Mark Roseman and Terry Jan Reedy. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2017-09-20-14-43-03.bpo-29298._78CSN.rst: -------------------------------------------------------------------------------- 1 | Fix ``TypeError`` when required subparsers without ``dest`` do not receive 2 | arguments. Patch by Anthony Sottile. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-02-13-54-25.bpo-38352.N9MlhV.rst: -------------------------------------------------------------------------------- 1 | Add ``IO``, ``BinaryIO``, ``TextIO``, ``Match``, and ``Pattern`` to 2 | ``typing.__all__``. Patch by Jelle Zijlstra. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-20-07-14-46.bpo-44458.myqCQ0.rst: -------------------------------------------------------------------------------- 1 | ``BUFFER_BLOCK_SIZE`` is now declared static, to avoid linking collisions when bz2, lmza or zlib are statically linked. -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-20-23-28-26.bpo-44688.buFgz3.rst: -------------------------------------------------------------------------------- 1 | :meth:`sqlite3.Connection.create_collation` now accepts non-ASCII collation 2 | names. Patch by Erlend E. Aasland. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2020-10-25-19-20-26.bpo-35753.2LT-hO.rst: -------------------------------------------------------------------------------- 1 | Fix crash in doctest when doctest parses modules that include unwrappable 2 | functions by skipping those functions. 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Mac/PythonLauncher/English.lproj/PreferenceWindow.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Mac/PythonLauncher/English.lproj/PreferenceWindow.nib/objects.nib -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-05-12-14-26-16.bpo-44114.p-WfAE.rst: -------------------------------------------------------------------------------- 1 | Fix incorrect dictkeys_reversed and dictitems_reversed function signatures in C code, which broke webassembly builds. -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-05-18-11-27-02.bpo-44168.mgB-rt.rst: -------------------------------------------------------------------------------- 1 | Fix error message in the parser involving keyword arguments with invalid 2 | expressions. Patch by Pablo Galindo 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-03-22-51-50.bpo-44305.66dVDG.rst: -------------------------------------------------------------------------------- 1 | Improve error message for ``try`` blocks without ``except`` or ``finally`` 2 | blocks. Patch by Pablo Galindo. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2020-08-24-13-35-04.bpo-41621.nqaw9G.rst: -------------------------------------------------------------------------------- 1 | Document that :class:`collections.defaultdict` parameter ``default_factory`` defaults to None and is positional-only. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-05-26-11-16-33.bpo-42392.oxRx6E.rst: -------------------------------------------------------------------------------- 1 | Document the deprecation and removal of the ``loop`` parameter for many 2 | functions and classes in :mod:`asyncio`. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-09-03-26-31.bpo-44081.A-Mrto.rst: -------------------------------------------------------------------------------- 1 | :func:`ast.unparse` now doesn't use redundant spaces to separate ``lambda`` 2 | and the ``:`` if there are no parameters. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-16-02-24-23.bpo-44142.t-XU8k.rst: -------------------------------------------------------------------------------- 1 | :func:`ast.unparse` will now drop the redundant parentheses when tuples used 2 | as assignment targets (e.g in for loops). 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-04-11-33-34.bpo-41249.sHdwBE.rst: -------------------------------------------------------------------------------- 1 | Fixes ``TypedDict`` to work with ``typing.get_type_hints()`` and postponed evaluation of 2 | annotations across modules. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-04-21-16-53.bpo-44558.cm7Slv.rst: -------------------------------------------------------------------------------- 1 | Make the implementation consistency of :func:`~operator.indexOf` between 2 | C and Python versions. Patch by Dong-hee Na. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-19-14-04-42.bpo-44524.Nbf2JC.rst: -------------------------------------------------------------------------------- 1 | Add missing ``__name__`` and ``__qualname__`` attributes to ``typing`` module 2 | classes. Patch provided by Yurii Karabas. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Security/2021-07-25-20-04-54.bpo-44600.0WMldg.rst: -------------------------------------------------------------------------------- 1 | Fix incorrect line numbers while tracing some failed patterns in :ref:`match ` statements. Patch by Charles Burkland. -------------------------------------------------------------------------------- /Modules/_xxtestfuzz/fuzz_struct_unpack_corpus/varied_format_string: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Svenskithesource/cpython/HEAD/Modules/_xxtestfuzz/fuzz_struct_unpack_corpus/varied_format_string -------------------------------------------------------------------------------- /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/2021-05-27-17-34-29.bpo-43667.ND9jP3.rst: -------------------------------------------------------------------------------- 1 | Improve Unicode support in non-UTF locales on Oracle Solaris. This issue 2 | does not affect other Solaris systems. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-11-18-17-42.bpo-44396.Z9EKim.rst: -------------------------------------------------------------------------------- 1 | Fix a possible crash in the tokenizer when raising syntax errors for 2 | unclosed strings. Patch by Pablo Galindo. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-01-11-59-34.bpo-44490.xY80VR.rst: -------------------------------------------------------------------------------- 1 | Add ``__parameters__`` attribute and ``__getitem__`` 2 | operator to ``types.Union``. Patch provided by Yurii Karabas. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-05-08-09-48-05.bpo-44072.fb2x5I.rst: -------------------------------------------------------------------------------- 1 | Correct where in the numeric ABC hierarchy ``**`` support is added, i.e., in 2 | numbers.Complex, not numbers.Integral. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-07-03-18-25-17.bpo-44558.0pTknl.rst: -------------------------------------------------------------------------------- 1 | Match the docstring and python implementation of :func:`~operator.countOf` to the behavior 2 | of its c implementation. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-07-20-21-03-18.bpo-30511.eMFkRi.rst: -------------------------------------------------------------------------------- 1 | Clarify that :func:`shutil.make_archive` is not thread-safe due to 2 | reliance on changing the current working directory. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-07-08-39-23.bpo-44061.MvElG6.rst: -------------------------------------------------------------------------------- 1 | Fix regression in previous release when calling :func:`pkgutil.iter_modules` 2 | with a list of :class:`pathlib.Path` objects 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-09-22-52-34.bpo-44089.IoANsN.rst: -------------------------------------------------------------------------------- 1 | Allow subclassing ``csv.Error`` in 3.10 (it was allowed in 3.9 and earlier but 2 | was disallowed in early versions of 3.10). 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-09-10-08-32.bpo-35800.3hmkWw.rst: -------------------------------------------------------------------------------- 1 | :class:`smtpd.MailmanProxy` is now removed as it is unusable without an 2 | external module, ``mailman``. Patch by Dong-hee Na. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2021-05-04-18-10-57.bpo-42083.EMS2TK.rst: -------------------------------------------------------------------------------- 1 | Add test to check that ``PyStructSequence_NewType`` accepts a 2 | ``PyStructSequence_Desc`` with ``doc`` field set to ``NULL``. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/macOS/2021-07-12-15-42-02.bpo-41972.yUjE8j.rst: -------------------------------------------------------------------------------- 1 | The framework build's user header path in sysconfig is changed to add a 2 | 'pythonX.Y' component to match distutils's behavior. 3 | -------------------------------------------------------------------------------- /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/2021-05-04-01-01-04.bpo-43822.9VeCg0.rst: -------------------------------------------------------------------------------- 1 | The parser will prioritize tokenizer errors over custom syntax errors when 2 | raising exceptions. Patch by Pablo Galindo. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-13-23-12-18.bpo-44409.eW4LS-.rst: -------------------------------------------------------------------------------- 1 | Fix error location information for tokenizer errors raised on initialization 2 | of the tokenizer. Patch by Pablo Galindo. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2020-09-10-07-23-24.bpo-41730.DyKFi9.rst: -------------------------------------------------------------------------------- 1 | ``DeprecationWarning`` is now raised when importing :mod:`tkinter.tix`, which has been deprecated in documentation since Python 3.6. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-29-01-05-43.bpo-44254.f06xDm.rst: -------------------------------------------------------------------------------- 1 | On Mac, give turtledemo button text a color that works on both light 2 | or dark background. Programmers cannot control the latter. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2021-07-22-16-38-39.bpo-44708.SYNaac.rst: -------------------------------------------------------------------------------- 1 | Regression tests, when run with -w, are now re-running only the affected 2 | test methods instead of re-running the entire test file. 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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-17-21-04-04.bpo-44633.5-zKeI.rst: -------------------------------------------------------------------------------- 1 | Parameter substitution of the union type with wrong types now raises 2 | ``TypeError`` instead of returning ``NotImplemented``. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-07-26-23-48-31.bpo-44740.zMFGMV.rst: -------------------------------------------------------------------------------- 1 | Replaced occurences of uppercase "Web" and "Internet" with lowercase 2 | versions per the 2016 revised Associated Press Style Book. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-02-15-21-17-46.bpo-43232.awc4yZ.rst: -------------------------------------------------------------------------------- 1 | Prohibit previously deprecated potentially disruptive operations on 2 | :class:`asyncio.trsock.TransportSocket`. Patch by Illia Volochii. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-04-29-00-48-00.bpo-28528.JLAVWj.rst: -------------------------------------------------------------------------------- 1 | Fix a bug in :mod:`pdb` where :meth:`~pdb.Pdb.checkline` raises 2 | :exc:`AttributeError` if it is called after :meth:`~pdb.Pdb.reset`. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-14-23-28-17.bpo-44422.BlWOgv.rst: -------------------------------------------------------------------------------- 1 | The :func:`threading.enumerate` function now uses a reentrant lock to 2 | prevent a hang on reentrant call. 3 | Patch by Victor Stinner. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-21-12-43-04.bpo-44466.NSm6mv.rst: -------------------------------------------------------------------------------- 1 | The :mod:`faulthandler` module now detects if a fatal error occurs during a 2 | garbage collector collection. Patch by Victor Stinner. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-20-00-11-47.bpo-44682.3m2qVV.rst: -------------------------------------------------------------------------------- 1 | Change the :mod:`pdb` *commands* directive to disallow setting commands 2 | for an invalid breakpoint and to display an appropriate error. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Security/2021-05-05-17-37-04.bpo-44022.bS3XJ9.rst: -------------------------------------------------------------------------------- 1 | :mod:`http.client` now avoids infinitely reading potential HTTP headers after a 2 | ``100 Continue`` status response from the server. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2019-09-25-18-10-10.bpo-30256.A5i76Q.rst: -------------------------------------------------------------------------------- 1 | Add test for nested queues when using ``multiprocessing`` shared objects 2 | ``AutoProxy[Queue]`` inside ``ListProxy`` and ``DictProxy`` 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2021-07-17-11-41-20.bpo-42095.kCB7oj.rst: -------------------------------------------------------------------------------- 1 | Added interop tests for Apple plists: generate plist files with Python 2 | plistlib and parse with Apple plutil; and the other way round. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Windows/2021-06-06-16-36-13.bpo-41299.Rg-vb_.rst: -------------------------------------------------------------------------------- 1 | Fix 16ms jitter when using timeouts in :mod:`threading`, such as with :meth:`threading.Lock.acquire` or :meth:`threading.Condition.wait`. 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-05-08-17-18-37.bpo-43149.Kp5FxD.rst: -------------------------------------------------------------------------------- 1 | Corrent the syntax error message regarding multiple exception types to not 2 | refer to "exception groups". Patch by Pablo Galindo 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-13-23-19-41.bpo-44589.59OH8T.rst: -------------------------------------------------------------------------------- 1 | Mapping patterns in ``match`` statements with two or more equal literal 2 | keys will now raise a :exc:`SyntaxError` at compile-time. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-07-25-23-04-15.bpo-44693.JuCbNq.rst: -------------------------------------------------------------------------------- 1 | Update the definition of __future__ in the glossary by replacing the confusing 2 | word "pseudo-module" with a more accurate description. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2019-06-03-23-53-25.bpo-27513.qITN7d.rst: -------------------------------------------------------------------------------- 1 | :func:`email.utils.getaddresses` now accepts 2 | :class:`email.header.Header` objects along with string values. 3 | Patch by Zackery Spytz. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-14-16-06-02.bpo-44095.v_pLwY.rst: -------------------------------------------------------------------------------- 1 | :class:`zipfile.Path` now supports :attr:`zipfile.Path.stem`, 2 | :attr:`zipfile.Path.suffixes`, and :attr:`zipfile.Path.suffix` attributes. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-24-02-17-59.bpo-44720.shU5Qm.rst: -------------------------------------------------------------------------------- 1 | ``weakref.proxy`` objects referencing non-iterators now raise ``TypeError`` rather than dereferencing the null ``tp_iternext`` slot and crashing. -------------------------------------------------------------------------------- /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/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 | PendingDeprecationWarning, 7 | stacklevel=2, 8 | ) 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/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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-05-21-01-42-45.bpo-44184.9qOptC.rst: -------------------------------------------------------------------------------- 1 | Fix a crash at Python exit when a deallocator function removes the last strong 2 | reference to a heap type. 3 | Patch by Victor Stinner. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-11-17-37-15.bpo-44376.zhM1UW.rst: -------------------------------------------------------------------------------- 1 | Exact integer exponentiation (like ``i**2`` or ``pow(i, 2)``) with a small exponent is much faster, due to reducing overhead in such cases. -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-06-06-14-12-00.bpo-44322.K0PHfE.rst: -------------------------------------------------------------------------------- 1 | Document that SyntaxError args have a details tuple and that details are 2 | adjusted for errors in f-string field replacement expressions. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-01-25-21-24-55.bpo-43024.vAUrIi.rst: -------------------------------------------------------------------------------- 1 | Improve the help signature of :func:`traceback.print_exception`, :func:`traceback.format_exception` and :func:`traceback.format_exception_only`. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-27-22-11-29.bpo-44752._bvbrZ.rst: -------------------------------------------------------------------------------- 1 | :mod:`rcompleter` does not call :func:`getattr` on :class:`property` objects 2 | to avoid the side-effect of evaluating the corresponding method. 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Modules/_sha3/kcp/KeccakP-1600-opt64-config.h: -------------------------------------------------------------------------------- 1 | #define KeccakP1600_implementation_config "lane complementing, all rounds unrolled" 2 | #define KeccakP1600_fullUnrolling 3 | #define KeccakP1600_useLaneComplementing 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-05-15-17-30-57.bpo-44143.7UTS6H.rst: -------------------------------------------------------------------------------- 1 | Fixed a crash in the parser that manifest when raising tokenizer errors when 2 | an existing exception was present. Patch by Pablo Galindo. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-06-14-09-20-37.bpo-38291.VMYa_Q.rst: -------------------------------------------------------------------------------- 1 | Mark ``typing.io`` and ``typing.re`` as deprecated since Python 3.8 in the 2 | documentation. They were never properly supported by type checkers. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-06-16-18-09-49.bpo-44392.6RF1Sc.rst: -------------------------------------------------------------------------------- 1 | Added a new section in the C API documentation for types used in type 2 | hinting. Documented ``Py_GenericAlias`` and ``Py_GenericAliasType``. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-03-29-00-23-30.bpo-43650.v01tic.rst: -------------------------------------------------------------------------------- 1 | Fix :exc:`MemoryError` in :func:`shutil.unpack_archive` which fails inside 2 | :func:`shutil._unpack_zipfile` on large files. Patch by Igor Bolshakov. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-10-07-26-12.bpo-44351.rvyf2v.rst: -------------------------------------------------------------------------------- 1 | Restore back :func:`parse_makefile` in :mod:`distutils.sysconfig` because it 2 | behaves differently than the similar implementation in :mod:`sysconfig`. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-12-21-25-35.bpo-27827.TMWh1i.rst: -------------------------------------------------------------------------------- 1 | :meth:`pathlib.PureWindowsPath.is_reserved` now identifies a greater range of 2 | reserved filenames, including those with trailing spaces or colons. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2021-06-02-17-41-42.bpo-43921.xP7yZ4.rst: -------------------------------------------------------------------------------- 1 | Fix test_pha_required_nocert() of test_ssl: catch two more EOF cases (when 2 | the ``recv()`` method returns an empty string). Patch by Victor Stinner. 3 | -------------------------------------------------------------------------------- /Modules/_sha3/kcp/KeccakP-1600-SnP.h: -------------------------------------------------------------------------------- 1 | #if KeccakOpt == 64 2 | #include "KeccakP-1600-SnP-opt64.h" 3 | #elif KeccakOpt == 32 4 | #include "KeccakP-1600-SnP-opt32.h" 5 | #else 6 | #error "No KeccakOpt" 7 | #endif 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-16-20-25-37.bpo-44655.I3wRjL.rst: -------------------------------------------------------------------------------- 1 | Don't include a missing attribute with the same name as the failing one when 2 | offering suggestions for missing attributes. Patch by Pablo Galindo 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-17-13-41-58.bpo-44662.q22kWR.rst: -------------------------------------------------------------------------------- 1 | Add ``__module__`` to ``types.Union``. This also fixes 2 | ``types.Union`` issues with ``typing.Annotated``. Patch provided by 3 | Yurii Karabas. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-15-13-51-25.bpo-42972.UnyYo1.rst: -------------------------------------------------------------------------------- 1 | The _thread.RLock type now fully implement the GC protocol: add a traverse 2 | function and the :const:`Py_TPFLAGS_HAVE_GC` flag. Patch by Victor Stinner. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-23-19-02-00.bpo-44468.-klV5-.rst: -------------------------------------------------------------------------------- 1 | :func:`typing.get_type_hints` now finds annotations in classes and base classes 2 | with unexpected ``__module__``. Previously, it skipped those MRO elements. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-02-18-17-56.bpo-44554.aBUmJo.rst: -------------------------------------------------------------------------------- 1 | Refactor argument processing in :func:`pdb.main` to simplify detection of errors in input loading and clarify behavior around module or script invocation. 2 | -------------------------------------------------------------------------------- /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/lib2to3/tests/__init__.py: -------------------------------------------------------------------------------- 1 | # Author: Collin Winter 2 | 3 | import os 4 | 5 | from test.support import load_package_tests 6 | 7 | def load_tests(*args): 8 | return load_package_tests(os.path.dirname(__file__), *args) 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Build/2021-05-24-03-31-17.bpo-41282.L8nP44.rst: -------------------------------------------------------------------------------- 1 | Fix broken ``make install`` that caused standard library extension modules 2 | to be unnecessarily and incorrectly rebuilt during the install phase of 3 | cpython. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-05-02-34-57.bpo-44304._MAoPc.rst: -------------------------------------------------------------------------------- 1 | Fix a crash in the :mod:`sqlite3` module that happened when the garbage 2 | collector clears :class:`sqlite.Statement` objects. Patch by Pablo Galindo 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/IDLE/2021-06-11-17-43-39.bpo-40128.7vDN3U.rst: -------------------------------------------------------------------------------- 1 | Mostly fix completions on macOS when not using tcl/tk 8.6.11 (as with 3.9). 2 | The added update_idletask call should be harmless and possibly helpful 3 | otherwise. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-04-15-12-02-17.bpo-43853.XXCVAp.rst: -------------------------------------------------------------------------------- 1 | Improve :mod:`sqlite3` error handling: ``sqlite3_value_text()`` errors that 2 | set ``SQLITE_NOMEM`` now raise :exc:`MemoryError`. Patch by Erlend E. 3 | Aasland. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-23-01-33-01.bpo-44491.tiOlr5.rst: -------------------------------------------------------------------------------- 1 | Allow clearing the :mod:`sqlite3` authorizer callback by passing 2 | :const:`None` to :meth:`~sqlite3.Connection.set_authorizer`. Patch by 3 | Erlend E. Aasland. 4 | -------------------------------------------------------------------------------- /Tools/pynche/pynche: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python 2 | 3 | """Run this file under Unix, or when debugging under Windows. 4 | Run the file pynche.pyw under Windows to inhibit the console window. 5 | """ 6 | import Main 7 | Main.main() 8 | -------------------------------------------------------------------------------- /Tools/pynche/pynche.pyw: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python 2 | 3 | """Run this file under Windows to inhibit the console window. 4 | Run the file pynche.py under Unix or when debugging under Windows. 5 | """ 6 | import Main 7 | Main.main() 8 | -------------------------------------------------------------------------------- /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/gdb_sample.py: -------------------------------------------------------------------------------- 1 | # Sample script for use by test_gdb.py 2 | 3 | def foo(a, b, c): 4 | bar(a, b, 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/test_peg_generator/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | from test.support import load_package_tests 4 | 5 | # Load all tests in package 6 | def load_tests(*args): 7 | return load_package_tests(os.path.dirname(__file__), *args) 8 | -------------------------------------------------------------------------------- /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/C API/2021-06-10-15-22-31.bpo-44378.jGYakF.rst: -------------------------------------------------------------------------------- 1 | :c:func:`Py_IS_TYPE` no longer uses :c:func:`Py_TYPE` to avoid a compiler 2 | warning: no longer cast ``const PyObject*`` to ``PyObject*``. 3 | Patch by Victor Stinner. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/C API/2021-06-28-23-44-47.bpo-44530.qij7YC.rst: -------------------------------------------------------------------------------- 1 | Added the ``co_qualname`` to the ``PyCodeObject`` structure to propagate the 2 | qualified name from the compiler to code objects. 3 | 4 | Patch by Gabriele N. Tornetta 5 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2018-05-11-12-44-03.bpo-33346.ZgBkvB.rst: -------------------------------------------------------------------------------- 1 | Asynchronous comprehensions are now allowed inside comprehensions in 2 | asynchronous functions. Outer comprehensions implicitly become 3 | asynchronous. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2021-06-03-03-29-34.bpo-43921.nwH1FS.rst: -------------------------------------------------------------------------------- 1 | Fix test_ssl.test_wrong_cert_tls13(): use ``suppress_ragged_eofs=False``, 2 | since ``read()`` can raise :exc:`ssl.SSLEOFError` on Windows. Patch by 3 | Victor Stinner. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Windows/2020-04-13-15-20-28.bpo-40263.1KKEbu.rst: -------------------------------------------------------------------------------- 1 | This is a follow-on bug from https://bugs.python.org/issue26903. Once that 2 | is applied we run into an off-by-one assertion problem. The assert was not 3 | correct. 4 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-05-08-19-54-57.bpo-28307.7ysaVW.rst: -------------------------------------------------------------------------------- 1 | Compiler now optimizes simple C-style formatting with literal format 2 | containing only format codes %s, %r and %a by converting them to f-string 3 | expressions. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-05-19-20-33-36.bpo-44180.mQVaAs.rst: -------------------------------------------------------------------------------- 1 | The parser doesn't report generic syntax errors that happen in a position 2 | further away that the one it reached in the first pass. Patch by Pablo 3 | Galindo 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-05-20-12-43-04.bpo-44187.3lk0L1.rst: -------------------------------------------------------------------------------- 1 | Implement quickening in the interpreter. This offers no advantages as 2 | yet, but is an enabler of future optimizations. See PEP 659 for full 3 | explanation. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-16-01-01-11.bpo-44611.LcfHN-.rst: -------------------------------------------------------------------------------- 1 | On Windows, :func:`os.urandom`: uses BCryptGenRandom API instead of CryptGenRandom API 2 | which is deprecated from Microsoft Windows API. Patch by Dong-hee Na. 3 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-05-07-12-27-09.bpo-43558.UGhA8R.rst: -------------------------------------------------------------------------------- 1 | Add the remark to :mod:`dataclasses` documentation that the :meth:`__init__` of any base class 2 | has to be called in :meth:`__post_init__`, along with a code example. -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-10-10-06-18.bpo-44338.c4Myr4.rst: -------------------------------------------------------------------------------- 1 | Implement adaptive specialization for LOAD_GLOBAL 2 | 3 | Two specialized forms of LOAD_GLOBAL are added: 4 | 5 | * LOAD_GLOBAL_MODULE 6 | 7 | * LOAD_GLOBAL_BUILTIN 8 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-19-12-41-13.bpo-44297.F53vHj.rst: -------------------------------------------------------------------------------- 1 | Make sure that the line number is set when entering a comprehension scope. 2 | Ensures that backtraces inclusing generator expressions show the correct 3 | line number. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-17-15-01-51.bpo-44439.1S7QhT.rst: -------------------------------------------------------------------------------- 1 | Fix in :meth:`bz2.BZ2File.write` / :meth:`lzma.LZMAFile.write` methods, when 2 | the input data is an object that supports the buffer protocol, the file length 3 | may be wrong. 4 | -------------------------------------------------------------------------------- /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/C API/2021-06-15-16-28-18.bpo-43795.fy0AXK.rst: -------------------------------------------------------------------------------- 1 | The list in :ref:`stable-abi-list` now shows the public name 2 | :c:struct:`PyFrameObject` rather than ``_frame``. The non-existing 3 | entry ``_node`` no longer appears in the list. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tools-Demos/2021-07-01-22-21-25.bpo-43425.t65len.rst: -------------------------------------------------------------------------------- 1 | Removed the 'test2to3' demo project that demonstrated using lib2to3 2 | to support Python 2.x and Python 3.x from a single source in 3 | a distutils package. Patch by Dong-hee Na 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-02-15-22-14-31.bpo-43234.F-vKAT.rst: -------------------------------------------------------------------------------- 1 | Prohibit passing non-:class:`concurrent.futures.ThreadPoolExecutor` 2 | executors to :meth:`loop.set_default_executor` following a deprecation in 3 | Python 3.8. Patch by Illia Volochii. 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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2020-06-02-13-21-14.bpo-11105.wceryW.rst: -------------------------------------------------------------------------------- 1 | When compiling :class:`ast.AST` objects with recursive references 2 | through :func:`compile`, the interpreter doesn't crash anymore instead 3 | it raises a :exc:`RecursionError`. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-05-21-20-53-49.bpo-43693.-NN3J_.rst: -------------------------------------------------------------------------------- 1 | ``PyCodeObject`` gained ``co_fastlocalnames`` and ``co_fastlocalkinds`` as 2 | the the authoritative source of fast locals info. Marshaled code objects 3 | have changed accordingly. 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-05-21-21-16-03.bpo-44201.bGaSjt.rst: -------------------------------------------------------------------------------- 1 | Avoid side effects of checking for specialized syntax errors in the REPL 2 | that was causing it to ask for extra tokens after a syntax error had been 3 | detected. Patch by Pablo Galindo 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-07-18-22-43-14.bpo-44561.T7HpWm.rst: -------------------------------------------------------------------------------- 1 | Update of three expired hyperlinks in Doc/distributing/index.rst: 2 | "Project structure", "Building and packaging the project", and "Uploading the 3 | project to the Python Packaging Index". 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-08-17-47-38.bpo-44339.9JwMSc.rst: -------------------------------------------------------------------------------- 1 | Change ``math.pow(±0.0, -math.inf)`` to return ``inf`` instead of raising 2 | ``ValueError``. This brings the special-case handling of ``math.pow`` into 3 | compliance with the IEEE 754 standard. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Tests/2021-06-18-15-19-35.bpo-44451.aj5pqE.rst: -------------------------------------------------------------------------------- 1 | Reset ``DeprecationWarning`` filters in 2 | ``test.test_importlib.test_metadata_api.APITests.test_entry_points_by_index`` 3 | to avoid ``StopIteration`` error if ``DeprecationWarnings`` are ignored. 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-31-11-28-03.bpo-44246.nhmt-v.rst: -------------------------------------------------------------------------------- 1 | In importlib.metadata.entry_points, de-duplication of distributions no 2 | longer requires loading the full metadata for PathDistribution objects, 3 | improving entry point loading performance by ~10x. 4 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-16-09-36-12.bpo-44636.ZWebi8.rst: -------------------------------------------------------------------------------- 1 | Collapse union of equal types. E.g. the result of ``int | int`` is now ``int``. Fix comparison of the union type with non-hashable objects. E.g. ``int | str == {}`` no longer raises a TypeError. 2 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-27-11-14-22.bpo-34013.SjLFe-.rst: -------------------------------------------------------------------------------- 1 | Generalize the invalid legacy statement custom error message (like the one 2 | generated when "print" is called without parentheses) to include more 3 | generic expressions. Patch by Pablo Galindo 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-05-10-18-49-13.bpo-26110.EQzqqA.rst: -------------------------------------------------------------------------------- 1 | Add ``CALL_METHOD_KW`` opcode to speed up method calls with keyword 2 | arguments. Idea originated from PyPy. A side effect is executing 3 | ``CALL_METHOD`` is now branchless in the evaluation loop. 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-04-17-41-47.bpo-41486.DiM24a.rst: -------------------------------------------------------------------------------- 1 | Fix a memory consumption and copying performance regression in earlier 3.10 2 | beta releases if someone used an output buffer larger than 4GiB with 3 | zlib.decompress on input data that expands that large. 4 | -------------------------------------------------------------------------------- /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 | 11 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-06-22-22-15.bpo-44490.BJxPbZ.rst: -------------------------------------------------------------------------------- 1 | :mod:`typing` now searches for type parameters in ``types.Union`` objects. 2 | ``get_type_hints`` will also properly resolve annotations with nested 3 | ``types.Union`` objects. Patch provided by Yurii Karabas. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-04-30-16-58-24.bpo-43972.Y2r9lg.rst: -------------------------------------------------------------------------------- 1 | When :class:`http.server.SimpleHTTPRequestHandler` sends a 2 | ``301 (Moved Permanently)`` for a directory path not ending with `/`, add a 3 | ``Content-Length: 0`` header. This improves the behavior for certain clients. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-20-21-51-35.bpo-42854.ThuDMI.rst: -------------------------------------------------------------------------------- 1 | Fixed a bug in the :mod:`_ssl` module that was throwing :exc:`OverflowError` 2 | when using :meth:`_ssl._SSLSocket.write` and :meth:`_ssl._SSLSocket.read` 3 | for a big value of the ``len`` parameter. Patch by Pablo Galindo 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/C API/2021-05-31-11-31-13.bpo-44263.8mIOfV.rst: -------------------------------------------------------------------------------- 1 | The :c:func:`PyType_Ready` function now raises an error if a type is defined 2 | with the :const:`Py_TPFLAGS_HAVE_GC` flag set but has no traverse function 3 | (:c:member:`PyTypeObject.tp_traverse`). 4 | Patch by Victor Stinner. 5 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-14-10-31-10.bpo-26280.cgpM4B.rst: -------------------------------------------------------------------------------- 1 | Implement adaptive specialization for BINARY_SUBSCR 2 | 3 | Three specialized forms of BINARY_SUBSCR are added: 4 | 5 | * BINARY_SUBSCR_LIST_INT 6 | 7 | * BINARY_SUBSCR_TUPLE_INT 8 | 9 | * BINARY_SUBSCR_DICT -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-16-00-00-38.bpo-44145.ko5SJ7.rst: -------------------------------------------------------------------------------- 1 | :mod:`hmac` computations were not releasing the GIL while calling the 2 | OpenSSL ``HMAC_Update`` C API (a new feature in 3.9). This unintentionally 3 | prevented parallel computation as other :mod:`hashlib` algorithms support. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-06-22-16-45-48.bpo-43977.bamAGF.rst: -------------------------------------------------------------------------------- 1 | Set the proper :const:`Py_TPFLAGS_MAPPING` and :const:`Py_TPFLAGS_SEQUENCE` 2 | flags for subclasses created before a parent has been registered as a 3 | :class:`collections.abc.Mapping` or :class:`collections.abc.Sequence`. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-08-12-22-54.bpo-44569.KZ02v9.rst: -------------------------------------------------------------------------------- 1 | Added the :func:`StackSummary.format_frame` function in :mod:`traceback`. 2 | This allows users to customize the way individual lines are formatted in 3 | tracebacks without re-implementing logic to handle recursive tracebacks. 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-07-03-00-20-39.bpo-43908.YHuV_s.rst: -------------------------------------------------------------------------------- 1 | Heap types with the :const:`Py_TPFLAGS_IMMUTABLETYPE` flag can now inherit the 2 | :pep:`590` vectorcall protocol. Previously, this was only possible for 3 | :ref:`static types `. Patch by Erlend E. Aasland. 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/C API/2021-05-10-14-34-22.bpo-44094.HayXZO.rst: -------------------------------------------------------------------------------- 1 | Remove ``PyErr_SetFromErrnoWithUnicodeFilename()``, 2 | ``PyErr_SetFromWindowsErrWithUnicodeFilename()``, and 3 | ``PyErr_SetExcFromWindowsErrWithUnicodeFilename()``. They are not documented 4 | and have been deprecated since Python 3.3. 5 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-29-11-49-29.bpo-44523.67-ZIP.rst: -------------------------------------------------------------------------------- 1 | Remove the pass-through for :func:`hash` of :class:`weakref.proxy` objects 2 | to prevent unintended consequences when the original referred object 3 | dies while the proxy is part of a hashable object. Patch by Pablo Galindo. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-01-13-00-02-44.bpo-42862.Z6ACLN.rst: -------------------------------------------------------------------------------- 1 | :mod:`sqlite3` now utilizes :meth:`functools.lru_cache` to implement the 2 | connection statement cache. As a small optimisation, the default 3 | statement cache size has been increased from 100 to 128. 4 | Patch by Erlend E. Aasland. 5 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-13-19-44-38.bpo-44077.04b2a4.rst: -------------------------------------------------------------------------------- 1 | It's now possible to receive the type of service (ToS), a.k.a. differentiated 2 | services (DS), a.k.a. differenciated services code point (DSCP) and excplicit 3 | congestion notification (ECN) IP header fields with ``socket.IP_RECVTOS``. 4 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-10-19-55-13.bpo-42799.ad4tq8.rst: -------------------------------------------------------------------------------- 1 | In :mod:`fnmatch`, the cache size for compiled regex patterns 2 | (:func:`functools.lru_cache`) was bumped up from 256 to 32768, affecting 3 | functions: :func:`fnmatch.fnmatch`, :func:`fnmatch.fnmatchcase`, 4 | :func:`fnmatch.filter`. 5 | -------------------------------------------------------------------------------- /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/xmltestdata/c14n-20/c14nComment.xml: -------------------------------------------------------------------------------- 1 | 2 | true 3 | 4 | 5 | -------------------------------------------------------------------------------- /Lib/distutils/README: -------------------------------------------------------------------------------- 1 | This directory contains the Distutils package. 2 | 3 | There's a full documentation available at: 4 | 5 | http://docs.python.org/distutils/ 6 | 7 | The Distutils-SIG web page is also a good starting point: 8 | 9 | http://www.python.org/sigs/distutils-sig/ 10 | 11 | $Id$ 12 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-05-16-17-48-24.bpo-33433.MyzO71.rst: -------------------------------------------------------------------------------- 1 | For IPv4 mapped IPv6 addresses (:rfc:`4291` Section 2.5.5.2), the :mod:`ipaddress.IPv6Address.is_private` check is deferred to the mapped IPv4 address. This solves a bug where public mapped IPv4 addresses were considered private by the IPv6 check. 2 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/C API/2021-06-23-12-12-04.bpo-44441.3p14JB.rst: -------------------------------------------------------------------------------- 1 | :c:func:`Py_RunMain` now resets :c:data:`PyImport_Inittab` to its initial value 2 | at exit. It must be possible to call :c:func:`PyImport_AppendInittab` or 3 | :c:func:`PyImport_ExtendInittab` at each Python initialization. 4 | Patch by Victor Stinner. 5 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/C API/2021-07-20-16-21-06.bpo-42747.rRxjUY.rst: -------------------------------------------------------------------------------- 1 | The ``Py_TPFLAGS_HAVE_VERSION_TAG`` type flag now does nothing. The 2 | ``Py_TPFLAGS_HAVE_AM_SEND`` flag (which was added in 3.10) is removed. Both 3 | were unnecessary because it is not possible to have type objects with the 4 | relevant fields missing. 5 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/IDLE/2021-06-08-03-04-51.bpo-40468.tUCGUb.rst: -------------------------------------------------------------------------------- 1 | Split the settings dialog General tab into Windows and Shell/ED tabs. 2 | Move help sources, which extend the Help menu, to the Extensions tab. 3 | Make space for new options and shorten the dialog. 4 | The latter makes the dialog better fit small screens. 5 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Library/2021-07-09-07-14-37.bpo-41928.Q1jMrr.rst: -------------------------------------------------------------------------------- 1 | Update :func:`shutil.copyfile` to raise :exc:`FileNotFoundError` instead of 2 | confusing :exc:`IsADirectoryError` when a path ending with a 3 | :const:`os.path.sep` does not exist; :func:`shutil.copy` and 4 | :func:`shutil.copy2` are also affected. 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-07-15-13-44.bpo-43693.c_zDeY.rst: -------------------------------------------------------------------------------- 1 | Computation of the offsets of cell variables is done in the compiler instead 2 | of at runtime. This reduces the overhead of handling cell and free 3 | variables, especially in the case where a variable is both an argument and 4 | cell variable. 5 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-08-10-22-46.bpo-44337.RTjmIt.rst: -------------------------------------------------------------------------------- 1 | Initial implementation of adaptive specialization of LOAD_ATTR 2 | 3 | Four specialized forms of LOAD_ATTR are added: 4 | 5 | * LOAD_ATTR_SLOT 6 | 7 | * LOAD_ATTR_SPLIT_KEYS 8 | 9 | * LOAD_ATTR_WITH_HINT 10 | 11 | * LOAD_ATTR_MODULE 12 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-06-10-16-10-39.bpo-44313.34RjI8.rst: -------------------------------------------------------------------------------- 1 | Directly imported objects and modules (through import and from import 2 | statements) don't generate ``LOAD_METHOD``/``CALL_METHOD`` for directly 3 | accessed objects on their namespace. They now use the regular 4 | ``LOAD_ATTR``/``CALL_FUNCTION``. 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Core and Builtins/2021-04-18-18-07-33.bpo-43833.oChkCi.rst: -------------------------------------------------------------------------------- 1 | Emit a deprecation warning if the numeric literal is immediately followed by 2 | one of keywords: and, else, for, if, in, is, or. Raise a syntax error with 3 | more informative message if it is immediately followed by other keyword or 4 | identifier. 5 | -------------------------------------------------------------------------------- /Misc/NEWS.d/next/Documentation/2021-07-02-14-02-29.bpo-44544._5_aCz.rst: -------------------------------------------------------------------------------- 1 | List all kwargs for :func:`textwrap.wrap`, :func:`textwrap.fill`, and 2 | :func:`textwrap.shorten`. Now, there are nav links to attributes of 3 | :class:`TextWrap`, which makes navigation much easier while minimizing 4 | duplication in the documentation. 5 | -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------