New submission from Alexis Daboville:
When using the 'big5hkscs' encoding it's possible to make Python3.3 segfault,
here is how to repro:
✗ 13:41 adaboville @ adoboville-mbp in ~ $ py3
Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3
Alexis Daboville added the comment:
@David: yes, 10.9.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20512
___
___
Python-bugs-list mailing
Alexis Daboville added the comment:
Added patch.
--
keywords: +patch
Added file: http://bugs.python.org/file32519/dedent.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19479
New submission from Alexis Daboville:
If a string contains an empty line and is using CRLF newlines instead of LF
newlines textwrap.dedent doesn't work properly: it returns the original string
w/o dedenting it.
As far as I can tell it's because it considers the empty string to be the
longest
Alexis Daboville added the comment:
I don't think it can be fixed with sys.setrecursionlimit for a few reasons:
* I think the issue arises when the AST is built. Otherwise if we put code
before the if it would execute. But that's not the case (try putting a
print('hello') before
New submission from Alexis Daboville:
Hi,
It looks like using a very long list of elif makes CPython segfault. You can
try it with the attached file, which looks like this:
if False:
pass
elif False:
pass
# thousands of elifs
elif False:
pass
$ python elif_segfault.py
Changes by Alexis Daboville alexis.dabovi...@gmail.com:
--
components: +Interpreter Core
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16527
Alexis Daboville added the comment:
I had the feeling that there was a possible issue when reading how elifs were
represented in the AST. I'm not insane enough to write so many elifs in a real
program ;).
I totally agree on the 'nice to have' part rather than 'required
Alexis Daboville alexis.dabovi...@gmail.com added the comment:
And ctlD isn't how you shut down the interpreter on Windows, is it?
No ctrlZ + enter is the equivalent (ctrlD does nothing under Windows,
except printing ^D).
And in a cmd window it just print another prompt (that's strange
Alexis Daboville alexis.dabovi...@gmail.com added the comment:
@Amaury: ok thanks, I never heard of this argument before.
I tried to reproduce the crash in the Python shell embedded in IDLE and there's
no crash (same version 3.2.2, Windows 7): http://i.imgur.com/ayT96.png
New submission from Alexis Daboville alexis.dabovi...@gmail.com:
Hi,
I was playing with memoryviews when I found this behaviour, launch the Python
shell, and then enter the following:
import os
memoryview(os.fdopen(0))
A TypeError cannot make memory view because object does not have
Alexis Daboville alexis.dabovi...@gmail.com added the comment:
First, thank you all for the explanations (sorry for the misleading title about
the memoryview, should I rename it?).
@Brian: this isn't a crash. It is completely equivalent to pressing ctlD
at the interactive interpreter
12 matches
Mail list logo