Comments (5)
Thanks for the detailed breakdown. Indeed, these are mostly things that I wasn't aware of / have been overlooked. I appreciate you taking the time to list them out so succinctly. Most of these should be simple to fix now that I know what to look for.
from pasta.
Pushed a few fixes in f995fc5, 8e07293 and 91cbb35. More to come...
from pasta.
Tuple parameter unpacking should be fixed in 1d7d268. Still a few more.
from pasta.
The weird case with newlines in function calls is fixed in 3ce4123. This is actually because of the newline before trailing comma in the tuple.
These are remaining:
- BOM at start of file:
pasta.parse("\xef\xbb\xbf\r\nimport sys")
# Expected 'import' but found '\xef'`
- Old-style repr (for obvious reasons having trouble typing this one in markdown)
pasta.parse("\x60True\x60")
# Expected 'repr' but found '\x60'
- Something with exec and lines?
exec("", None, None)
True
# Expected 'True' but found ')'
from pasta.
I believe these are all fixed now except for the BOM parsing.
from pasta.
Related Issues (20)
- Python 3.10 support HOT 3
- Default formatting Subscript slice is inconsistent in python3.9+
- Support for with statement with multiple arguments
- Support for 'nonlocal' keywords
- Incomplete handling of complex f-strings HOT 1
- f-strings over multiple lines HOT 4
- Auto-detect indentation in a file and reuse on unformatted code
- Support mixing tabs and spaces in python2 HOT 1
- Lacking test covered in codegen_test.py
- Bad indentation when rewriting funcion body (new bug) HOT 3
- Bad indentation when using try..finally HOT 2
- Fails to parse usages of metaclass HOT 3
- Support formatting-preserving insertion into collections
- IndentationError when appending new node to function body HOT 3
- Support for async code HOT 1
- Extend scope.analyze to support PEP 484 forward references
- CI doesn't works
- Some tests are broken HOT 1
- MIgrate from setuptools test to tox
- Incorrect rename behavior
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pasta.