Files
openide/python/testData/inspections/PyCompatibilityInspection/underscoresInNumericLiterals.py
lada.gagina 75b1ecd244 [python] Cleanup supported/unsupported versions xmls
- Drop support for python 3.5 & 3.6 in compatibility inspection
- Fix and remove some outdated tests
- Remove xmls for long-unsupported python 2.6 & 3.5
- Regenerate versions.xml
- Remove mentions of OS-specific modules

GitOrigin-RevId: 3265dd1de8a4f7a41119e10c95bb705ca5845efe
2023-11-17 18:57:31 +00:00

58 lines
4.2 KiB
Python

# hex
<warning descr="Python version 2.7 does not support underscores in numeric literals">0xCAFE_F00D</warning>
# oct
<warning descr="Python version 2.7 does not support underscores in numeric literals">0o1_23</warning>
<error descr="Python version 3.6 does not support this syntax. It requires '0o' prefix for octal literals"><warning descr="Python version 2.7 does not support underscores in numeric literals"><warning descr="Python versions 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13 do not support this syntax. It requires '0o' prefix for octal literals">01_23</warning></warning></error>
# bin
<warning descr="Python version 2.7 does not support underscores in numeric literals">0b_0011_1111_0100_1110</warning>
# dec
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_000_000</warning>
# pointfloat
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.00_23</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.</warning>
# exponentfloat
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.00_23e1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.00_23E1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.e1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.E1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.00_23e+1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.00_23E+1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.e+1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.E+1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.00_23e-1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.00_23E-1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.e-1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.E-1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_0000_23e1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_0000_23E1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00e1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00E1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_0000_23e+1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_0000_23E+1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00e+1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00E+1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_0000_23e-1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_0000_23E-1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00e-1_2</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00E-1_2</warning>
# imag
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.00_23j</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.00_23J</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.00_23e1_2j</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_00.00_23e1_2J</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_000_000j</warning>
<warning descr="Python version 2.7 does not support underscores in numeric literals">10_000_000J</warning>