python-astor 0.8.1-3 source package in Ubuntu
Changelog
python-astor (0.8.1-3) unstable; urgency=medium [ Tianon Gravi ] * Update use of deprecated "-k-" pytest syntax; Closes: #1013726 -- Sandro Tosi <email address hidden> Sun, 26 Jun 2022 13:15:29 -0400
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 | |
---|---|---|---|---|
Kinetic | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
python-astor_0.8.1-3.dsc | 2.0 KiB | 2cc353c510ccf23057fdfdd9ced2a8d3bf27c5ee2e87d7a7344bad5f26449e8b |
python-astor_0.8.1.orig.tar.gz | 34.3 KiB | 6a6effda93f4e1ce9f618779b2dd1d9d84f1e32812c23a29b3fff6fd7f63fa5e |
python-astor_0.8.1-3.debian.tar.xz | 3.4 KiB | 3177d8afaac79fd908b4e21531eebf779ea06f3afc0d32c9c3607e9a32fc8782 |
Available diffs
- diff from 0.8.1-2 to 0.8.1-3 (513 bytes)
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.