PEP 750: Tag Strings For Writing Domain-Specific Languages

On the plus side, it offers a form of “decimal literal” (which has been requested many times) for free:

from decimal import Decimal as D

dec_num = D"2.71828"
12 Likes