<br><br><div class="gmail_quote">On Mon, Mar 30, 2009 at 2:23 PM, Jim Garrison <span dir="ltr"><<a href="mailto:jhg@acm.org">jhg@acm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">Jim Garrison wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
IDLE (3.1a1) accepts<br>
<br>
    a,*b = re.split(str,pattern)<br>
<br>
and does the right thing ('a' gets the first result and 'b' gets<br>
the rest).<br>
<br>
pydev configured to use the exact same Python 3.1a1 runtime doesn't<br>
like this syntax (in my source, column 23 is the asterisk):<br>
<br>
Encountered "*" at line 32, column 23. Was expecting one of: <NEWLINE> ...     ";" ...     "=" ...<br>
 "+=" ...     "-=" ...     "*=" ...     "/=" ...     "//=" ...     "%=" ...     "&=" ...     "|=" ...     "^=" ...<br>
 "<<=" ...     ">>=" ...     "**=" ...     "lambda" ...     "not" ...    "+" ...     "-" ...     "~" ...     "(" ...<br>

 "[" ...     "{" ...     "False" ...     "True" ...     "None" ... <NAME> ...     <HEXNUMBER> ...<br>
 <OCTNUMBER> ...     <DECNUMBER> ...     <FLOAT> ...     <COMPLEX> ...     "\'" ...     "\"" ...<br>
 "\'\'\'" ...     "\"\"\"" ...     "\'" ...     "\"" ...     "\'\'\'" ...     "\"\"\"" ...<br>
<br>
Can I assume pydev is wrong or am I missing something?<br>
</blockquote>
<br></div></div>
I should add that this seems to affect only the occurrence of the<br>
syntax error marker (red X and red underline). The code runs<br>
correctly.<div><div></div><div class="h5"></div></div></blockquote><div><br>Pydev does its own syntax checking. You probably have the grammar version set to 2.5 or 2.6, so the syntax checker doesn't like it, but then run it through the Python 3 interpreter. Go to the project's properties and under Pydev- Project Type, change the grammar version to 3.0.<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="h5"><br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>