]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Inspired by Tim Peters' 1.14->1.15 checkin to asynchat
authorMoshe Zadka <moshez@math.huji.ac.il>
Wed, 11 Apr 2001 08:06:02 +0000 (08:06 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Wed, 11 Apr 2001 08:06:02 +0000 (08:06 +0000)
commit097cf85daec73d386768d1d49947c470d59cf578
tree570e3154b20c6f6279c71a760e880fa05ec2bf5a
parentabbae5b3ccfbb5914a894fd9d9a0e1e1d900bd86
Inspired by Tim Peters' 1.14->1.15 checkin to asynchat
Quoting orignal message:
'''
Fix from the Madusa mailing list:
    http://groups.yahoo.com/group/medusa/message/333

It's clear that Medusa should not be checking for an empty buffer
via "buf is ''".  The patch merely changes "is" to "==".  However,
there's a mystery here all the same:  Python attempts to store null
strings uniquely, so it's unclear why "buf is ''" ever returned
false when buf actually was empty.  *Some* string operations produce
non-unique null strings, e.g.
'''
Lib/asynchat.py