Most keywords in Python make linguistic sense, but using "else" in for and while structures is kludgy and misleading. I am under the assumption that this was just utilizing an already existing keyword. Adding another like "andthen" would not be good.
But there is already a reserved keyword that would work great here. "finally". It is already a known keyword used in try blocks, but would work perfectly here. Best of all, it would actually make sense. Unfortunately, it wouldn't follow the semantics of try/except/else/finally. Is it better to follow the semantics used elsewhere in the language, or have the language itself make sense semantically? I think perhaps "finally" should be added to for and while to do the same thing as "else". What do you think? -- https://mail.python.org/mailman/listinfo/python-list