-
Notifications
You must be signed in to change notification settings - Fork 64
Allow _ Loads? #73
Comments
yes, make it so |
Great. Do we have a resolution on attribute access (the last two cases in the example)? |
_.x should raise like all the others. X._ is none of our business. |
Actually, that it looks like a Personally, I am not happy about allowing |
I also find it is ugly, but until we make It would be different if our wildcard character were something else (e.g. I don't know what a user would be expecting who wrote
Finally, making |
Yes, that convinced me. |
There was a fair amount of pushback on this on python-dev. Honestly nothing much would be lost if we allowed |
Agreed. And we don't need to do anything, since I never actually got around to raising there. 🤷♂️ |
On second thought, allowing |
Okay, let’s remove this restriction. |
I've committed the change to the PEP: python/peps@410ba6d |
This is a bit pathological, but should we allow loading the name
_
in patterns? I think we should say "no", since it really has no place outside of obfuscated code and masks the special meaning of_
:The text was updated successfully, but these errors were encountered: