File: f_string.txt

package info (click to toggle)
loguru 0.7.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,568 kB
  • sloc: python: 13,164; javascript: 49; makefile: 14
file content (18 lines) | stat: -rw-r--r-- 1,291 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

Traceback (most recent call last):

  File "tests/exceptions/source/modern/f_string.py", line 21, in <module>
    hello()
    â”” <function hello at 0xDEADBEEF>

  File "tests/exceptions/source/modern/f_string.py", line 11, in hello
    output = f"Hello" + f' ' + f"""World""" and world()
                                                â”” <function world at 0xDEADBEEF>

  File "tests/exceptions/source/modern/f_string.py", line 17, in world
    f"{name} -> { f }" and {} or f'{{ {f / 0} }}'
       │          │                    └ 1
       │          └ 1
       â”” 'world'

ZeroDivisionError: division by zero