Menu

#1 error detection for open list brace on multiple lines

v1.0 (example)
open
nobody
5
2008-06-18
2008-06-18
Anonymous
No

When, i'm initializing a collection with the following structure, the editor found severals errors such as " ')' expected or unexpected token". But the script is syntaxycally correct and runs without problem.

Here the script

1 class Collection(object):
2 def __init__(self, items):
3 self.items = items
4 class Item(object):
5 def __init__(self,n):
6 self.n = n
7
8 c = Collection( [
9 Item(1)
10 , Item(2)
11 , Item(3)
12 ] )

errors
line 8 : ')' expected
line 9 : ')' expected
line 10 : unexpected token ','
line 11 : unexpected token ','
line 12 : unexpected token ']'

Versions :
- python editor plugin for netbeans 6 : v 1.1
- netbeans 6.1

Discussion


Log in to post a comment.