diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-07-22 00:34:34 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-07-22 00:34:34 +0300 |
commit | 707cae749424104660cd24e7c1f1e16d67b99b0f (patch) | |
tree | 792de897348ae678d4c9908870a328636f25ae6c /py/objgenerator.c | |
parent | 26b7d8a7be48211557cf009f3f792d926d03cdf2 (diff) | |
download | micropython-707cae749424104660cd24e7c1f1e16d67b99b0f.tar.gz micropython-707cae749424104660cd24e7c1f1e16d67b99b0f.zip |
py/obj: Issue a warning when str and bytes objects are compared.
Something like:
if foo == "bar":
will be always false if foo is b"bar". In CPython, warning is issued if
interpreter is started as "python3 -b". In MicroPython,
MICROPY_PY_STR_BYTES_CMP_WARN setting controls it.
Diffstat (limited to 'py/objgenerator.c')
0 files changed, 0 insertions, 0 deletions