[Python-ideas] Code version evolver
rosuav at gmail.com
Sun Mar 17 10:13:29 EDT 2019
On Mon, Mar 18, 2019 at 1:09 AM francismb <francismb at 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.
More information about the Python-ideas