Skip to content
Sections
>> Trisquel >> Packages >> xolotl (13.0) >> python >> python3-parse
[  aramo  ] [  ecne  ] [  xolotl  ]
[ Source: python-parse  ]

Package: python3-parse (1.20.2-1)

Provide the reverse function for format(), Python 3 package

Parse strings using a specification based on the Python format() syntax. parse() is the opposite of format(). For example:

>>> parse("It's {}, I love it!", "It's spam, I love it!") <Result ('spam',) {}> >>> _[0] 'spam'

Or to search a string for some pattern:

>>> search('Age: {:d}\n', 'Name: Rufus\nAge: 42\nColor: red\n') <Result (42,) {}>

Other Packages Related to python3-parse

  • depends
  • recommends
  • suggests
  • dep: python3
    interactive high-level object-oriented language (default python3 version)

Download python3-parse

Download for all available architectures
Architecture Package Size Installed Size Files
all 26.4 kB86 kB [list of files]