Python Worst Practices
Chris Angelico
rosuav at gmail.com
Fri Feb 27 20:44:44 EST 2015
On Sat, Feb 28, 2015 at 12:32 PM, <sohcahtoa82 at gmail.com> wrote:
> For example, I've seen someone create a Socket class, then created an operator overload that allowed you to "add" a string to your socket to make the socket send the string, with the result being a status code indicating success or an error.
>
Why not left shift the socket by that string, the result being the
original socket? At least that has precedent...
ChrisA
More information about the Python-list
mailing list