[issue18457] Fix and cleanup the ss1.py demo
Serhiy Storchaka
report at bugs.python.org
Mon Jul 15 14:07:21 CEST 2013
New submission from Serhiy Storchaka:
Here is a patch which fixes some bugs in Tools/demo/ss1.py:
* Saving formulas containing & and < symbols.
* Saving complex numbers.
Also it a little cleanups the code:
* Using xml.sax.saxutils.escape instead of html.escape.
* Using the with statement for file I/O.
* Removed out-of-dated and redundant code.
On Python 2 the ss1.py demo is totally broken due to using out-of-dated rexec module.
----------
assignee: serhiy.storchaka
components: Demos and Tools
files: demo_ss1.patch
keywords: patch
messages: 193089
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Fix and cleanup the ss1.py demo
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file30925/demo_ss1.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18457>
_______________________________________
More information about the Python-bugs-list
mailing list