A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/071983.html below:

converting string to dict ?

converting string to dict ? converting string to dict ?Aahz Maruch aahz at panix.com
Wed Apr 11 19:28:39 EDT 2001
In article <td8bji613hivc6 at corp.supernews.com>,
Jason Cunliffe <jasonic at nomadicsltd.com> wrote:
>
>A web input form  passes {'name':'Cleopatra'} as a string.
>Please, is there a nice clean function to convert this string to a dict?

Redesign your web form.  Seriously.  At the very least, change this to
use a single delimiter between key and value, such as 

    name/Cleopatra

More conversion work (slightly), but much, much, much safer.
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het Pythonista   http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

Why is this newsgroup different from all other newsgroups?

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4