Eric V. Smith added the comment:
Yes, this should be discussed on python-ideas first, so I'm closing it here.
But to be honest with you, there's really no chance this would get accepted.
It's just too easy to do it with existing list comprehension syntax, which is
much more general purpose.
Karthikeyan Singaravelan added the comment:
I guess you are popping 2 from the list and using except for the same. New
syntax and semantics needs to be discussed in python-ideas mailing list. Though
this reads like English except is used for exception based semantics. I would
propose
New submission from Артур Григорьев :
Is is possible to add to Python the following syntax (keyword 'except'):
[1, 2, 3, 4, 5] except [2]
>>> [1, 3, 4, 5]
--
messages: 348238
nosy: Артур Григорьев
priority: normal
severity: normal
status: open
title: Except clause
type: enhancement