Python
1 program
Added 2025-10-22T09:45:48Z
Model: meta-llama/llama-3.1-70b-instructTemp: 0.4
Evidence
Report issue
View issues
Aliases: Py, Python (programming language), bazel, py, py3, pyi, python, python3, sage, starlark
Provenance: commit f11bdc136f · authored 2025-10-22T11:45:48+02:00 · model meta-llama/llama-3.1-70b-instruct
Merged records (3)
Sources describe this language in separate records, kept as they are. They were
joined by explicit decisions in data/curated/pl_links.csv
(concept concept/repo/Python); names of merged pages are listed as aliases above.
- Python
repo/Python· this page · primary · sources: llm-campaign · evidenceL-655cb69f64same_aspl/python-programming-language: accepted (generic-qualifier, claude-opus-5-5, 2026-09-30) - Python
pl/python· record without its own page · sources: esolang, hyperpolyglot, linguist, pygments, rosettacode · Wikipedia · Q28865 · EsolangL-2248df9caesame_aspl/python-programming-language: accepted (generic-qualifier, claude-opus-5-5, 2026-09-30) — Esolang page 'Python' does describe mainstream Python (checked 2026-09-30). - Python (programming language)
pl/python-programming-language· had its own page, merged here · sources: hyperpolyglot, pygments, wikipedia · Wikipedia · Q28865L-2248df9caesame_aspl/python: accepted (generic-qualifier, claude-opus-5-5, 2026-09-30) — Esolang page 'Python' does describe mainstream Python (checked 2026-09-30).L-655cb69f64same_asrepo/Python: accepted (generic-qualifier, claude-opus-5-5, 2026-09-30)
Sources mentioning this language
8 sources · pl_id:
pl/pythonWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | multi-paradigm: object-oriented · procedural (imperative) · functional · structured · reflective |
|---|---|
| Typing | duck, dynamic, strong; optional type annotations |
| Designed by | Python Software Foundation · Guido van Rossum |
| First appeared | 1991 |
| Influenced by | ABC · Ada · ALGOL 68 · APL · C · C++ · CLU · Dylan · Haskell · Icon · Lisp · Modula-3 · Perl · Standard ML |
| License | Python Software Foundation License |
| Homepage | https://www.python.org/ |
Extensions claimed by this language
37 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.py | linguist | primary | 708.7M files |
.py | pygments | primary | 708.7M files |
.buck | pygments | secondary | 219 files |
.build | pygments | secondary | 1.5M files |
.bzl | pygments | secondary | 611.6K files |
.cgi | linguist | secondary | 503.5K files |
.fcgi | linguist | secondary | 12.3K files |
.gyp | linguist | secondary | 201.1K files |
.gypi | linguist | secondary | 396.8K files |
.jy | pygments | secondary | 6.0K files |
.lmi | linguist | secondary | 98 files |
.py3 | linguist | secondary | 23.3K files |
.pyde | linguist | secondary | 43.0K files |
.pyi | linguist | secondary | 1.9M files |
.pyi | pygments | secondary | 1.9M files |
.pyp | linguist | secondary | 4.0K files |
.pyt | linguist | secondary | 15.9K files |
.pyw | linguist | secondary | 153.4K files |
.pyw | pygments | secondary | 153.4K files |
.rpy | linguist | secondary | 572.7K files |
.sage | pygments | secondary | 75.2K files |
.sc | pygments | secondary | 704.0K files |
.sconscript | pygments | secondary | 2.0K files |
.sconstruct | pygments | secondary | 282 files |
.spec | linguist | secondary | 7.1M files |
.tac | linguist | secondary | 68.7K files |
.tac | pygments | secondary | 68.7K files |
.workspace | pygments | secondary | 107.1K files |
.wsgi | linguist | secondary | 53.3K files |
.xpy | linguist | secondary | 1.3K files |
.py | wikidata | deprecated | 708.7M files |
.pyc | wikidata | deprecated | 1.1B files |
.pyd | wikidata | deprecated | 693.7K files |
.pyi | wikidata | deprecated | 1.9M files |
.pyo | wikidata | deprecated | 1.5M files |
.pyw | wikidata | deprecated | 153.4K files |
.pyz | wikidata | deprecated | 84.5K files |
Related languages
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Guessing Game
Provenance: commit f11bdc136f · authored 2025-10-22T11:45:48+02:00 · model meta-llama/llama-3.1-70b-instruct · Temp 0.4
import random
number_to_guess = random.randint(1, 10)
while True:
user_guess = int(input('Guess our number (between 1 and 10): '))
if user_guess == number_to_guess:
print('Congratulations! You won!')
break
elif user_guess < number_to_guess:
print('Too low!')
else:
print('Too high!')
Disambiguation rules
Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.rpy/0 | .rpy | predicates | [{"kind": "any", "regexes": ["^(import|from|class|def)\\s"]}] |