Aaron Brady <[EMAIL PROTECTED]> wrote: >> a[:] = [1, 2, 3] > > No, that's not assignment, it's syntactic sugar for a __setslice__ > call. No copies here. >
Oh dear, perhaps you had better get the Python developers to update the grammar that Python uses as that seems to think it's an assignment: assignment_stmt ::= (target_list "=")+ (expression_list | yield_expression) target_list ::= target ("," target)* [","] target ::= identifier | "(" target_list ")" | "[" target_list "]" | attributeref | subscription | slicing :^) -- Duncan Booth http://kupuguy.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list