Skip to main content

F-strings are fabulous, why can't we make the same with Tuple and lists ?

Project description

F-strings are fabulous, why can’t we make the same with Tuple and lists ?

Now you can:

In [1]: from ftuple import f

In [2]: h = "Hello"

In [3]: w = "World"

In [4]: f"{h} {w}"
Out[4]: 'Hello World'

In [5]: f({h}, {w})
Out[5]: ('Hello', 'World')

In [6]: f[{h}, {w}]
Out[6]: ['Hello', 'World']

Project details


Release history Release notifications

This version
History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ftuple-1.0.0-py2.py3-none-any.whl (26.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Jun 7, 2017
ftuple-1.0.0.tar.gz (1.7 kB) Copy SHA256 hash SHA256 Source None Jun 7, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page