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
On 29.03.2012 21:29, David Robinow wrote:
Have you included the patch to Include/py_curses.h ?
If you don't know what that is, download the cygwin src package for
Python-2.6 and look at the patches. Not all of them are still
Thanks for the hint. With cygwin's 2.6.5-ncurses-abi6.patch it
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
JFI
Reported as
http://bugs.python.org/issue14437
http://bugs.python.org/issue14438
--
Regars,
Alex
--
http://mail.python.org/mailman/listinfo/python-list
On 28.03.2012 18:42, David Robinow wrote:
On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchkol...@ank-sia.com wrote:
I've tried to build Python 2.7.3rc2 on cygwin and got the following errors:
$ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/
./configure
I haven't tried
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
Hi!
I've tried to build Python 2.7.3rc2 on cygwin and got the following errors:
$ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/ ./configure
$ 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
On 28.03.2012 14:50, Alexey Luchko wrote:
Hi!
I've tried to build Python 2.7.3rc2 on cygwin and got the following errors:
$ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/
./configure
$ make
...
gcc -shared -Wl,--enable-auto-image-base
build/temp.cygwin-1.7.11-i686-2.7/Python
Example script.py:
def f(arg):
return g(arg)
def g(arg):
return arg
Reading the Lib/runpy.py I've found, that the temporary module created
inside the run_path() calls, is destroyed right after the script.py code
executed in the resulting namespace.
I've got an idea. It would be
Hi!
I've just had fun with the runpy module in Python 2.7. I'm writing to
share it :)
What I've tried is to load a python script using runpy.run_path(), take a
function from the resulting namespace and call it with arbitrary arguments.
All the functions in the namespace seem to be ok.
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
20 matches
Mail list logo