[Python-Dev] What to do for bytes in 2.6? (original) (raw)

Christian Heimes lists at cheimes.de
Fri Jan 18 17:00:17 CET 2008


Guido van Rossum wrote:

I don't think any of that is necessary. I would rather have the following two in the language by default (see my response to Terry and Raymond):

bytes is an alias for str (not even a subclass) b"" is an alias for ""

Ah, you like to keep it simple. The aliases are easily to implement. Give me twenty minutes to implement it and write some unit tests.

There is only one thing I'd like -3 to warn about regarding except clauses: if the 'err' variable is used past the end of the except clause. That is a true semantic change that 2to3 cannot easily fix or flag. Consider this an example of how 2to3 and -3 should augment each other.

Several warnings have to be removed: ``, callable and maybe more.

Christian



More information about the Python-Dev mailing list