[issue11488] Add writelines test coverage in tempfile
New submission from ev : Ran coverage.py and noticed that writelines had no coverage in tempfile, so I added it in. -- components: Tests files: test_tempfile_writelines.patch keywords: patch messages: 130778 nosy: brian.curtin, ev, georg.brandl priority: normal severity: normal status: open title: Add writelines test coverage in tempfile type: behavior Added file: http://bugs.python.org/file21106/test_tempfile_writelines.patch ___ Python tracker <http://bugs.python.org/issue11488> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)
EV added the comment: I have an issue with the assumption that if all parameters are forced to be prepended by -- instead of only one dash, that you would then convert the -- to a single dash and have issues with single-dashed strings, when all other parameters are dual-dashed. This is especially crazy if the user specifies that prefix_chars="--" when creating the parser! You wouldn't mix up ** with * just because it's a two char string, so why do this for -- in this day and age when parameters can take on very different and complicated structures?! -- nosy: +fennec15 ___ Python tracker <https://bugs.python.org/issue9334> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15109] sqlite3.Connection.iterdump() dies with encoding exception
New submission from Ev Kontsevoy :
When calling connection.iterdump() on a database with non-ASCII string values,
the following exception is raised:
File "/python-2.7.3/lib/python2.7/sqlite3/dump.py", line 56, in _iterdump
yield("{0};".format(row[0]))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 48-51:
ordinal not in range(128)
The older versions used the following (safer) version in
/python-2.7.3/lib/python2.7/sqlite3/dump.py:56:
yield("%s;" % row[0])
--
components: Library (Lib)
messages: 163227
nosy: ekontsevoy
priority: normal
severity: normal
status: open
title: sqlite3.Connection.iterdump() dies with encoding exception
versions: Python 2.7
___
Python tracker
<http://bugs.python.org/issue15109>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15109] sqlite3.Connection.iterdump() dies with encoding exception
Changes by Ev Kontsevoy : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue15109> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15109] sqlite3.Connection.iterdump() dies with encoding exception
Ev Kontsevoy added the comment: Proposed fix: maybe yield(u"%s;" % row[0]) or simply row[0] + ";"? -- ___ Python tracker <http://bugs.python.org/issue15109> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15109] sqlite3.Connection.iterdump() dies with encoding exception
Ev Kontsevoy added the comment: If the behavior of string.format() can be fixed to act identically to u"%s" % "" that would be simply wonderful! Currently at work we have a rule in place: to never use string.format() since it cannot be used for anything but constants due to encoding exceptions. -- ___ Python tracker <http://bugs.python.org/issue15109> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15109] sqlite3.Connection.iterdump() dies with encoding exception
Ev Kontsevoy added the comment: I am attaching death.py file which dies on string.format() The stack trace above is at the full depth. Python doesn't print anything from inside of format(). -- Added file: http://bugs.python.org/file26057/death.py ___ Python tracker <http://bugs.python.org/issue15109> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
