Alexey Luchko <soulne...@gmail.com> added the comment:
1. On quopri.
It is counter-intuitive despite the clear statement in the doc-string.
Quoted-printable is used mostly for text encoding. (It would be quite awkward
and inefficient to use it for binary data.)
My case: I have a text
Alexey Luchko <soulne...@gmail.com> added the comment:
I didn't mean type checking. The point is that since string and bytes are
different types, then binary and text files are actually much more different
than before python 3. Therefore they better be of different protocols.
Then
Alexey Luchko <soulne...@gmail.com> added the comment:
Yes. With io.BytesIO() output, it works.
However, this kind of error messages is quite very confusing. It better be
possible to distinguish binary and text streams, so one (including quopri
module) could tell it won't work in a
New submission from Alexey Luchko <soulne...@gmail.com>:
$ python3 -c 'import io, quopri; quopri.decode(io.StringIO("some initial text
data"), io.StringIO())'
Traceback (most recent call last):
File "", line 1, in
File
"/opt/local/Library/Frameworks/Py
Alexey Luchko l...@ank-sia.com added the comment:
Final 2.7.3 didn't get the fix.
Checked http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.xz
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14437
Alexey Luchko l...@ank-sia.com added the comment:
It's cygwin's issue. Cygwin's python 2.6 has a patch for it.
Just in case:
--- origsrc/Python-2.6.5/Include/py_curses.h2009-09-06 16:23:05.0
-0500
+++ src/Python-2.6.5/Include/py_curses.h2010-04-14 15:21:23.008971400
-0500
New submission from Alexey Luchko l...@ank-sia.com:
$ make
...
gcc -shared -Wl,--enable-auto-image-base
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/bufferedio.o
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/bytesio.o
build/temp.cygwin-1.7.11-i686-2.7/Python
Alexey Luchko l...@ank-sia.com added the comment:
The error got building Python 2.7.2 2.7.3rc2
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14437
New submission from Alexey Luchko l...@ank-sia.com:
$ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/ ./configure
$ make
...
building '_curses' extension
gcc -fno-strict-aliasing -I/usr/include/ncursesw/ -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I. -IInclude -I
Alexey Luchko l...@ank-sia.com added the comment:
Checked solution by David Robinow
http://mail.python.org/pipermail/python-list/2012-March/1290038.html
It works. Diff follows:
--- Modules/_io/_iomodule.h.orig2012-03-16 03:26:36.0 +0200
+++ Modules/_io/_iomodule.h 2012-03
Alexey Luchko l...@ank-sia.com added the comment:
I reported the issue just because I didn't find it is already known.
I don't think it is worth backporting.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11098
New submission from Alexey Luchko l...@ank-sia.com:
Interactive python -u produces syntax error in win2k:
python -u
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on
win32
Type help, copyright, credits or license for more information.
1+1
File stdin, line 1
New submission from Alexey Luchko l...@ank-sia.com:
OrderedDict.viewitems() is expected to preserve item order like items() do
from collections import OrderedDict
d = OrderedDict([(1, 2), (a, b)])
d.items()
[(1, 2), ('a', 'b')]
But it does not:
list(d.viewitems())
[('a', 'b'), (1, 2
13 matches
Mail list logo