python-astor 0.8.1-4 source package in Ubuntu
Changelog
python-astor (0.8.1-4) unstable; urgency=medium * Team upload. * Add patch to fix failing test (Closes: #1020085) * Use dh-sequence-python3 * Drop old build dependencies * Enable autopkgtest-pkg-pybuild * Add R³ * Bump policy version (no changes) -- Jochen Sprickerhof <email address hidden> Fri, 30 Dec 2022 14:59:33 +0100
Upload details
- Uploaded by:
- Debian Python Team
- Uploaded to:
- Sid
- Original maintainer:
- Debian Python Team
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section | |
---|---|---|---|---|
Oracular | release | universe | misc | |
Noble | release | universe | misc | |
Mantic | release | universe | misc | |
Lunar | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
python-astor_0.8.1-4.dsc | 2.1 KiB | a9b9b70141bb063d9b650b9e834fd54e6ff78dfd3c621414a9c88dfd05bba6b1 |
python-astor_0.8.1.orig.tar.gz | 34.3 KiB | 6a6effda93f4e1ce9f618779b2dd1d9d84f1e32812c23a29b3fff6fd7f63fa5e |
python-astor_0.8.1-4.debian.tar.xz | 4.3 KiB | 7b9539a5204135eda4f8c6b015ae562aa3c60cb2b4c1d1691598ecc9dd5697d6 |
Available diffs
- diff from 0.8.1-3 to 0.8.1-4 (1.6 KiB)
No changes file available.
Binary packages built by this source
- python3-astor: Python 3 AST manipulator
astor is designed to allow easy manipulation of Python source via the AST.
.
There are some other similar libraries, but astor focuses on the following
areas:
.
- Round-trip back to Python via Armin Ronacher's codegen.py module:
- Modified AST doesn't need linenumbers, ctx, etc. or otherwise be directly
compileable
.
- Dump pretty-printing of AST
- Harder to read than round-tripped code, but more accurate to figure out
what is going on.
- Easier to read than dump from built-in AST module
.
- Non-recursive treewalk
- Sometimes you want a recursive treewalk (and astor supports that, starting
at any node on the tree), but sometimes you don't need to do that. astor
doesn't require you to explicitly visit sub-nodes unless you want to:
- You can add code that executes before a node's children are visited,
and/or
- You can add code that executes after a node's children are visited, and/or
- You can add code that executes and keeps the node's children from being
visited (and optionally visit them yourself via a recursive call)
- Write functions to access the tree based on object names and/or attribute
names
- Enjoy easy access to parent node(s) for tree rewriting
.
This package provides Python 3 module bindings only.