New submission from ivank:
Build cpython master with clang -flto results in:
[...]
ar rc libpython3.5m.a Modules/_threadmodule.o Modules/signalmodule.o
Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o
Modules/_sre.o Modules/_codecsmodule.o Modules/_weakref.o
Modules
ivank added the comment:
This problem happens with Python 3.4 as well.
$ cat read_error_file.py
from __future__ import print_function
import os
fname = "/usr/bin/Xorg"
size = os.stat(fname).st_size
print(fname, "stat size:", size)
f = open(fname, "rb")
print
ivank added the comment:
I managed to reproduce this again, this time by corrupting data on a btrfs
filesystem.
$ cat read_error_file.py
import os
fname = "/usr/bin/Xorg"
size = os.stat(fname).st_size
print fname, "stat size:", size
f = open(fname, "rb"
ivank added the comment:
I'm finding it hard to reproduce the bug again with more zpool corruption. (I
see the `IOError: [Errno 5] Input/output error` exception now.) I do remember
that in the reported case, Python 3.4, node.js, and OpenJDK 7 threw an EIO
exception, but Python 2.7 di
New submission from ivank:
I intentionally corrupted a zpool to induce an I/O error in a file, in this
case, /usr/lib/x86_64-linux-gnu/gconv/IBM1390.so
# ls -l /usr/lib/x86_64-linux-gnu/gconv/IBM1390.so
-rw-r--r-- 1 root root 231,496 2014-03-24 06:26
/usr/lib/x86_64-linux-gnu/gconv/IBM1390.so
ivank added the comment:
any opinions here on what the default max_depth should be? is there any
safe number?
I'm curious as to how many C stack frames I can use after reaching the
Python recursion limit
and what ulimit -s looks like on every platform
http://hg.python.org/cpython/fil
New submission from ivank :
Decoding a highly-nested object with json (_speedups enabled) can cause a
segfault due to a stack overflow:
# python -c "import json; json.loads('[' * 10 + '1' + ']' * 10)"
zsh: segmentation fault python -c &q
ivank added the comment:
CPython's dict(obj) ignores `keys` and `__iter__` if obj is a subclass of dict.
I thought this was an important language detail, not just an implementation
quirk. But, I just tested pypy 1.3, and it is calling .keys() on dicts. Oh
well.
I think the __doc_
New submission from ivank :
It would be nice if dict.update.__doc__ conveyed some of the subtleties of the
update algorithm. See the patch. I changed __doc__ to mention the fast path
for dicts, and changed one instance of E: -> E.keys():
--
components: Interpreter Core
fi
New submission from ivank :
If you run
>>> dis.dis(lambda: 99**103)
and press Ctrl-C immediately, you'll see the numbers without constant folding:
1 0 LOAD_CONST 1 (99)
3 LOAD_CONST 2 (103)
New submission from ivank :
This probably only applies to Windows. The redundant 'b' modes still work on
Linux.
These worked on Windows in 2.6.4:
open('test', 'rbb')
open('test', 'wbb')
open('test', 'abb')
and possibl
ivank added the comment:
I believe this was fixed in r77252, which was fixing
http://bugs.python.org/issue3745
--
___
Python tracker
<http://bugs.python.org/issue6
New submission from ivank :
3 memoryview tests fail with Intel ICC 11.1. They don't fail with gcc
4.4.1-4ubuntu8 on the same machine.
==
FAIL: test_setitem_writable (__main__.BytesMemorySliceSlic
New submission from ivank :
In a checkout of Python 2.7 r76831, a large amount of files contain the
form feed character (\f, \x0C, octal \014)
$ grep --binary-files=without-match -P '\f' **/* | sort | uniq
build/scripts-2.7/smtpd.py:
Lib/base64.py:
Lib/email/base64mime.py:
ivank added the comment:
This error is just masking a Permission denied error during
source = open(source_name, 'w')
so I guess it's not very important, just annoying.
--
___
Python tracker
<http://bugs.py
New submission from ivank :
Python 2.7, svn r76655.
I ran the tests with
python2.7 Lib/test/testall.py > test-results.txt
test_linecache
test_checkcache (test.test_linecache.LineCacheTests) ... ERROR
test_clearcache (test.test_linecache.LineCacheTests) ... ok
test_getl
ivank added the comment:
The bug on the Twisted side may be of interest:
http://twistedmatrix.com/trac/ticket/3964
--
nosy: +ivank
___
Python tracker
<http://bugs.python.org/issue6
ivank added the comment:
That trac link should be http://twistedmatrix.com/trac/changeset/27062
--
nosy: +ivank
___
Python tracker
<http://bugs.python.org/issue6
New submission from ivank :
Line 1491 of xmlrpclib.py should be
self._connection = host, httplib.HTTPSConnection(chost, None, **(x509 or
{}))
instead of
self._connection = host, HTTPSConnection(chost, None, **(x509 or {}))
File
"/opt/Python-latest/lib/python2.7/site-packages/bzrlib/pl
ivank added the comment:
It no longer works with objects created with buffer() either:
>>> hashlib.sha1(buffer("x")).hexdigest()
Traceback (most recent call last):
File "", line 1, in
TypeError: object suppo
New submission from ivank :
When I built Twisted, I noticed that 'python2.7 setup.py build' created
_c_urlang.so in the wrong place:
$ find . | grep _c_url
./twisted/protocols/_c_urlarg.c
./build/lib.linux-x86_64-2.7/_c_urlarg.so
./build/temp.linux-x86_64-2.7/twisted/protocols/_c_u
Changes by ivank :
--
nosy: +ivank
___
Python tracker
<http://bugs.python.org/issue6072>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by ivank :
--
nosy: +ivank
___
Python tracker
<http://bugs.python.org/issue6071>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
23 matches
Mail list logo