[issue20512] Python3.3 segfaults when using big5hkscs encoding

2014-02-04 Thread Alexis Daboville
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

[issue20512] Python3.3 segfaults when using big5hkscs encoding

2014-02-04 Thread Alexis Daboville
Alexis Daboville added the comment: @David: yes, 10.9. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20512 ___ ___ Python-bugs-list mailing

[issue19479] textwrap.dedent doesn't work properly with strings containing CRLF

2013-11-06 Thread Alexis Daboville
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

[issue19479] textwrap.dedent doesn't work properly with strings containing CRLF

2013-11-02 Thread Alexis Daboville
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

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Alexis Daboville
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

[issue16527] (very) long list of elif causes segfault

2012-11-21 Thread Alexis Daboville
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

[issue16527] (very) long list of elif causes segfault

2012-11-21 Thread Alexis Daboville
Changes by Alexis Daboville alexis.dabovi...@gmail.com: -- components: +Interpreter Core type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16527

[issue16527] (very) long list of elif causes segfault

2012-11-21 Thread Alexis Daboville
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

[issue14433] Python 3 interpreter crash with memoryview and os.fdopen

2012-03-29 Thread Alexis Daboville
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

[issue14433] Python 3 interpreter crash on windows when stdin closed in Python shell

2012-03-29 Thread Alexis Daboville
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

[issue14433] Python 3 interpreter crash with memoryview and os.fdopen

2012-03-28 Thread Alexis Daboville
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

[issue14433] Python 3 interpreter crash with memoryview and os.fdopen

2012-03-28 Thread Alexis Daboville
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