Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31617
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <chris@rebertia.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; 'received:mail-vc0-f174.google.com': 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:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'am,': 0.27; 'object,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'chris': 0.28; 'received:209.85.220.174': 0.29; 'character': 0.29; 'url:python': 0.32; 'hi,': 0.33; 'received:google.com': 0.34; 'received:209.85.220': 0.35; 'similar': 0.35; 'received:209.85': 0.35; 'url:org': 0.36; 'url:library': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'url:docs': 0.38; 'header:Received:5': 0.40; 'wish': 0.70; 'as:': 0.75; 'sender:addr:chris': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=G0NRQY7ciUkqlA4xFcZo60J5qnTYI01syN4hm4yvx20=; b=Ql5edQZvyaFvgzgpTGyPrbjeh/ZUYb1rW7AudfQ03HvxWIUXi/MGx/ciW2DD3L7eVp gglq0+HspABmtleQnDPXuDgrLeiO2hlLZImb/FZiVzbvOpXOODdZjnWAhZe/syNaYZdE mjBrgKLg+4phA+/4Dm1r84/GZifms363CmUeA= |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=G0NRQY7ciUkqlA4xFcZo60J5qnTYI01syN4hm4yvx20=; b=UGwszUahqooE7CXcRnuQhZlznHSxxShUHoAK8HzagR94tVt1VjHd1BJndNs24VrPq7 mK0lcYkyiuyIXGzFwwCLUBJnYtHkmzw5pXMXxgGtGWcm54SQlS6vVXfnk3gk1U1dm/Lr XEYN7C/QwRQbW6UmFTHnz+pT8B/lQ0r85AvmVZkjE09xJ1Oo3ihBEe43WEp546maTE6S 86V/D6TLAlGrt8IrAJJYRvpUe0ZaGojhpAMpr/6m3ygUt7DGyiqyKMXnezCrKAUI78BD xmekPp7cSN68HpU7dm3/YJ5B8pSBfkqSBZuGzopLh04ftx8bCv/ZmqX+KLw8IUxtIiaR SFew== |
| MIME-Version | 1.0 |
| Sender | chris@rebertia.com |
| In-Reply-To | <e3a36bc8-ccaa-4bf5-a005-f7c016fe1de2@googlegroups.com> |
| References | <e3a36bc8-ccaa-4bf5-a005-f7c016fe1de2@googlegroups.com> |
| Date | Thu, 18 Oct 2012 02:40:06 -0700 |
| X-Google-Sender-Auth | aw3TU3CKnHiEJAOb925TKlp_n6s |
| Subject | Re: Remove uncide notation |
| From | Chris Rebert <clp2@rebertia.com> |
| To | Ashish Jain <ashishjain.ash@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| X-Gm-Message-State | ALoCoQmXxkHqeUNorz5HpisF3+TtHC8+4ty9vVCFDjdugrfgrqDlCi232ROOhIhWJsUWqprgxYg9 |
| Cc | python-list@python.org |
| 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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2415.1350553209.27098.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1350553209 news.xs4all.nl 6866 [2001:888:2000:d::a6]:41921 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:31617 |
Show key headers only | View raw
On Thu, Oct 18, 2012 at 2:27 AM, Ashish Jain <ashishjain.ash@gmail.com> 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
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