problem with sockets code

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sun Oct 5 05:22:08 EDT 2008


In message
<f84b1539-f5b2-487c-9c2b-75d05c0911cf at 2g2000hsn.googlegroups.com>, Daniel
wrote:

>         while data:
>             ...
>             data = self.rfile.readline().strip()

Interpreting a random string value as a Boolean is a bad idea.



More information about the Python-list mailing list