News
In C and C++, it’s the switch/case construction; in Rust, it’s called “pattern matching.” The traditional ways to do this in Python aren’t elegant. One is to write an if/elif/else chain ...
Previous PEPs to add pattern matching — PEP 275 and PEP 3103, proposed in 2001 and 2006 respectively — were turned down due to lack of popular support.PEP 3103 was drafted by Python creator ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results