Files
codeql/python/ql/src/Lexical/OldOctalLiteral.py
2018-11-19 15:10:42 +00:00

13 lines
261 B
Python

#Easily misread as x = 15
x = 015
#The extra 'o' alerts the reader that this is an octal literal
y = 0o15
#If this is a byte sized value then a hexadecimal might be clearer
y = 0x0d
#Or if it is a bit pattern then a binary value might be clearer
y = 0b1101