skip to navigation
skip to content

Not Logged In

StringFormat 0.5

Advanced String Formatting for Python >= 2.4

StringFormat is an independent port of the Python 3 advanced string formatting, compatible with Python >= 2.4. This implementation is pure Python.

Add the method str.format only if it is missing (Python < 2.6):

import stringformat


Enable auto-numbering fields ("{} {}" instead of "{0} {1}") with Python 2.6 also:

import sys
import stringformat

if sys.version_info < (2, 7):

The advanced string formatting is officially included in the language since Python 2.6.

File Type Py Version Uploaded on Size
StringFormat-0.5.tar.gz (md5) Source 2012-05-26 10KB
  • Downloads (All Versions):
  • 15 downloads in the last day
  • 80 downloads in the last week
  • 410 downloads in the last month