Issue1365
Created on 2007-10-31 09:50 by christian.heimes, last changed 2007-10-31 16:41 by gvanrossum.
|
msg56990 - (view) |
Author: Christian Heimes (christian.heimes) |
Date: 2007-10-31 09:50 |
|
Hey Guido!
During my testing and local modifications of the PEP 3137 branch I found
a bunch of unit tests that were choking on bytes(1) where bytes is PyString.
The PEP doesn't list bytes(<int>) as a valid constructor, only
buffer(<int>). I don't see a reason why bytes() shouldn't accept an int
when b'1' still creates a byte sequence with 3 elements. Here is a patch
|
|
msg56993 - (view) |
Author: Martin v. Löwis (loewis) |
Date: 2007-10-31 12:44 |
|
Where is the patch?
|
|
msg56994 - (view) |
Author: Christian Heimes (christian.heimes) |
Date: 2007-10-31 12:49 |
|
Here it is.
patch + unit test
|
|
msg56997 - (view) |
Author: Guido van Rossum (gvanrossum) |
Date: 2007-10-31 16:41 |
|
Committed revision 58730.
Thanks!
PS. Christian, please work with Neal or Martin to get developer
privileges...
|
|
| Date |
User |
Action |
Args |
| 2007-10-31 16:41:43 | gvanrossum | set | status: open -> closed resolution: accepted messages:
+ msg56997 |
| 2007-10-31 12:49:00 | christian.heimes | set | files:
+ py3k_pystring_ssize.patch messages:
+ msg56994 |
| 2007-10-31 12:44:03 | loewis | set | nosy:
+ loewis messages:
+ msg56993 |
| 2007-10-31 09:50:10 | christian.heimes | create | |
|