4 ms·
If you run that in a script, then you get True for all statements. Reason: when running a file, the interpreter reads the entire script and can make the optimiz
by Scene_Cast2 6y ago
If you run that in a script, then you get True for all statements. Reason: when running a file, the interpreter reads the entire script and can make the optimization that both variables are the same objects, since they're not mutated.