Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100747

Re: Newbie: String to Tuple

Path csiph.com!au2pb.net!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Newsgroups comp.lang.python
Subject Re: Newbie: String to Tuple
Date Tue, 22 Dec 2015 20:59:21 +0000
Lines 20
Message-ID <mailman.69.1450817986.2237.python-list@python.org> (permalink)
References <56576725-0f10-4c7b-aead-272f2e3a8456@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de aMPHGUo7We2CQXQNVMSIlwqdfFrqtRp3YDlg/GmDWTqQ==
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.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subject:String': 0.16; 'url:split': 0.16; 'wrote:': 0.16; 'language': 0.19; 'lawrence': 0.22; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'convert': 0.29; 'help!': 0.30; 'language.': 0.32; 'url:python': 0.33; 'url:org': 0.36; 'url:library': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'received:org': 0.37; 'to:addr:python.org': 0.40; 'mark': 0.40; 'url:3': 0.60; 'charset:windows-1252': 0.62; 'our': 0.64; 'pythonistas,': 0.84
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host host-92-21-245-167.as13285.net
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0
In-Reply-To <56576725-0f10-4c7b-aead-272f2e3a8456@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:100747

Show key headers only | View raw


On 22/12/2015 20:53, KP wrote:
> How do I convert
>
> '1280,1024'
>
> to
>
> (1280,1024) ?
>
> Thanks for all help!
>

Start with this https://docs.python.org/3/library/stdtypes.html#str.split

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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