Skip to content

Conversation

@BobTheBuidler
Copy link
Owner

@BobTheBuidler BobTheBuidler commented Jan 18, 2026

Summary

  • add REPR format op handling for !r and %r in mypyc formatting fast paths
  • expose repr() as a primitive op for codegen
  • extend irbuild tests for %r and constant-folded !r

Testing

  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python3 -m pytest -o addopts= mypyc/test/test_irbuild.py -k "StringFormattingCStyle or ConstantFoldFormatArgs"
  • env -u PYTHONUNBUFFERED PYTHONPATH=/home/takopi/projects/cpython/Lib PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python3 -m pytest -o addopts= mypyc/test/test_run.py

Base automatically changed from ascii-format-fastpath to master January 18, 2026 14:19
@BobTheBuidler BobTheBuidler changed the title mypyc: add repr format fast paths [mypyc] feat: add repr format fast paths Jan 18, 2026
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.

2 participants