Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105597
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | David Palao <dpalao.python@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: newbie question |
| Date | Thu, 24 Mar 2016 11:49:05 +0100 |
| Lines | 23 |
| Message-ID | <mailman.86.1458816553.2244.python-list@python.org> (permalink) |
| References | <56f3c3eb$0$4546$426a74cc@news.free.fr> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de uxGd0GLSaByeqLO2MpkUnQwUkDIxFd6FfJ4BRnXOrwRw== |
| Return-Path | <dpalao.python@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.013 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'subject:question': 0.08; 'cc:addr:python-list': 0.09; '(1,': 0.09; 'ast': 0.09; 'tuple': 0.09; 'received:io': 0.16; 'received:psf.io': 0.16; 'string': 0.17; 'variable': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'url:mailman': 0.30; 'url:python': 0.33; 'url:listinfo': 0.34; 'received:google.com': 0.35; 'url:org': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'received:209.85.220': 0.38; 'hi,': 0.38; 'url:mail': 0.40; 'eg:': 0.84; 'recover': 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:to :cc; bh=iYR1RWnjFA6qVFTdNShyy5jwZ6i2HKTu7o0tULGY3Ik=; b=koMnRBScwy40SP5xqkLjRFhSi7D3bsqMmNv6fjw8wXLKM/EX74WrWp17iw4/d2i2K9 phTKrGhRXtUtYV+rwgCG0D6E9TN2VCdfIBv48rMIxaZ5R6g6lMV6XvZfiXYVQWvh6gkG 4Gl6EGWWrkP0z26ZHc5rCQvt3a1dinYVeM2p+gefFKSXz2bNIxhxxV2abra5hrUBZnLH R68O/DmEqXN8zoDAnxlp4VLQ/s62dMG9rPvnOTv+nXP/KnEpv1jzUfnDKyxu+t9kNYBY 1VPJ23Jbpg6+qbNlw6Cel+PCTb0I2wTFQ3eqBvMi+7oYi64gonFDQYfvWv6Tv83e9w5H cd0A== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=iYR1RWnjFA6qVFTdNShyy5jwZ6i2HKTu7o0tULGY3Ik=; b=Pup2Gi0Y0R8rsn8uzI7M9zUd04GImZywz1Ewt2lcOsJtkahEMWdr+ASKzMHYuALZSY f0glSQ0X16iLNyuUBbmn3S0tzRCordcnRw4gakfW/DMkskkXS/NT2FyDwJkCOSk6+Yf6 gujO42EAccg8OAMiDZ+WNBsuFUqMeGS1go3thXBTv/sn4NxOnrzkh9Ls4Rw6Ey+M2Hoh rxjwtL+096XX8SzAblOTRFPrh+L63EX4i4Trw7LvQEY30Wp5myXritunr5TAWX/1cn94 JBvULo/tnVnx3+9OsbKW+69HrU471ZHdJUpZYuYa1tYbtcPUBAyNTPrefDihcLYlg9YT F2fA== |
| X-Gm-Message-State | AD7BkJL+xtjHzbXpW3N1AKtohRErn0Tw9SdAoB507EKrpgucoN7Xv8tI5qOwJYdggPEtOZGA/OxaaRJ1dLA7gg== |
| X-Received | by 10.55.50.136 with SMTP id y130mr9178613qky.79.1458816545375; Thu, 24 Mar 2016 03:49:05 -0700 (PDT) |
| In-Reply-To | <56f3c3eb$0$4546$426a74cc@news.free.fr> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21 |
| 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:105597 |
Show key headers only | View raw
Hi, Use "eval": s = "(1, 2, 3, 4)" t = eval(s) Best 2016-03-24 11:39 GMT+01:00 ast <nomail@com.invalid>: > Hi > > I have a string which contains a tupe, eg: > > s = "(1, 2, 3, 4)" > > and I want to recover the tuple in a variable t > > t = (1, 2, 3, 4) > > how would you do ? > > > -- > https://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
newbie question "ast" <nomail@com.invalid> - 2016-03-24 11:39 +0100
Re: newbie question David Palao <dpalao.python@gmail.com> - 2016-03-24 11:49 +0100
Re: newbie question "ast" <nomail@com.invalid> - 2016-03-24 11:54 +0100
Re: newbie question Steven D'Aprano <steve@pearwood.info> - 2016-03-25 00:53 +1100
Re: newbie question Grant Edwards <invalid@invalid.invalid> - 2016-03-24 15:05 +0000
Re: newbie question wxjmfauth@gmail.com - 2016-03-24 10:11 -0700
Re: newbie question Matt Wheeler <m@funkyhat.org> - 2016-03-24 10:57 +0000
Re: newbie question Tim Chase <python.list@tim.thechases.com> - 2016-03-24 05:58 -0500
Re: newbie question "Sven R. Kunze" <srkunze@mail.de> - 2016-03-24 12:10 +0100
Re: newbie question Steven D'Aprano <steve@pearwood.info> - 2016-03-24 22:13 +1100
Re: newbie question Matt Wheeler <m@funkyhat.org> - 2016-03-24 13:22 +0000
Re: newbie question "ast" <nomail@com.invalid> - 2016-03-28 17:34 +0200
Re: newbie question "Sven R. Kunze" <srkunze@mail.de> - 2016-03-29 12:23 +0200
Re: newbie question "Sven R. Kunze" <srkunze@mail.de> - 2016-03-24 18:47 +0100
csiph-web