On Mon, Mar 18, 2019 at 1:09 AM francismb <franci...@email.de> wrote: > > On 3/15/19 11:09 PM, Chris Angelico wrote: > > Python 3.5 introduced the modulo operator for bytes objects. How are > > you going to write a function that determines whether or not a piece > > of code depends on this? > I'm not sure I understand the question. Isn't *a piece of code* that > does a modulo operation on a bytes type object *at least* 3.5 python > code ? or needs *at least* that version to run ? >
Yes, it will. Can you determine whether some code does this? Can you recognize what kind of object is on the left of a percent sign? Remember, it quite possibly won't be a literal. ChrisA _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/