4 ms·
You assume "in valid_emails_set" doesn't make a query. It's fairly trivial to define your own __contains__ in python.
by tantalor 13y ago
You assume "in valid_emails_set" doesn't make a query.
It's fairly trivial to define your own __contains__ in python.
- masklinn 13y agoIndeed, since this is an internal system validating the uni's own emails it could easily query the uni's MSA for valid addresses. Although for a set of 80k items and long-running processes (fcgi or wsgi) you could also load the whole thing in memory directly and not bother with a custom `__contains__`.