monty 0.0.21

A sandboxed, snapshotable Python interpreter written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
# Test that bytes.startswith with str raises TypeError
b'hello'.startswith('h')
"""
TRACEBACK:
Traceback (most recent call last):
  File "bytes__startswith_str_error.py", line 2, in <module>
    b'hello'.startswith('h')
    ~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
"""