Skip to content
This repository was archived by the owner on May 31, 2020. It is now read-only.

Format and f-string support (and minor other changes)#952

Open
jorants wants to merge 6 commits intobeeware:masterfrom
jorants:master
Open

Format and f-string support (and minor other changes)#952
jorants wants to merge 6 commits intobeeware:masterfrom
jorants:master

Conversation

@jorants
Copy link

@jorants jorants commented May 16, 2019

Major additions

  • Implements format() as per python standard
  • Implements standard __format__ for all objects
  • Implements __format__ for Str, Float, Int and Complex
  • Fixes __repr__ for Complex by using the already present code from the __str__ method instead.
  • __repr__ uses __format__ for float type
  • Implements f-strings by manipulating the AST.

Small changes:

  • Added generic_visit to ast.py. Unimplemented node types previously where ignored but now give an error.
  • Added a fail in build-android.xml when android.jar is not found

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants