Dear The PEP Community,

Happy New Year!

I'm assuming there's been discussions on this already! I checked the
current PEP list and issue tracker, but to no avail.

*Can someone point me to wherever it has or is taking place?*

The functionality that I'm thinking about is:

match (named_tuple_object.*missing_attribute*, a_random_string):
    case *AttributeError*, "Catching an attribute error":
        print("Catches as attribute error")
    case *err:= AttributeError*, "Assigns an attribute error as err":
        print(f"This is the captured attribute error: {*err*}")

Sincerely,

elvis kahoro <https://www.warp.dev/about-us>
he/him/his
DevX @ Warp <https://blog.warp.dev/how-warp-works/>

Warp Blog <https://blog.warp.dev/>
Warp Docs <https://docs.warp.dev/>
Warp Twitter <https://twitter.com/warpdotdev>
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/FLAEU7VFYM7M4ZKUP5VYH2KDPBPWKM3W/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to