Skip to content
murmot

Results for “python parse string example program code site:wiki.python.org 1”

  • wiki.python.org

    Powerful Python One-Liners - Python Wiki

    The source code is contributed from different Python coders — Thanks to all of them! ... Escapes content from stdin¶. This can be used to convert a string into a ...

  • wiki.python.org

    LanguageParsing

    Recursive descent parsing library for Python based on functional combinators.A pure Python LR/GLR parser with integrated scanner (scannerless). Grammar in BNF format. Automata/GLR trace visualization. Full documentation and examples available.

  • wiki.python.org

    Python 3k String Repr

    Convert CR, LF, TAB and '' to '\r', '\n', '\t', '\'. · Convert non-printable ASCII characters(0x00-0x1f, 0x7f) to '\xXX'. · Convert leading surrogate pair ...

  • wiki.python.org

    Simple Programs - Python Wiki

    For current documentation, see python.org. The examples below will increase in number of lines of code and difficulty: 1 line: Output. print ('Hello, world ...

  • wiki.python.org

    Py3k String Formatting - Python Wiki

    String formatting methods in Python 3000, based on PEP 3101¶ · "{0:{1}}".format(a, b). By design you cannot embed arbitrary expressions in format strings. · "My ...

  • wiki.python.org

    Learn Python - Python Wiki

    Learning python by example. Python XML & XSLT¶. Create and add elements¶. from xml.dom.minidom import parseString. creating new document, and root element at the same time.

  • wiki.python.org

    Bit Manipulation - Python Wiki

    Some simple code is at ActiveState Code Recipes: Bit-field manipulation (in Python 2 syntax). Here are some other examples. Manipulations¶. To integer. 1 > ...

  • wiki.python.org

    Executable Modules - Python Wiki

    lowercase' - Run some setup code ( import string ), and then run test code ... A fully-featured script should use a library to parse the command line, such as ...