On Tue, May 3, 2016 at 12:37 AM, Erik email@example.com wrote:
On 02/05/16 22:34, Koos Zevenhoven wrote:
On Mon, May 2, 2016 at 11:41 PM, MRAB firstname.lastname@example.org wrote:
On 2016-05-02 14:57, Koos Zevenhoven wrote: Anyway, the exception (or warning?) could be raised at compile-time if the leading-dot form was used in a 'with' that had more than one expression.
Exactly. A SyntaxError perhaps?
Now you're suggesting a SyntaxError for valid syntax ;)
No. It seems to me the signal-to-noise ratio of this thread is getting worse. Déjà vu (or French for 'already seen', if unicode fails you).
What I'm suggesting (in addition to the actual suggestion) is not to allow plain .attr attribute access inside a with statement "with multiple expressions". Kind of the same way as, for instance, break and continue are not allowed outside loops: "SyntaxError: 'continue' not properly in loop". Or the same way as plain .attr syntax is currently not allowed at all: "SyntaxError: invalid syntax".