Welcome to our

Cyber Security News Aggregator

.

Cyber Tzar

provide a

cyber security risk management

platform; including automated penetration tests and risk assesments culminating in a "cyber risk score" out of 1,000, just like a credit score.

Quickpost: PEP 515 – Underscores in Numeric Literals

published on 2025-10-25 08:07:10 UTC by Didier Stevens
Content:

While attending a great presentation of Kaitai Struct at Hack.lu 2025, I noticed a binary numeric notation during the demo, that I had never seen before. Something like 0b1000_0001.

I’m familiar with notations in Python like 0b10000001, but not with an underscore thrown in to make the number more readable.

Turns out this exists for almost 10 years in Python (since Python 3.6), and that it is known as PEP 515 – Underscores in Numeric Literals.

And it exists in other programming languages too.


Quickpost info
Article: Quickpost: PEP 515 – Underscores in Numeric Literals - published 1 day ago.

https://blog.didierstevens.com/2025/10/25/quickpost-pep-515-underscores-in-numeric-literals/   
Published: 2025 10 25 08:07:10
Received: 2025 10 25 08:18:47
Feed: Didier Stevens
Source: Didier Stevens
Category: Cyber Security
Topic: Cyber Security
Views: 5

Custom HTML Block

Click to Open Code Editor