Get the latest tech news

Python’s new t-strings


Dave Peck's home on the web. Dave is an independent software developer, investor, and civic technologist.

We can imagine a library that provides an html() function that takes a Template and returns a safely escaped string: A simple t-string example Let’s say we wanted to write code to convert all substituted words into pig latin. T-strings are a powerful new feature that will make Python string processing safer and more flexible.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of python

python

Photo of strings

strings

Related news:

News photo

Regular Expression Derivatives in Python [pdf] [video]

News photo

15,000 lines of verified cryptography now in Python

News photo

A New ASN.1 API for Python