Posts by Kwast • 61 points
4 posts
-
0
votes1
answer43
viewsA: Format characters do not need to be specified?
A string can be formatted at any time. The character % performs the formatting operation only when it is used as an operator. While this does not occur, the string in question can be manipulated and…
-
2
votes1
answer713
viewsA: Error: IDLE crashes after closed
This is the error of the Userdict.py file syntax in the lib directory within the Python installation. It is clear that it is an XML file and not the original source code of this module in Python.…
-
1
votes2
answers1293
viewsA: Xpath with Python
I know you don’t exactly answer your question, but have you tried using xmltodict? Module link: https://pypi.python.org/pypi/xmltodict ```python >>> doc = xmltodict.parse(""" ...…
-
3
votes2
answers4646
viewsA: How to print a txt file in Python
Until today I preferred to generate in PDF using Reportlab. It is not the most direct solution, but at least it is the most compatible. If you want to automate printing, simply invoke Adobe Reader…