PythonExtra/tests/cpydiff/types_bytes_keywords.py
2017-07-09 14:33:55 +03:00

8 lines
229 B
Python

"""
categories: Types,bytes
description: bytes() with keywords not implemented
cause: Unknown
workaround: Pass the encoding as a positional paramter, e.g. ``print(bytes('abc', 'utf-8'))``
"""
print(bytes('abc', encoding='utf8'))