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:
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)
print len(f.read()): , len(f.read
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(len(f.read()): , len(f.read
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 did
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
New submission from ivank b...@ludios.org:
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 import json; json.loads('[' * 10
ivank b...@ludios.org added the comment:
ivan` any opinions here on what the default max_depth should be? is there any
safe number?
ivan` I'm curious as to how many C stack frames I can use after reaching the
Python recursion limit
ivan` and what ulimit -s looks like on every platform
ivank b...@ludios.org 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
New submission from ivank b...@ludios.org:
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
New submission from ivank i...@ludios.org:
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)
6 BINARY_POWER
New submission from ivank i...@ludios.org:
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 possibly others.
In 2.7a2, they throw ValueErrors like
ivank i...@ludios.org added the comment:
I believe this was fixed in r77252, which was fixing
http://bugs.python.org/issue3745
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6071
New submission from ivank i...@ludios.org:
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__.BytesMemorySliceSliceTest
New submission from ivank i...@ludios.org:
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
New submission from ivank i...@ludios.org:
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_getline
ivank i...@ludios.org 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 rep...@bugs.python.org
http
ivank i...@ludios.org added the comment:
The bug on the Twisted side may be of interest:
http://twistedmatrix.com/trac/ticket/3964
--
nosy: +ivank
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6906
ivank i...@ludios.org added the comment:
That trac link should be http://twistedmatrix.com/trac/changeset/27062
--
nosy: +ivank
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6844
New submission from ivank i...@ludios.org:
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
ivank i...@ludios.org added the comment:
It no longer works with objects created with buffer() either:
hashlib.sha1(buffer(x)).hexdigest()
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: object supporting the buffer API required
New submission from ivank i...@ludios.org:
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
Changes by ivank i...@ludios.org:
--
nosy: +ivank
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6071
___
___
Python-bugs-list mailing list
Changes by ivank i...@ludios.org:
--
nosy: +ivank
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6072
___
___
Python-bugs-list mailing list
23 matches
Mail list logo