Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101017
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Newbie: How to convert a tuple of strings into a tuple of ints |
| Date | Thu, 31 Dec 2015 09:52:41 +1100 |
| Lines | 19 |
| Message-ID | <mailman.89.1451515970.11925.python-list@python.org> (permalink) |
| References | <fcd51ccc-b087-4147-a3e2-276b2f3052f4@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de hNOJyrirGl5lTZ/Ryc6JZQ7tY+/JsR7Id0aHPZoEizUQ== |
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.029 |
| X-Spam-Evidence | '*H*': 0.94; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'subject:How': 0.09; 'subject:into': 0.09; 'thu,': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; '31,': 0.22; 'am,': 0.23; 'dec': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'actual': 0.28; 'received:209.85.213.174': 0.29; 'code': 0.30; 'help!': 0.30; 'post': 0.31; 'that,': 0.34; 'received:google.com': 0.35; "isn't": 0.35; 'received:209.85': 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'your': 0.60; 'more': 0.63; 'more.': 0.63; 'here': 0.66; 'situation': 0.67; 'chrisa': 0.84; 'to:none': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=FpfX/8PXmHw345GNUhykvwX45hitUlJkDopQj0yI7Pw=; b=cVMMZxoLjaSGnnf5LP40MFIBC+ALVcfMsUIps/LwVnwuzSAYcarPxDJQd4MVMZR+UU 7YLzBcQhQOXq+2HRNeGzH3rbff8BGgrWFjJnWPNRqKmtCglnz0DUV/7wtfyTCoPX1UT1 10CTqXlP5zal6hQwHVj3oAEMwieAfJGktGP9sEBlmSDiow8V9x3FZGh0noxJuRlNkbBE aiKttXMrCFWfkIlG3j4eZoQomrbcxwS6FvyajyxK06JFrbAyu3sVU0RvCaSooPS4z0IR kaFBqMR5Rvn2XQgcLbNYg0BevuV+8bkqB6HbrrloXdh+e95tgAd+luL+OpkzBDK7d+pT uV5g== |
| X-Received | by 10.50.152.35 with SMTP id uv3mr5150212igb.13.1451515961818; Wed, 30 Dec 2015 14:52:41 -0800 (PST) |
| In-Reply-To | <fcd51ccc-b087-4147-a3e2-276b2f3052f4@googlegroups.com> |
| 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:101017 |
Show key headers only | View raw
On Thu, Dec 31, 2015 at 9:46 AM, <otaksoftspamtrap@gmail.com> wrote:
> How do I get from here
>
> t = ('1024', '1280')
>
> to
>
> t = (1024, 1280)
>
>
> Thanks for all help!
t = (int(t[0]), int(t[1]))
If the situation is more general than that, post your actual code and
we can help out more. Working with a single line isn't particularly
easy. :)
ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Newbie: How to convert a tuple of strings into a tuple of ints otaksoftspamtrap@gmail.com - 2015-12-30 14:46 -0800
Re: Newbie: How to convert a tuple of strings into a tuple of ints Chris Angelico <rosuav@gmail.com> - 2015-12-31 09:52 +1100
Re: Newbie: How to convert a tuple of strings into a tuple of ints Ben Finney <ben+python@benfinney.id.au> - 2015-12-31 09:57 +1100
Re: Newbie: How to convert a tuple of strings into a tuple of ints otaksoftspamtrap@gmail.com - 2015-12-30 15:00 -0800
Re: Newbie: How to convert a tuple of strings into a tuple of ints Ian Kelly <ian.g.kelly@gmail.com> - 2015-12-30 16:00 -0700
csiph-web