[Python-Dev] Issue #21071: change struct.Struct.format type from bytes to str (original) (raw)
Victor Stinner victor.stinner at gmail.com
Mon Mar 27 08:12:21 EDT 2017
- Previous message (by thread): [Python-Dev] Not all public names in C API have the "Py" prefix
- Next message (by thread): [Python-Dev] Distutils frozen?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi
I would like to change struct.Struct.format type from bytes to str. I don't expect that anyone uses this attribute, and struct.Struct() constructor accepts both bytes and str.
http://bugs.python.org/issue21071
It's just to be convenient: more functions accept str than bytes in Python 3. Example: print() (python3 -bb raises an exceptions if you pass bytes to print).
Is anything opposed to breaking the backward compatibility?
Victor
- Previous message (by thread): [Python-Dev] Not all public names in C API have the "Py" prefix
- Next message (by thread): [Python-Dev] Distutils frozen?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]