I found this inspection in Pycharm: "byte literal contains characters > 255
". I tried to google it, but found nothing.
What does it mean? Why is it not OK to use such characters?
Byte and byte string literals A byte literal is a single ASCII character (in the U+0000 to U+007F range) or a single escape preceded by the characters U+0062 ( b ) and U+0027 (single-quote), and followed by the character U+0027 .
A bytes literal produces a new object each time it is evaluated, like list displays and unlike string literals. This is necessary because bytes literals, like lists and unlike strings, are mutable [4].
You're using a character that falls outside the normal ASCII range of ordinals 0 -> 255.
Put the following 2 lines at the top of your python files:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
and the error should go away.
If not, email their support, or go to their forums.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With