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.
Created on 2013年05月30日 13:59 by serhiy.storchaka, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| tkinter_split_nested_unicode.patch | serhiy.storchaka, 2013年05月30日 13:59 | Patch for 3.3+ | review | |
| tkinter_split_nested_unicode-2.7.patch | serhiy.storchaka, 2013年05月30日 14:18 | Patch for 2.7 | review | |
| tkinter_split_nested_unicode_2.patch | serhiy.storchaka, 2013年06月09日 17:57 | Patch for 3.3+ | review | |
| tkinter_split_nested_unicode-2.7_2.patch | serhiy.storchaka, 2013年06月09日 17:58 | Patch for 2.7 | review | |
| Messages (4) | |||
|---|---|---|---|
| msg190359 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2013年05月30日 13:59 | |
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().
|
|||
| msg190867 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2013年06月09日 17:32 | |
Ezio, have you reviewed the main code? |
|||
| msg190868 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2013年06月09日 17:57 | |
Here are patches with updated tests as Ezio suggested. |
|||
| msg192882 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2013年07月11日 17:38 | |
New changeset f53cdd4e2689 by Serhiy Storchaka in branch '2.7': Issue #18101: Tcl.split() now process Unicode strings nested in a tuple as it http://hg.python.org/cpython/rev/f53cdd4e2689 New changeset 9486c07929a1 by Serhiy Storchaka in branch '3.3': Issue #18101: Tcl.split() now process strings nested in a tuple as it http://hg.python.org/cpython/rev/9486c07929a1 New changeset 16c48d553ddb by Serhiy Storchaka in branch 'default': Issue #18101: Tcl.split() now process strings nested in a tuple as it http://hg.python.org/cpython/rev/16c48d553ddb |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:46 | admin | set | github: 62301 |
| 2013年08月03日 21:00:15 | serhiy.storchaka | link | issue17478 superseder |
| 2013年07月11日 17:54:57 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2013年07月11日 17:38:37 | python-dev | set | nosy:
+ python-dev messages: + msg192882 |
| 2013年06月09日 17:58:33 | serhiy.storchaka | set | files: + tkinter_split_nested_unicode-2.7_2.patch |
| 2013年06月09日 17:57:35 | serhiy.storchaka | set | files:
+ tkinter_split_nested_unicode_2.patch messages: + msg190868 |
| 2013年06月09日 17:32:06 | serhiy.storchaka | set | messages: + msg190867 |
| 2013年06月08日 22:55:47 | serhiy.storchaka | set | assignee: serhiy.storchaka |
| 2013年06月03日 22:47:22 | ezio.melotti | set | nosy:
+ ezio.melotti |
| 2013年05月30日 15:38:51 | Arfrever | set | nosy:
+ Arfrever |
| 2013年05月30日 14:45:33 | serhiy.storchaka | link | issue16809 dependencies |
| 2013年05月30日 14:18:21 | serhiy.storchaka | set | files:
+ tkinter_split_nested_unicode-2.7.patch nosy: + gpolo, roger.serwy versions: + Python 2.7 |
| 2013年05月30日 13:59:21 | serhiy.storchaka | create | |