René's URL Explorer Experiment


Title: make ast module usage compatible to python 3.14 by tnias · Pull Request #29 · andreax79/python-cstruct · GitHub

Open Graph Title: make ast module usage compatible to python 3.14 by tnias · Pull Request #29 · andreax79/python-cstruct

X Title: make ast module usage compatible to python 3.14 by tnias · Pull Request #29 · andreax79/python-cstruct

Description: Python 3.8 deprecated some AST nodes, which got removed in Python 3.14. The Python 3.14 releaes notes for the ast module state: Remove the following classes, which have been deprecated aliases of Constant since Python 3.8 and have emitted deprecation warnings since Python 3.12: Bytes Ellipsis NameConstant Num Str [...] Remove the following deprecated properties on ast.Constant, which were present for compatibility with the now-removed AST classes: Constant.n Constant.s Use Constant.value instead. (Contributed by Alex Waygood in gh-119562.) Running the tests with Python 3.12 or 3.13 already prints deprecation warnings. DeprecationWarning: ast.Num is deprecated and will be removed in Python 3.14; use ast.Constant instead DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead So far I've tested this with the following python versions: Python 3.6 (used make test from docker/i386/Makefile) (alpine) Python 3.7 (debian 10 docker container. see spoiler below) (alpine) Python 3.8 (alpine) Python 3.9 (alpine) Python 3.10 (alpine) (applied patch to nixpkgs version) Python 3.11 (alpine) (applied patch to nixpkgs version) Python 3.12 (alpine) (applied patch to nixpkgs version) Python 3.13 (applied patch to nixpkgs version) Python 3.14 (applied patch to nixpkgs version) Details on how I ran the tests against python 3.7 (click to unfold) # docker build -t debian-10-python-cstruct . && docker run --rm -it debian-10-python-cstruct FROM debian:10 RUN cat < /etc/apt/sources.list deb http://archive.debian.org/debian/ buster contrib main non-free EOF RUN apt-get update && apt-get install -y git python3 python3-pytest curl make RUN git clone https://github.com/andreax79/python-cstruct/ WORKDIR python-cstruct RUN git config user.email "you@example.com" RUN git config user.name "Your Name" COPY 0001-make-ast-module-usage-compatible-to-python-3.14.patch . RUN git am 0001-make-ast-module-usage-compatible-to-python-3.14.patch RUN python3 -m pytest ==================================================================== test session starts ===================================================================== platform linux -- Python 3.7.3, pytest-3.10.1, py-1.7.0, pluggy-0.8.0 rootdir: /python-cstruct, inifile: pytest.ini collected 82 items tests/test_alignment.py ....... [ 8%] tests/test_c_expr.py ...... [ 15%] tests/test_cenum.py ......... [ 26%] tests/test_cstruct.py .............. [ 43%] tests/test_cstruct_var.py . [ 45%] tests/test_define.py ...... [ 52%] tests/test_flexible_array.py .... [ 57%] tests/test_get_type.py . [ 58%] tests/test_memcstruct.py .............. [ 75%] tests/test_native_types.py .. [ 78%] tests/test_nested.py ........... [ 91%] tests/test_padding.py .. [ 93%] tests/test_pickle.py .. [ 96%] tests/test_typdef.py . [ 97%] tests/test_union.py .. [100%] ================================================================= 82 passed in 0.15 seconds ================================================================== Details on how I ran the tests against many alpine and python versions (click to unfold) template = """FROM alpine:{version} RUN apk update && apk add python3 py3-pytest COPY python-cstruct/ python-cstruct/ WORKDIR python-cstruct RUN pytest-3 """ versions = [ "3.23", "3.22", "3.21", "3.20", "3.19", "3.18", "3.17", "3.16", "3.15", "3.14", "3.13", "3.12", "3.11", "3.10", "3.9", "3.8", "3.7", "3.6", ] for version in versions: content = template.format(version=version) with open(f"Dockerfile-alpine-{version}", "w") as f: f.write(content) #!/bin/bash set -eu PROJECT="python-cstruct" TARGETS="" TARGETS="${TARGETS} alpine-3.23" # python 3.12.12 TARGETS="${TARGETS} alpine-3.22" # python 3.12.12 TARGETS="${TARGETS} alpine-3.21" # python 3.12.12 TARGETS="${TARGETS} alpine-3.20" # python 3.12.12 TARGETS="${TARGETS} alpine-3.19" # python 3.11.14 TARGETS="${TARGETS} alpine-3.18" # python 3.11.12 TARGETS="${TARGETS} alpine-3.17" # python 3.10.15 TARGETS="${TARGETS} alpine-3.16" # python 3.10.14 TARGETS="${TARGETS} alpine-3.15" # python 3.9.18 TARGETS="${TARGETS} alpine-3.14" # python 3.9.17 TARGETS="${TARGETS} alpine-3.13" # python 3.8.15 TARGETS="${TARGETS} alpine-3.12" # python 3.8.10 TARGETS="${TARGETS} alpine-3.11" # python 3.8.10 TARGETS="${TARGETS} alpine-3.10" # python 3.7.10 TARGETS="${TARGETS} alpine-3.9" # python 3.6.9 TARGETS="${TARGETS} alpine-3.8" # python 3.6.9 TARGETS="${TARGETS} alpine-3.7" # python 3.6.9 TARGETS="${TARGETS} alpine-3.6" # python 3.6.8 if test ! -z "$@"; then TARGETS="$@" fi echo "TARGETS=${TARGETS}" if which podman >/dev/null; then DOCKER=podman elif which docker >/dev/null; then DOCKER=docker else echo "ERROR: no podman or docker found!" >&2 exit 1 fi for TARGET in $TARGETS; do $DOCKER build -t "almost-ci-${PROJECT}-${TARGET}" -f "Dockerfile-${TARGET}" done for TARGET in $TARGETS; do echo -n "${TARGET} -> " $DOCKER run --rm -it "almost-ci-${PROJECT}-${TARGET}" /usr/bin/python3 --version done Successfully ran pytest on: alpine v3.23 (Python 3.12.12) alpine v3.22 (Python 3.12.12) alpine v3.21 (Python 3.12.12) alpine v3.20 (Python 3.12.12) alpine v3.19 (Python 3.11.14) alpine v3.18 (Python 3.11.12) alpine v3.17 (Python 3.10.15) alpine v3.16 (Python 3.10.14) alpine v3.15 (Python 3.9.18) alpine v3.14 (Python 3.9.17) alpine v3.13 (Python 3.8.15) alpine v3.12 (Python 3.8.10) alpine v3.11 (Python 3.8.10) alpine v3.10 (Python 3.7.10) alpine v3.9 (Python 3.6.9) alpine v3.8 (Python 3.6.9) alpine v3.7 (Python 3.6.9) alpine v3.6 (Python 3.6.8)

