Saw this tweet by Raymond Hettinger (@raymondh), Python core developer:
Pop quiz: Whenever you see the number 3735928559 in your output, there is probably an error in the code. What is special about this number?
So I took a guess: converted the number to hexadecimal:
>>> print hex(3735928559)and sure enough, it printed out:
0xdeadbeefLHere is the reverse conversion, from hexadecimal to decimal:
>>> print int('0xDEADBEEF', 16) 3735928559Also see: hexspeak
How do you like that little critter at the top of the post?
I call him PyBug. Drawn impromptu, for this post, by:
- Yours truly,
- Vasudev Ram - Online Python training and programming Dancing Bison EnterprisesSignup to hear about new products or services that I create. Posts about Python Posts about xtopdf Contact Page
3 comments:
Also read the replies to Raymond's tweet above.
And see:
https://docs.python.org/2/library/functions.html#format
Your drawing looks more like an Anomalocaris canadensis than a "bug": https://www.google.com/search?q=anomalocaris
Ha ha, good one. Read the Wikipedia article about Anomalocaris - interesting.
Post a Comment