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: 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: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=155.136.184.6; posting-account=XDyvFgoAAAC2GWcfqNrLVRk93wKP9mb6 References: 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 To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org, Ashish Jain X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: 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 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'

Hello

'} > > > > > > 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!!