On Sun, Aug 17, 2014 at 05:41:10PM -0400, Barry Warsaw wrote: > I think the biggest API "problem" is that default iteration returns integers > instead of bytes. That's a real pain.
I agree, this behavior required some helper functions while porting Werkzeug to Python 3 AFAIK. > > I'm not sure .iterbytes() is the best name for spelling iteration over bytes > instead of integers though. Given that we can't change __iter__(), I > personally would perhaps prefer a simple .bytes property over which if you > iterated you would receive bytes, e.g. I'd rather be for a .bytes() method, to match the .values(), and .keys() methods on dictionaries. -- Markus _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com