Use of infix operator hack in production code (Python)

Posted by Casebash on Stack Overflow See other posts from Stack Overflow or by Casebash
Published on 2010-03-09T00:55:16Z Indexed on 2010/03/09 1:06 UTC
Read the original article Hit count: 303

Filed under:
|

What is your opinion of using the infix operator hack in production code? Issues:

  • The effect this will have on speed.
  • The potential for a clashes with an object with these operators already defined. This seems particularly dangerous with generic code that is intended to handle objects of any type.

It is a shame that this isn't built in - it really does improve readability

© Stack Overflow or respective owner

Related posts about python

Related posts about best-practices