Georg Brandl <ge...@python.org> added the comment:

Python is not (e.g.) Haskell; Python strings are not lists whose contents 
happen to be characters.  Allowing an empty string here is a step backwards in 
the direction of "why not allow any string whose contents have an unambiguous 
meaning as bytes", i.e. the default encoding ASCII in Python 2.x.  Passing a 
string where bytes are expected is a programming error, and it should be 
rewarded with an exception, no matter if the string happens to be empty or not.

----------
nosy: +georg.brandl

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8401>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to