Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 22462

Vasudev Ram: What is the meaning of this number? 3735928559

$
0
0
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:
>>> print hex(3735928559)
and sure enough, it printed out:
0xdeadbeefL
Here is the reverse conversion, from hexadecimal to decimal:
>>> print int('0xDEADBEEF', 16)
3735928559
Also 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 Enterprises

Signup to hear about new products or services that I create.

Posts about Python  Posts about xtopdf

Contact Page



Viewing all articles
Browse latest Browse all 22462

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>