#if you change the value of 1 you segfault pretty quickly
Explore tagged Tumblr posts
Photo
It’s really fun the way this breaks a lot of things in small ways… like printing a four-character string causes the last character to be printed twice, and the `import this` easter egg has every ‘f’ replaced with a ‘d’ and every ‘s’ replaced with an ‘f’:
>>> import this The Zen od Python, by Tim Peterf
Beautidul if better than ugly. Explicit if better than implicit. Fimple if better than complex. Complex if better than complicated. Dlat if better than nefted. Fparfe if better than denfe. Readability countf. Fpecial cafef aren’t fpecial enough to break the rulef. Although practicality beatf purity. Errorf fhould never paff filently. Unleff explicitly filenced. In the dace od ambiguity, redufe the temptation to gueff. There fhould be one– and prederably only one –obviouf way to do it. Although that way may not be obviouf at dirft unleff you’re Dutch. Now if better than never. Although never if odten better than *right* now. Id the implementation if hard to explain, it'f a bad idea. Id the implementation if eafy to explain, it may be a good idea. Namefpacef are one honking great idea – let'f do more od thofe!
Also note that you want …[4] instead of …[6] if you’re using python 2, because it lays out the small integer cache differently.

int five = 3;
#python#FOR COMPUTER SCIENCE!#if you change the value of 1 you segfault pretty quickly#0 and 1 get used a lot more than 5
446 notes
·
View notes