This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2013-05-30.13:59:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369922361.42.0.622055843561.issue18101@psf.upfronthosting.co.za>
In-reply-to
Content
Tk.split() doesn't work with nested Unicode strings, but works with nested bytes.

>>> import tkinter
>>> t = tkinter.Tcl()
>>> t.split('a {b c}')
('a', ('b', 'c'))
>>> t.split(b'a {b c}')
('a', ('b', 'c'))
>>> t.split(('a {b c}',))
('a {b c}',)
>>> t.split((b'a {b c}',))
(('a', ('b', 'c')),)

I think this is unintentional. Here is a patch which processes strings inside a tuple as bytes objects. It also adds tests for Tk.splitline() and Tk.split().
History
Date User Action Args
2013-05-30 13:59:21serhiy.storchakasetrecipients: + serhiy.storchaka
2013-05-30 13:59:21serhiy.storchakasetmessageid: <1369922361.42.0.622055843561.issue18101@psf.upfronthosting.co.za>
2013-05-30 13:59:21serhiy.storchakalinkissue18101 messages
2013-05-30 13:59:21serhiy.storchakacreate