File: doctest_literals.txt

package info (click to toggle)
python-sybil 9.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,164 kB
  • sloc: python: 4,545; makefile: 90
file content (16 lines) | stat: -rw-r--r-- 194 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
>>> repr(b'foo')
"b'foo'"

>>> repr(u'foo')
"'foo'"

>>> repr(b"'")
'b"\'"'

>>> repr(u"'")
'"\'"'

>>> raise Exception(repr(u'uh oh'))
Traceback (most recent call last):
...
Exception: 'uh oh'