By Vasudev Ram
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:
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 programmingDancing Bison EnterprisesSignup to hear about new products or services that I create.Posts about Python Posts about xtopdfContact Page
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)Also see: hexspeak
3735928559
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 programmingDancing Bison EnterprisesSignup to hear about new products or services that I create.Posts about Python Posts about xtopdfContact Page