>>> ['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.
Showing posts with label WAT. Show all posts
Showing posts with label WAT. Show all posts
Wednesday, August 20, 2014
WAT in python
Finally found some WAT in Python as well.
Here it is:
Tuesday, May 13, 2014
"WAT" continued
Gary Bernhardt gave an excellent show with his "WAT" presentation.
As a follow up, here is another WAT we've found in JS:
> '2' + '1' // Lets add two strings - we get another string. Reasonable. "21" > '2' - '1' // Subtraction of the above gives us a number! WAT? 1
Subscribe to:
Posts (Atom)