[issue21232] Use of '1' instead of 'True' as 'splitlines' argument in difflib documentation

Terry J. Reedy report at bugs.python.org
Fri Apr 18 22:55:12 CEST 2014


Terry J. Reedy added the comment:

In 2.x, 1 is guaranteed to be true, in that sense that
  if 1: print 'true'
is guaranteed to print 'true', while True is not necessarily true.
>>> True = 0
>>> if True: print 'yes'

>>>
So 2.x docs should not be changed.

----------
nosy: +terry.reedy
versions:  -Python 2.7, Python 3.1, Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21232>
_______________________________________


More information about the Python-bugs-list mailing list