[issue41777] When using `python -bb`, `struct.calcsize` raises a warning when used with str argument after being used with bytes (might be a larger problem with dicts)
New submission from Edson Tadeu M. Manoel : Here is the inconsistent behavior, when running with `python -bb` (or just `python -b`), caused by an internal cache: >>> import struct >>> struct.calcsize(b'!d') # cache for '!d' uses bytes 8 &
[issue41777] When using `python -bb`, `struct.calcsize` raises a warning when used with str argument after being used with bytes (might be a larger problem with dicts)
Edson Tadeu M. Manoel added the comment: > I'm not sure if this warning is intentional, since in Python 3 there seems to > be no special reason for dicts to try to compare 'a' with b'a' (other than > possible implementation details). Okay, there's on