Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31625
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ashishjain.ash@gmail.com> |
| 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; 'json': 0.07; 'notation': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'jain': 0.16; 'json,': 0.16; 'oct': 0.16; 'repr()': 0.16; 'subject:Remove': 0.16; 'url:json': 0.16; 'string': 0.17; 'wrote:': 0.17; 'thu,': 0.17; 'cc:no real name:2**0': 0.24; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'cc:addr:gmail.com': 0.27; 'object,': 0.27; 'chris': 0.28; 'character': 0.29; 'thursday,': 0.30; 'url:python': 0.32; 'hi,': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'received:209.85.220': 0.35; 'similar': 0.35; 'received:209.85': 0.35; 'url:org': 0.36; 'url:library': 0.36; 'october': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'url:docs': 0.38; 'wish': 0.70; 'as:': 0.75; 'received:209.85.220.184': 0.91 |
| Newsgroups | comp.lang.python |
| Date | Thu, 18 Oct 2012 03:19:14 -0700 (PDT) |
| In-Reply-To | <mailman.2415.1350553209.27098.python-list@python.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=155.136.184.6; posting-account=XDyvFgoAAAC2GWcfqNrLVRk93wKP9mb6 |
| References | <e3a36bc8-ccaa-4bf5-a005-f7c016fe1de2@googlegroups.com> <mailman.2415.1350553209.27098.python-list@python.org> |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| X-Google-IP | 155.136.184.6 |
| MIME-Version | 1.0 |
| Subject | Re: Remove uncide notation |
| From | Ashish Jain <ashishjain.ash@gmail.com> |
| To | comp.lang.python@googlegroups.com |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Cc | python-list@python.org, Ashish Jain <ashishjain.ash@gmail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Message-ID | <mailman.2422.1350555564.27098.python-list@python.org> (permalink) |
| Lines | 36 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1350555564 news.xs4all.nl 6951 [2001:888:2000:d::a6]:39687 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:31625 |
Show key headers only | View raw
On Thursday, 18 October 2012 15:10:33 UTC+5:30, Chris Rebert wrote:
> On Thu, Oct 18, 2012 at 2:27 AM, Ashish Jain wrote:
>
> > Hi,
>
> >
>
> > I have a html string in an object, when I do repr() of that object, I get value as:
>
> >
>
> > {'Id' : 1, 'Body': u'<p> Hello </p>'}
>
> >
>
> > I don't wish to have 'u' as the character in my string representation. As this is not a valid json notation now.
>
>
>
> If you want JSON, then *use the freakin' `json` std lib module*!
>
> http://docs.python.org/library/json.html
>
>
>
> repr(...) != JSON
>
> [It's similar only coincidentally, and only to a degree.]
>
>
>
> Regards,
>
> Chris
Thanks a lot!!
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Remove uncide notation Ashish Jain <ashishjain.ash@gmail.com> - 2012-10-18 02:27 -0700
Re: Remove uncide notation Chris Rebert <clp2@rebertia.com> - 2012-10-18 02:40 -0700
Re: Remove uncide notation Ashish Jain <ashishjain.ash@gmail.com> - 2012-10-18 03:19 -0700
Re: Remove uncide notation Ashish Jain <ashishjain.ash@gmail.com> - 2012-10-18 03:19 -0700
Re: Remove uncide notation 88888 Dihedral <dihedral88888@googlemail.com> - 2012-10-19 11:48 -0700
csiph-web