_______________________________________________ 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/R3AHJZ5IUDJ3H7APVORR3R25QS3BFR77/ Code of Conduct: http://python.org/psf/codeofconduct/
I'm parsing configs for domain filtering rules, and they come as a list.
However, str.endswith requires a tuple. So I need to use
str.endswith(tuple(list)). I don't know the reasoning for this, but why
not just accept a list as well?
- [Python-ideas] Why not accept lists or arb... Soni L.
- [Python-ideas] Re: Why not accept lis... Andrew Barnert via Python-ideas
- [Python-ideas] Re: Why not accept... Steve Jorgensen
- [Python-ideas] Re: Why not ac... Andrew Barnert via Python-ideas
- [Python-ideas] Re: Why no... Steve Jorgensen
- [Python-ideas] Re: W... Andrew Barnert via Python-ideas
- [Python-ideas] R... Steve Jorgensen