[issue215555] Parser crashes for deeply nested list displays

2022-04-10 Thread admin
Change by admin : -- github: None -> 33223 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue215555] Parser crashes for deeply nested list displays

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

list displays

2011-01-08 Thread Olive
I am a newbie to python. Python supports what I thinks it is called list display, for example: [i for i in range(10)] [i for i in range(10) if i6] Does anyone know a good documentation for this. I have read the language reference but it is confusing. Olive --

Re: list displays

2011-01-08 Thread Daniel da Silva
They're called List Comprehensions http://docs.python.org/tutorial/datastructures.html#list-comprehensions http://docs.python.org/tutorial/datastructures.html#list-comprehensions On Sat, Jan 8, 2011 at 4:57 PM, Olive not0read0...@yopmail.com wrote: I am a newbie to python. Python supports what

Re: list displays

2011-01-08 Thread Chris Rebert
On Sat, Jan 8, 2011 at 1:57 PM, Olive not0read0...@yopmail.com wrote: I am a newbie to python. Python supports what I thinks it is called list display, for example: [i for i in range(10)] [i for i in range(10) if i6] Does anyone know a good documentation for this. I have read the language

Re: list displays

2011-01-08 Thread Steven D'Aprano
On Sat, 08 Jan 2011 22:57:45 +0100, Olive wrote: I am a newbie to python. Python supports what I thinks it is called list display, for example: [i for i in range(10)] [i for i in range(10) if i6] This is called a list comprehension, not list display. Does anyone know a good

[issue215555] Parser crashes for deeply nested list displays

2008-01-21 Thread Ralf Schmitt
Ralf Schmitt added the comment: Ok, I've upped the limit to some very high value and tried to provoke a stack overflow. eval([*x+]*x) segfaults on my machine for x somewhere around 2 (linux, amd64). When setting MAXSTACK to 5000 eval([*x+]*x) works for x = 333. So, I guess this should be

[issue215555] Parser crashes for deeply nested list displays

2008-01-21 Thread Christian Heimes
Christian Heimes added the comment: Parser/parser.h was not in the list of dependencies. I fixed it in r60151 -- nosy: +tiran Tracker [EMAIL PROTECTED] http://bugs.python.org/issue21

[issue215555] Parser crashes for deeply nested list displays

2008-01-18 Thread Ralf Schmitt
Ralf Schmitt added the comment: Ofcouse the problem was not logging, but I wanted to replay those commands. This is where I got the error. Tracker [EMAIL PROTECTED] http://bugs.python.org/issue21

[issue215555] Parser crashes for deeply nested list displays

2008-01-18 Thread Ralf Schmitt
Ralf Schmitt added the comment: Well, I've been a victim of this one yesterday in a real world example. I'm logging the repr of arguments to XMLRPC method calls and we happen to use nested lists, which where deep enough to overflow that stack. It's now 8 years later and I can live with the

[issue215555] Parser crashes for deeply nested list displays

2008-01-18 Thread Guido van Rossum
Guido van Rossum added the comment: Fine, submit a patch. Might as well open a new bug for the patch (referring to this one for background). Tracker [EMAIL PROTECTED] http://bugs.python.org/issue21

[issue215555] Parser crashes for deeply nested list displays

2008-01-17 Thread Ralf Schmitt
Changes by Ralf Schmitt: -- nosy: +schmir Tracker [EMAIL PROTECTED] http://bugs.python.org/issue21 ___ Python-bugs-list mailing list Unsubscribe:

[ python-Bugs-1071248 ] Documented grammar for List displays incorrect (testlist)

2006-07-30 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Documentation Group: Python 2.4 Status: Closed Resolution: Later Priority: 5 Submitted By: Lenard Lindstrom (kermode) Assigned to: Jeremy Hylton (jhylton) Summary: Documented grammar for List displays

[ python-Bugs-1071248 ] Documented grammar for List displays incorrect (testlist)

2004-12-16 Thread SourceForge.net
Priority: 5 Submitted By: Lenard Lindstrom (kermode) Assigned to: Jeremy Hylton (jhylton) Summary: Documented grammar for List displays incorrect (testlist) Initial Comment: In section 5.2.4 of the Python Reference Manual for Pythons 2.4 and 2.3 the definition testlist ::= test ( , test

[ python-Bugs-1071248 ] Documented grammar for List displays incorrect (testlist)

2004-12-15 Thread SourceForge.net
Priority: 5 Submitted By: Lenard Lindstrom (kermode) Assigned to: Nobody/Anonymous (nobody) Summary: Documented grammar for List displays incorrect (testlist) Initial Comment: In section 5.2.4 of the Python Reference Manual for Pythons 2.4 and 2.3 the definition testlist ::= test ( , test