python-astor 0.8.0-1 source package in Ubuntu
Changelog
python-astor (0.8.0-1) unstable; urgency=medium [ Ondřej Nový ] * Fixed VCS URL (https) * d/control: Set Vcs-* to salsa.debian.org * d/copyright: Fix Format URL to correct one * d/watch: Use https protocol * d/control: Remove ancient X-Python-Version field * d/control: Remove ancient X-Python3-Version field * Convert git repository from git-dpm to gbp layout * Use debhelper-compat instead of debian/compat. [ Tianon Gravi ] * Update to 0.8.0 upstream release -- Tianon Gravi <email address hidden> Fri, 16 Aug 2019 16:17:32 -0700
Upload details
- Uploaded by:
- Debian Python Modules Team
- Uploaded to:
- Sid
- Original maintainer:
- Debian Python Modules Team
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section |
---|
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
python-astor_0.8.0-1.dsc | 2.2 KiB | 30a66380ab9e23d3b233ee5bac0aa9479843e45cce7383dc1295e61f5e4b3009 |
python-astor_0.8.0.orig.tar.gz | 34.2 KiB | 37a6eed8b371f1228db08234ed7f6cfdc7817a3ed3824797e20cbb11dc2a7862 |
python-astor_0.8.0-1.debian.tar.xz | 3.1 KiB | 6768da67b168b5bacadd7bc09c7cbd840ee123d8cc8d61f6fb33104e21ce13d5 |
Available diffs
- diff from 0.5-1 to 0.8.0-1 (37.7 KiB)
No changes file available.
Binary packages built by this source
- python-astor: No summary available for python-astor in ubuntu eoan.
No description available for python-astor in ubuntu eoan.
- 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.