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

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

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

voc/python/ast.py Outdated Show resolved Hide resolved
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