Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What?

Oh, you mean PEP 506. I wrote this program in 02012, and PEP 506 wasn't written until 02015, didn't ship in a released Python until 3.6 in 02016, and even then was only available in Python 3, which I didn't use because it basically didn't work at the time.

PEP 506 is just 22 lines of code wrapping SystemRandom. There's no advantage over just using SystemRandom directly.



what is 02012 and why write it so strange?


Obviously it's octal and the person is a time traveler from the 11th century.


It's the long now foundation thing. The long now foundation encourages writing years with five digits to encourage readers to think about long term planning, to plan for a future of humanity that is measured in more than thousands of years.

https://en.wikipedia.org/wiki/Long_Now_Foundation



They want to feel like they matter in over 10k years from now, where a 4-digit year would start to wrap.


In fact that will be not even 8k years from now.


I’ll be very embarrassed when I’m still writing 9999 on my checks.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: