Hi everyone,
Is there a doc comparing different json implementation (example:
python-json, simplejson)? Does anyone have a strong recommendation
to make? Any problem/issue for a particular implementation?
Thanks.
- jon
_
Is your P
class S:
def __init__(self, **k): self.data = k
class E(S):
def __init__(self, **k):
S.__init__(self, **k)
x = E(a=1)
print x.data
{'a': 1}
From: [EMAIL PROTECTED]
To: python-list@python.org
Subject: extender method
Date: 26 Jul 2006 09:21:10 -070
sorry ... i replied to sender instead of all ... so here we go again ...
>>>t = [('a', 1.0), ('b',2.0),('c',3.0)]
>>>t = [s[::-1] for s in t]
>>>print t
[(1.0, 'a'), (2.0, 'b'), (3.0, 'c')]
>>>
>From: "Paul McGuire" <[EMAIL PROTECTED]>
>To: python-list@python.org
>Subject: Re: How to reverse t