Wednesday, August 20, 2014

WAT in python

Finally found some WAT in Python as well. Here it is:
>>> ['a', 'b' 'c']
['a', 'bc']
WAT?? Implicit string concatenation? Yes, it is unfortunately. In configuration lists of strings it can be very harmful since it can silently do a wrong thing. There was PEP to remove it in Py3k, but the demand was not strong enough unfortunately.

No comments:

Post a Comment