[Tutor] How to update only set CLI args?

Cameron Simpson cs at cskk.id.au
Tue Jan 18 03:28:39 EST 2022


On 17Jan2022 20:17, Leam Hall <leamhall at gmail.com> wrote:
>On 1/17/22 19:19, Cameron Simpson wrote:
>>     if value is not None:
>
>That was my goal, but I didn't have the syntax. I had tried:
>
>  if value not None:
>
>Code updated, thanks!

None is a singleton, so you really want an object identity check, thus 
"is" (am I looking at this specific object?). Or of course "is not".

Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Tutor mailing list