Alexis Daboville added the comment:
@David: yes, 10.9.
--
___
Python tracker
<http://bugs.python.org/issue20512>
___
___
Python-bugs-list mailing list
Unsub
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 56
Alexis Daboville added the comment:
Added patch.
--
keywords: +patch
Added file: http://bugs.python.org/file32519/dedent.patch
___
Python tracker
<http://bugs.python.org/issue19
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 th
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('
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
Changes by Alexis Daboville :
--
components: +Interpreter Core
type: -> crash
___
Python tracker
<http://bugs.python.org/issue16527>
___
___
Python-bugs-lis
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
Alexis Daboville 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/ayT9
Alexis Daboville added the comment:
> And D isn't how you shut down the interpreter on Windows, is it?
No Z + is the equivalent (D does nothing under Windows,
except "printing" ^D).
And in a cmd window it just print another prompt (that's strange that it
doesn'
Alexis Daboville 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 D
> at the interactive interpreter prompt.
Not exactl
New submission from Alexis Daboville :
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 do
12 matches
Mail list logo