Comments (3)
c.f. #73 for str.format
which might be easier to build first.
from py2many.
test case:
if __name__ == '__main__':
a = 10
print(f"hello world: {a} number")
AST looks like this:
JoinedStr(
lineno=3,
col_offset=10,
end_lineno=3,
end_col_offset=36,
values=[
Constant(lineno=3, col_offset=10, end_lineno=3, end_col_offset=36, value='hello world: ', kind=None),
FormattedValue(
lineno=3,
col_offset=10,
end_lineno=3,
end_col_offset=36,
value=Name(lineno=3, col_offset=26, end_lineno=3, end_col_offset=27, id='a', ctx=Load()),
conversion=-1,
format_spec=None,
),
Constant(lineno=3, col_offset=10, end_lineno=3, end_col_offset=36, value=' number', kind=None),
I'll prioritize this tomorrow.
from py2many.
Awesome. If we can get this fixed, we can transpile py2many
/pyrs
itself into Rust - it wont compile, but adding transpiling of py2many as a test case (I have this roughly coded already) will add a lot more coverage preventing exceptions during transpilation.
from py2many.
Related Issues (20)
- pylib::FileReadString HOT 2
- PyJL: Julia without type annotations HOT 4
- Split CI to only run individual language tests HOT 1
- Replace auto-cancellation CI
- Win32 test cpp bug
- rust: pow does not work as is HOT 1
- py2many.exceptions.AstUnrecognisedBinOp translating python script HOT 5
- conan2 support
- CI: cargo install cargo-eval fails on Windows HOT 1
- cargo supports scripts directly HOT 2
- Python 3.12 support
- Go tests skipped on Windows as revive not available
- SMT input Python files are not valid Python HOT 1
- Generated exception_names.jl doesnt work HOT 4
- Failure in infer_ops.cpp with g++-13 HOT 1
- cargo -Zscript failing on 1.77 HOT 4
- smt fails with cljstyle-0.16.626.jar manifest does not specify Main-Class HOT 2
- Python deprecation warnings HOT 1
- Flutter pinned to 2.10.5
- New developer experience
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 py2many.