This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 210674 - Unpacking list with "*"
Summary: Unpacking list with "*"
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Jenselme
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-04 09:02 UTC by yotamofek
Modified: 2015-05-27 20:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yotamofek 2012-04-04 09:02:52 UTC
The following snippet from the python documentation is parsed as an error:

def grouper(n, iterable, padvalue=None):
    return izip_longest(*([iter(iterable)]*n), fillvalue=padvalue)
Comment 1 Lou Dasaro 2015-05-26 02:52:02 UTC
Referring to Julien for analysis...
Comment 2 Jenselme 2015-05-26 21:14:14 UTC
I have the same error on the latest build:
Product Version: NetBeans IDE Dev (Build 201505240001)
Java: 1.7.0_79; OpenJDK 64-Bit Server VM 24.79-b02
Runtime: OpenJDK Runtime Environment 1.7.0_79-b14
System: Linux version 3.16.7-21-desktop running on amd64; UTF-8; fr_FR (nb) 

With the update of jython-parser to 2.7.0, this is fixed. I hope I will be able to push the changes soon.
Comment 3 Jenselme 2015-05-27 20:29:44 UTC
This syntax is now correctly supported with this commit http://hg.netbeans.org/main/contrib/rev/7268510f9338