Open Graph Description: Python 3.8 deprecated some AST nodes, which got removed in Python 3.14. The Python 3.14 releaes notes for the ast module state: Remove the following classes, which have been deprecated aliases of...

X Description: Python 3.8 deprecated some AST nodes, which got removed in Python 3.14. The Python 3.14 releaes notes for the ast module state: Remove the following classes, which have been deprecated aliases of...

Opengraph URL: https://github.com/andreax79/python-cstruct/pull/29

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:09675c12-5f1b-65a4-07dd-0bb66cfdf881
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA6D2:326B0D:ABE28F:DD7A32:697E6052
html-safe-noncef4d29aefe5d9f6292c8d20cce1f01743311c2572904e385cd1a126c9bd88cb29
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkQyOjMyNkIwRDpBQkUyOEY6REQ3QTMyOjY5N0U2MDUyIiwidmlzaXRvcl9pZCI6IjI1MDk3NjQwOTM5NDI4NDk2MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0059bd046ad3260f56321fdbe0ba6c6bc9077cb2ab6e503626b2b8814bf5489c
hovercard-subject-tagpull_request:3160675313
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/andreax79/python-cstruct/pull/29/files
twitter:imagehttps://avatars.githubusercontent.com/u/9853194?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/9853194?s=400&v=4
og:image:altPython 3.8 deprecated some AST nodes, which got removed in Python 3.14. The Python 3.14 releaes notes for the ast module state: Remove the following classes, which have been deprecated aliases of...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/andreax79/python-cstruct git https://github.com/andreax79/python-cstruct.git
octolytics-dimension-user_id1288154
octolytics-dimension-user_loginandreax79
octolytics-dimension-repository_id12209630
octolytics-dimension-repository_nwoandreax79/python-cstruct
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id12209630
octolytics-dimension-repository_network_root_nwoandreax79/python-cstruct
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fandreax79%2Fpython-cstruct%2Fpull%2F29%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fandreax79%2Fpython-cstruct%2Fpull%2F29%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=andreax79%2Fpython-cstruct
Reloadhttps://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files
Reloadhttps://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files
Reloadhttps://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files
andreax79 https://patch-diff.githubusercontent.com/andreax79
python-cstructhttps://patch-diff.githubusercontent.com/andreax79/python-cstruct
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fandreax79%2Fpython-cstruct
Fork 19 https://patch-diff.githubusercontent.com/login?return_to=%2Fandreax79%2Fpython-cstruct
Star 73 https://patch-diff.githubusercontent.com/login?return_to=%2Fandreax79%2Fpython-cstruct
Code https://patch-diff.githubusercontent.com/andreax79/python-cstruct
Issues 2 https://patch-diff.githubusercontent.com/andreax79/python-cstruct/issues
Pull requests 0 https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pulls
Actions https://patch-diff.githubusercontent.com/andreax79/python-cstruct/actions
Projects 0 https://patch-diff.githubusercontent.com/andreax79/python-cstruct/projects
Wiki https://patch-diff.githubusercontent.com/andreax79/python-cstruct/wiki
Security 0 https://patch-diff.githubusercontent.com/andreax79/python-cstruct/security
Insights https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pulse
Code https://patch-diff.githubusercontent.com/andreax79/python-cstruct
Issues https://patch-diff.githubusercontent.com/andreax79/python-cstruct/issues
Pull requests https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pulls
Actions https://patch-diff.githubusercontent.com/andreax79/python-cstruct/actions
Projects https://patch-diff.githubusercontent.com/andreax79/python-cstruct/projects
Wiki https://patch-diff.githubusercontent.com/andreax79/python-cstruct/wiki
Security https://patch-diff.githubusercontent.com/andreax79/python-cstruct/security
Insights https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fandreax79%2Fpython-cstruct%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fandreax79%2Fpython-cstruct%2Fissues%2Fnew%2Fchoose
andreax79https://patch-diff.githubusercontent.com/andreax79
andreax79:mainhttps://patch-diff.githubusercontent.com/andreax79/python-cstruct/tree/main
tnias:python314https://patch-diff.githubusercontent.com/tnias/python-cstruct/tree/python314
Conversation 2 https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29
Commits 1 https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/commits
Checks 6 https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/checks
Files changed https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files
Please reload this pagehttps://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files
make ast module usage compatible to python 3.14 https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files#top
Show all changes 1 commit https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files
af86ebc make ast module usage compatible to python 3.14 tnias Jan 9, 2026 https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/commits/af86ebc46ae297155a6f235ee1e92db38eceee4b
Clear filters https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files
Please reload this pagehttps://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files
Please reload this pagehttps://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files
cstruct/c_expr.pyhttps://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files#diff-0b99ee05a2c3c4ef9f61933c651ee08e58fd2c8e5f781933a8ff33ead47d0abc
View file https://patch-diff.githubusercontent.com/tnias/python-cstruct/blob/af86ebc46ae297155a6f235ee1e92db38eceee4b/cstruct/c_expr.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files#diff-0b99ee05a2c3c4ef9f61933c651ee08e58fd2c8e5f781933a8ff33ead47d0abc
https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files#diff-0b99ee05a2c3c4ef9f61933c651ee08e58fd2c8e5f781933a8ff33ead47d0abc
https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files#diff-0b99ee05a2c3c4ef9f61933c651ee08e58fd2c8e5f781933a8ff33ead47d0abc
https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files#diff-0b99ee05a2c3c4ef9f61933c651ee08e58fd2c8e5f781933a8ff33ead47d0abc
https://patch-diff.githubusercontent.com/andreax79/python-cstruct/pull/29/files#diff-0b99ee05a2c3c4ef9f61933c651ee08e58fd2c8e5f781933a8ff33ead47d0abc
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.