[Pythonmac-SIG] NSTableView and NSOutlineView backgrounds
Bob Ippolito
bob at redivi.com
Wed Oct 15 09:21:02 EDT 2003
On Wednesday, Oct 15, 2003, at 09:06 America/New_York, Jack Jansen
wrote:
>
> On Wednesday, October 15, 2003, at 12:35 PM, Ronald Oussoren wrote:
>
>>> I've been thinking about it. And the nice thing is that "[" cannot
>>> currently
>>> occur as the start symbol for an expression, and I think a NAME
>>> after an
>>> expression is also safe, so adding rules like
>>> atom: '[' test methodarg* ']'
>>> methodarg: NAME ':' test
>>> should work...
>>
>> I'm probably very dense, but isn't '[' the start of a list literal or
>> list comprehension and therefore a valid start of an expression or
>> statement?.
>
> No, it is *me* who is dense. Jack: open mouth, insert foot:-)
Surely it would be theoretically parsable with no class between list
literals or comprehensions.. you wouldn't have commas, or if you did,
they would be after a colon.. and you wouldn't have the keywords "for"
or "in". It probably wouldn't fit very well into the Python parser
though.
-bob
More information about the Pythonmac-SIG
mailing list