Skip to content

Report on Transpilation Issues for Five Test Cases#456

Open
yaskhan wants to merge 1 commit intomainfrom
report-transpilation-issues-13688359947814445479
Open

Report on Transpilation Issues for Five Test Cases#456
yaskhan wants to merge 1 commit intomainfrom
report-transpilation-issues-13688359947814445479

Conversation

@yaskhan
Copy link
Copy Markdown
Owner

@yaskhan yaskhan commented Mar 17, 2026

I've transpiled five files (test_classes_inheritance.py, test_comprehensions.py, test_decorators.py, test_dict_operations.py, test_exceptions.py) using the py2v transpiler and documented the results.

The key findings are:

  1. Variadic argument order: V requires ...args to be the last parameter. The transpiler currently places it before keyword arguments in some contexts.
  2. Missing map methods: V's map type lacks Python-equivalent fromkeys, setdefault, and update.
  3. Exception handling: Transpiler uses non-idiomatic C.try() instead of Result/Option types.
  4. Nested type inference: Matrix-like structures sometimes get flat types (e.g., []int instead of [][]int).
  5. isinstance/issubclass: Case-sensitivity issues in translation.

The report transpilation_report.md details these findings and suggests improvements. I also ran the full test suite (739 tests) to ensure no regressions.


PR created automatically by Jules for task 13688359947814445479 started by @yaskhan

This commit includes the results of transpiling five Python test files
into V using the py2v transpiler. A detailed report
`transpilation_report.md` has been created, documenting identified
issues such as:
- Variadic argument order in V
- Missing dict methods (update, setdefault, fromkeys)
- Use of non-idiomatic C.try() for exceptions
- Type inference limitations for nested structures
- Case-sensitivity in isinstance translation

The transpilation was performed with mypy enabled for accurate type
inference. All existing project tests pass.

Co-authored-by: yaskhan <3676373+yaskhan@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@yaskhan yaskhan force-pushed the main branch 2 times, most recently from 592f0b8 to db8e305 Compare March 18, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant