Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105641
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | "Sven R. Kunze" <srkunze@mail.de> |
| Newsgroups | comp.lang.python |
| Subject | Re: newbie question |
| Date | Thu, 24 Mar 2016 18:47:49 +0100 |
| Lines | 15 |
| Message-ID | <mailman.104.1458841672.2244.python-list@python.org> (permalink) |
| References | <56f3c3eb$0$4546$426a74cc@news.free.fr> <CAG93HwFywmkHdBMXMKOKCu7S6mHtvjZt5Lenzb8tG-aKigwm=Q@mail.gmail.com> <56F3CB1E.2000606@mail.de> <CAG93HwH92bQGN57h_L6W8DgSDXRWW48Ojtws1Hex9FrXjfPveQ@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de 770pKIghJTzRrOvj5oyeFgF8Y7n2MQ3RcWgc4ft5JnWA== |
| Return-Path | <srkunze@mail.de> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.024 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'subject:question': 0.08; '(1,': 0.09; 'ast': 0.09; 'thu,': 0.15; '2016': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; "shouldn't": 0.18; ';-)': 0.18; '>>>': 0.20; 'suppose': 0.22; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'this.': 0.28; 'received:10.0': 0.34; 'gets': 0.35; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'skip:u 10': 0.61; 'charset:windows-1252': 0.62; 'mar': 0.65; 'safety.': 0.84; 'shares': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mail201212; t=1458841670; bh=kuUYzPp/RtbHqDLv28tQWn3t580IOZ1FS1mcj5LKth0=; h=Subject:To:References:From:Date:In-Reply-To:From; b=vmIwEIw+UYA8hrhhlLJyXR9PFk1bHqQPW05pSCfyjT/rawCZD0UlqTCNv8yPGiyMt cb1dGlPtDGkTvZEcc0NbuEPxLZQ66ouk0OSjcswdLIaI59pMDEeYtXadS2/WvJ7G36 AdJ+byzAIJluU05AFnMCOYQ2ZlTpeVK4sGOqXUAg= |
| In-Reply-To | <CAG93HwH92bQGN57h_L6W8DgSDXRWW48Ojtws1Hex9FrXjfPveQ@mail.gmail.com> |
| X-purgate | clean |
| X-purgate | This mail is considered clean (visit http://www.eleven.de for further information) |
| X-purgate-type | clean |
| X-purgate-Ad | Categorized by eleven eXpurgate (R) http://www.eleven.de |
| X-purgate | This mail is considered clean (visit http://www.eleven.de for further information) |
| X-purgate | clean |
| X-purgate-size | 472 |
| X-purgate-ID | 154282::1458841670-000009F3-D80279B8/0/0 |
| 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:105641 |
Show key headers only | View raw
On 24.03.2016 14:22, Matt Wheeler wrote: > On Thu, 24 Mar 2016 11:10 Sven R. Kunze, <srkunze@mail.de> wrote: > >> On 24.03.2016 11:57, Matt Wheeler wrote: >>>>>> import ast >>>>>> s = "(1, 2, 3, 4)" >>>>>> t = ast.literal_eval(s) >>>>>> t >>> (1, 2, 3, 4) >> I suppose that's the better solution in terms of safety. >> > It has the added advantage that the enquirer gets to import a module that > shares their name ;) One shouldn't underestimate this. ;-)
Back to comp.lang.python | Previous | Next — Previous 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