<div dir="ltr">Since I already spent a bunch of time on this, I did a PR:<div><br></div><div><a href="https://github.com/jfine2358/py-jfine2358/pull/2">https://github.com/jfine2358/py-jfine2358/pull/2</a><br></div><div><br></div><div>further discussion should probably be in that PR / repo</div><div><br></div><div>-CHB</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 15, 2018 at 9:02 AM, Chris Barker - NOAA Federal <span dir="ltr"><<a href="mailto:chris.barker@noaa.gov" target="_blank">chris.barker@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> None is keyword, and just like any other keyword, it can't be re-bound.<br>
<br>
<br>
</span><span class="">>> it's only a keyword because Python doesn't otherwise have a way of creating non-rebindable names. It's purpose is to represent the singular object of NoneType, and in that sense it's a literal as much as [] or "".<br>
<br>
</span>We’re getting kind of pedantic here, but no, it’s not “as much as” — [] and “” create new instances of a list or string.<br>
<br>
For the purposes of this document, however, these are pretty esoteric distinctions. <br>
<br>
What the docs should make clear is that None ( and True and False ) is a singleton— None will always refer to the SAME None object.<br>
<br>
And that can be demonstrated by showing that you can’t rebind the name None.<br>
<br>
But I think it’s misleading to say that that is the same as:<br>
<br>
42 = “something else”<br>
<br>
None is syntactical a name like any other — what’s special about is that it can’t be rebound.<br>
<br>
-CHB<br>
<div class="HOEnZb"><div class="h5"><br>
> <br>
> -- <br>
> Rhodri James *-* Kynesim Ltd<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R (206) 526-6959 voice<br>7600 Sand Point Way NE (206) 526-6329 fax<br>Seattle, WA 98115 (206) 526-6317 main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div>