<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>So, there is a difference between None and False, is that the issue? I don’t necessarily see the difference as stated in the subject line. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>A=True<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If  A == True<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If A<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Is this the crux of the issue?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>BTW, the feedback to my submittal suggests that this is a difference with no distinction.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Clayton<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> wesley chun [mailto:wescpy@gmail.com] <br><b>Sent:</b> Monday, November 10, 2014 11:35 PM<br><b>To:</b> crk@godblessthe.us<br><b>Cc:</b> Ben Finney; tutor<br><b>Subject:</b> Re: [Tutor] “has a value of True” versus “evaluates true” (was: don't understand iteration)<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>good catch, and definitely a distinction beginners should be more cognizant of.<br><br>it's also good to recognize that a call to "bool(match)" would render that statement correct, as the built-in/factory function will return what an object evaluates to (True [re.match object] or/vs.False [None]).<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Mon, Nov 10, 2014 at 5:31 PM, Clayton Kirkwood <<a href="mailto:crk@godblessthe.us" target="_blank">crk@godblessthe.us</a>> wrote:<o:p></o:p></p><p class=MsoNormal>I reported it. I feel all grown up now. Kind of like one of the boys(girls...)<br><span style='color:#888888'><br><span class=hoenzb>Clayton:<)</span></span><o:p></o:p></p><div><div><p class=MsoNormal><br><br>>-----Original Message-----<br>>From: Tutor [mailto:<a href="mailto:tutor-bounces%2Bcrk">tutor-bounces+crk</a>=<a href="mailto:godblessthe.us@python.org">godblessthe.us@python.org</a>] On<br>>Behalf Of Ben Finney<br>>Sent: Monday, November 10, 2014 3:24 PM<br>>To: <a href="mailto:tutor@python.org">tutor@python.org</a><br>>Subject: [Tutor] “has a value of True” versus “evaluates true” (was:<br>>don't understand iteration)<br>><br>>"Clayton Kirkwood" <<a href="mailto:crk@godblessthe.us">crk@godblessthe.us</a>> writes:<br>><br>>> Also of confusion, the library reference says:<br>>><br>>> Match objects always have a boolean value of True. Since match() and<br>>> search() return None when there is no match, you can test whether<br>>> there was a match with a simple if statement:<br>>><br>>> match = re.search(pattern, string)<br>>> if match:<br>>>     process(match)<br>><br>>The documentation is incorrect, as you point out: “have a boolean value<br>>of True” implies that the value is identical to the built-in ‘True’<br>>constant, which is never the case for these objects.<br>><br>>Instead, the passage above should say “evaluates true in a boolean<br>>context”.<br>><br>>Would you be so kind as to report a bug to that effect<br>><URL:<a href="http://bugs.python.org/" target="_blank">http://bugs.python.org/</a>>?<br>><br>>--<br>> \       “The Vatican is not a state.… a state must have people. There |<br>>  `\    are no Vaticanians.… No-one gets born in the Vatican except by |<br>>_o__)        an unfortunate accident.” —Geoffrey Robertson, 2010-09-18 |<br>>Ben Finney<br>><br>>_______________________________________________<br>>Tutor maillist  -  <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>>To unsubscribe or change subscription options:<br>><a href="https://mail.python.org/mailman/listinfo/tutor" target="_blank">https://mail.python.org/mailman/listinfo/tutor</a><br><br><br>_______________________________________________<br>Tutor maillist  -  <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>To unsubscribe or change subscription options:<br><a href="https://mail.python.org/mailman/listinfo/tutor" target="_blank">https://mail.python.org/mailman/listinfo/tutor</a><o:p></o:p></p></div></div></div><p class=MsoNormal><br><br clear=all><br>-- <o:p></o:p></p><div><div><p class=MsoNormal>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>"A computer never does what you want... only what you tell it."<br>    <a href="http://google.com/+WesleyChun" target="_blank">+wesley chun</a> : wescpy at gmail : <a href="http://twitter.com/wescpy" target="_blank">@wescpy</a><br>    Python training & consulting : <a href="http://CyberwebConsulting.com" target="_blank">http://CyberwebConsulting.com</a><br>    "Core Python" books : <a href="http://CorePython.com" target="_blank">http://CorePython.com</a><br>    Python blog: <a href="http://wescpy.blogspot.com" target="_blank">http://wescpy.blogspot.com</a><o:p></o:p></p></div></div></div></div></div></body></html>