Re: Fwd: PEP: add a `no` keyword as an alias for `not`

2019-08-01 Thread Grant Edwards
On 2019-08-01, Daniel Okey-Okoro wrote: > But in many cases, when people write `if not val` they're checking if the > val is `None` > > i.e. `if val is None`, `if val == None` If they want to know if val is None, then they should be typing 'val is None'. IMO, it's not an improvement to let them

Re: Fwd: PEP: add a `no` keyword as an alias for `not`

2019-08-01 Thread Karsten Hilbert
On Thu, Aug 01, 2019 at 01:25:21PM -0700, Daniel Okey-Okoro wrote: > Good point Calvin, > > But in many cases, when people write `if not val` they're checking if the > val is `None` > > i.e. `if val is None`, `if val == None` > > (so in

Fwd: PEP: add a `no` keyword as an alias for `not`

2019-08-01 Thread Daniel Okey-Okoro
-- Forwarded message - From: Daniel Okey-Okoro Date: Thu, Aug 1, 2019 at 1:24 PM Subject: Re: PEP: add a `no` keyword as an alias for `not` To: Calvin Spealman Good point Calvin, But in many cases, when people write `i