This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author billyeatcookies
Recipients billyeatcookies
Date 2021-12-23.14:22:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640269323.26.0.968410653987.issue46164@roundup.psfhosted.org>
In-reply-to
Content
A new `both()` operator for matching multiple variables to one at the same time.

Currently,
```py
if a == 1 and b == 1:
    ...
```

With a `both()` operator, it can be done as follows (concept):
```py
if both(a, b) == 1:
    ...
```

Why? 
-> With the increasing number of variables, it may be hard to compare each of them at once, hence this operator can help a lot in such situations. 
Of course, using lists appropriately can solve this issue easily, but a general-direct method for achieving this would be a lot helpful. This also makes the code more simplistic and easily readable and understandable.



*Sorry for the bad formatting if markdown is not supported for this comment section, I couldn't find it mentioned anywhere in the python developer's guide. Hence I'm assuming it is supported since it's a common and highly needed feature nowadays.
History
Date User Action Args
2021-12-23 14:22:03billyeatcookiessetrecipients: + billyeatcookies
2021-12-23 14:22:03billyeatcookiessetmessageid: <1640269323.26.0.968410653987.issue46164@roundup.psfhosted.org>
2021-12-23 14:22:03billyeatcookieslinkissue46164 messages
2021-12-23 14:22:03billyeatcookiescreate