Re: [Python-3000] Array typecode 'w' vs. 'u' and UCS4 builds

2007-10-12 Thread Christian Heimes
Travis E. Oliphant wrote: > The problem is to keep the array typecodes somewhat consistent with the > typecodes in PEP 3118 which will be in the struct module. > How about making 'U' be the typecode that translates to 'u' or 'w' > depending on the platform and supporting both 'u' and 'w' on all >

Re: [Python-3000] Array typecode 'w' vs. 'u' and UCS4 builds

2007-10-12 Thread Travis E. Oliphant
Christian Heimes wrote: > Yesterday I found a design problem in the array module. Travis Oliphant > added a new typecode 'w' to the array module. 'w' is a wide unicode type > that is guaranteed to be at least 4 bytes long. The 'u' typecode may be > 2 bytes long. > > Unfortunately his change removed

[Python-3000] Array typecode 'w' vs. 'u' and UCS4 builds

2007-10-12 Thread Christian Heimes
Yesterday I found a design problem in the array module. Travis Oliphant added a new typecode 'w' to the array module. 'w' is a wide unicode type that is guaranteed to be at least 4 bytes long. The 'u' typecode may be 2 bytes long. Unfortunately his change removed 'u' as a possible typecode which m

[Python-3000] PEP 3105 "Backward Compatibility"

2007-10-12 Thread James Thiele
I was reading PEP 3105 -- Make print a function and in the section "Backwards Compatibility" found the following statement: "The changes proposed in this PEP will render most of today's print statements invalid, only those which incidentally feature parentheses around all of their arguments will co

Re: [Python-3000] PEP 3105 "Backward Compatibility"

2007-10-12 Thread Guido van Rossum
Good point. I added a few examples to the PEP. --Guido On 10/12/07, James Thiele <[EMAIL PROTECTED]> wrote: > I was reading PEP 3105 -- Make print a function and in the section > "Backwards Compatibility" found the following statement: > "The changes proposed in this PEP will render most of today

Re: [Python-3000] Array typecode 'w' vs. 'u' and UCS4 builds

2007-10-12 Thread Travis Oliphant
Christian Heimes wrote: > Travis E. Oliphant wrote: >> The problem is to keep the array typecodes somewhat consistent with the >> typecodes in PEP 3118 which will be in the struct module. >> How about making 'U' be the typecode that translates to 'u' or 'w' >> depending on the platform and support

Re: [Python-3000] PEP 3137 plan of attack

2007-10-12 Thread Gregory P. Smith
> - add missing methods to PyBytes (for list, see the PEP and compare to > > what's already there) > > > As I work on these.. Should the mutable PyBytes_ (buffer) objects implement the following methods inplace and return an additional reference to self? .capitalize(), .center(), .expandtabs(), .

Re: [Python-3000] PEP 3137 plan of attack

2007-10-12 Thread Guido van Rossum
On 10/12/07, Gregory P. Smith <[EMAIL PROTECTED]> wrote: > > > - add missing methods to PyBytes (for list, see the PEP and compare to > > > what's already there) > > As I work on these.. Should the mutable PyBytes_ (buffer) objects implement > the following methods inplace and return an additional