[Python-Dev] Add more SyntaxWarnings?

Eric V. Smith eric at trueblade.com
Thu Jan 24 18:32:08 EST 2019


On 1/24/2019 6:16 PM, Eric V. Smith wrote:
> On 1/24/2019 5:52 PM, Chris Angelico wrote:
>> +1. If it's something that the peephole optimizer is already allowed
>> to change (eg "1"+"1" is constant-folded) and there is absolutely no
>> way that it can ever be changed at run time, then raising at compile
>> time can't hurt [1]. It'd be as implementation-dependent and
>> version-dependent as the peephole optimizer itself.
>
> It would be a change if the code is never called. I'm not sure we care 
> about code that's never called, but it is a change.
>
Which Chris already pointed out, in some text that I inadvertently 
deleted. I didn't catch his meaning, which is my fault.

Eric



More information about the Python-Dev mailing list