Built by adding this to Doc/Makefile
:
.PHONY: singlehtml
singlehtml: BUILDER = singlehtml
singlehtml: build
@echo "Build finished. The HTML page is in build/html."
❯ python3 ~/github/misc/cpython/search_pypi_top.py -q . "sys.version\[0\] == ['\"]3['\"]"
./Flask-RESTful-0.3.10.tar.gz: Flask-RESTful-0.3.10/docs/conf.py: elif sys.version[0] == '3':
./fastnumbers-5.1.0.tar.gz: fastnumbers-5.1.0/dev/patch_doctest.py: if sys.version[0] == "3":
./exhale-0.3.7.tar.gz: exhale-0.3.7/exhale/deploy.py: if sys.version[0] == "3":
./exhale-0.3.7.tar.gz: exhale-0.3.7/exhale/deploy.py: if sys.version[0] == "3":
./impyla-0.19.0.tar.gz: impyla-0.19.0/impala/tests/_dbapi20_tests.py: if sys.version[0] == '3': #under Python 3 StardardError no longer exists
./install-1.3.5.tar.gz: install-1.3.5/install/__init__.py: if sys.version[0] == '3':
./mercurial-6.7.4.tar.gz: mercurial-6.7.4/tests/test-narrow-clone-non-narrow-server.t: > if sys.version[0] == '3':
./pyroute2-0.7.12.tar.gz: pyroute2-0.7.12/pyroute2/common.py: if sys.version[0] == '3':
""" | |
Find the first PEP created after the last PEP created in the 3xxx range. | |
""" | |
import datetime as dt | |
import json | |
import urllib.request | |
with urllib.request.urlopen("https://peps.python.org/peps.json") as url: | |
peps = json.loads(url.read().decode()) |
https://us.pycon.org/2024/about/pycon-us-challenge/
Served from cache: False Data processed: 3.71 GiB Data billed: 3.71 GiB Estimated cost: $0.02
version | file | system_name | download_count |
---|---|---|---|
1.21.6 | numpy-1.21.6-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl | Linux | 5,544,509 |
1.24.3 | numpy-1.24.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | Linux | 3,530,114 |
1.24.3 | numpy-1.24.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | Linux | 2,459,540 |
import json | |
import textwrap | |
import inflect # python3 -m pip install inflect | |
def intro(): | |
print( | |
"""As I was going to St. Ives, | |
I met a man with seven wives, |
import argparse | |
import subprocess | |
import sys | |
from pathlib import Path | |
def find_files(src_root: Path, python3: Path): | |
not_py3_compatible = [] | |
for file in src_root.rglob('*.py'): |
import sys | |
A_LOWERCASE = ord("a") | |
ALPHABET_SIZE = 26 | |
def _decompose(number): | |
"""Generate digits from `number` in base alphabet, least significants bits first. |
p -c 'import random as r;print(" meow".join([r.choice(",:;.?!") for _ in range(9**5)])[2:])' |