[Python-Dev] PEP 461 updates (original) (raw)
Guido van Rossum guido at python.org
Thu Jan 16 03:48:51 CET 2014
- Previous message: [Python-Dev] PEP 461 updates
- Next message: [Python-Dev] PEP 461 updates
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Surprisingly, in this case the exception is just what the doctor ordered. :-)
On Wed, Jan 15, 2014 at 6:12 PM, Glenn Linderman <v+python at g.nevcal.com> wrote:
On 1/15/2014 4:13 PM, Ethan Furman wrote:
- no value generated errors ...
%c will insert a single byte, either from an int in range(256), or from a bytes argument of length 1. what does x = 354 b"%c" % x produce? Seems that construct produces a value dependent error in both python 2 & 3 (although it takes a much bigger value to produce the error in python 3, with str %... with bytes %, the problem with be reached at 256, just like python 2). Is this an intended exception to the overriding principle?
Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/guido%40python.org
-- --Guido van Rossum (python.org/~guido)
- Previous message: [Python-Dev] PEP 461 updates
- Next message: [Python-Dev] PEP 461 updates
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]