├── 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
│ ├── superseded.rst
│ ├── windows.rst
│ ├── fileformats.rst
│ ├── functional.rst
│ ├── netdata.rst
│ ├── frameworks.rst
│ └── modules.rst
├── howto
│ └── logging_flow.png
├── using
│ └── win_installer.png
├── faq
│ ├── python-video-icon.png
│ └── index.rst
├── whatsnew
│ └── changelog.rst
├── tools
│ └── templates
│ │ └── opensearch.xml
├── includes
│ ├── sqlite3
│ │ ├── shared_cache.py
│ │ ├── parse_colnames.py
│ │ ├── md5func.py
│ │ ├── row_factory.py
│ │ ├── rowclass.py
│ │ ├── adapter_datetime.py
│ │ ├── executemany_2.py
│ │ ├── adapter_point_2.py
│ │ ├── execsql_printall_1.py
│ │ ├── insert_more_people.py
│ │ └── adapter_point_1.py
│ ├── turtle-star.py
│ └── setup.py
├── distutils
│ ├── uploading.rst
│ └── _setuptools_disclaimer.rst
├── c-api
│ └── objimpl.rst
└── requirements.txt
├── Lib
├── test
│ ├── nullcert.pem
│ ├── leakers
│ │ ├── __init__.py
│ │ ├── test_selftype.py
│ │ └── test_ctypes.py
│ ├── test_import
│ │ ├── data
│ │ │ ├── unwritable
│ │ │ │ ├── x.py
│ │ │ │ └── __init__.py
│ │ │ ├── package
│ │ │ │ ├── submodule.py
│ │ │ │ └── __init__.py
│ │ │ ├── package2
│ │ │ │ ├── submodule2.py
│ │ │ │ └── submodule1.py
│ │ │ └── circular_imports
│ │ │ │ ├── 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
│ │ ├── zipdata01
│ │ │ ├── __init__.py
│ │ │ └── ziptestdata.zip
│ │ ├── zipdata02
│ │ │ ├── __init__.py
│ │ │ └── ziptestdata.zip
│ │ ├── namespacedata01
│ │ │ ├── binary.file
│ │ │ ├── utf-8.file
│ │ │ └── utf-16.file
│ │ ├── namespace_pkgs
│ │ │ ├── not_a_namespace_pkg
│ │ │ │ └── foo
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ └── one.py
│ │ │ ├── module_and_namespace_package
│ │ │ │ ├── a_test
│ │ │ │ │ └── empty
│ │ │ │ └── a_test.py
│ │ │ ├── portion1
│ │ │ │ └── foo
│ │ │ │ │ └── one.py
│ │ │ ├── portion2
│ │ │ │ └── foo
│ │ │ │ │ └── two.py
│ │ │ ├── both_portions
│ │ │ │ └── foo
│ │ │ │ │ ├── one.py
│ │ │ │ │ └── two.py
│ │ │ ├── project1
│ │ │ │ └── parent
│ │ │ │ │ └── child
│ │ │ │ │ └── one.py
│ │ │ ├── project2
│ │ │ │ └── parent
│ │ │ │ │ └── child
│ │ │ │ │ └── two.py
│ │ │ ├── project3
│ │ │ │ └── parent
│ │ │ │ │ └── child
│ │ │ │ │ └── three.py
│ │ │ ├── nested_portion1.zip
│ │ │ ├── missing_directory.zip
│ │ │ └── top_level_portion1.zip
│ │ ├── __main__.py
│ │ ├── builtin
│ │ │ ├── __main__.py
│ │ │ └── __init__.py
│ │ ├── frozen
│ │ │ ├── __main__.py
│ │ │ └── __init__.py
│ │ ├── import_
│ │ │ ├── __main__.py
│ │ │ └── __init__.py
│ │ ├── source
│ │ │ ├── __main__.py
│ │ │ └── __init__.py
│ │ ├── extension
│ │ │ ├── __main__.py
│ │ │ └── __init__.py
│ │ ├── __init__.py
│ │ └── stubs.py
│ ├── xmltestdata
│ │ ├── c14n-20
│ │ │ ├── world.txt
│ │ │ ├── out_inC14N6_c14nDefault.xml
│ │ │ ├── out_inC14N5_c14nTrim.xml
│ │ │ ├── inC14N6.xml
│ │ │ ├── out_inC14N5_c14nDefault.xml
│ │ │ ├── doc.dtd
│ │ │ ├── inNsDefault.xml
│ │ │ ├── out_inNsDefault_c14nDefault.xml
│ │ │ ├── out_inC14N2_c14nTrim.xml
│ │ │ ├── out_inNsDefault_c14nPrefix.xml
│ │ │ ├── out_inC14N1_c14nDefault.xml
│ │ │ ├── inNsPushdown.xml
│ │ │ ├── out_inNsSuperfluous_c14nPrefix.xml
│ │ │ ├── out_inNsXml_c14nDefault.xml
│ │ │ ├── c14nDefault.xml
│ │ │ ├── doc.xsl
│ │ │ ├── out_inNsXml_c14nPrefix.xml
│ │ │ ├── inNsRedecl.xml
│ │ │ ├── inNsSort.xml
│ │ │ ├── out_inC14N1_c14nComment.xml
│ │ │ ├── inNsXml.xml
│ │ │ ├── out_inNsRedecl_c14nPrefix.xml
│ │ │ ├── out_inNsXml_c14nQname.xml
│ │ │ ├── out_inNsRedecl_c14nDefault.xml
│ │ │ ├── inNsSuperfluous.xml
│ │ │ ├── out_inNsSort_c14nDefault.xml
│ │ │ ├── out_inNsSuperfluous_c14nDefault.xml
│ │ │ ├── out_inNsXml_c14nPrefixQname.xml
│ │ │ ├── inC14N2.xml
│ │ │ ├── out_inNsSort_c14nPrefix.xml
│ │ │ ├── out_inNsPushdown_c14nDefault.xml
│ │ │ ├── out_inC14N2_c14nDefault.xml
│ │ │ ├── out_inNsPushdown_c14nPrefix.xml
│ │ │ ├── out_inNsContent_c14nDefault.xml
│ │ │ ├── c14nTrim.xml
│ │ │ ├── c14nComment.xml
│ │ │ ├── c14nPrefix.xml
│ │ │ ├── inC14N1.xml
│ │ │ ├── out_inNsContent_c14nQnameElem.xml
│ │ │ ├── c14nQnameElem.xml
│ │ │ ├── out_inC14N3_c14nTrim.xml
│ │ │ ├── c14nQname.xml
│ │ │ ├── out_inNsContent_c14nPrefixQnameXpathElem.xml
│ │ │ ├── inC14N5.xml
│ │ │ ├── out_inNsContent_c14nQnameXpathElem.xml
│ │ │ ├── inNsContent.xml
│ │ │ ├── c14nQnameXpathElem.xml
│ │ │ ├── c14nPrefixQname.xml
│ │ │ └── out_inC14N4_c14nTrim.xml
│ │ ├── test.xml
│ │ ├── test.xml.out
│ │ ├── simple.xml
│ │ ├── simple-ns.xml
│ │ └── expat224_utf8_bug.xml
│ ├── bad_coding.py
│ ├── relimport.py
│ ├── bad_coding2.py
│ ├── coding20731.py
│ ├── badsyntax_3131.py
│ ├── cjkencodings
│ │ ├── big5hkscs-utf8.txt
│ │ ├── hz-utf8.txt
│ │ ├── big5.txt
│ │ ├── gbk.txt
│ │ ├── hz.txt
│ │ ├── cp949.txt
│ │ ├── euc_jp.txt
│ │ ├── euc_kr.txt
│ │ ├── gb18030.txt
│ │ ├── gb2312.txt
│ │ ├── johab.txt
│ │ ├── big5hkscs.txt
│ │ ├── shift_jis.txt
│ │ ├── euc_jisx0213.txt
│ │ ├── shift_jisx0213.txt
│ │ ├── gb2312-utf8.txt
│ │ ├── cp949-utf8.txt
│ │ ├── johab-utf8.txt
│ │ ├── iso2022_kr-utf8.txt
│ │ ├── euc_kr-utf8.txt
│ │ ├── big5-utf8.txt
│ │ ├── euc_jp-utf8.txt
│ │ ├── iso2022_jp-utf8.txt
│ │ └── shift_jis-utf8.txt
│ ├── test_zoneinfo
│ │ ├── __init__.py
│ │ └── __main__.py
│ ├── __init__.py
│ ├── __main__.py
│ ├── empty.vbs
│ ├── imp_dummy.py
│ ├── bad_getattr.py
│ ├── cfgparser.1
│ ├── pstats.pck
│ ├── test_warnings
│ │ ├── __main__.py
│ │ └── data
│ │ │ ├── import_warning.py
│ │ │ └── stacklevel.py
│ ├── testtar.tar
│ ├── zipdir.zip
│ ├── audiotest.au
│ ├── test_asyncio
│ │ ├── __main__.py
│ │ ├── echo2.py
│ │ ├── echo.py
│ │ ├── echo3.py
│ │ └── __init__.py
│ ├── testtar.tar.xz
│ ├── dtracedata
│ │ ├── assert_usable.d
│ │ ├── assert_usable.stp
│ │ ├── gc.d.expected
│ │ ├── gc.stp.expected
│ │ ├── line.d
│ │ ├── gc.py
│ │ ├── line.py
│ │ ├── gc.d
│ │ └── instance.py
│ ├── sgml_input.html
│ ├── test_peg_generator
│ │ ├── __main__.py
│ │ └── __init__.py
│ ├── dis_module.py
│ ├── inspect_stringized_annotations_2.py
│ ├── test_json
│ │ ├── __main__.py
│ │ └── test_default.py
│ ├── Sine-1000Hz-300ms.aif
│ ├── badsyntax_pep3120.py
│ ├── imghdrdata
│ │ ├── python.bmp
│ │ ├── python.exr
│ │ ├── python.gif
│ │ ├── python.jpg
│ │ ├── python.pbm
│ │ ├── python.pgm
│ │ ├── python.png
│ │ ├── python.ppm
│ │ ├── python.ras
│ │ ├── python.sgi
│ │ ├── python.tiff
│ │ ├── python.webp
│ │ └── python.xbm
│ ├── sndhdrdata
│ │ ├── sndhdr.au
│ │ ├── sndhdr.voc
│ │ ├── sndhdr.wav
│ │ ├── sndhdr.8svx
│ │ ├── sndhdr.aifc
│ │ ├── sndhdr.aiff
│ │ ├── sndhdr.hcom
│ │ ├── sndhdr.sndt
│ │ └── README
│ ├── 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
│ │ │ ├── msg_37.txt
│ │ │ ├── msg_17.txt
│ │ │ ├── msg_34.txt
│ │ │ ├── msg_42.txt
│ │ │ ├── msg_30.txt
│ │ │ ├── msg_03.txt
│ │ │ └── msg_21.txt
│ ├── test_tools
│ │ └── __main__.py
│ ├── zip_cp437_header.zip
│ ├── ann_module4.py
│ ├── audiodata
│ │ ├── pluck-pcm16.au
│ │ ├── pluck-pcm24.au
│ │ ├── pluck-pcm32.au
│ │ ├── pluck-pcm8.au
│ │ ├── pluck-pcm8.wav
│ │ ├── pluck-ulaw.au
│ │ ├── pluck-alaw.aifc
│ │ ├── pluck-pcm16.aiff
│ │ ├── pluck-pcm16.wav
│ │ ├── pluck-pcm24.aiff
│ │ ├── pluck-pcm24.wav
│ │ ├── pluck-pcm32.aiff
│ │ ├── pluck-pcm32.wav
│ │ ├── pluck-pcm8.aiff
│ │ └── pluck-ulaw.aifc
│ ├── 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
│ ├── test_multiprocessing_spawn.py
│ ├── sample_doctest_no_doctests.py
│ ├── test_lib2to3.py
│ ├── test_unittest.py
│ ├── test_doctest.txt
│ ├── tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt
│ ├── crashers
│ │ ├── underlying_dict.py
│ │ └── recursive_call.py
│ ├── tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt
│ ├── test_ttk_textonly.py
│ ├── mp_preload.py
│ ├── test_doctest2.txt
│ ├── test_codecmaps_hk.py
│ ├── test_tk.py
│ └── test_multiprocessing_forkserver.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
├── ensurepip
│ ├── _bundled
│ │ ├── __init__.py
│ │ ├── pip-21.1.1-py3-none-any.whl
│ │ └── setuptools-56.0.0-py3-none-any.whl
│ └── __main__.py
├── lib2to3
│ ├── tests
│ │ ├── data
│ │ │ ├── fixers
│ │ │ │ ├── myfixes
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── fix_first.py
│ │ │ │ │ ├── fix_explicit.py
│ │ │ │ │ ├── fix_last.py
│ │ │ │ │ ├── fix_preorder.py
│ │ │ │ │ └── fix_parrot.py
│ │ │ │ ├── parrot_example.py
│ │ │ │ ├── no_fixer_cls.py
│ │ │ │ └── bad_order.py
│ │ │ ├── bom.py
│ │ │ ├── false_encoding.py
│ │ │ ├── crlf.py
│ │ │ ├── different_encoding.py
│ │ │ └── README
│ │ ├── __main__.py
│ │ └── __init__.py
│ ├── fixes
│ │ ├── __init__.py
│ │ ├── fix_imports2.py
│ │ └── fix_basestring.py
│ ├── __main__.py
│ ├── pgen2
│ │ └── __init__.py
│ └── __init__.py
├── concurrent
│ └── __init__.py
├── distutils
│ ├── tests
│ │ ├── includetest.rst
│ │ └── test_versionpredicate.py
│ ├── debug.py
│ └── README
├── xmlrpc
│ └── __init__.py
├── unittest
│ └── test
│ │ ├── dummy.py
│ │ └── testmock
│ │ └── support.py
├── __phello__.foo.py
├── dbm
│ ├── gnu.py
│ └── ndbm.py
├── ctypes
│ ├── test
│ │ └── __main__.py
│ └── macholib
│ │ ├── fetch_macholib.bat
│ │ ├── fetch_macholib
│ │ ├── __init__.py
│ │ └── README.ctypes
├── idlelib
│ ├── Icons
│ │ ├── tk.gif
│ │ ├── folder.gif
│ │ ├── idle.ico
│ │ ├── python.gif
│ │ ├── idle_16.gif
│ │ ├── idle_16.png
│ │ ├── idle_256.png
│ │ ├── idle_32.gif
│ │ ├── idle_32.png
│ │ ├── idle_48.gif
│ │ ├── idle_48.png
│ │ ├── plusnode.gif
│ │ ├── minusnode.gif
│ │ └── openfolder.gif
│ ├── idle.bat
│ ├── __main__.py
│ └── __init__.py
├── xml
│ ├── etree
│ │ └── cElementTree.py
│ └── parsers
│ │ ├── __init__.py
│ │ └── expat.py
├── curses
│ └── panel.py
├── collections
│ └── abc.py
├── site-packages
│ └── README.txt
├── contextvars.py
├── asyncio
│ └── log.py
├── venv
│ └── __main__.py
├── turtledemo
│ ├── turtle.cfg
│ └── __init__.py
├── struct.py
└── decimal.py
├── PC
├── layout
│ ├── __init__.py
│ ├── support
│ │ └── __init__.py
│ └── __main__.py
├── icons
│ ├── py.ico
│ ├── py.png
│ ├── py.icns
│ ├── pyc.icns
│ ├── pyc.ico
│ ├── pyd.icns
│ ├── pyd.ico
│ ├── setup.ico
│ ├── idlex44.png
│ ├── python.icns
│ ├── python.ico
│ ├── pythonw.ico
│ ├── setup.icns
│ ├── idlex150.png
│ ├── launcher.icns
│ ├── launcher.ico
│ ├── logox128.png
│ ├── pythonw.icns
│ ├── pythonwx44.png
│ ├── pythonx150.png
│ ├── pythonx44.png
│ ├── pythonx50.png
│ └── pythonwx150.png
├── classicAppCompat.cat
├── errmap.mak
├── pyshellext.def
└── empty.c
├── Mac
├── Resources
│ ├── app
│ │ ├── PkgInfo
│ │ └── Resources
│ │ │ ├── PythonApplet.icns
│ │ │ └── PythonInterpreter.icns
│ └── iconsrc
│ │ ├── IDE.psd
│ │ ├── PythonApplet.psd
│ │ ├── PythonIcon.psd
│ │ ├── PythonSource.psd
│ │ ├── PackageManager.psd
│ │ ├── PythonCompiled.psd
│ │ └── PythonWSource.psd
├── IDLE
│ └── IDLE.app
│ │ └── Contents
│ │ ├── PkgInfo
│ │ └── Resources
│ │ ├── IDLE.icns
│ │ ├── PythonSource.icns
│ │ └── PythonCompiled.icns
├── Icons
│ ├── IDLE.icns
│ ├── Disk Image.icns
│ ├── Python Folder.icns
│ ├── PythonSource.icns
│ ├── PythonCompiled.icns
│ ├── PythonLauncher.icns
│ └── ReadMe.txt
├── BuildScript
│ └── resources
│ │ └── background.jpg
└── PythonLauncher
│ ├── English.lproj
│ ├── MainMenu.nib
│ │ ├── objects.nib
│ │ └── classes.nib
│ ├── MyDocument.nib
│ │ └── objects.nib
│ └── PreferenceWindow.nib
│ │ └── objects.nib
│ ├── doscript.h
│ ├── MyAppDelegate.h
│ └── main.m
├── Tools
├── c-analyzer
│ ├── c_common
│ │ ├── info.py
│ │ ├── show.py
│ │ ├── __init__.py
│ │ └── misc.py
│ ├── cpython
│ │ └── known.tsv
│ ├── c_parser
│ │ └── parser
│ │ │ └── _alt.py
│ └── c-analyzer.py
├── peg_generator
│ ├── pegen
│ │ └── __init__.py
│ ├── peg_extension
│ │ └── __init__.py
│ ├── requirements.pip
│ ├── scripts
│ │ └── __init__.py
│ ├── .gitignore
│ ├── data
│ │ ├── xxl.zip
│ │ └── cprog.py
│ └── pyproject.toml
├── test2to3
│ ├── test2to3
│ │ ├── __init__.py
│ │ └── hello.py
│ ├── setup.py
│ ├── README
│ ├── test
│ │ └── test_foo.py
│ └── maintest.py
├── freeze
│ ├── hello.py
│ ├── test
│ │ ├── ok.py
│ │ └── Makefile
│ └── flag.py
├── msi
│ ├── bundle
│ │ ├── bootstrap
│ │ │ └── pch.cpp
│ │ ├── SideBar.png
│ │ └── bundle.wxl
│ ├── lib
│ │ └── lib_en-US.wxl
│ ├── core
│ │ └── core_en-US.wxl
│ ├── dev
│ │ └── dev_en-US.wxl
│ ├── tools
│ │ └── tools_en-US.wxl
│ ├── ucrt
│ │ └── ucrt_en-US.wxl
│ ├── pip
│ │ └── pip_en-US.wxl
│ ├── path
│ │ └── path_en-US.wxl
│ ├── test
│ │ └── test_en-US.wxl
│ └── doc
│ │ └── doc_en-US.wxl_template
├── pynche
│ ├── __init__.py
│ ├── pynche
│ ├── pynche.pyw
│ └── html40colors.txt
├── i18n
│ └── pygettext.py
├── scripts
│ ├── pydoc3
│ ├── 2to3
│ ├── idle3
│ └── reindent-rst.py
├── buildbot
│ ├── buildmsi.bat
│ └── clean.bat
├── unicode
│ └── genwincodecs.bat
└── importbench
│ └── README
├── Misc
├── requirements-test.txt
├── Porting
├── NEWS.d
│ ├── next
│ │ ├── Library
│ │ │ ├── 2021-05-03-10-07-43.bpo-44018.VDyW8f.rst
│ │ │ ├── 2021-05-03-19-59-14.bpo-40465.1tB4Y0.rst
│ │ │ ├── 2021-05-13-19-07-28.bpo-37788.adeFcf.rst
│ │ │ ├── 2021-05-06-16-01-55.bpo-44059.GF5r6O.rst
│ │ │ ├── README.rst
│ │ │ ├── 2021-05-05-11-44-49.bpo-36515.uOSa3q.rst
│ │ │ ├── 2021-05-02-13-54-25.bpo-38352.N9MlhV.rst
│ │ │ ├── 2021-05-09-03-26-31.bpo-44081.A-Mrto.rst
│ │ │ ├── 2021-05-16-02-24-23.bpo-44142.t-XU8k.rst
│ │ │ ├── 2021-05-07-08-39-23.bpo-44061.MvElG6.rst
│ │ │ ├── 2021-05-09-22-52-34.bpo-44089.IoANsN.rst
│ │ │ ├── 2020-09-10-07-23-24.bpo-41730.DyKFi9.rst
│ │ │ ├── 2021-04-29-00-48-00.bpo-28528.JLAVWj.rst
│ │ │ ├── 2021-05-14-16-06-02.bpo-44095.v_pLwY.rst
│ │ │ ├── 2021-04-30-16-58-24.bpo-43972.Y2r9lg.rst
│ │ │ ├── 2021-05-01-15-43-37.bpo-44002.KLT_wd.rst
│ │ │ ├── 2021-05-12-16-43-21.bpo-38908.nM2_rO.rst
│ │ │ ├── 2021-03-30-08-39-08.bpo-43666.m72tlH.rst
│ │ │ └── 2021-05-10-17-45-00.bpo-44098._MoxuZ.rst
│ │ ├── Tests
│ │ │ ├── 2021-05-07-15-46-04.bpo-31904.8dk3la.rst
│ │ │ ├── README.rst
│ │ │ ├── 2020-10-25-19-20-26.bpo-35753.2LT-hO.rst
│ │ │ └── 2021-05-04-18-10-57.bpo-42083.EMS2TK.rst
│ │ ├── Core and Builtins
│ │ │ ├── 2021-01-13-19-34-41.bpo-28146.AZBBkH.rst
│ │ │ ├── README.rst
│ │ │ ├── 2021-05-12-14-26-16.bpo-44114.p-WfAE.rst
│ │ │ ├── 2021-05-04-01-01-04.bpo-43822.9VeCg0.rst
│ │ │ ├── 2021-05-08-17-18-37.bpo-43149.Kp5FxD.rst
│ │ │ ├── 2021-05-15-17-30-57.bpo-44143.7UTS6H.rst
│ │ │ ├── 2021-05-08-19-54-57.bpo-28307.7ysaVW.rst
│ │ │ ├── 2021-05-10-18-49-13.bpo-26110.EQzqqA.rst
│ │ │ └── 2021-04-30-15-48-36.bpo-40222.j3VxeX.rst
│ │ ├── Documentation
│ │ │ ├── 2021-05-03-22-08-08.bpo-44025.gcB7iP.rst
│ │ │ ├── README.rst
│ │ │ ├── 2021-05-08-09-48-05.bpo-44072.fb2x5I.rst
│ │ │ └── 2021-05-07-12-27-09.bpo-43558.UGhA8R.rst
│ │ ├── Windows
│ │ │ ├── 2021-01-01-21-21-03.bpo-42686.G_f-TC.rst
│ │ │ └── README.rst
│ │ ├── Build
│ │ │ └── README.rst
│ │ ├── C API
│ │ │ ├── README.rst
│ │ │ ├── 2021-05-05-19-04-50.bpo-43795.9Ojj73.rst
│ │ │ └── 2021-05-10-14-34-22.bpo-44094.HayXZO.rst
│ │ ├── IDLE
│ │ │ ├── README.rst
│ │ │ └── 2021-05-05-09-45-24.bpo-44026.m2Z0zR.rst
│ │ ├── macOS
│ │ │ └── README.rst
│ │ ├── Security
│ │ │ ├── README.rst
│ │ │ └── 2021-05-05-17-37-04.bpo-44022.bS3XJ9.rst
│ │ └── Tools-Demos
│ │ │ ├── 2021-05-08-13-57-00.bpo-44074.F09kCK.rst
│ │ │ └── README.rst
│ ├── 3.6.0.rst
│ ├── 3.6.2.rst
│ ├── 3.5.3.rst
│ ├── 3.5.5.rst
│ ├── 3.6.6.rst
│ ├── 3.5.0.rst
│ ├── 3.6.4.rst
│ ├── 3.5.4.rst
│ ├── 3.5.0rc4.rst
│ ├── 3.6.5.rst
│ ├── 3.5.1.rst
│ └── 3.7.0.rst
├── python.pc.in
└── python-embed.pc.in
├── 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
│ └── dictionaries
│ │ └── fuzz_json_loads.dict
├── _ctypes
│ ├── _ctypes_test.h
│ ├── libffi_osx
│ │ └── README.pyobjc
│ └── darwin
│ │ └── README.ctypes
├── README
├── _decimal
│ ├── libmpdec
│ │ └── examples
│ │ │ └── README.txt
│ └── tests
│ │ └── README.txt
├── _sha3
│ ├── kcp
│ │ ├── KeccakP-1600-opt64-config.h
│ │ └── KeccakP-1600-SnP.h
│ └── README.txt
└── expat
│ └── expat_config.h
├── Objects
├── README
└── stringlib
│ └── undef.h
├── Python
├── README
├── getplatform.c
├── asdl.c
├── dynload_stub.c
├── getversion.c
└── pyfpe.c
├── Programs
├── README
└── python.c
├── .github
├── FUNDING.yml
├── dependabot.yml
└── workflows
│ └── posix-deps-apt.sh
├── netlify.toml
└── Include
├── internal
├── pycore_pyhash.h
├── pycore_import.h
└── pycore_list.h
├── bltinmodule.h
├── enumobject.h
├── osmodule.h
├── README.rst
├── code.h
├── genericaliasobject.h
├── interpreteridobject.h
├── frameobject.h
├── namespaceobject.h
└── cpython
├── interpreteridobject.h
└── traceback.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/ensurepip/_bundled/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Lib/tkinter/test/test_ttk/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Tools/peg_generator/pegen/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Lib/test/test_import/data/unwritable/x.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Lib/test/test_importlib/data/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Lib/test/test_importlib/data01/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Lib/test/test_importlib/data02/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Lib/test/test_importlib/data03/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/world.txt:
--------------------------------------------------------------------------------
1 | world
--------------------------------------------------------------------------------
/Lib/tkinter/test/test_tkinter/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Mac/IDLE/IDLE.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPL????
--------------------------------------------------------------------------------
/Lib/test/test_import/data/package/submodule.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Lib/test/test_import/data/package2/submodule2.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Lib/test/test_importlib/data01/binary.file:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Lib/test/test_importlib/data02/one/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Lib/test/test_importlib/data02/two/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Lib/test/test_importlib/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 |
--------------------------------------------------------------------------------
/Tools/test2to3/test2to3/__init__.py:
--------------------------------------------------------------------------------
1 | # empty
2 |
--------------------------------------------------------------------------------
/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_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 | 6s Hello
--------------------------------------------------------------------------------
/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.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/py.ico
--------------------------------------------------------------------------------
/PC/icons/py.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/py.png
--------------------------------------------------------------------------------
/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/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!
--------------------------------------------------------------------------------
/PC/icons/py.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/py.icns
--------------------------------------------------------------------------------
/PC/icons/pyc.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/pyc.icns
--------------------------------------------------------------------------------
/PC/icons/pyc.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/pyc.ico
--------------------------------------------------------------------------------
/PC/icons/pyd.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/pyd.icns
--------------------------------------------------------------------------------
/PC/icons/pyd.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/pyd.ico
--------------------------------------------------------------------------------
/PC/icons/setup.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/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/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/pstats.pck:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/pstats.pck
--------------------------------------------------------------------------------
/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/vcokltfre-archive/cyeethon/HEAD/Lib/test/testtar.tar
--------------------------------------------------------------------------------
/Lib/test/zipdir.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/zipdir.zip
--------------------------------------------------------------------------------
/Mac/Icons/IDLE.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/Icons/IDLE.icns
--------------------------------------------------------------------------------
/PC/icons/idlex44.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/idlex44.png
--------------------------------------------------------------------------------
/PC/icons/python.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/python.icns
--------------------------------------------------------------------------------
/PC/icons/python.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/python.ico
--------------------------------------------------------------------------------
/PC/icons/pythonw.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/pythonw.ico
--------------------------------------------------------------------------------
/PC/icons/setup.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/setup.icns
--------------------------------------------------------------------------------
/Doc/library/tk_msg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Doc/library/tk_msg.png
--------------------------------------------------------------------------------
/Lib/lib2to3/__main__.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from .main import main
3 |
4 | sys.exit(main("lib2to3.fixes"))
5 |
--------------------------------------------------------------------------------
/Lib/test/audiotest.au:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiotest.au
--------------------------------------------------------------------------------
/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/vcokltfre-archive/cyeethon/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/vcokltfre-archive/cyeethon/HEAD/PC/classicAppCompat.cat
--------------------------------------------------------------------------------
/PC/icons/idlex150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/idlex150.png
--------------------------------------------------------------------------------
/PC/icons/launcher.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/launcher.icns
--------------------------------------------------------------------------------
/PC/icons/launcher.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/launcher.ico
--------------------------------------------------------------------------------
/PC/icons/logox128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/logox128.png
--------------------------------------------------------------------------------
/PC/icons/pythonw.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/pythonw.icns
--------------------------------------------------------------------------------
/PC/icons/pythonwx44.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/pythonwx44.png
--------------------------------------------------------------------------------
/PC/icons/pythonx150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/pythonx150.png
--------------------------------------------------------------------------------
/PC/icons/pythonx44.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/pythonx44.png
--------------------------------------------------------------------------------
/PC/icons/pythonx50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/pythonx50.png
--------------------------------------------------------------------------------
/Tools/i18n/pygettext.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Tools/i18n/pygettext.py
--------------------------------------------------------------------------------
/Tools/test2to3/setup.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Tools/test2to3/setup.py
--------------------------------------------------------------------------------
/netlify.toml:
--------------------------------------------------------------------------------
1 | [build]
2 | base = "Doc/"
3 | command = "make html"
4 | publish = "Doc/build/html"
--------------------------------------------------------------------------------
/Lib/ctypes/test/__main__.py:
--------------------------------------------------------------------------------
1 | from ctypes.test import load_tests
2 | import unittest
3 |
4 | unittest.main()
5 |
--------------------------------------------------------------------------------
/Lib/idlelib/Icons/tk.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/idlelib/Icons/tk.gif
--------------------------------------------------------------------------------
/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/sgml_input.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/sgml_input.html
--------------------------------------------------------------------------------
/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/vcokltfre-archive/cyeethon/HEAD/Mac/Icons/Disk Image.icns
--------------------------------------------------------------------------------
/PC/icons/pythonwx150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/PC/icons/pythonwx150.png
--------------------------------------------------------------------------------
/Doc/howto/logging_flow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Doc/howto/logging_flow.png
--------------------------------------------------------------------------------
/Doc/library/tulip_coro.dia:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Doc/library/tulip_coro.dia
--------------------------------------------------------------------------------
/Doc/library/tulip_coro.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Doc/library/tulip_coro.png
--------------------------------------------------------------------------------
/Doc/library/turtle-star.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Doc/library/turtle-star.pdf
--------------------------------------------------------------------------------
/Doc/library/turtle-star.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Doc/library/turtle-star.png
--------------------------------------------------------------------------------
/Doc/using/win_installer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/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/vcokltfre-archive/cyeethon/HEAD/Lib/idlelib/Icons/folder.gif
--------------------------------------------------------------------------------
/Lib/idlelib/Icons/idle.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/idlelib/Icons/idle.ico
--------------------------------------------------------------------------------
/Lib/idlelib/Icons/python.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/idlelib/Icons/python.gif
--------------------------------------------------------------------------------
/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/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 |
--------------------------------------------------------------------------------
/Mac/Icons/Python Folder.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/Icons/Python Folder.icns
--------------------------------------------------------------------------------
/Mac/Icons/PythonSource.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/Icons/PythonSource.icns
--------------------------------------------------------------------------------
/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/vcokltfre-archive/cyeethon/HEAD/Tools/msi/bundle/SideBar.png
--------------------------------------------------------------------------------
/Doc/faq/python-video-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Doc/faq/python-video-icon.png
--------------------------------------------------------------------------------
/Lib/idlelib/Icons/idle_16.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/idlelib/Icons/idle_16.gif
--------------------------------------------------------------------------------
/Lib/idlelib/Icons/idle_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/idlelib/Icons/idle_16.png
--------------------------------------------------------------------------------
/Lib/idlelib/Icons/idle_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/idlelib/Icons/idle_256.png
--------------------------------------------------------------------------------
/Lib/idlelib/Icons/idle_32.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/idlelib/Icons/idle_32.gif
--------------------------------------------------------------------------------
/Lib/idlelib/Icons/idle_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/idlelib/Icons/idle_32.png
--------------------------------------------------------------------------------
/Lib/idlelib/Icons/idle_48.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/idlelib/Icons/idle_48.gif
--------------------------------------------------------------------------------
/Lib/idlelib/Icons/idle_48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/idlelib/Icons/idle_48.png
--------------------------------------------------------------------------------
/Lib/idlelib/Icons/plusnode.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/idlelib/Icons/plusnode.gif
--------------------------------------------------------------------------------
/Lib/test/Sine-1000Hz-300ms.aif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/Sine-1000Hz-300ms.aif
--------------------------------------------------------------------------------
/Lib/test/badsyntax_pep3120.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/badsyntax_pep3120.py
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/big5.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/cjkencodings/big5.txt
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/gbk.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/cjkencodings/gbk.txt
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/hz.txt:
--------------------------------------------------------------------------------
1 | This sentence is in ASCII.
2 | The next sentence is in GB.~{<:Ky2;S{#,NpJ)l6HK!#~}Bye.
3 |
--------------------------------------------------------------------------------
/Lib/test/imghdrdata/python.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/imghdrdata/python.bmp
--------------------------------------------------------------------------------
/Lib/test/imghdrdata/python.exr:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/imghdrdata/python.exr
--------------------------------------------------------------------------------
/Lib/test/imghdrdata/python.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/imghdrdata/python.gif
--------------------------------------------------------------------------------
/Lib/test/imghdrdata/python.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/imghdrdata/python.jpg
--------------------------------------------------------------------------------
/Lib/test/imghdrdata/python.pbm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/imghdrdata/python.pbm
--------------------------------------------------------------------------------
/Lib/test/imghdrdata/python.pgm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/imghdrdata/python.pgm
--------------------------------------------------------------------------------
/Lib/test/imghdrdata/python.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/imghdrdata/python.png
--------------------------------------------------------------------------------
/Lib/test/imghdrdata/python.ppm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/imghdrdata/python.ppm
--------------------------------------------------------------------------------
/Lib/test/imghdrdata/python.ras:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/imghdrdata/python.ras
--------------------------------------------------------------------------------
/Lib/test/imghdrdata/python.sgi:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/imghdrdata/python.sgi
--------------------------------------------------------------------------------
/Lib/test/sndhdrdata/sndhdr.au:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/sndhdrdata/sndhdr.au
--------------------------------------------------------------------------------
/Lib/test/sndhdrdata/sndhdr.voc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/sndhdrdata/sndhdr.voc
--------------------------------------------------------------------------------
/Lib/test/sndhdrdata/sndhdr.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/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/test/xmltestdata/test.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/xmltestdata/test.xml
--------------------------------------------------------------------------------
/Lib/test/zip_cp437_header.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/zip_cp437_header.zip
--------------------------------------------------------------------------------
/Lib/xml/etree/cElementTree.py:
--------------------------------------------------------------------------------
1 | # Deprecated alias for xml.etree.ElementTree
2 |
3 | from xml.etree.ElementTree import *
4 |
--------------------------------------------------------------------------------
/Mac/Icons/PythonCompiled.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/Icons/PythonCompiled.icns
--------------------------------------------------------------------------------
/Mac/Icons/PythonLauncher.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/Icons/PythonLauncher.icns
--------------------------------------------------------------------------------
/Mac/Resources/iconsrc/IDE.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/Resources/iconsrc/IDE.psd
--------------------------------------------------------------------------------
/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/Tests/2021-05-07-15-46-04.bpo-31904.8dk3la.rst:
--------------------------------------------------------------------------------
1 | Ignore error string case in test_file_not_exists().
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/minusnode.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/idlelib/Icons/minusnode.gif
--------------------------------------------------------------------------------
/Lib/idlelib/Icons/openfolder.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/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-pcm16.au:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-pcm16.au
--------------------------------------------------------------------------------
/Lib/test/audiodata/pluck-pcm24.au:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-pcm24.au
--------------------------------------------------------------------------------
/Lib/test/audiodata/pluck-pcm32.au:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-pcm32.au
--------------------------------------------------------------------------------
/Lib/test/audiodata/pluck-pcm8.au:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-pcm8.au
--------------------------------------------------------------------------------
/Lib/test/audiodata/pluck-pcm8.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-pcm8.wav
--------------------------------------------------------------------------------
/Lib/test/audiodata/pluck-ulaw.au:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-ulaw.au
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/cp949.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/cjkencodings/cp949.txt
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/euc_jp.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/cjkencodings/euc_jp.txt
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/euc_kr.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/cjkencodings/euc_kr.txt
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/gb18030.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/cjkencodings/gb18030.txt
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/gb2312.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/cjkencodings/gb2312.txt
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/johab.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/cjkencodings/johab.txt
--------------------------------------------------------------------------------
/Lib/test/imghdrdata/python.tiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/imghdrdata/python.tiff
--------------------------------------------------------------------------------
/Lib/test/imghdrdata/python.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/imghdrdata/python.webp
--------------------------------------------------------------------------------
/Lib/test/sndhdrdata/sndhdr.8svx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/sndhdrdata/sndhdr.8svx
--------------------------------------------------------------------------------
/Lib/test/sndhdrdata/sndhdr.aifc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/sndhdrdata/sndhdr.aifc
--------------------------------------------------------------------------------
/Lib/test/sndhdrdata/sndhdr.aiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/sndhdrdata/sndhdr.aiff
--------------------------------------------------------------------------------
/Lib/test/sndhdrdata/sndhdr.hcom:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/sndhdrdata/sndhdr.hcom
--------------------------------------------------------------------------------
/Lib/test/sndhdrdata/sndhdr.sndt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/sndhdrdata/sndhdr.sndt
--------------------------------------------------------------------------------
/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/vcokltfre-archive/cyeethon/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/vcokltfre-archive/cyeethon/HEAD/Lib/test/xmltestdata/test.xml.out
--------------------------------------------------------------------------------
/Lib/test/ziptestdata/exe_with_z64:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/ziptestdata/exe_with_z64
--------------------------------------------------------------------------------
/Lib/test/ziptestdata/exe_with_zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/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/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 |
--------------------------------------------------------------------------------
/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/vcokltfre-archive/cyeethon/HEAD/Tools/peg_generator/data/xxl.zip
--------------------------------------------------------------------------------
/Doc/library/hashlib-blake2-tree.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Doc/library/hashlib-blake2-tree.png
--------------------------------------------------------------------------------
/Doc/library/pathlib-inheritance.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/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-alaw.aifc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-alaw.aifc
--------------------------------------------------------------------------------
/Lib/test/audiodata/pluck-pcm16.aiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-pcm16.aiff
--------------------------------------------------------------------------------
/Lib/test/audiodata/pluck-pcm16.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-pcm16.wav
--------------------------------------------------------------------------------
/Lib/test/audiodata/pluck-pcm24.aiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-pcm24.aiff
--------------------------------------------------------------------------------
/Lib/test/audiodata/pluck-pcm24.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-pcm24.wav
--------------------------------------------------------------------------------
/Lib/test/audiodata/pluck-pcm32.aiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-pcm32.aiff
--------------------------------------------------------------------------------
/Lib/test/audiodata/pluck-pcm32.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-pcm32.wav
--------------------------------------------------------------------------------
/Lib/test/audiodata/pluck-pcm8.aiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-pcm8.aiff
--------------------------------------------------------------------------------
/Lib/test/audiodata/pluck-ulaw.aifc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/audiodata/pluck-ulaw.aifc
--------------------------------------------------------------------------------
/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/vcokltfre-archive/cyeethon/HEAD/Lib/test/cjkencodings/big5hkscs.txt
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/shift_jis.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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/vcokltfre-archive/cyeethon/HEAD/Lib/test/cjkencodings/euc_jisx0213.txt
--------------------------------------------------------------------------------
/Lib/test/test_email/data/audiotest.au:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/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/vcokltfre-archive/cyeethon/HEAD/Mac/Resources/iconsrc/PythonApplet.psd
--------------------------------------------------------------------------------
/Mac/Resources/iconsrc/PythonIcon.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/Resources/iconsrc/PythonIcon.psd
--------------------------------------------------------------------------------
/Mac/Resources/iconsrc/PythonSource.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/Resources/iconsrc/PythonSource.psd
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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/vcokltfre-archive/cyeethon/HEAD/Lib/test/cjkencodings/shift_jisx0213.txt
--------------------------------------------------------------------------------
/Lib/test/test_email/data/PyBanner048.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/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/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/vcokltfre-archive/cyeethon/HEAD/Mac/BuildScript/resources/background.jpg
--------------------------------------------------------------------------------
/Mac/Resources/iconsrc/PackageManager.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/Resources/iconsrc/PackageManager.psd
--------------------------------------------------------------------------------
/Mac/Resources/iconsrc/PythonCompiled.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/Resources/iconsrc/PythonCompiled.psd
--------------------------------------------------------------------------------
/Mac/Resources/iconsrc/PythonWSource.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/Resources/iconsrc/PythonWSource.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 |
--------------------------------------------------------------------------------
/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/encoded_modules/module_koi8_r.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/encoded_modules/module_koi8_r.py
--------------------------------------------------------------------------------
/Lib/test/test_importlib/data01/utf-16.file:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/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/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 |
--------------------------------------------------------------------------------
/Tools/test2to3/test2to3/hello.py:
--------------------------------------------------------------------------------
1 | def hello():
2 | try:
3 | print "Hello, world"
4 | except IOError, e:
5 | print e.errno
6 |
--------------------------------------------------------------------------------
/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/vcokltfre-archive/cyeethon/HEAD/Lib/test/encoded_modules/module_iso_8859_1.py
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/out_inC14N2_c14nTrim.xml:
--------------------------------------------------------------------------------
1 | A BABA BC
--------------------------------------------------------------------------------
/Mac/Resources/app/Resources/PythonApplet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/Resources/app/Resources/PythonApplet.icns
--------------------------------------------------------------------------------
/Tools/test2to3/README:
--------------------------------------------------------------------------------
1 | This project demonstrates how a distutils package
2 | can support Python 2.x and Python 3.x from a single
3 | source, using lib2to3.
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Mac/IDLE/IDLE.app/Contents/Resources/IDLE.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/IDLE/IDLE.app/Contents/Resources/IDLE.icns
--------------------------------------------------------------------------------
/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.1-py3-none-any.whl:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/ensurepip/_bundled/pip-21.1.1-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/zipdata01/ziptestdata.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/test_importlib/zipdata01/ziptestdata.zip
--------------------------------------------------------------------------------
/Lib/test/test_importlib/zipdata02/ziptestdata.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/test_importlib/zipdata02/ziptestdata.zip
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/out_inNsDefault_c14nPrefix.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/Mac/Resources/app/Resources/PythonInterpreter.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/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/IDLE/README.rst:
--------------------------------------------------------------------------------
1 | Put news entry `blurb`_ files for the *IDLE* section in this directory.
2 |
3 | .. _blurb: https://pypi.org/project/blurb/
4 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/next/Tests/README.rst:
--------------------------------------------------------------------------------
1 | Put news entry `blurb`_ files for the *Tests* section in this directory.
2 |
3 | .. _blurb: https://pypi.org/project/blurb/
4 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/next/macOS/README.rst:
--------------------------------------------------------------------------------
1 | Put news entry `blurb`_ files for the *macOS* section in this directory.
2 |
3 | .. _blurb: https://pypi.org/project/blurb/
4 |
--------------------------------------------------------------------------------
/Lib/test/test_importlib/data/example-21.12-py3.6.egg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/test_importlib/data/example-21.12-py3.6.egg
--------------------------------------------------------------------------------
/Lib/test/test_importlib/namespacedata01/utf-16.file:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/test_importlib/namespacedata01/utf-16.file
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/out_inC14N1_c14nDefault.xml:
--------------------------------------------------------------------------------
1 |
3 | Hello, world!
4 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/next/Library/README.rst:
--------------------------------------------------------------------------------
1 | Put news entry `blurb`_ files for the *Library* section in this directory.
2 |
3 | .. _blurb: https://pypi.org/project/blurb/
4 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/next/Security/README.rst:
--------------------------------------------------------------------------------
1 | Put news entry `blurb`_ files for the *Security* section in this directory.
2 |
3 | .. _blurb: https://pypi.org/project/blurb/
4 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/next/Windows/README.rst:
--------------------------------------------------------------------------------
1 | Put news entry `blurb`_ files for the *Windows* section in this directory.
2 |
3 | .. _blurb: https://pypi.org/project/blurb/
4 |
--------------------------------------------------------------------------------
/PC/empty.c:
--------------------------------------------------------------------------------
1 | #include
2 | int __stdcall
3 | WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
4 | {
5 | return 0;
6 | }
--------------------------------------------------------------------------------
/Lib/asyncio/log.py:
--------------------------------------------------------------------------------
1 | """Logging configuration."""
2 |
3 | import logging
4 |
5 |
6 | # Name the logger after the package.
7 | logger = logging.getLogger(__package__)
8 |
--------------------------------------------------------------------------------
/Mac/IDLE/IDLE.app/Contents/Resources/PythonSource.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/IDLE/IDLE.app/Contents/Resources/PythonSource.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/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 |
--------------------------------------------------------------------------------
/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/vcokltfre-archive/cyeethon/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/namespace_pkgs/nested_portion1.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/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/IDLE/IDLE.app/Contents/Resources/PythonCompiled.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/IDLE/IDLE.app/Contents/Resources/PythonCompiled.icns
--------------------------------------------------------------------------------
/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/vcokltfre-archive/cyeethon/HEAD/Mac/PythonLauncher/English.lproj/MainMenu.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/Documentation/README.rst:
--------------------------------------------------------------------------------
1 | Put news entry `blurb`_ files for the *Documentation* section in this directory.
2 |
3 | .. _blurb: https://pypi.org/project/blurb/
4 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/next/Tools-Demos/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 |
--------------------------------------------------------------------------------
/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/data/example-21.12-py3-none-any.whl:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/test_importlib/data/example-21.12-py3-none-any.whl
--------------------------------------------------------------------------------
/Lib/test/test_importlib/namespace_pkgs/missing_directory.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/test_importlib/namespace_pkgs/missing_directory.zip
--------------------------------------------------------------------------------
/Mac/PythonLauncher/English.lproj/MyDocument.nib/objects.nib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Mac/PythonLauncher/English.lproj/MyDocument.nib/objects.nib
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Lib/test/test_importlib/namespace_pkgs/top_level_portion1.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Lib/test/test_importlib/namespace_pkgs/top_level_portion1.zip
--------------------------------------------------------------------------------
/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/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/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/vcokltfre-archive/cyeethon/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/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 |
--------------------------------------------------------------------------------
/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_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/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/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/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 |
--------------------------------------------------------------------------------
/Modules/_xxtestfuzz/fuzz_struct_unpack_corpus/varied_format_string:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vcokltfre-archive/cyeethon/HEAD/Modules/_xxtestfuzz/fuzz_struct_unpack_corpus/varied_format_string
--------------------------------------------------------------------------------
/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/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/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 |
--------------------------------------------------------------------------------
/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/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 |
--------------------------------------------------------------------------------
/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/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Doc/includes/sqlite3/shared_cache.py:
--------------------------------------------------------------------------------
1 | import sqlite3
2 |
3 | # The shared cache is only available in SQLite versions 3.3.3 or later
4 | # See the SQLite documentation for details.
5 |
6 | sqlite3.enable_shared_cache(True)
7 |
--------------------------------------------------------------------------------
/Lib/test/future_test2.py:
--------------------------------------------------------------------------------
1 | """This is a test"""
2 |
3 | from __future__ import nested_scopes; import site
4 |
5 | def f(x):
6 | def g(y):
7 | return x + y
8 | return g
9 |
10 | result = f(2)(4)
11 |
--------------------------------------------------------------------------------
/Lib/xml/parsers/__init__.py:
--------------------------------------------------------------------------------
1 | """Python interfaces to XML parsers.
2 |
3 | This package contains one module:
4 |
5 | expat -- Python wrapper for James Clark's Expat parser, with namespace
6 | support.
7 |
8 | """
9 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/3.5.0.rst:
--------------------------------------------------------------------------------
1 | .. bpo: 25071
2 | .. date: 9305
3 | .. nonce: EwjXl1
4 | .. release date: 2015-09-13
5 | .. section: Build
6 |
7 | Windows installer should not require TargetDir parameter when installing
8 | quietly.
9 |
--------------------------------------------------------------------------------
/Modules/_xxtestfuzz/fuzz_json_loads_corpus/pass3.json:
--------------------------------------------------------------------------------
1 | {
2 | "JSON Test Pattern pass3": {
3 | "The outermost value": "must be an object or array.",
4 | "In this test": "It is an object."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/Python/asdl.c:
--------------------------------------------------------------------------------
1 | #include "Python.h"
2 | #include "pycore_asdl.h"
3 |
4 | GENERATE_ASDL_SEQ_CONSTRUCTOR(generic, void*);
5 | GENERATE_ASDL_SEQ_CONSTRUCTOR(identifier, PyObject*);
6 | GENERATE_ASDL_SEQ_CONSTRUCTOR(int, int);
7 |
--------------------------------------------------------------------------------
/Doc/includes/turtle-star.py:
--------------------------------------------------------------------------------
1 | from turtle import *
2 | color('red', 'yellow')
3 | begin_fill()
4 | while True:
5 | forward(200)
6 | left(170)
7 | if abs(pos()) < 1:
8 | break
9 | end_fill()
10 | done()
11 |
--------------------------------------------------------------------------------
/Lib/ctypes/macholib/__init__.py:
--------------------------------------------------------------------------------
1 | """
2 | Enough Mach-O to make your head spin.
3 |
4 | See the relevant header files in /usr/include/mach-o
5 |
6 | And also Apple's documentation.
7 | """
8 |
9 | __version__ = '1.0'
10 |
--------------------------------------------------------------------------------
/Lib/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/.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/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Tools/peg_generator/pyproject.toml:
--------------------------------------------------------------------------------
1 | [tool.black]
2 | line-length = 99
3 | target_version = ['py38']
4 | exclude = '''
5 | (
6 | /pegen/grammar_parser.py # generated file
7 | | /test/test_data/ # test files
8 | )
9 | '''
10 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/inC14N2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | A B
4 |
5 | A
6 |
7 | B
8 | A B
9 | C
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/out_inNsSort_c14nPrefix.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Tools/unicode/genwincodecs.bat:
--------------------------------------------------------------------------------
1 | @rem Recreate some python charmap codecs from the Windows function
2 | @rem MultiByteToWideChar.
3 |
4 | @cd /d %~dp0
5 | @mkdir build
6 | @rem Arabic DOS code page
7 | c:\python30\python genwincodec.py 720 > build/cp720.py
8 |
--------------------------------------------------------------------------------
/Lib/test/test_ctypes.py:
--------------------------------------------------------------------------------
1 | import unittest
2 | from test.support.import_helper import import_module
3 |
4 |
5 | ctypes_test = import_module('ctypes.test')
6 |
7 | load_tests = ctypes_test.load_tests
8 |
9 | if __name__ == "__main__":
10 | unittest.main()
11 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/out_inNsPushdown_c14nDefault.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Tools/peg_generator/data/cprog.py:
--------------------------------------------------------------------------------
1 | if 1:
2 | print("Hello " + "world")
3 | if 0:
4 | print("then")
5 | print("clause")
6 | elif 1:
7 | pass
8 | elif 1:
9 | pass
10 | else:
11 | print("else-clause")
12 |
--------------------------------------------------------------------------------
/Lib/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Tools/msi/lib/lib_en-US.wxl:
--------------------------------------------------------------------------------
1 |
2 |
3 | Standard Library
4 | lib
5 |
6 |
--------------------------------------------------------------------------------
/Doc/distutils/_setuptools_disclaimer.rst:
--------------------------------------------------------------------------------
1 | .. note::
2 |
3 | This document is being retained solely until the ``setuptools`` documentation
4 | at https://setuptools.readthedocs.io/en/latest/setuptools.html
5 | independently covers all of the relevant information currently included here.
6 |
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/iso2022_kr-utf8.txt:
--------------------------------------------------------------------------------
1 | ◎ 파이썬(Python)은 배우기 쉽고, 강력한 프로그래밍 언어입니다. 파이썬은
2 | 효율적인 고수준 데이터 구조와 간단하지만 효율적인 객체지향프로그래밍을
3 | 지원합니다. 파이썬의 우아(優雅)한 문법과 동적 타이핑, 그리고 인터프리팅
4 | 환경은 파이썬을 스크립팅과 여러 분야에서와 대부분의 플랫폼에서의 빠른
5 | 애플리케이션 개발을 할 수 있는 이상적인 언어로 만들어줍니다.
6 |
7 | ☆첫가끝: 날아라 쓩~ 큼! 금없이 전니다. 그런거 다.
8 |
--------------------------------------------------------------------------------
/Lib/test/test_future4.py:
--------------------------------------------------------------------------------
1 | from __future__ import unicode_literals
2 | import unittest
3 |
4 |
5 | class Tests(unittest.TestCase):
6 | def test_unicode_literals(self):
7 | self.assertIsInstance("literal", str)
8 |
9 |
10 | if __name__ == "__main__":
11 | unittest.main()
12 |
--------------------------------------------------------------------------------
/Modules/_ctypes/libffi_osx/README.pyobjc:
--------------------------------------------------------------------------------
1 | This directory contains a slightly modified version of libffi, extracted from
2 | the GCC source-tree.
3 |
4 | The only modifications are those that are necessary to compile libffi using
5 | the Apple provided compiler and outside of the GCC source tree.
6 |
--------------------------------------------------------------------------------
/Tools/msi/core/core_en-US.wxl:
--------------------------------------------------------------------------------
1 |
2 |
3 | Core Interpreter
4 | core
5 |
6 |
--------------------------------------------------------------------------------
/Tools/msi/dev/dev_en-US.wxl:
--------------------------------------------------------------------------------
1 |
2 |
3 | Development Libraries
4 | dev
5 |
6 |
--------------------------------------------------------------------------------
/Tools/msi/tools/tools_en-US.wxl:
--------------------------------------------------------------------------------
1 |
2 |
3 | Utility Scripts
4 | tools
5 |
6 |
--------------------------------------------------------------------------------
/Tools/msi/ucrt/ucrt_en-US.wxl:
--------------------------------------------------------------------------------
1 |
2 |
3 | C Runtime Library
4 | ucrt
5 |
6 |
--------------------------------------------------------------------------------
/Tools/test2to3/test/test_foo.py:
--------------------------------------------------------------------------------
1 | import sys
2 | import unittest
3 |
4 | class FooTest(unittest.TestCase):
5 | def test_foo(self):
6 | # use 2.6 syntax to demonstrate conversion
7 | print 'In test_foo, using Python %s...' % (sys.version_info,)
8 | self.assertTrue(False)
9 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Tools/test2to3/maintest.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 |
3 | # The above line should get replaced with the path to the Python
4 | # interpreter; the block below should get 2to3-converted.
5 |
6 | try:
7 | from test2to3.hello import hello
8 | except ImportError, e:
9 | print "Import failed", e
10 | hello()
11 |
--------------------------------------------------------------------------------
/Lib/test/doctest_aliases.py:
--------------------------------------------------------------------------------
1 | # Used by test_doctest.py.
2 |
3 | class TwoNames:
4 | '''f() and g() are two names for the same method'''
5 |
6 | def f(self):
7 | '''
8 | >>> print(TwoNames().f())
9 | f
10 | '''
11 | return 'f'
12 |
13 | g = f # define an alias for f
14 |
--------------------------------------------------------------------------------
/Doc/includes/sqlite3/parse_colnames.py:
--------------------------------------------------------------------------------
1 | import sqlite3
2 | import datetime
3 |
4 | con = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_COLNAMES)
5 | cur = con.cursor()
6 | cur.execute('select ? as "x [timestamp]"', (datetime.datetime.now(),))
7 | dt = cur.fetchone()[0]
8 | print(dt, type(dt))
9 |
10 | con.close()
11 |
--------------------------------------------------------------------------------
/Lib/test/imghdrdata/python.xbm:
--------------------------------------------------------------------------------
1 | #define python_width 16
2 | #define python_height 16
3 | static char python_bits[] = {
4 | 0xDF, 0xFE, 0x8F, 0xFD, 0x5F, 0xFB, 0xAB, 0xFE, 0xB5, 0x8D, 0xDA, 0x8F,
5 | 0xA5, 0x86, 0xFA, 0x83, 0x1A, 0x80, 0x0D, 0x80, 0x0D, 0x80, 0x0F, 0xE0,
6 | 0x0F, 0xF8, 0x0F, 0xF8, 0x0F, 0xFC, 0xFF, 0xFF, };
7 |
--------------------------------------------------------------------------------
/Lib/test/subprocessdata/qgrep.py:
--------------------------------------------------------------------------------
1 | """When called with a single argument, simulated fgrep with a single
2 | argument and no options."""
3 |
4 | import sys
5 |
6 | if __name__ == "__main__":
7 | pattern = sys.argv[1]
8 | for line in sys.stdin:
9 | if pattern in line:
10 | sys.stdout.write(line)
11 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/inC14N1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 |
8 | Hello, world!
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Lib/struct.py:
--------------------------------------------------------------------------------
1 | __all__ = [
2 | # Functions
3 | 'calcsize', 'pack', 'pack_into', 'unpack', 'unpack_from',
4 | 'iter_unpack',
5 |
6 | # Classes
7 | 'Struct',
8 |
9 | # Exceptions
10 | 'error'
11 | ]
12 |
13 | from _struct import *
14 | from _struct import _clearcache
15 | from _struct import __doc__
16 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/out_inNsContent_c14nQnameElem.xml:
--------------------------------------------------------------------------------
1 |
2 | xsd:string
3 | /soap-env:body/child::b:foo[@att1 != "c:val" and @att2 != 'xsd:string']
4 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/next/Library/2021-05-01-15-43-37.bpo-44002.KLT_wd.rst:
--------------------------------------------------------------------------------
1 | :mod:`urllib.parse` now uses :func:`functool.lru_cache` for its internal URL
2 | splitting and quoting caches instead of rolling its own like its the '90s.
3 |
4 | The undocumented internal :mod:`urllib.parse` ``Quoted`` class API is now
5 | deprecated, for removal in 3.14.
6 |
--------------------------------------------------------------------------------
/Doc/includes/sqlite3/md5func.py:
--------------------------------------------------------------------------------
1 | import sqlite3
2 | import hashlib
3 |
4 | def md5sum(t):
5 | return hashlib.md5(t).hexdigest()
6 |
7 | con = sqlite3.connect(":memory:")
8 | con.create_function("md5", 1, md5sum)
9 | cur = con.cursor()
10 | cur.execute("select md5(?)", (b"foo",))
11 | print(cur.fetchone()[0])
12 |
13 | con.close()
14 |
--------------------------------------------------------------------------------
/Lib/ctypes/macholib/README.ctypes:
--------------------------------------------------------------------------------
1 | Files in this directory come from Bob Ippolito's py2app.
2 |
3 | License: Any components of the py2app suite may be distributed under
4 | the MIT or PSF open source licenses.
5 |
6 | This is version 1.0, SVN revision 789, from 2006/01/25.
7 | The main repository is http://svn.red-bean.com/bob/macholib/trunk/macholib/
--------------------------------------------------------------------------------
/Misc/python.pc.in:
--------------------------------------------------------------------------------
1 | # See: man pkg-config
2 | prefix=@prefix@
3 | exec_prefix=@exec_prefix@
4 | libdir=@libdir@
5 | includedir=@includedir@
6 |
7 | Name: Python
8 | Description: Build a C extension for Python
9 | Requires:
10 | Version: @VERSION@
11 | Libs.private: @LIBS@
12 | Libs:
13 | Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@
14 |
--------------------------------------------------------------------------------
/Doc/library/superseded.rst:
--------------------------------------------------------------------------------
1 | .. _superseded:
2 |
3 | ******************
4 | Superseded Modules
5 | ******************
6 |
7 | The modules described in this chapter are deprecated and only kept for
8 | backwards compatibility. They have been superseded by other modules.
9 |
10 |
11 | .. toctree::
12 |
13 | optparse.rst
14 | imp.rst
15 |
--------------------------------------------------------------------------------
/Include/bltinmodule.h:
--------------------------------------------------------------------------------
1 | #ifndef Py_BLTINMODULE_H
2 | #define Py_BLTINMODULE_H
3 | #ifdef __cplusplus
4 | extern "C" {
5 | #endif
6 |
7 | PyAPI_DATA(PyTypeObject) PyFilter_Type;
8 | PyAPI_DATA(PyTypeObject) PyMap_Type;
9 | PyAPI_DATA(PyTypeObject) PyZip_Type;
10 |
11 | #ifdef __cplusplus
12 | }
13 | #endif
14 | #endif /* !Py_BLTINMODULE_H */
15 |
--------------------------------------------------------------------------------
/Lib/test/test_email/data/msg_37.txt:
--------------------------------------------------------------------------------
1 | Content-Type: multipart/mixed; boundary=ABCDE
2 |
3 | --ABCDE
4 | Content-Type: text/x-one
5 |
6 | Blah
7 |
8 | --ABCDE
9 | --ABCDE
10 | Content-Type: text/x-two
11 |
12 | Blah
13 |
14 | --ABCDE
15 | --ABCDE
16 | --ABCDE
17 | --ABCDE
18 | Content-Type: text/x-two
19 |
20 | Blah
21 |
22 | --ABCDE--
23 |
--------------------------------------------------------------------------------
/Include/enumobject.h:
--------------------------------------------------------------------------------
1 | #ifndef Py_ENUMOBJECT_H
2 | #define Py_ENUMOBJECT_H
3 |
4 | /* Enumerate Object */
5 |
6 | #ifdef __cplusplus
7 | extern "C" {
8 | #endif
9 |
10 | PyAPI_DATA(PyTypeObject) PyEnum_Type;
11 | PyAPI_DATA(PyTypeObject) PyReversed_Type;
12 |
13 | #ifdef __cplusplus
14 | }
15 | #endif
16 |
17 | #endif /* !Py_ENUMOBJECT_H */
18 |
--------------------------------------------------------------------------------
/Lib/test/test_asyncio/echo3.py:
--------------------------------------------------------------------------------
1 | import os
2 |
3 | if __name__ == '__main__':
4 | while True:
5 | buf = os.read(0, 1024)
6 | if not buf:
7 | break
8 | try:
9 | os.write(1, b'OUT:'+buf)
10 | except OSError as ex:
11 | os.write(2, b'ERR:' + ex.__class__.__name__.encode('ascii'))
12 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/c14nQnameElem.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Tools/pynche/html40colors.txt:
--------------------------------------------------------------------------------
1 | # HTML 4.0 color names
2 | Black #000000
3 | Silver #c0c0c0
4 | Gray #808080
5 | White #ffffff
6 | Maroon #800000
7 | Red #ff0000
8 | Purple #800080
9 | Fuchsia #ff00ff
10 | Green #008000
11 | Lime #00ff00
12 | Olive #808000
13 | Yellow #ffff00
14 | Navy #000080
15 | Blue #0000ff
16 | Teal #008080
17 | Aqua #00ffff
18 |
--------------------------------------------------------------------------------
/Lib/test/test_asyncio/__init__.py:
--------------------------------------------------------------------------------
1 | import os
2 | from test.support import load_package_tests
3 | from test.support import import_helper
4 |
5 |
6 | # Skip tests if we don't have concurrent.futures.
7 | import_helper.import_module('concurrent.futures')
8 |
9 | def load_tests(*args):
10 | return load_package_tests(os.path.dirname(__file__), *args)
11 |
--------------------------------------------------------------------------------
/Doc/library/windows.rst:
--------------------------------------------------------------------------------
1 | .. _mswin-specific-services:
2 |
3 | ****************************
4 | MS Windows Specific Services
5 | ****************************
6 |
7 | This chapter describes modules that are only available on MS Windows platforms.
8 |
9 |
10 | .. toctree::
11 |
12 | msilib.rst
13 | msvcrt.rst
14 | winreg.rst
15 | winsound.rst
16 |
--------------------------------------------------------------------------------
/Programs/python.c:
--------------------------------------------------------------------------------
1 | /* Minimal main program -- everything is loaded from the library */
2 |
3 | #include "Python.h"
4 |
5 | #ifdef MS_WINDOWS
6 | int
7 | wmain(int argc, wchar_t **argv)
8 | {
9 | return Py_Main(argc, argv);
10 | }
11 | #else
12 | int
13 | main(int argc, char **argv)
14 | {
15 | return Py_BytesMain(argc, argv);
16 | }
17 | #endif
18 |
--------------------------------------------------------------------------------
/Tools/importbench/README:
--------------------------------------------------------------------------------
1 | Importbench is a set of micro-benchmarks for various import scenarios.
2 |
3 | It should not be used as an overall benchmark of import performance, but rather
4 | an easy way to measure impact of possible code changes. For a real-world
5 | benchmark of import, use the normal_startup benchmark from
6 | https://github.com/python/performance
7 |
--------------------------------------------------------------------------------
/Lib/test/test_multiprocessing_spawn.py:
--------------------------------------------------------------------------------
1 | import unittest
2 | import test._test_multiprocessing
3 |
4 | from test import support
5 |
6 | if support.PGO:
7 | raise unittest.SkipTest("test is not helpful for PGO")
8 |
9 | test._test_multiprocessing.install_tests_in_module_dict(globals(), 'spawn')
10 |
11 | if __name__ == '__main__':
12 | unittest.main()
13 |
--------------------------------------------------------------------------------
/Doc/faq/index.rst:
--------------------------------------------------------------------------------
1 | .. _faq-index:
2 |
3 | ###################################
4 | Python Frequently Asked Questions
5 | ###################################
6 |
7 | .. toctree::
8 | :maxdepth: 1
9 |
10 | general.rst
11 | programming.rst
12 | design.rst
13 | library.rst
14 | extending.rst
15 | windows.rst
16 | gui.rst
17 | installed.rst
18 |
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/big5-utf8.txt:
--------------------------------------------------------------------------------
1 | 如何在 Python 中使用既有的 C library?
2 | 在資訊科技快速發展的今天, 開發及測試軟體的速度是不容忽視的
3 | 課題. 為加快開發及測試的速度, 我們便常希望能利用一些已開發好的
4 | library, 並有一個 fast prototyping 的 programming language 可
5 | 供使用. 目前有許許多多的 library 是以 C 寫成, 而 Python 是一個
6 | fast prototyping 的 programming language. 故我們希望能將既有的
7 | C library 拿到 Python 的環境中測試及整合. 其中最主要也是我們所
8 | 要討論的問題就是:
9 |
10 |
--------------------------------------------------------------------------------
/Lib/test/sample_doctest_no_doctests.py:
--------------------------------------------------------------------------------
1 | """This is a sample module used for testing doctest.
2 |
3 | This module is for testing how doctest handles a module with docstrings
4 | but no doctest examples.
5 |
6 | """
7 |
8 |
9 | class Foo(object):
10 | """A docstring with no doctest examples.
11 |
12 | """
13 |
14 | def __init__(self):
15 | pass
16 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/out_inC14N3_c14nTrim.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/next/Core and Builtins/2021-04-30-15-48-36.bpo-40222.j3VxeX.rst:
--------------------------------------------------------------------------------
1 | "Zero cost" exception handling.
2 |
3 | * Uses a lookup table to determine how to handle exceptions.
4 | * Removes SETUP_FINALLY and POP_TOP block instructions, eliminating the runtime overhead of try statements.
5 | * Reduces the size of the frame object by about 60%.
6 |
7 | Patch by Mark Shannon
8 |
--------------------------------------------------------------------------------
/Tools/msi/pip/pip_en-US.wxl:
--------------------------------------------------------------------------------
1 |
2 |
3 | pip Bootstrap
4 | pip
5 | No !(loc.ProductName) installation was detected.
6 |
7 |
--------------------------------------------------------------------------------
/Tools/scripts/reindent-rst.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 |
3 | # Make a reST file compliant to our pre-commit hook.
4 | # Currently just remove trailing whitespace.
5 |
6 | import sys
7 |
8 | import patchcheck
9 |
10 | def main(argv=sys.argv):
11 | patchcheck.normalize_docs_whitespace(argv[1:])
12 |
13 | if __name__ == '__main__':
14 | sys.exit(main())
15 |
--------------------------------------------------------------------------------
/Lib/test/test_json/test_default.py:
--------------------------------------------------------------------------------
1 | from test.test_json import PyTest, CTest
2 |
3 |
4 | class TestDefault:
5 | def test_default(self):
6 | self.assertEqual(
7 | self.dumps(type, default=repr),
8 | self.dumps(repr(type)))
9 |
10 |
11 | class TestPyDefault(TestDefault, PyTest): pass
12 | class TestCDefault(TestDefault, CTest): pass
13 |
--------------------------------------------------------------------------------
/Lib/test/test_lib2to3.py:
--------------------------------------------------------------------------------
1 | import unittest
2 | from test.support.import_helper import import_fresh_module
3 | from test.support.warnings_helper import check_warnings
4 |
5 | with check_warnings(("", PendingDeprecationWarning)):
6 | load_tests = import_fresh_module('lib2to3.tests', fresh=['lib2to3']).load_tests
7 |
8 | if __name__ == '__main__':
9 | unittest.main()
10 |
--------------------------------------------------------------------------------
/Lib/unittest/test/testmock/support.py:
--------------------------------------------------------------------------------
1 | target = {'foo': 'FOO'}
2 |
3 |
4 | def is_instance(obj, klass):
5 | """Version of is_instance that doesn't access __class__"""
6 | return issubclass(type(obj), klass)
7 |
8 |
9 | class SomeClass(object):
10 | class_attribute = None
11 |
12 | def wibble(self): pass
13 |
14 |
15 | class X(object):
16 | pass
17 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/next/Library/2021-05-12-16-43-21.bpo-38908.nM2_rO.rst:
--------------------------------------------------------------------------------
1 | Fix issue where :mod:`typing` protocols without the ``@runtime_checkable``
2 | decorator did not raise a ``TypeError`` when used with ``issubclass`` and
3 | ``isinstance``. Now, subclassses of ``typing.Protocol`` will raise a
4 | ``TypeError`` when used with with those checks.
5 | Patch provided by Yurii Karabas.
6 |
--------------------------------------------------------------------------------
/Tools/msi/path/path_en-US.wxl:
--------------------------------------------------------------------------------
1 |
2 |
3 | Add to Path
4 | Path
5 | No !(loc.ProductName) installation was detected.
6 |
7 |
--------------------------------------------------------------------------------
/Lib/decimal.py:
--------------------------------------------------------------------------------
1 |
2 | try:
3 | from _decimal import *
4 | from _decimal import __doc__
5 | from _decimal import __version__
6 | from _decimal import __libmpdec_version__
7 | except ImportError:
8 | from _pydecimal import *
9 | from _pydecimal import __doc__
10 | from _pydecimal import __version__
11 | from _pydecimal import __libmpdec_version__
12 |
--------------------------------------------------------------------------------
/Lib/distutils/tests/test_versionpredicate.py:
--------------------------------------------------------------------------------
1 | """Tests harness for distutils.versionpredicate.
2 |
3 | """
4 |
5 | import distutils.versionpredicate
6 | import doctest
7 | from test.support import run_unittest
8 |
9 | def test_suite():
10 | return doctest.DocTestSuite(distutils.versionpredicate)
11 |
12 | if __name__ == '__main__':
13 | run_unittest(test_suite())
14 |
--------------------------------------------------------------------------------
/Lib/test/leakers/test_selftype.py:
--------------------------------------------------------------------------------
1 | # Reference cycles involving only the ob_type field are rather uncommon
2 | # but possible. Inspired by SF bug 1469629.
3 |
4 | import gc
5 |
6 | def leak():
7 | class T(type):
8 | pass
9 | class U(type, metaclass=T):
10 | pass
11 | U.__class__ = U
12 | del U
13 | gc.collect(); gc.collect(); gc.collect()
14 |
--------------------------------------------------------------------------------
/Lib/test/test_unittest.py:
--------------------------------------------------------------------------------
1 | import unittest.test
2 |
3 | from test import support
4 |
5 |
6 | def test_main():
7 | # used by regrtest
8 | support.run_unittest(unittest.test.suite())
9 | support.reap_children()
10 |
11 | def load_tests(*_):
12 | # used by unittest
13 | return unittest.test.suite()
14 |
15 | if __name__ == "__main__":
16 | test_main()
17 |
--------------------------------------------------------------------------------
/Doc/includes/setup.py:
--------------------------------------------------------------------------------
1 | from distutils.core import setup, Extension
2 | setup(name="noddy", version="1.0",
3 | ext_modules=[
4 | Extension("noddy", ["noddy.c"]),
5 | Extension("noddy2", ["noddy2.c"]),
6 | Extension("noddy3", ["noddy3.c"]),
7 | Extension("noddy4", ["noddy4.c"]),
8 | Extension("shoddy", ["shoddy.c"]),
9 | ])
10 |
--------------------------------------------------------------------------------
/Include/osmodule.h:
--------------------------------------------------------------------------------
1 |
2 | /* os module interface */
3 |
4 | #ifndef Py_OSMODULE_H
5 | #define Py_OSMODULE_H
6 | #ifdef __cplusplus
7 | extern "C" {
8 | #endif
9 |
10 | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000
11 | PyAPI_FUNC(PyObject *) PyOS_FSPath(PyObject *path);
12 | #endif
13 |
14 | #ifdef __cplusplus
15 | }
16 | #endif
17 | #endif /* !Py_OSMODULE_H */
18 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/c14nQname.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/3.5.0rc4.rst:
--------------------------------------------------------------------------------
1 | .. bpo: 25029
2 | .. date: 9304
3 | .. nonce: Zf97rk
4 | .. release date: 2015-09-09
5 | .. section: Library
6 |
7 | Fixes MemoryError in test_strptime.
8 |
9 | ..
10 |
11 | .. bpo: 25027
12 | .. date: 9303
13 | .. nonce: Zaib78
14 | .. section: Build
15 |
16 | Reverts partial-static build options and adds vcruntime140.dll to Windows
17 | installation.
18 |
--------------------------------------------------------------------------------
/Doc/library/fileformats.rst:
--------------------------------------------------------------------------------
1 | .. _fileformats:
2 |
3 | ************
4 | File Formats
5 | ************
6 |
7 | The modules described in this chapter parse various miscellaneous file formats
8 | that aren't markup languages and are not related to e-mail.
9 |
10 |
11 | .. toctree::
12 |
13 | csv.rst
14 | configparser.rst
15 | netrc.rst
16 | xdrlib.rst
17 | plistlib.rst
18 |
--------------------------------------------------------------------------------
/Lib/lib2to3/fixes/fix_imports2.py:
--------------------------------------------------------------------------------
1 | """Fix incompatible imports and module references that must be fixed after
2 | fix_imports."""
3 | from . import fix_imports
4 |
5 |
6 | MAPPING = {
7 | 'whichdb': 'dbm',
8 | 'anydbm': 'dbm',
9 | }
10 |
11 |
12 | class FixImports2(fix_imports.FixImports):
13 |
14 | run_order = 7
15 |
16 | mapping = MAPPING
17 |
--------------------------------------------------------------------------------
/Mac/PythonLauncher/MyAppDelegate.h:
--------------------------------------------------------------------------------
1 | /* MyAppDelegate */
2 |
3 | #import
4 |
5 | @interface MyAppDelegate : NSObject
6 | {
7 | BOOL initial_action_done;
8 | BOOL should_terminate;
9 | }
10 | - (id)init;
11 | - (IBAction)showPreferences:(id)sender;
12 | - (BOOL)shouldShowUI;
13 | - (BOOL)shouldTerminate;
14 | - (void)testFileTypeBinding;
15 | @end
16 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/3.6.5.rst:
--------------------------------------------------------------------------------
1 | .. bpo: 32872
2 | .. date: 2018-03-28-01-35-02
3 | .. nonce: J5NDUj
4 | .. release date: 2018-03-28
5 | .. section: Tests
6 |
7 | Avoid regrtest compatibility issue with namespace packages.
8 |
9 | ..
10 |
11 | .. bpo: 33163
12 | .. date: 2018-03-28-04-15-03
13 | .. nonce: hfpWuU
14 | .. section: Build
15 |
16 | Upgrade pip to 9.0.3 and setuptools to v39.0.1.
17 |
--------------------------------------------------------------------------------
/Misc/python-embed.pc.in:
--------------------------------------------------------------------------------
1 | # See: man pkg-config
2 | prefix=@prefix@
3 | exec_prefix=@exec_prefix@
4 | libdir=@libdir@
5 | includedir=@includedir@
6 |
7 | Name: Python
8 | Description: Embed Python into an application
9 | Requires:
10 | Version: @VERSION@
11 | Libs.private: @LIBS@
12 | Libs: -L${libdir} -lpython@VERSION@@ABIFLAGS@
13 | Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@
14 |
--------------------------------------------------------------------------------
/Python/getversion.c:
--------------------------------------------------------------------------------
1 |
2 | /* Return the full version string. */
3 |
4 | #include "Python.h"
5 |
6 | #include "patchlevel.h"
7 |
8 | const char *
9 | Py_GetVersion(void)
10 | {
11 | static char version[250];
12 | PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s",
13 | PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler());
14 | return version;
15 | }
16 |
--------------------------------------------------------------------------------
/Doc/c-api/objimpl.rst:
--------------------------------------------------------------------------------
1 | .. highlight:: c
2 |
3 | .. _newtypes:
4 |
5 | *****************************
6 | Object Implementation Support
7 | *****************************
8 |
9 | This chapter describes the functions, types, and macros used when defining new
10 | object types.
11 |
12 | .. toctree::
13 |
14 | allocation.rst
15 | structures.rst
16 | typeobj.rst
17 | gcsupport.rst
18 |
--------------------------------------------------------------------------------
/Lib/test/dtracedata/line.py:
--------------------------------------------------------------------------------
1 | def test_line():
2 | a = 1
3 | print('# Preamble', a)
4 | for i in range(2):
5 | a = i
6 | b = i+2
7 | c = i+3
8 | if c < 4:
9 | a = c
10 | d = a + b +c
11 | print('#', a, b, c, d)
12 | a = 1
13 | print('# Epilogue', a)
14 |
15 |
16 | if __name__ == '__main__':
17 | test_line()
18 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/next/Library/2021-03-30-08-39-08.bpo-43666.m72tlH.rst:
--------------------------------------------------------------------------------
1 | AIX: `Lib/_aix_support.get_platform()` may fail in an AIX WPAR.
2 | The fileset bos.rte appears to have a builddate in both LPAR and WPAR
3 | so this fileset is queried rather than bos.mp64.
4 | To prevent a similiar situation (no builddate in ODM) a value (9988)
5 | sufficient for completing a build is provided.
6 | Patch by M Felt.
7 |
--------------------------------------------------------------------------------
/Lib/test/dtracedata/gc.d:
--------------------------------------------------------------------------------
1 | python$target:::function-entry
2 | /copyinstr(arg1) == "start"/
3 | {
4 | self->trace = 1;
5 | }
6 |
7 | python$target:::gc-start,
8 | python$target:::gc-done
9 | /self->trace/
10 | {
11 | printf("%d\t%s:%ld\n", timestamp, probename, arg0);
12 | }
13 |
14 | python$target:::function-return
15 | /copyinstr(arg1) == "start"/
16 | {
17 | self->trace = 0;
18 | }
19 |
--------------------------------------------------------------------------------
/Lib/test/test_doctest.txt:
--------------------------------------------------------------------------------
1 | This is a sample doctest in a text file.
2 |
3 | In this example, we'll rely on a global variable being set for us
4 | already:
5 |
6 | >>> favorite_color
7 | 'blue'
8 |
9 | We can make this fail by disabling the blank-line feature.
10 |
11 | >>> if 1:
12 | ... print('a')
13 | ... print()
14 | ... print('b')
15 | a
16 |
17 | b
18 |
--------------------------------------------------------------------------------
/Lib/test/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt:
--------------------------------------------------------------------------------
1 | # IMPORTANT: this file has the utf-8 BOM signature '\xef\xbb\xbf'
2 | # at the start of it. Make sure this is preserved if any changes
3 | # are made!
4 |
5 | # Arbitrary encoded utf-8 text (stolen from test_doctest2.py).
6 | x = 'ЉЊЈЁЂ'
7 | def y():
8 | """
9 | And again in a comment. ЉЊЈЁЂ
10 | """
11 | pass
12 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/out_inNsContent_c14nPrefixQnameXpathElem.xml:
--------------------------------------------------------------------------------
1 |
2 | n1:string
3 | /n3:body/child::n2:foo[@att1 != "c:val" and @att2 != 'xsd:string']
4 |
--------------------------------------------------------------------------------
/Lib/turtledemo/__init__.py:
--------------------------------------------------------------------------------
1 | """
2 | --------------------------------------
3 | About this viewer
4 | --------------------------------------
5 |
6 | Tiny demo viewer to view turtle graphics example scripts.
7 |
8 | Quickly and dirtyly assembled by Gregor Lingl.
9 | June, 2006
10 |
11 | For more information see: turtledemo - Help
12 |
13 | Have fun!
14 | """
15 |
--------------------------------------------------------------------------------
/Mac/PythonLauncher/English.lproj/MainMenu.nib/classes.nib:
--------------------------------------------------------------------------------
1 | {
2 | IBClasses = (
3 | {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
4 | {
5 | ACTIONS = {showPreferences = id; };
6 | CLASS = MyAppDelegate;
7 | LANGUAGE = ObjC;
8 | SUPERCLASS = NSObject;
9 | }
10 | );
11 | IBVersion = 1;
12 | }
--------------------------------------------------------------------------------
/Misc/NEWS.d/next/Library/2021-05-10-17-45-00.bpo-44098._MoxuZ.rst:
--------------------------------------------------------------------------------
1 | ``typing.ParamSpec`` will no longer be found in the ``__parameters__`` of
2 | most :mod:`typing` generics except in valid use locations specified by
3 | :pep:`612`. This prevents incorrect usage like ``typing.List[P][int]``. This
4 | change means incorrect usage which may have passed silently in 3.10 beta 1
5 | and earlier will now error.
6 |
--------------------------------------------------------------------------------
/Modules/_ctypes/darwin/README.ctypes:
--------------------------------------------------------------------------------
1 | The files in this directory are taken from
2 | http://www.opendarwin.org/cgi-bin/cvsweb.cgi/~checkout~/proj/dlcompat/
3 |
4 | The LICENSE in this directory applies to these files.
5 |
6 | Thomas Heller, Jan 2003
7 |
8 | These files have been modified so they fall back to the system
9 | dlfcn calls if available in libSystem.
10 |
11 | Bob Ippolito, Feb 2006
12 |
--------------------------------------------------------------------------------
/Doc/includes/sqlite3/row_factory.py:
--------------------------------------------------------------------------------
1 | import sqlite3
2 |
3 | def dict_factory(cursor, row):
4 | d = {}
5 | for idx, col in enumerate(cursor.description):
6 | d[col[0]] = row[idx]
7 | return d
8 |
9 | con = sqlite3.connect(":memory:")
10 | con.row_factory = dict_factory
11 | cur = con.cursor()
12 | cur.execute("select 1 as a")
13 | print(cur.fetchone()["a"])
14 |
15 | con.close()
16 |
--------------------------------------------------------------------------------
/Doc/includes/sqlite3/rowclass.py:
--------------------------------------------------------------------------------
1 | import sqlite3
2 |
3 | con = sqlite3.connect(":memory:")
4 | con.row_factory = sqlite3.Row
5 |
6 | cur = con.cursor()
7 | cur.execute("select 'John' as name, 42 as age")
8 | for row in cur:
9 | assert row[0] == row["name"]
10 | assert row["name"] == row["nAmE"]
11 | assert row[1] == row["age"]
12 | assert row[1] == row["AgE"]
13 |
14 | con.close()
15 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/inC14N5.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 | ]>
8 |
9 | &ent1;, &ent2;!
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/expat224_utf8_bug.xml:
--------------------------------------------------------------------------------
1 |
3 |
--------------------------------------------------------------------------------
/Include/README.rst:
--------------------------------------------------------------------------------
1 | The Python C API
2 | ================
3 |
4 | The C API is divided into three sections:
5 |
6 | 1. ``Include/``: Limited API
7 | 2. ``Include/cpython/``: CPython implementation details
8 | 3. ``Include/internal/``: The internal API
9 |
10 | Information on changing the C API is available `in the developer guide`_
11 |
12 | .. _in the developer guide: https://devguide.python.org/c-api/
13 |
--------------------------------------------------------------------------------
/Lib/test/crashers/underlying_dict.py:
--------------------------------------------------------------------------------
1 | import gc
2 |
3 | thingy = object()
4 | class A(object):
5 | def f(self):
6 | return 1
7 | x = thingy
8 |
9 | r = gc.get_referrers(thingy)
10 | if "__module__" in r[0]:
11 | dct = r[0]
12 | else:
13 | dct = r[1]
14 |
15 | a = A()
16 | for i in range(10):
17 | a.f()
18 | dct["f"] = lambda self: 2
19 |
20 | print(a.f()) # should print 1
21 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/out_inNsContent_c14nQnameXpathElem.xml:
--------------------------------------------------------------------------------
1 |
2 | xsd:string
3 | /soap-env:body/child::b:foo[@att1 != "c:val" and @att2 != 'xsd:string']
4 |
--------------------------------------------------------------------------------
/Lib/lib2to3/fixes/fix_basestring.py:
--------------------------------------------------------------------------------
1 | """Fixer for basestring -> str."""
2 | # Author: Christian Heimes
3 |
4 | # Local imports
5 | from .. import fixer_base
6 | from ..fixer_util import Name
7 |
8 | class FixBasestring(fixer_base.BaseFix):
9 | BM_compatible = True
10 |
11 | PATTERN = "'basestring'"
12 |
13 | def transform(self, node, results):
14 | return Name("str", prefix=node.prefix)
15 |
--------------------------------------------------------------------------------
/Lib/test/test_email/data/msg_17.txt:
--------------------------------------------------------------------------------
1 | MIME-Version: 1.0
2 | From: Barry
3 | To: Dingus Lovers
4 | Subject: Here is your dingus fish
5 | Date: Fri, 20 Apr 2001 19:35:02 -0400
6 | Content-Type: multipart/mixed; boundary="BOUNDARY"
7 |
8 | Hi there,
9 |
10 | This is the dingus fish.
11 |
12 | [Non-text (image/gif) part of message omitted, filename dingusfish.gif]
13 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/inNsContent.xml:
--------------------------------------------------------------------------------
1 |
2 | xsd:string
3 | /soap-env:body/child::b:foo[@att1 != "c:val" and @att2 != 'xsd:string']
4 |
5 |
--------------------------------------------------------------------------------
/Include/code.h:
--------------------------------------------------------------------------------
1 | /* Definitions for bytecode */
2 |
3 | #ifndef Py_CODE_H
4 | #define Py_CODE_H
5 | #ifdef __cplusplus
6 | extern "C" {
7 | #endif
8 |
9 | typedef struct PyCodeObject PyCodeObject;
10 |
11 | #ifndef Py_LIMITED_API
12 | # define Py_CPYTHON_CODE_H
13 | # include "cpython/code.h"
14 | # undef Py_CPYTHON_CODE_H
15 | #endif
16 |
17 | #ifdef __cplusplus
18 | }
19 | #endif
20 | #endif /* !Py_CODE_H */
21 |
--------------------------------------------------------------------------------
/Include/genericaliasobject.h:
--------------------------------------------------------------------------------
1 | // Implementation of PEP 585: support list[int] etc.
2 | #ifndef Py_GENERICALIASOBJECT_H
3 | #define Py_GENERICALIASOBJECT_H
4 | #ifdef __cplusplus
5 | extern "C" {
6 | #endif
7 |
8 | PyAPI_FUNC(PyObject *) Py_GenericAlias(PyObject *, PyObject *);
9 | PyAPI_DATA(PyTypeObject) Py_GenericAliasType;
10 |
11 | #ifdef __cplusplus
12 | }
13 | #endif
14 | #endif /* !Py_GENERICALIASOBJECT_H */
15 |
--------------------------------------------------------------------------------
/Lib/test/test_email/data/msg_34.txt:
--------------------------------------------------------------------------------
1 | From: aperson@dom.ain
2 | To: bperson@dom.ain
3 | Content-Type: multipart/digest; boundary=XYZ
4 |
5 | --XYZ
6 | Content-Type: text/plain
7 |
8 |
9 | This is a text plain part that is counter to recommended practice in
10 | RFC 2046, $5.1.5, but is not illegal
11 |
12 | --XYZ
13 |
14 | From: cperson@dom.ain
15 | To: dperson@dom.ain
16 |
17 | A submessage
18 |
19 | --XYZ--
20 |
--------------------------------------------------------------------------------
/Lib/test/leakers/test_ctypes.py:
--------------------------------------------------------------------------------
1 |
2 | # Taken from Lib/ctypes/test/test_keeprefs.py, PointerToStructure.test().
3 |
4 | from ctypes import Structure, c_int, POINTER
5 | import gc
6 |
7 | def leak_inner():
8 | class POINT(Structure):
9 | _fields_ = [("x", c_int)]
10 | class RECT(Structure):
11 | _fields_ = [("a", POINTER(POINT))]
12 |
13 | def leak():
14 | leak_inner()
15 | gc.collect()
16 |
--------------------------------------------------------------------------------
/Lib/test/tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | # IMPORTANT: this file has the utf-8 BOM signature '\xef\xbb\xbf'
3 | # at the start of it. Make sure this is preserved if any changes
4 | # are made!
5 |
6 | # Arbitrary encoded utf-8 text (stolen from test_doctest2.py).
7 | x = 'ЉЊЈЁЂ'
8 | def y():
9 | """
10 | And again in a comment. ЉЊЈЁЂ
11 | """
12 | pass
13 |
--------------------------------------------------------------------------------
/Python/pyfpe.c:
--------------------------------------------------------------------------------
1 | /* These variables used to be used when Python was built with --with-fpectl,
2 | * but support for that was dropped in 3.7. We continue to define them,
3 | * though, because they may be referenced by extensions using the stable ABI.
4 | */
5 |
6 | #include "setjmp.h"
7 |
8 | jmp_buf PyFPE_jbuf;
9 | int PyFPE_counter;
10 |
11 | double
12 | PyFPE_dummy(void *dummy)
13 | {
14 | return 1.0;
15 | }
16 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/3.5.1.rst:
--------------------------------------------------------------------------------
1 | .. bpo: 25709
2 | .. date: 9452
3 | .. nonce: OPX2TS
4 | .. release date: 2015-12-06
5 | .. section: Core and Builtins
6 |
7 | Fixed problem with in-place string concatenation and utf-8 cache.
8 |
9 | ..
10 |
11 | .. bpo: 25715
12 | .. date: 9451
13 | .. nonce: 3LLYLj
14 | .. section: Windows
15 |
16 | Python 3.5.1 installer shows wrong upgrade path and incorrect logic for
17 | launcher detection.
18 |
--------------------------------------------------------------------------------
/Doc/includes/sqlite3/adapter_datetime.py:
--------------------------------------------------------------------------------
1 | import sqlite3
2 | import datetime
3 | import time
4 |
5 | def adapt_datetime(ts):
6 | return time.mktime(ts.timetuple())
7 |
8 | sqlite3.register_adapter(datetime.datetime, adapt_datetime)
9 |
10 | con = sqlite3.connect(":memory:")
11 | cur = con.cursor()
12 |
13 | now = datetime.datetime.now()
14 | cur.execute("select ?", (now,))
15 | print(cur.fetchone()[0])
16 |
17 | con.close()
18 |
--------------------------------------------------------------------------------
/Include/interpreteridobject.h:
--------------------------------------------------------------------------------
1 | #ifndef Py_INTERPRETERIDOBJECT_H
2 | #define Py_INTERPRETERIDOBJECT_H
3 |
4 | #ifdef __cplusplus
5 | extern "C" {
6 | #endif
7 |
8 | #ifndef Py_LIMITED_API
9 | # define Py_CPYTHON_INTERPRETERIDOBJECT_H
10 | # include "cpython/interpreteridobject.h"
11 | # undef Py_CPYTHON_INTERPRETERIDOBJECT_H
12 | #endif
13 |
14 | #ifdef __cplusplus
15 | }
16 | #endif
17 | #endif /* !Py_INTERPRETERIDOBJECT_H */
18 |
--------------------------------------------------------------------------------
/Lib/test/test_email/data/msg_42.txt:
--------------------------------------------------------------------------------
1 | Content-Type: multipart/mixed; boundary="AAA"
2 | From: Mail Delivery Subsystem
3 | To: yyy@example.com
4 |
5 | This is a MIME-encapsulated message
6 |
7 | --AAA
8 |
9 | Stuff
10 |
11 | --AAA
12 | Content-Type: message/rfc822
13 |
14 | From: webmaster@python.org
15 | To: zzz@example.com
16 | Content-Type: multipart/mixed; boundary="BBB"
17 |
18 | --BBB--
19 |
20 | --AAA--
21 |
--------------------------------------------------------------------------------
/Lib/test/test_ttk_textonly.py:
--------------------------------------------------------------------------------
1 | from test import support
2 | from test.support import import_helper
3 |
4 |
5 | # Skip this test if _tkinter does not exist.
6 | import_helper.import_module('_tkinter')
7 |
8 | from tkinter.test import runtktests
9 |
10 | def test_main():
11 | support.run_unittest(
12 | *runtktests.get_tests(gui=False, packages=['test_ttk']))
13 |
14 | if __name__ == '__main__':
15 | test_main()
16 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/c14nQnameXpathElem.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Mac/PythonLauncher/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // PythonLauncher
4 | //
5 | // Created by Jack Jansen on Fri Jul 19 2002.
6 | // Copyright (c) 2002 __MyCompanyName__. All rights reserved.
7 | //
8 |
9 | #import
10 | #include
11 |
12 | int main(int argc, const char *argv[])
13 | {
14 | char *home = getenv("HOME");
15 | if (home) chdir(home);
16 | return NSApplicationMain(argc, argv);
17 | }
18 |
--------------------------------------------------------------------------------
/PC/layout/__main__.py:
--------------------------------------------------------------------------------
1 | import sys
2 |
3 | try:
4 | import layout
5 | except ImportError:
6 | # Failed to import our package, which likely means we were started directly
7 | # Add the additional search path needed to locate our module.
8 | from pathlib import Path
9 |
10 | sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
11 |
12 | from layout.main import main
13 |
14 | sys.exit(int(main() or 0))
15 |
--------------------------------------------------------------------------------
/Lib/lib2to3/tests/data/README:
--------------------------------------------------------------------------------
1 | In this directory:
2 | - py2_test_grammar.py -- test file that exercises most/all of Python 2.x's grammar.
3 | - py3_test_grammar.py -- test file that exercises most/all of Python 3.x's grammar.
4 | - infinite_recursion.py -- test file that causes lib2to3's faster recursive pattern matching
5 | scheme to fail, but passes when lib2to3 falls back to iterative pattern matching.
6 | - fixes/ -- for use by test_refactor.py
7 |
--------------------------------------------------------------------------------
/Lib/test/test_import/data/unwritable/__init__.py:
--------------------------------------------------------------------------------
1 | import sys
2 |
3 | class MyMod(object):
4 | __slots__ = ['__builtins__', '__cached__', '__doc__',
5 | '__file__', '__loader__', '__name__',
6 | '__package__', '__path__', '__spec__']
7 | def __init__(self):
8 | for attr in self.__slots__:
9 | setattr(self, attr, globals()[attr])
10 |
11 |
12 | sys.modules[__name__] = MyMod()
13 |
--------------------------------------------------------------------------------
/Doc/requirements.txt:
--------------------------------------------------------------------------------
1 | # Requirements to build the Python documentation
2 |
3 | # Sphinx version is pinned so that new versions that introduce new warnings
4 | # won't suddenly cause build failures. Updating the version is fine as long
5 | # as no warnings are raised by doing so.
6 | sphinx==3.2.1
7 |
8 | blurb
9 |
10 | # The theme used by the documentation is stored separately, so we need
11 | # to install that as well.
12 | python-docs-theme
13 |
--------------------------------------------------------------------------------
/Include/frameobject.h:
--------------------------------------------------------------------------------
1 | /* Frame object interface */
2 |
3 | #ifndef Py_FRAMEOBJECT_H
4 | #define Py_FRAMEOBJECT_H
5 | #ifdef __cplusplus
6 | extern "C" {
7 | #endif
8 |
9 | #include "pyframe.h"
10 |
11 | #ifndef Py_LIMITED_API
12 | # define Py_CPYTHON_FRAMEOBJECT_H
13 | # include "cpython/frameobject.h"
14 | # undef Py_CPYTHON_FRAMEOBJECT_H
15 | #endif
16 |
17 | #ifdef __cplusplus
18 | }
19 | #endif
20 | #endif /* !Py_FRAMEOBJECT_H */
21 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/c14nPrefixQname.xml:
--------------------------------------------------------------------------------
1 |
2 | sequential
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Lib/test/xmltestdata/c14n-20/out_inC14N4_c14nTrim.xml:
--------------------------------------------------------------------------------
1 | First line
2 | Second line2value>"0" && value<"10" ?"valid":"error"valid
--------------------------------------------------------------------------------
/Doc/library/functional.rst:
--------------------------------------------------------------------------------
1 | ******************************
2 | Functional Programming Modules
3 | ******************************
4 |
5 | The modules described in this chapter provide functions and classes that support
6 | a functional programming style, and general operations on callables.
7 |
8 | The following modules are documented in this chapter:
9 |
10 |
11 | .. toctree::
12 |
13 | itertools.rst
14 | functools.rst
15 | operator.rst
16 |
--------------------------------------------------------------------------------
/Include/internal/pycore_import.h:
--------------------------------------------------------------------------------
1 | #ifndef Py_LIMITED_API
2 | #ifndef Py_INTERNAL_IMPORT_H
3 | #define Py_INTERNAL_IMPORT_H
4 | #ifdef __cplusplus
5 | extern "C" {
6 | #endif
7 |
8 | #ifdef HAVE_FORK
9 | extern PyStatus _PyImport_ReInitLock(void);
10 | #endif
11 | extern PyObject* _PyImport_BootstrapImp(PyThreadState *tstate);
12 |
13 | #ifdef __cplusplus
14 | }
15 | #endif
16 | #endif /* !Py_INTERNAL_IMPORT_H */
17 | #endif /* !Py_LIMITED_API */
18 |
--------------------------------------------------------------------------------
/Lib/lib2to3/tests/data/fixers/myfixes/fix_parrot.py:
--------------------------------------------------------------------------------
1 | from lib2to3.fixer_base import BaseFix
2 | from lib2to3.fixer_util import Name
3 |
4 | class FixParrot(BaseFix):
5 | """
6 | Change functions named 'parrot' to 'cheese'.
7 | """
8 |
9 | PATTERN = """funcdef < 'def' name='parrot' any* >"""
10 |
11 | def transform(self, node, results):
12 | name = results["name"]
13 | name.replace(Name("cheese", name.prefix))
14 |
--------------------------------------------------------------------------------
/Lib/test/mp_preload.py:
--------------------------------------------------------------------------------
1 | import multiprocessing
2 |
3 | multiprocessing.Lock()
4 |
5 |
6 | def f():
7 | print("ok")
8 |
9 |
10 | if __name__ == "__main__":
11 | ctx = multiprocessing.get_context("forkserver")
12 | modname = "test.mp_preload"
13 | # Make sure it's importable
14 | __import__(modname)
15 | ctx.set_forkserver_preload([modname])
16 | proc = ctx.Process(target=f)
17 | proc.start()
18 | proc.join()
19 |
--------------------------------------------------------------------------------
/Include/namespaceobject.h:
--------------------------------------------------------------------------------
1 |
2 | /* simple namespace object interface */
3 |
4 | #ifndef NAMESPACEOBJECT_H
5 | #define NAMESPACEOBJECT_H
6 | #ifdef __cplusplus
7 | extern "C" {
8 | #endif
9 |
10 | #ifndef Py_LIMITED_API
11 | PyAPI_DATA(PyTypeObject) _PyNamespace_Type;
12 |
13 | PyAPI_FUNC(PyObject *) _PyNamespace_New(PyObject *kwds);
14 | #endif /* !Py_LIMITED_API */
15 |
16 | #ifdef __cplusplus
17 | }
18 | #endif
19 | #endif /* !NAMESPACEOBJECT_H */
20 |
--------------------------------------------------------------------------------
/Lib/idlelib/__init__.py:
--------------------------------------------------------------------------------
1 | """The idlelib package implements the Idle application.
2 |
3 | Idle includes an interactive shell and editor.
4 | Starting with Python 3.6, IDLE requires tcl/tk 8.5 or later.
5 | Use the files named idle.* to start Idle.
6 |
7 | The other files are private implementations. Their details are subject to
8 | change. See PEP 434 for more. Import them at your own risk.
9 | """
10 | testing = False # Set True by test.test_idle.
11 |
--------------------------------------------------------------------------------
/Lib/test/crashers/recursive_call.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 |
3 | # No bug report AFAIK, mail on python-dev on 2006-01-10
4 |
5 | # This is a "won't fix" case. It is known that setting a high enough
6 | # recursion limit crashes by overflowing the stack. Unless this is
7 | # redesigned somehow, it won't go away.
8 |
9 | import sys
10 |
11 | sys.setrecursionlimit(1 << 30)
12 | f = lambda f:f(f)
13 |
14 | if __name__ == '__main__':
15 | f(f)
16 |
--------------------------------------------------------------------------------
/Lib/test/dtracedata/instance.py:
--------------------------------------------------------------------------------
1 | import gc
2 |
3 | class old_style_class():
4 | pass
5 | class new_style_class(object):
6 | pass
7 |
8 | a = old_style_class()
9 | del a
10 | gc.collect()
11 | b = new_style_class()
12 | del b
13 | gc.collect()
14 |
15 | a = old_style_class()
16 | del old_style_class
17 | gc.collect()
18 | b = new_style_class()
19 | del new_style_class
20 | gc.collect()
21 | del a
22 | gc.collect()
23 | del b
24 | gc.collect()
25 |
--------------------------------------------------------------------------------
/Lib/test/test_email/data/msg_30.txt:
--------------------------------------------------------------------------------
1 | From: aperson@dom.ain
2 | MIME-Version: 1.0
3 | Content-Type: multipart/digest; boundary=BOUNDARY
4 |
5 | --BOUNDARY
6 |
7 | Content-Type: text/plain; charset=us-ascii
8 | To: aa@bb.org
9 | From: cc@dd.org
10 | Subject: ee
11 |
12 | message 1
13 |
14 | --BOUNDARY
15 |
16 | Content-Type: text/plain; charset=us-ascii
17 | To: aa@bb.org
18 | From: cc@dd.org
19 | Subject: ee
20 |
21 | message 2
22 |
23 | --BOUNDARY--
24 |
--------------------------------------------------------------------------------
/Doc/includes/sqlite3/executemany_2.py:
--------------------------------------------------------------------------------
1 | import sqlite3
2 | import string
3 |
4 | def char_generator():
5 | for c in string.ascii_lowercase:
6 | yield (c,)
7 |
8 | con = sqlite3.connect(":memory:")
9 | cur = con.cursor()
10 | cur.execute("create table characters(c)")
11 |
12 | cur.executemany("insert into characters(c) values (?)", char_generator())
13 |
14 | cur.execute("select c from characters")
15 | print(cur.fetchall())
16 |
17 | con.close()
18 |
--------------------------------------------------------------------------------
/Doc/library/netdata.rst:
--------------------------------------------------------------------------------
1 |
2 | .. _netdata:
3 |
4 | **********************
5 | Internet Data Handling
6 | **********************
7 |
8 | This chapter describes modules which support handling data formats commonly used
9 | on the Internet.
10 |
11 |
12 | .. toctree::
13 |
14 | email.rst
15 | json.rst
16 | mailcap.rst
17 | mailbox.rst
18 | mimetypes.rst
19 | base64.rst
20 | binhex.rst
21 | binascii.rst
22 | quopri.rst
23 | uu.rst
24 |
--------------------------------------------------------------------------------
/Lib/test/test_doctest2.txt:
--------------------------------------------------------------------------------
1 | This is a sample doctest in a text file.
2 |
3 | In this example, we'll rely on some silly setup:
4 |
5 | >>> import test.test_doctest
6 | >>> test.test_doctest.sillySetup
7 | True
8 |
9 | This test also has some (random) encoded (utf-8) unicode text:
10 |
11 | ÐÐÐÐÐ
12 |
13 | This doesn't cause a problem in the tect surrounding the examples, but
14 | we include it here (in this test text file) to make sure. :)
15 |
--------------------------------------------------------------------------------
/Tools/msi/test/test_en-US.wxl:
--------------------------------------------------------------------------------
1 |
2 |
3 | Test Suite
4 | test
5 | !(loc.FullProductName) native libtest
6 | !(loc.ProductName) Native Test Modules
7 |
8 |
--------------------------------------------------------------------------------
/.github/workflows/posix-deps-apt.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | apt-get update
3 |
4 | apt-get -yq install \
5 | build-essential \
6 | ccache \
7 | gdb \
8 | lcov \
9 | libbz2-dev \
10 | libffi-dev \
11 | libgdbm-dev \
12 | liblzma-dev \
13 | libncurses5-dev \
14 | libreadline6-dev \
15 | libsqlite3-dev \
16 | libssl-dev \
17 | lzma \
18 | lzma-dev \
19 | tk-dev \
20 | uuid-dev \
21 | xvfb \
22 | zlib1g-dev
23 |
--------------------------------------------------------------------------------
/Doc/includes/sqlite3/adapter_point_2.py:
--------------------------------------------------------------------------------
1 | import sqlite3
2 |
3 | class Point:
4 | def __init__(self, x, y):
5 | self.x, self.y = x, y
6 |
7 | def adapt_point(point):
8 | return "%f;%f" % (point.x, point.y)
9 |
10 | sqlite3.register_adapter(Point, adapt_point)
11 |
12 | con = sqlite3.connect(":memory:")
13 | cur = con.cursor()
14 |
15 | p = Point(4.0, -3.2)
16 | cur.execute("select ?", (p,))
17 | print(cur.fetchone()[0])
18 |
19 | con.close()
20 |
--------------------------------------------------------------------------------
/Doc/includes/sqlite3/execsql_printall_1.py:
--------------------------------------------------------------------------------
1 | import sqlite3
2 |
3 | # Create a connection to the database file "mydb":
4 | con = sqlite3.connect("mydb")
5 |
6 | # Get a Cursor object that operates in the context of Connection con:
7 | cur = con.cursor()
8 |
9 | # Execute the SELECT statement:
10 | cur.execute("select * from people order by age")
11 |
12 | # Retrieve all rows as a sequence and print that sequence:
13 | print(cur.fetchall())
14 |
15 | con.close()
16 |
--------------------------------------------------------------------------------
/Doc/includes/sqlite3/insert_more_people.py:
--------------------------------------------------------------------------------
1 | import sqlite3
2 |
3 | con = sqlite3.connect("mydb")
4 |
5 | cur = con.cursor()
6 |
7 | newPeople = (
8 | ('Lebed' , 53),
9 | ('Zhirinovsky' , 57),
10 | )
11 |
12 | for person in newPeople:
13 | cur.execute("insert into people (name_last, age) values (?, ?)", person)
14 |
15 | # The changes will not be saved unless the transaction is committed explicitly:
16 | con.commit()
17 |
18 | con.close()
19 |
--------------------------------------------------------------------------------
/Include/cpython/interpreteridobject.h:
--------------------------------------------------------------------------------
1 | #ifndef Py_CPYTHON_INTERPRETERIDOBJECT_H
2 | # error "this header file must not be included directly"
3 | #endif
4 |
5 | /* Interpreter ID Object */
6 |
7 | PyAPI_DATA(PyTypeObject) _PyInterpreterID_Type;
8 |
9 | PyAPI_FUNC(PyObject *) _PyInterpreterID_New(int64_t);
10 | PyAPI_FUNC(PyObject *) _PyInterpreterState_GetIDObject(PyInterpreterState *);
11 | PyAPI_FUNC(PyInterpreterState *) _PyInterpreterID_LookUp(PyObject *);
12 |
--------------------------------------------------------------------------------
/Include/internal/pycore_list.h:
--------------------------------------------------------------------------------
1 | #ifndef Py_INTERNAL_LIST_H
2 | #define Py_INTERNAL_LIST_H
3 | #ifdef __cplusplus
4 | extern "C" {
5 | #endif
6 |
7 | #ifndef Py_BUILD_CORE
8 | # error "this header requires Py_BUILD_CORE define"
9 | #endif
10 |
11 | #include "listobject.h" // _PyList_CAST()
12 |
13 |
14 | #define _PyList_ITEMS(op) (_PyList_CAST(op)->ob_item)
15 |
16 |
17 | #ifdef __cplusplus
18 | }
19 | #endif
20 | #endif /* !Py_INTERNAL_LIST_H */
21 |
--------------------------------------------------------------------------------
/Lib/test/test_email/data/msg_03.txt:
--------------------------------------------------------------------------------
1 | Return-Path:
2 | Delivered-To: bbb@zzz.org
3 | Received: by mail.zzz.org (Postfix, from userid 889)
4 | id 27CEAD38CC; Fri, 4 May 2001 14:05:44 -0400 (EDT)
5 | Message-ID: <15090.61304.110929.45684@aaa.zzz.org>
6 | From: bbb@ddd.com (John X. Doe)
7 | To: bbb@zzz.org
8 | Subject: This is a test message
9 | Date: Fri, 4 May 2001 14:05:44 -0400
10 |
11 |
12 | Hi,
13 |
14 | Do you like this message?
15 |
16 | -Me
17 |
--------------------------------------------------------------------------------
/Misc/NEWS.d/3.7.0.rst:
--------------------------------------------------------------------------------
1 | .. bpo: 33851
2 | .. date: 2018-06-13-15-12-25
3 | .. nonce: SVbqlz
4 | .. release date: 2018-06-27
5 | .. section: Library
6 |
7 | Fix :func:`ast.get_docstring` for a node that lacks a docstring.
8 |
9 | ..
10 |
11 | .. bpo: 33932
12 | .. date: 2018-06-21-15-29-59
13 | .. nonce: VSlXyS
14 | .. section: C API
15 |
16 | Calling Py_Initialize() twice does nothing, instead of failing with a fatal
17 | error: restore the Python 3.6 behaviour.
18 |
--------------------------------------------------------------------------------
/Modules/_sha3/README.txt:
--------------------------------------------------------------------------------
1 | Keccak Code Package
2 | ===================
3 |
4 | The files in kcp are taken from the Keccak Code Package. They have been
5 | slightly to be C89 compatible. The architecture specific header file
6 | KeccakP-1600-SnP.h ha been renamed to KeccakP-1600-SnP-opt32.h or
7 | KeccakP-1600-SnP-opt64.h.
8 |
9 | The 64bit files were generated with generic64lc/libkeccak.a.pack target, the
10 | 32bit files with generic32lc/libkeccak.a.pack.
11 |
12 |
--------------------------------------------------------------------------------
/Tools/msi/doc/doc_en-US.wxl_template:
--------------------------------------------------------------------------------
1 |
2 |
3 | doc
4 | Documentation
5 | Python {{ShortVersion}} Manuals ({{Bitness}})
6 | View the !(loc.ProductName) documentation.
7 |
8 |
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/euc_jp-utf8.txt:
--------------------------------------------------------------------------------
1 | Python の開発は、1990 年ごろから開始されています。
2 | 開発者の Guido van Rossum は教育用のプログラミング言語「ABC」の開発に参加していましたが、ABC は実用上の目的にはあまり適していませんでした。
3 | このため、Guido はより実用的なプログラミング言語の開発を開始し、英国 BBS 放送のコメディ番組「モンティ パイソン」のファンである Guido はこの言語を「Python」と名づけました。
4 | このような背景から生まれた Python の言語設計は、「シンプル」で「習得が容易」という目標に重点が置かれています。
5 | 多くのスクリプト系言語ではユーザの目先の利便性を優先して色々な機能を言語要素として取り入れる場合が多いのですが、Python ではそういった小細工が追加されることはあまりありません。
6 | 言語自体の機能は最小限に押さえ、必要な機能は拡張モジュールとして追加する、というのが Python のポリシーです。
7 |
8 |
--------------------------------------------------------------------------------
/Lib/test/test_codecmaps_hk.py:
--------------------------------------------------------------------------------
1 | #
2 | # test_codecmaps_hk.py
3 | # Codec mapping tests for HongKong encodings
4 | #
5 |
6 | from test import multibytecodec_support
7 | import unittest
8 |
9 | class TestBig5HKSCSMap(multibytecodec_support.TestBase_Mapping,
10 | unittest.TestCase):
11 | encoding = 'big5hkscs'
12 | mapfileurl = 'http://www.pythontest.net/unicode/BIG5HKSCS-2004.TXT'
13 |
14 | if __name__ == "__main__":
15 | unittest.main()
16 |
--------------------------------------------------------------------------------
/Doc/includes/sqlite3/adapter_point_1.py:
--------------------------------------------------------------------------------
1 | import sqlite3
2 |
3 | class Point:
4 | def __init__(self, x, y):
5 | self.x, self.y = x, y
6 |
7 | def __conform__(self, protocol):
8 | if protocol is sqlite3.PrepareProtocol:
9 | return "%f;%f" % (self.x, self.y)
10 |
11 | con = sqlite3.connect(":memory:")
12 | cur = con.cursor()
13 |
14 | p = Point(4.0, -3.2)
15 | cur.execute("select ?", (p,))
16 | print(cur.fetchone()[0])
17 |
18 | con.close()
19 |
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/iso2022_jp-utf8.txt:
--------------------------------------------------------------------------------
1 | Python の開発は、1990 年ごろから開始されています。
2 | 開発者の Guido van Rossum は教育用のプログラミング言語「ABC」の開発に参加していましたが、ABC は実用上の目的にはあまり適していませんでした。
3 | このため、Guido はより実用的なプログラミング言語の開発を開始し、英国 BBS 放送のコメディ番組「モンティ パイソン」のファンである Guido はこの言語を「Python」と名づけました。
4 | このような背景から生まれた Python の言語設計は、「シンプル」で「習得が容易」という目標に重点が置かれています。
5 | 多くのスクリプト系言語ではユーザの目先の利便性を優先して色々な機能を言語要素として取り入れる場合が多いのですが、Python ではそういった小細工が追加されることはあまりありません。
6 | 言語自体の機能は最小限に押さえ、必要な機能は拡張モジュールとして追加する、というのが Python のポリシーです。
7 |
8 |
--------------------------------------------------------------------------------
/Lib/test/cjkencodings/shift_jis-utf8.txt:
--------------------------------------------------------------------------------
1 | Python の開発は、1990 年ごろから開始されています。
2 | 開発者の Guido van Rossum は教育用のプログラミング言語「ABC」の開発に参加していましたが、ABC は実用上の目的にはあまり適していませんでした。
3 | このため、Guido はより実用的なプログラミング言語の開発を開始し、英国 BBS 放送のコメディ番組「モンティ パイソン」のファンである Guido はこの言語を「Python」と名づけました。
4 | このような背景から生まれた Python の言語設計は、「シンプル」で「習得が容易」という目標に重点が置かれています。
5 | 多くのスクリプト系言語ではユーザの目先の利便性を優先して色々な機能を言語要素として取り入れる場合が多いのですが、Python ではそういった小細工が追加されることはあまりありません。
6 | 言語自体の機能は最小限に押さえ、必要な機能は拡張モジュールとして追加する、というのが Python のポリシーです。
7 |
8 |
--------------------------------------------------------------------------------
/Modules/_decimal/tests/README.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 | This directory contains extended tests and a benchmark against decimal.py:
4 |
5 | bench.py -> Benchmark for small and large precisions.
6 | Usage: ../../../python bench.py
7 |
8 | formathelper.py ->
9 | randdec.py -> Generate test cases for deccheck.py.
10 | randfloat.py ->
11 |
12 | deccheck.py -> Run extended tests.
13 | Usage: ../../../python deccheck.py [--short|--medium|--long|--all]
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Include/cpython/traceback.h:
--------------------------------------------------------------------------------
1 | #ifndef Py_CPYTHON_TRACEBACK_H
2 | # error "this header file must not be included directly"
3 | #endif
4 |
5 | typedef struct _traceback {
6 | PyObject_HEAD
7 | struct _traceback *tb_next;
8 | PyFrameObject *tb_frame;
9 | int tb_lasti;
10 | int tb_lineno;
11 | } PyTracebackObject;
12 |
13 | PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, PyObject *, int, int);
14 | PyAPI_FUNC(void) _PyTraceback_Add(const char *, const char *, int);
15 |
--------------------------------------------------------------------------------
/Modules/expat/expat_config.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Expat configuration for python. This file is not part of the expat
3 | * distribution.
4 | */
5 | #ifndef EXPAT_CONFIG_H
6 | #define EXPAT_CONFIG_H
7 |
8 | #include
9 | #ifdef WORDS_BIGENDIAN
10 | #define BYTEORDER 4321
11 | #else
12 | #define BYTEORDER 1234
13 | #endif
14 |
15 | #define HAVE_MEMMOVE 1
16 |
17 | #define XML_NS 1
18 | #define XML_DTD 1
19 | #define XML_CONTEXT_BYTES 1024
20 |
21 | #endif /* EXPAT_CONFIG_H */
22 |
--------------------------------------------------------------------------------
/Doc/library/frameworks.rst:
--------------------------------------------------------------------------------
1 | .. _frameworks:
2 |
3 | ******************
4 | Program Frameworks
5 | ******************
6 |
7 | The modules described in this chapter are frameworks that will largely dictate
8 | the structure of your program. Currently the modules described here are all
9 | oriented toward writing command-line interfaces.
10 |
11 | The full list of modules described in this chapter is:
12 |
13 |
14 | .. toctree::
15 |
16 | turtle.rst
17 | cmd.rst
18 | shlex.rst
19 |
--------------------------------------------------------------------------------
/Doc/library/modules.rst:
--------------------------------------------------------------------------------
1 | .. _modules:
2 |
3 | *****************
4 | Importing Modules
5 | *****************
6 |
7 | The modules described in this chapter provide new ways to import other Python
8 | modules and hooks for customizing the import process.
9 |
10 | The full list of modules described in this chapter is:
11 |
12 |
13 | .. toctree::
14 |
15 | zipimport.rst
16 | pkgutil.rst
17 | modulefinder.rst
18 | runpy.rst
19 | importlib.rst
20 | importlib.metadata.rst
21 |
--------------------------------------------------------------------------------
/Lib/test/test_tk.py:
--------------------------------------------------------------------------------
1 | from test import support
2 | from test.support import import_helper
3 | # Skip test if _tkinter wasn't built.
4 | import_helper.import_module('_tkinter')
5 |
6 | # Skip test if tk cannot be initialized.
7 | support.requires('gui')
8 |
9 | from tkinter.test import runtktests
10 |
11 | def test_main():
12 | support.run_unittest(
13 | *runtktests.get_tests(text=False, packages=['test_tkinter']))
14 |
15 | if __name__ == '__main__':
16 | test_main()
17 |
--------------------------------------------------------------------------------
/Modules/_xxtestfuzz/dictionaries/fuzz_json_loads.dict:
--------------------------------------------------------------------------------
1 | "0"
2 | ",0"
3 | ":0"
4 | "0:"
5 | "-1.2e+3"
6 |
7 | "true"
8 | "false"
9 | "null"
10 |
11 | "\"\""
12 | ",\"\""
13 | ":\"\""
14 | "\"\":"
15 |
16 | "{}"
17 | ",{}"
18 | ":{}"
19 | "{\"\":0}"
20 | "{{}}"
21 |
22 | "[]"
23 | ",[]"
24 | ":[]"
25 | "[0]"
26 | "[[]]"
27 |
28 | "''"
29 | "\\"
30 | "\\b"
31 | "\\f"
32 | "\\n"
33 | "\\r"
34 | "\\t"
35 | "\\u0000"
36 | "\\x00"
37 | "\\0"
38 | "\\uD800\\uDC00"
39 | "\\uDBFF\\uDFFF"
40 |
41 |
--------------------------------------------------------------------------------
/Lib/test/test_email/data/msg_21.txt:
--------------------------------------------------------------------------------
1 | From: aperson@dom.ain
2 | To: bperson@dom.ain
3 | Subject: Test
4 | Content-Type: multipart/mixed; boundary="BOUNDARY"
5 |
6 | MIME message
7 | --BOUNDARY
8 | Content-Type: text/plain; charset="us-ascii"
9 | MIME-Version: 1.0
10 | Content-Transfer-Encoding: 7bit
11 |
12 | One
13 | --BOUNDARY
14 | Content-Type: text/plain; charset="us-ascii"
15 | MIME-Version: 1.0
16 | Content-Transfer-Encoding: 7bit
17 |
18 | Two
19 | --BOUNDARY--
20 | End of MIME message
21 |
--------------------------------------------------------------------------------
/Tools/buildbot/clean.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | rem Used by the buildbot "clean" step.
3 |
4 | setlocal
5 | set root=%~dp0..\..
6 | set pcbuild=%root%\PCbuild
7 |
8 | echo Deleting build
9 | call "%pcbuild%\build.bat" -t Clean -k %*
10 | call "%pcbuild%\build.bat" -t Clean -k -d %*
11 |
12 | echo Deleting .pyc/.pyo files ...
13 | del /s "%root%\Lib\*.pyc" "%root%\Lib\*.pyo"
14 |
15 | echo Deleting test leftovers ...
16 | rmdir /s /q "%root%\build"
17 | del /s "%pcbuild%\python*.zip"
18 |
--------------------------------------------------------------------------------
/Lib/test/test_multiprocessing_forkserver.py:
--------------------------------------------------------------------------------
1 | import unittest
2 | import test._test_multiprocessing
3 |
4 | import sys
5 | from test import support
6 |
7 | if support.PGO:
8 | raise unittest.SkipTest("test is not helpful for PGO")
9 |
10 | if sys.platform == "win32":
11 | raise unittest.SkipTest("forkserver is not available on Windows")
12 |
13 | test._test_multiprocessing.install_tests_in_module_dict(globals(), 'forkserver')
14 |
15 | if __name__ == '__main__':
16 | unittest.main()
17 |
--------------------------------------------------------------------------------
/Tools/msi/bundle/bundle.wxl:
--------------------------------------------------------------------------------
1 |
2 |
3 | C Runtime Update (KB2999226)
4 | Precompiling standard library
5 | Precompiling standard library (-O)
6 | Precompiling standard library (-OO)
7 |
8 |
--------------------------------------------------------------------------------