Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100749
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Peter Otten <__peter__@web.de> |
| Newsgroups | comp.lang.python |
| Subject | Re: Newbie: String to Tuple |
| Date | Tue, 22 Dec 2015 22:07:41 +0100 |
| Organization | None |
| Lines | 16 |
| Message-ID | <mailman.70.1450818473.2237.python-list@python.org> (permalink) |
| References | <56576725-0f10-4c7b-aead-272f2e3a8456@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 7Bit |
| X-Trace | news.uni-berlin.de BT2DPeOLx5yNulM8GiwLWwq1EC6rlquxoB4X6rTOAgPw== |
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'ast': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '1024)': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'subject:String': 0.16; 'wrote:': 0.16; '>>>': 0.20; 'import': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'convert': 0.29; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'to:addr:python.org': 0.40; 'received:de': 0.40 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| X-Gmane-NNTP-Posting-Host | p57bd9d23.dip0.t-ipconnect.de |
| User-Agent | KNode/4.13.3 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:100749 |
Show key headers only | View raw
KP wrote:
> How do I convert
>
> '1280,1024'
>
> to
>
> (1280,1024) ?
>>> import ast
>>> ast.literal_eval('1280,1024')
(1280, 1024)
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Newbie: String to Tuple KP <kai.peters@gmail.com> - 2015-12-22 12:53 -0800
Re: Newbie: String to Tuple Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-12-22 20:59 +0000
Re: Newbie: String to Tuple KP <kai.peters@gmail.com> - 2015-12-22 13:06 -0800
Re: Newbie: String to Tuple Peter Otten <__peter__@web.de> - 2015-12-22 22:07 +0100
csiph-web