[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-22 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

If you think it's fine to change this behavior, then yes :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1548891
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-22 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 If you think it's fine to change this behavior, then yes :)

Well, the documented behaviour makes no sense.
Either it should raise TypeError or convert. Since write() converts, it's 
logical for the constructor to do so as well.

--
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1548891
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-22 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 27ae7d4e1983 by Antoine Pitrou in branch '2.7':
Issue #1548891: The cStringIO.StringIO() constructor now encodes unicode
http://hg.python.org/cpython/rev/27ae7d4e1983

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1548891
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-22 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 0b39f2486314 by Éric Araujo in branch '2.7':
Note that the #1548891 fix indirectly fixes shlex (#6988, #1170)
http://hg.python.org/cpython/rev/0b39f2486314

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1548891
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-21 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Still happens on latest 2.7:

 from cStringIO import StringIO
 sio = StringIO(uabc)
 sio.getvalue()
'a\x00b\x00c\x00'

--
nosy: +pitrou
resolution: fixed - 
stage:  - needs patch
status: closed - open
versions: +Python 2.7 -Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1548891
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-21 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

And unsurprisingly so, since the fix was reverted in r56830 by Georg.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1548891
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-21 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Georg, is this patch ok to you?

--
assignee: georg.brandl - 
keywords: +patch
Added file: http://bugs.python.org/file23492/cio.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1548891
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com