This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cpython main 🐚 docker run --platform linux/amd64 -it @$(docker build --platform linux/amd64 -q .) | |
The necessary bits to build these optional modules were not found: | |
_dbm _decimal _gdbm | |
_zstd | |
To find the necessary bits, look in configure.ac and config.log. | |
Checked 114 modules (37 built-in, 72 shared, 1 n/a on linux-x86_64, 0 disabled, 4 missing, 0 failed on import) | |
./python -E ./Tools/build/generate-build-details.py `cat pybuilddir.txt`/build-details.json | |
./python -E -m test --fast-ci -u-gui --timeout= | |
+ ./python -u -W error -bb -E -m test --fast-ci -u-gui --timeout= --dont-add-python-opts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cpython main [2] 🐚 docker run --platform linux/amd64 -it @$(docker build --platform linux/amd64 -q .) ./python -m test test_importlib -v | |
== CPython 3.15.0a0 (heads/main:0d383f8, Sep 1 2025, 17:08:52) [GCC 8.5.0 20210514 (Red Hat 8.5.0-28)] | |
== Linux-6.10.14-linuxkit-x86_64-with-glibc2.28 little-endian | |
== Python build: debug LTO | |
== cwd: /home/buildbot/cpython/build/test_python_worker_1æ | |
== CPU count: 8 | |
== encodings: locale=UTF-8 FS=utf-8 | |
== resources: all test resources are disabled, use -u option to unskip tests | |
Using random seed: 1904482746 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use AlmaLinux 8, a 1:1 RHEL 8 compatible OS with standard repositories | |
FROM almalinux:8 | |
# Set an environment variable to run dnf without prompts | |
ENV DNF_ASSUMEYES=1 | |
# Install build dependencies for CPython | |
RUN dnf update -y && \ | |
# --- FIX STARTS HERE --- | |
# Install the DNF plugins package which provides the 'config-manager' command |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ 🐚 work-on coherent.build | |
coherent.build main 🐚 coh tag patch | |
git pushCreated tag v0.33.2 | |
coherent.build main 🐚 git push | |
Enumerating objects: 1, done. | |
Counting objects: 100% (1/1), done. | |
Writing objects: 100% (1/1), 793 bytes | 793.00 KiB/s, done. | |
Total 1 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0) | |
To https://github.com/coherent-oss/coherent.build | |
* [new tag] v0.33.2 -> v0.33.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:noble | |
RUN apt update | |
RUN apt upgrade -y | |
RUN apt install -y software-properties-common | |
RUN apt-add-repository -y ppa:deadsnakes | |
RUN apt update | |
RUN apt install -y wget libarchive-tools | |
# Install Pythons |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import configparser | |
import pathlib | |
files = list(pathlib.Path().glob('*.desktop')) | |
assert files | |
def main(): | |
parser = configparser.ConfigParser(interpolation=None) | |
for shortcut in files: | |
parser.clear() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.pkg: _optional_hooks> python '/Users/jaraco/Library/Application Support/pipx/venvs/tox/lib/python3.14t/site-packages/pyproject_api/_backend.py' True setuptools.build_meta | |
.pkg: get_requires_for_build_editable> python '/Users/jaraco/Library/Application Support/pipx/venvs/tox/lib/python3.14t/site-packages/pyproject_api/_backend.py' True setuptools.build_meta | |
.pkg: build_editable> python '/Users/jaraco/Library/Application Support/pipx/venvs/tox/lib/python3.14t/site-packages/pyproject_api/_backend.py' True setuptools.build_meta | |
py: install_package> python -I -m pip install --force-reinstall --no-deps /Users/jaraco/code/jaraco/path/.tox/.tmp/package/49/path-17.0.1.dev26+g692a66e-0.editable-py3-none-any.whl | |
py: commands[0]> pytest -v | |
============================= test session starts ============================== | |
platform darwin -- Python 3.14.0a2+, pytest-8.3.4, pluggy-1.5.0 -- /Users/jaraco/code/jaraco/path/.tox/py/bin/python | |
cachedir: .tox/py/.pytest_cache | |
rootdir: /Users/jaraco/code/jaraco/path | |
configfile: pyt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Quick code examples demonstrating Python unpacking | |
Example 1.A - Multiple assignment using a list | |
>>> a, b, c = [1, 2, 3] | |
>>> a | |
1 | |
>>> b | |
2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Lib/zipfile.py b/Lib/zipfile.py | |
index 9b66a9f054d..b21889694da 100644 | |
--- a/Lib/zipfile.py | |
+++ b/Lib/zipfile.py | |
@@ -2188,10 +2188,33 @@ def _difference(minuend, subtrahend): | |
return itertools.filterfalse(set(subtrahend).__contains__, minuend) | |
-class CompleteDirs(ZipFile): | |
+class InitializedState: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"boto3": ["boto3"]} | |
{"urllib3": ["urllib3"]} | |
{"botocore": ["botocore"]} | |
{"requests": ["requests"]} | |
{"certifi": ["certifi"]} | |
{"typing-extensions": ["typing_extensions"]} | |
{"idna": ["idna"]} | |
{"charset-normalizer": ["charset_normalizer"]} | |
{"python-dateutil": ["dateutil"]} | |
{"setuptools": ["_distutils_hack", "pkg_resources", "setuptools"]} |
NewerOlder