New submission from Alexey Luchko :
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
New submission from Alexey Luchko :
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 inf
Alexey Luchko 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
<http://bugs.python.o
New submission from Alexey Luchko :
$ 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-2.7.3rc2/Modules
Alexey Luchko added the comment:
The error got building Python 2.7.2 & 2.7.3rc2
--
___
Python tracker
<http://bugs.python.org/issue14437>
___
___
Python
New submission from Alexey Luchko :
$ 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./Incl
Alexey Luchko 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 2
Alexey Luchko 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
Alexey Luchko 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
<http://bugs.python.org/is
New submission from Alexey Luchko :
$ 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/Python.framework/V
Alexey Luchko 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 advance %)
Thanks for refe
Alexey Luchko 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 inside quopri with String
Alexey Luchko 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 and I mean to get a text
13 matches
Mail list logo