[Python-Dev] bytes / unicode

Nick Coghlan ncoghlan at gmail.com
Mon Jun 28 14:13:53 CEST 2010


On Mon, Jun 28, 2010 at 6:28 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> R. David Murray wrote:
>
>> Having such a poly_str type would probably make my life easier.
>
> A thought on this poly_str type: perhaps it could be
> called "ascii", since that's what it would have to be
> restricted to, and have
>
>  a'xxx'
>
> as a literal syntax for it, seeing as literals seem to
> be one of its main use cases.

One of the virtues of doing this as a helper type in a module
somewhere (probably string) is that we can defer that kind of decision
until later.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list