future-fstrings

A backport of fstrings to python<3.6 (by asottile-archive)

Future-fstrings Alternatives

Similar projects and alternatives to future-fstrings

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better future-fstrings alternative or higher similarity.

future-fstrings reviews and mentions

Posts with mentions or reviews of future-fstrings. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-03.
  • Adding C-style for loops to Python for fun
    6 projects | news.ycombinator.com | 3 Feb 2023
    I did something similar to option 3 to make the default numeric "callable", since the dunder __call__ methods can't be overwritten for integer types. For example, in regular arithmetic notation, something like 6(7+8) could be read as 6*(7+8), but trying to do this in Python gives you `SyntaxWarning: 'int' object is not callable;`, since you're essentially trying to do a function call on the literal 6. The workaround was to use a custom codec to wrap all integer literals to give them the expected call behavior.

    Repo if anyone is interested: https://github.com/ckw017/blursed

    This was inspired by a way less silly usecase, future f-strings, which added f-string support to older versions of Python in a similar way using codecs: https://github.com/asottile-archive/future-fstrings

Stats

Basic future-fstrings repo stats
1
381
10.0
over 2 years ago

asottile-archive/future-fstrings is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of future-fstrings is Python.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com