Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary join() when converting fstrings #47

Open
Guilouf opened this issue Oct 26, 2017 · 0 comments
Open

Unnecessary join() when converting fstrings #47

Guilouf opened this issue Oct 26, 2017 · 0 comments

Comments

@Guilouf
Copy link

Guilouf commented Oct 26, 2017

Tested with the heroku online demo:

def foo():
    truc = 5
    return f'bidule {truc}'

Result:

def foo():
    truc = 5
    return ''.join(['bidule ', '{}'.format(truc)])

It works but kind of ugly, should be "bidule {}".format(truc); or with keyword argument "bidule {i}".format(i=truc)

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

No branches or pull requests

1 participant