santinic / pampy

Pampy: The Pattern Matching for Python you always dreamed of.
MIT License
3.51k stars 125 forks source link

_ is unsafe to use #3

Closed nils-werner closed 5 years ago

nils-werner commented 5 years ago

_ already has several uses in Python:

All of this can, as I imagine, lead to very unexpected behaviour.

santinic commented 5 years ago

You can do from pampy import match, ANY. ANY is identical to _. Maybe it's not clear enough from the README.

You can also do from pampy import _ as WHATEVER.

Thank you for the note.