summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2007-03-18 22:15:44 +0000
committerBob Ippolito <bob@redivi.com>2007-03-18 22:15:44 +0000
commitdd8279f6faa3a3bb21944d245417cb6dbe00dd90 (patch)
tree864b8ee6e84164f4a5c34025d4ed43bde79fa779
parent5e7eef082fa5b99ec7205daa0c8eb6c845ddeb72 (diff)
downloadsimplejson-dd8279f6faa3a3bb21944d245417cb6dbe00dd90.tar.gz
commit 1.7
git-svn-id: http://simplejson.googlecode.com/svn/trunk@48 a4795897-2c25-0410-b006-0d3caba88fa1
-rw-r--r--docs/class-simplejson.JSONDecoder.html4
-rw-r--r--docs/class-simplejson.JSONEncoder.html14
-rw-r--r--docs/index.html12
-rw-r--r--docs/module-index.html28
-rw-r--r--docs/module-simplejson-index.html10
-rw-r--r--docs/module-simplejson.html12
-rw-r--r--docs/simplejson/__init__.py.html336
-rw-r--r--docs/simplejson/encoder.py.html699
-rw-r--r--setup.cfg4
-rw-r--r--simplejson/__init__.py26
10 files changed, 600 insertions, 545 deletions
diff --git a/docs/class-simplejson.JSONDecoder.html b/docs/class-simplejson.JSONDecoder.html
index 7d8b3d4..a6b0a36 100644
--- a/docs/class-simplejson.JSONDecoder.html
+++ b/docs/class-simplejson.JSONDecoder.html
@@ -9,7 +9,7 @@
<DIV ID="page">
<DIV ID="top-nav">
- <H1 ID="doc-title"><A HREF="index.html" REL="index">simplejson 1.6</A></H1>
+ <H1 ID="doc-title"><A HREF="index.html" REL="index">simplejson 1.7dev-r1000</A></H1>
<DIV CLASS="online-navigation">
<A HREF="index.html" REL="index">index</A>
<SPAN ID="nav-docs">
@@ -148,7 +148,7 @@ deserializations (e.g. to support JSON-RPC class hinting).</P>
</DIV><DIV CLASS="pudge-member routine alias">
<A NAME="decode"></A>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">f</SPAN>
- <TT><A HREF="class-simplejson.JSONDecoder.html#decode" CLASS="pudge-obj-link">decode</A>(self, s, _w=&lt;built-in method match of _sre.SRE_Pattern object at 0x12cd650>)</TT>
+ <TT><A HREF="class-simplejson.JSONDecoder.html#decode" CLASS="pudge-obj-link">decode</A>(self, s, _w=&lt;built-in method match of _sre.SRE_Pattern object at 0x12c6650>)</TT>
<A HREF="simplejson/decoder.py.html?f=246&amp;l=256#246" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
diff --git a/docs/class-simplejson.JSONEncoder.html b/docs/class-simplejson.JSONEncoder.html
index c7e6945..a9d5b45 100644
--- a/docs/class-simplejson.JSONEncoder.html
+++ b/docs/class-simplejson.JSONEncoder.html
@@ -9,7 +9,7 @@
<DIV ID="page">
<DIV ID="top-nav">
- <H1 ID="doc-title"><A HREF="index.html" REL="index">simplejson 1.6</A></H1>
+ <H1 ID="doc-title"><A HREF="index.html" REL="index">simplejson 1.7dev-r1000</A></H1>
<DIV CLASS="online-navigation">
<A HREF="index.html" REL="index">index</A>
<SPAN ID="nav-docs">
@@ -67,7 +67,7 @@
</LI>
<LI>
- <A HREF="simplejson/encoder.py.html?f=63&amp;l=339#63" CLASS="pudge-section-link">
+ <A HREF="simplejson/encoder.py.html?f=80&amp;l=370#80" CLASS="pudge-section-link">
Source
</A>
</LI>
@@ -126,7 +126,7 @@ implementation (to raise <TT CLASS="docutils literal"><SPAN CLASS="pre">TypeErro
<A NAME="__init__"></A>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">f</SPAN>
<TT><A HREF="class-simplejson.JSONEncoder.html#__init__" CLASS="pudge-obj-link">__init__</A>(self, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, encoding='utf-8')</TT>
- <A HREF="simplejson/encoder.py.html?f=95&amp;l=147#95" TITLE="View Source">...</A>
+ <A HREF="simplejson/encoder.py.html?f=112&amp;l=164#112" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
@@ -167,7 +167,7 @@ The default is UTF-8.</P>
<A NAME="default"></A>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">f</SPAN>
<TT><A HREF="class-simplejson.JSONEncoder.html#default" CLASS="pudge-obj-link">default</A>(self, o)</TT>
- <A HREF="simplejson/encoder.py.html?f=291&amp;l=310#291" TITLE="View Source">...</A>
+ <A HREF="simplejson/encoder.py.html?f=314&amp;l=333#314" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
@@ -195,7 +195,7 @@ def default(self, o):
<A NAME="encode"></A>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">f</SPAN>
<TT><A HREF="class-simplejson.JSONEncoder.html#encode" CLASS="pudge-obj-link">encode</A>(self, o)</TT>
- <A HREF="simplejson/encoder.py.html?f=311&amp;l=323#311" TITLE="View Source">...</A>
+ <A HREF="simplejson/encoder.py.html?f=334&amp;l=354#334" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
@@ -213,7 +213,7 @@ def default(self, o):
<A NAME="iterencode"></A>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">f</SPAN>
<TT><A HREF="class-simplejson.JSONEncoder.html#iterencode" CLASS="pudge-obj-link">iterencode</A>(self, o)</TT>
- <A HREF="simplejson/encoder.py.html?f=324&amp;l=339#324" TITLE="View Source">...</A>
+ <A HREF="simplejson/encoder.py.html?f=355&amp;l=370#355" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
@@ -238,7 +238,7 @@ for chunk in JSONEncoder().iterencode(bigobject):
See
- <A HREF="simplejson/encoder.py.html?f=63&amp;l=339#63" TITLE="simplejson/encoder.py:63">the source</A>
+ <A HREF="simplejson/encoder.py.html?f=80&amp;l=370#80" TITLE="simplejson/encoder.py:80">the source</A>
for more information.
</SMALL>
</P>
diff --git a/docs/index.html b/docs/index.html
index 9415ace..1c562ae 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -9,7 +9,7 @@
<DIV ID="page">
<DIV ID="top-nav">
- <H1 ID="doc-title"><A HREF="index.html" REL="index">simplejson 1.6</A></H1>
+ <H1 ID="doc-title"><A HREF="index.html" REL="index">simplejson 1.7dev-r1000</A></H1>
<DIV CLASS="online-navigation">
<A HREF="index.html" REL="index">index</A>
<SPAN ID="nav-docs">
@@ -175,7 +175,7 @@ is a subset of YAML, so it may be used as a serializer for that as well.</P>
<A NAME="dump"></A>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">f</SPAN>
<TT><A HREF="module-simplejson.html#dump" CLASS="pudge-obj-link">dump</A>(obj, fp, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, encoding='utf-8', **kw)</TT>
- <A HREF="simplejson/__init__.py.html?f=98&amp;l=142#98" TITLE="View Source">...</A>
+ <A HREF="simplejson/__init__.py.html?f=108&amp;l=160#108" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
@@ -212,7 +212,7 @@ the <TT CLASS="docutils literal"><SPAN CLASS="pre">cls</SPAN></TT> kwarg.</P>
<A NAME="dumps"></A>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">f</SPAN>
<TT><A HREF="module-simplejson.html#dumps" CLASS="pudge-obj-link">dumps</A>(obj, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, encoding='utf-8', **kw)</TT>
- <A HREF="simplejson/__init__.py.html?f=143&amp;l=188#143" TITLE="View Source">...</A>
+ <A HREF="simplejson/__init__.py.html?f=162&amp;l=213#162" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
@@ -250,7 +250,7 @@ the <TT CLASS="docutils literal"><SPAN CLASS="pre">cls</SPAN></TT> kwarg.</P>
<A NAME="load"></A>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">f</SPAN>
<TT><A HREF="module-simplejson.html#load" CLASS="pudge-obj-link">load</A>(fp, encoding=None, cls=None, object_hook=None, **kw)</TT>
- <A HREF="simplejson/__init__.py.html?f=189&amp;l=214#189" TITLE="View Source">...</A>
+ <A HREF="simplejson/__init__.py.html?f=216&amp;l=238#216" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
@@ -277,7 +277,7 @@ kwarg.</P>
<A NAME="loads"></A>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">f</SPAN>
<TT><A HREF="module-simplejson.html#loads" CLASS="pudge-obj-link">loads</A>(s, encoding=None, cls=None, object_hook=None, **kw)</TT>
- <A HREF="simplejson/__init__.py.html?f=215&amp;l=238#215" TITLE="View Source">...</A>
+ <A HREF="simplejson/__init__.py.html?f=239&amp;l=264#239" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
@@ -307,7 +307,7 @@ kwarg.</P>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">C</SPAN>
<TT>
<A HREF="class-simplejson.JSONEncoder.html" CLASS="pudge-obj-link">JSONEncoder</A>(...)</TT>
- <A HREF="simplejson/encoder.py.html?f=63&amp;l=339#63" CLASS="pudge-member-view-source" TITLE="View Source">...</A>
+ <A HREF="simplejson/encoder.py.html?f=80&amp;l=370#80" CLASS="pudge-member-view-source" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
diff --git a/docs/module-index.html b/docs/module-index.html
index 5d8c929..7fe1431 100644
--- a/docs/module-index.html
+++ b/docs/module-index.html
@@ -2,14 +2,14 @@
<HTML>
<HEAD><META CONTENT="text/html; charset=utf-8" HTTP-EQUIV="Content-Type">
- <TITLE>simplejson 1.6 -- Module Reference</TITLE>
+ <TITLE>simplejson 1.7dev-r1000 -- Module Reference</TITLE>
<LINK HREF="layout.css" TYPE="text/css" REL="stylesheet">
</HEAD>
<BODY>
<DIV ID="page">
<DIV ID="top-nav">
- <H1 ID="doc-title"><A HREF="index.html" REL="index">simplejson 1.6</A></H1>
+ <H1 ID="doc-title"><A HREF="index.html" REL="index">simplejson 1.7dev-r1000</A></H1>
<DIV CLASS="online-navigation">
<A HREF="index.html" REL="index">index</A>
<SPAN ID="nav-docs">
@@ -31,7 +31,7 @@
<DIV ID="main-content">
<H1 CLASS="pudge-member-page-heading">
- simplejson 1.6
+ simplejson 1.7dev-r1000
</H1>
<H4 CLASS="pudge-member-page-subheading">
Module Reference
@@ -49,11 +49,13 @@
A simple, fast, extensible JSON encoder and decoder
</DD>
- <DT><TT><A HREF="module-simplejson.tests.html" CLASS="pudge-obj-link">
- simplejson.tests
+ <DT><TT><A HREF="module-simplejson.encoder.html" CLASS="pudge-obj-link">
+ simplejson.encoder
</A></TT>
</DT>
-
+ <DD>
+ Implementation of JSONEncoder
+ </DD>
<DT><TT><A HREF="module-simplejson.jsonfilter.html" CLASS="pudge-obj-link">
simplejson.jsonfilter
@@ -61,13 +63,11 @@
</DT>
- <DT><TT><A HREF="module-simplejson.encoder.html" CLASS="pudge-obj-link">
- simplejson.encoder
+ <DT><TT><A HREF="module-simplejson.tests.html" CLASS="pudge-obj-link">
+ simplejson.tests
</A></TT>
</DT>
- <DD>
- Implementation of JSONEncoder
- </DD>
+
<DT><TT><A HREF="module-simplejson.decoder.html" CLASS="pudge-obj-link">
simplejson.decoder
@@ -85,6 +85,12 @@
Iterator based sre token scanner
</DD>
+ <DT><TT><A HREF="module-simplejson._speedups.html" CLASS="pudge-obj-link">
+ simplejson._speedups
+ </A></TT>
+ </DT>
+
+
</DL>
</DIV>
diff --git a/docs/module-simplejson-index.html b/docs/module-simplejson-index.html
index 82df906..86c8349 100644
--- a/docs/module-simplejson-index.html
+++ b/docs/module-simplejson-index.html
@@ -9,7 +9,7 @@
<DIV ID="page">
<DIV ID="top-nav">
- <H1 ID="doc-title"><A HREF="index.html" REL="index">simplejson 1.6</A></H1>
+ <H1 ID="doc-title"><A HREF="index.html" REL="index">simplejson 1.7dev-r1000</A></H1>
<DIV CLASS="online-navigation">
<A HREF="index.html" REL="index">index</A>
<SPAN ID="nav-docs">
@@ -61,7 +61,7 @@
<A HREF="module-simplejson.html#load">
<TT>load</TT>
</A>
- <A HREF="simplejson/__init__.py.html?f=189&amp;l=214#189">...</A>
+ <A HREF="simplejson/__init__.py.html?f=216&amp;l=238#216">...</A>
<SMALL>
- <SPAN CLASS="rst">Deserialize <TT CLASS="docutils literal"><SPAN CLASS="pre">fp</SPAN></TT> (a <TT CLASS="docutils literal"><SPAN CLASS="pre">.read()</SPAN></TT>-supporting file-like object containing
a JSON document) to a Python object.</SPAN>
@@ -72,7 +72,7 @@ a JSON document) to a Python object.</SPAN>
<A HREF="module-simplejson.html#dump">
<TT>dump</TT>
</A>
- <A HREF="simplejson/__init__.py.html?f=98&amp;l=142#98">...</A>
+ <A HREF="simplejson/__init__.py.html?f=108&amp;l=160#108">...</A>
<SMALL>
- <SPAN CLASS="rst">Serialize <TT CLASS="docutils literal"><SPAN CLASS="pre">obj</SPAN></TT> as a JSON formatted stream to <TT CLASS="docutils literal"><SPAN CLASS="pre">fp</SPAN></TT> (a
<TT CLASS="docutils literal"><SPAN CLASS="pre">.write()</SPAN></TT>-supporting file-like object).</SPAN>
@@ -83,7 +83,7 @@ a JSON document) to a Python object.</SPAN>
<A HREF="module-simplejson.html#dumps">
<TT>dumps</TT>
</A>
- <A HREF="simplejson/__init__.py.html?f=143&amp;l=188#143">...</A>
+ <A HREF="simplejson/__init__.py.html?f=162&amp;l=213#162">...</A>
<SMALL>
- <SPAN CLASS="rst">Serialize <TT CLASS="docutils literal"><SPAN CLASS="pre">obj</SPAN></TT> to a JSON formatted <TT CLASS="docutils literal"><SPAN CLASS="pre">str</SPAN></TT>.</SPAN>
</SMALL>
@@ -93,7 +93,7 @@ a JSON document) to a Python object.</SPAN>
<A HREF="module-simplejson.html#loads">
<TT>loads</TT>
</A>
- <A HREF="simplejson/__init__.py.html?f=215&amp;l=238#215">...</A>
+ <A HREF="simplejson/__init__.py.html?f=239&amp;l=264#239">...</A>
<SMALL>
- <SPAN CLASS="rst">Deserialize <TT CLASS="docutils literal"><SPAN CLASS="pre">s</SPAN></TT> (a <TT CLASS="docutils literal"><SPAN CLASS="pre">str</SPAN></TT> or <TT CLASS="docutils literal"><SPAN CLASS="pre">unicode</SPAN></TT> instance containing a JSON
document) to a Python object.</SPAN>
diff --git a/docs/module-simplejson.html b/docs/module-simplejson.html
index 9415ace..1c562ae 100644
--- a/docs/module-simplejson.html
+++ b/docs/module-simplejson.html
@@ -9,7 +9,7 @@
<DIV ID="page">
<DIV ID="top-nav">
- <H1 ID="doc-title"><A HREF="index.html" REL="index">simplejson 1.6</A></H1>
+ <H1 ID="doc-title"><A HREF="index.html" REL="index">simplejson 1.7dev-r1000</A></H1>
<DIV CLASS="online-navigation">
<A HREF="index.html" REL="index">index</A>
<SPAN ID="nav-docs">
@@ -175,7 +175,7 @@ is a subset of YAML, so it may be used as a serializer for that as well.</P>
<A NAME="dump"></A>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">f</SPAN>
<TT><A HREF="module-simplejson.html#dump" CLASS="pudge-obj-link">dump</A>(obj, fp, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, encoding='utf-8', **kw)</TT>
- <A HREF="simplejson/__init__.py.html?f=98&amp;l=142#98" TITLE="View Source">...</A>
+ <A HREF="simplejson/__init__.py.html?f=108&amp;l=160#108" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
@@ -212,7 +212,7 @@ the <TT CLASS="docutils literal"><SPAN CLASS="pre">cls</SPAN></TT> kwarg.</P>
<A NAME="dumps"></A>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">f</SPAN>
<TT><A HREF="module-simplejson.html#dumps" CLASS="pudge-obj-link">dumps</A>(obj, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, encoding='utf-8', **kw)</TT>
- <A HREF="simplejson/__init__.py.html?f=143&amp;l=188#143" TITLE="View Source">...</A>
+ <A HREF="simplejson/__init__.py.html?f=162&amp;l=213#162" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
@@ -250,7 +250,7 @@ the <TT CLASS="docutils literal"><SPAN CLASS="pre">cls</SPAN></TT> kwarg.</P>
<A NAME="load"></A>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">f</SPAN>
<TT><A HREF="module-simplejson.html#load" CLASS="pudge-obj-link">load</A>(fp, encoding=None, cls=None, object_hook=None, **kw)</TT>
- <A HREF="simplejson/__init__.py.html?f=189&amp;l=214#189" TITLE="View Source">...</A>
+ <A HREF="simplejson/__init__.py.html?f=216&amp;l=238#216" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
@@ -277,7 +277,7 @@ kwarg.</P>
<A NAME="loads"></A>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">f</SPAN>
<TT><A HREF="module-simplejson.html#loads" CLASS="pudge-obj-link">loads</A>(s, encoding=None, cls=None, object_hook=None, **kw)</TT>
- <A HREF="simplejson/__init__.py.html?f=215&amp;l=238#215" TITLE="View Source">...</A>
+ <A HREF="simplejson/__init__.py.html?f=239&amp;l=264#239" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
@@ -307,7 +307,7 @@ kwarg.</P>
<H4 CLASS="pudge-member-name"><SPAN CLASS="prefix">C</SPAN>
<TT>
<A HREF="class-simplejson.JSONEncoder.html" CLASS="pudge-obj-link">JSONEncoder</A>(...)</TT>
- <A HREF="simplejson/encoder.py.html?f=63&amp;l=339#63" CLASS="pudge-member-view-source" TITLE="View Source">...</A>
+ <A HREF="simplejson/encoder.py.html?f=80&amp;l=370#80" CLASS="pudge-member-view-source" TITLE="View Source">...</A>
</H4>
<DIV CLASS="pudge-section rst">
diff --git a/docs/simplejson/__init__.py.html b/docs/simplejson/__init__.py.html
index 5164f90..baabf45 100644
--- a/docs/simplejson/__init__.py.html
+++ b/docs/simplejson/__init__.py.html
@@ -158,7 +158,7 @@ function show_line_range() {
<a class="lnum" href="#86" name="86">0086</a><span class="string">Note&#0160;that&#0160;the&#0160;JSON&#0160;produced&#0160;by&#0160;this&#0160;module's&#0160;default&#0160;settings</span><br />
<a class="lnum" href="#87" name="87">0087</a><span class="string">is&#0160;a&#0160;subset&#0160;of&#0160;YAML,&#0160;so&#0160;it&#0160;may&#0160;be&#0160;used&#0160;as&#0160;a&#0160;serializer&#0160;for&#0160;that&#0160;as&#0160;well.</span><br />
<a class="lnum" href="#88" name="88">0088</a><span class="string">"""</span><br />
-<a class="lnum" href="#89" name="89">0089</a><span class="name">__version__</span>&#0160;<span class="op">=</span>&#0160;<span class="string">'1.6'</span><br />
+<a class="lnum" href="#89" name="89">0089</a><span class="name">__version__</span>&#0160;<span class="op">=</span>&#0160;<span class="string">'1.7'</span><br />
<a class="lnum" href="#90" name="90">0090</a><span class="name">__all__</span>&#0160;<span class="op">=</span>&#0160;<span class="op">[</span><br />
<a class="lnum" href="#91" name="91">0091</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'dump'</span><span class="op">,</span>&#0160;<span class="string">'dumps'</span><span class="op">,</span>&#0160;<span class="string">'load'</span><span class="op">,</span>&#0160;<span class="string">'loads'</span><span class="op">,</span><br />
<a class="lnum" href="#92" name="92">0092</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'JSONDecoder'</span><span class="op">,</span>&#0160;<span class="string">'JSONEncoder'</span><span class="op">,</span><br />
@@ -167,161 +167,187 @@ function show_line_range() {
<a class="lnum" href="#95" name="95">0095</a><span class="keyword">from</span>&#0160;<span class="name">decoder</span>&#0160;<span class="keyword">import</span>&#0160;<span class="name">JSONDecoder</span><br />
<a class="lnum" href="#96" name="96">0096</a><span class="keyword">from</span>&#0160;<span class="name">encoder</span>&#0160;<span class="keyword">import</span>&#0160;<span class="name">JSONEncoder</span><br />
<a class="lnum" href="#97" name="97">0097</a><br />
-<a class="lnum" href="#98" name="98">0098</a><span class="keyword">def</span>&#0160;<span class="name">dump</span><span class="op">(</span><span class="name">obj</span><span class="op">,</span>&#0160;<span class="name">fp</span><span class="op">,</span>&#0160;<span class="name">skipkeys</span><span class="op">=</span><span class="name">False</span><span class="op">,</span>&#0160;<span class="name">ensure_ascii</span><span class="op">=</span><span class="name">True</span><span class="op">,</span>&#0160;<span class="name">check_circular</span><span class="op">=</span><span class="name">True</span><span class="op">,</span><br />
-<a class="lnum" href="#99" name="99">0099</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">allow_nan</span><span class="op">=</span><span class="name">True</span><span class="op">,</span>&#0160;<span class="name">cls</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">indent</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">encoding</span><span class="op">=</span><span class="string">'utf-8'</span><span class="op">,</span>&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#100" name="100">0100</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
-<a class="lnum" href="#101" name="101">0101</a><span class="string">&#0160;&#0160;&#0160;&#0160;Serialize&#0160;``obj``&#0160;as&#0160;a&#0160;JSON&#0160;formatted&#0160;stream&#0160;to&#0160;``fp``&#0160;(a</span><br />
-<a class="lnum" href="#102" name="102">0102</a><span class="string">&#0160;&#0160;&#0160;&#0160;``.write()``-supporting&#0160;file-like&#0160;object).</span><br />
-<a class="lnum" href="#103" name="103">0103</a><span class="string"></span><br />
-<a class="lnum" href="#104" name="104">0104</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``skipkeys``&#0160;is&#0160;``True``&#0160;then&#0160;``dict``&#0160;keys&#0160;that&#0160;are&#0160;not&#0160;basic&#0160;types</span><br />
-<a class="lnum" href="#105" name="105">0105</a><span class="string">&#0160;&#0160;&#0160;&#0160;(``str``,&#0160;``unicode``,&#0160;``int``,&#0160;``long``,&#0160;``float``,&#0160;``bool``,&#0160;``None``)&#0160;</span><br />
-<a class="lnum" href="#106" name="106">0106</a><span class="string">&#0160;&#0160;&#0160;&#0160;will&#0160;be&#0160;skipped&#0160;instead&#0160;of&#0160;raising&#0160;a&#0160;``TypeError``.</span><br />
-<a class="lnum" href="#107" name="107">0107</a><span class="string"></span><br />
-<a class="lnum" href="#108" name="108">0108</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``ensure_ascii``&#0160;is&#0160;``False``,&#0160;then&#0160;the&#0160;some&#0160;chunks&#0160;written&#0160;to&#0160;``fp``</span><br />
-<a class="lnum" href="#109" name="109">0109</a><span class="string">&#0160;&#0160;&#0160;&#0160;may&#0160;be&#0160;``unicode``&#0160;instances,&#0160;subject&#0160;to&#0160;normal&#0160;Python&#0160;``str``&#0160;to</span><br />
-<a class="lnum" href="#110" name="110">0110</a><span class="string">&#0160;&#0160;&#0160;&#0160;``unicode``&#0160;coercion&#0160;rules.&#0160;Unless&#0160;``fp.write()``&#0160;explicitly</span><br />
-<a class="lnum" href="#111" name="111">0111</a><span class="string">&#0160;&#0160;&#0160;&#0160;understands&#0160;``unicode``&#0160;(as&#0160;in&#0160;``codecs.getwriter()``)&#0160;this&#0160;is&#0160;likely</span><br />
-<a class="lnum" href="#112" name="112">0112</a><span class="string">&#0160;&#0160;&#0160;&#0160;to&#0160;cause&#0160;an&#0160;error.</span><br />
-<a class="lnum" href="#113" name="113">0113</a><span class="string"></span><br />
-<a class="lnum" href="#114" name="114">0114</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``check_circular``&#0160;is&#0160;``False``,&#0160;then&#0160;the&#0160;circular&#0160;reference&#0160;check</span><br />
-<a class="lnum" href="#115" name="115">0115</a><span class="string">&#0160;&#0160;&#0160;&#0160;for&#0160;container&#0160;types&#0160;will&#0160;be&#0160;skipped&#0160;and&#0160;a&#0160;circular&#0160;reference&#0160;will</span><br />
-<a class="lnum" href="#116" name="116">0116</a><span class="string">&#0160;&#0160;&#0160;&#0160;result&#0160;in&#0160;an&#0160;``OverflowError``&#0160;(or&#0160;worse).</span><br />
-<a class="lnum" href="#117" name="117">0117</a><span class="string"></span><br />
-<a class="lnum" href="#118" name="118">0118</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``allow_nan``&#0160;is&#0160;``False``,&#0160;then&#0160;it&#0160;will&#0160;be&#0160;a&#0160;``ValueError``&#0160;to</span><br />
-<a class="lnum" href="#119" name="119">0119</a><span class="string">&#0160;&#0160;&#0160;&#0160;serialize&#0160;out&#0160;of&#0160;range&#0160;``float``&#0160;values&#0160;(``nan``,&#0160;``inf``,&#0160;``-inf``)</span><br />
-<a class="lnum" href="#120" name="120">0120</a><span class="string">&#0160;&#0160;&#0160;&#0160;in&#0160;strict&#0160;compliance&#0160;of&#0160;the&#0160;JSON&#0160;specification,&#0160;instead&#0160;of&#0160;using&#0160;the</span><br />
-<a class="lnum" href="#121" name="121">0121</a><span class="string">&#0160;&#0160;&#0160;&#0160;JavaScript&#0160;equivalents&#0160;(``NaN``,&#0160;``Infinity``,&#0160;``-Infinity``).</span><br />
-<a class="lnum" href="#122" name="122">0122</a><span class="string"></span><br />
-<a class="lnum" href="#123" name="123">0123</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``indent``&#0160;is&#0160;a&#0160;non-negative&#0160;integer,&#0160;then&#0160;JSON&#0160;array&#0160;elements&#0160;and&#0160;object</span><br />
-<a class="lnum" href="#124" name="124">0124</a><span class="string">&#0160;&#0160;&#0160;&#0160;members&#0160;will&#0160;be&#0160;pretty-printed&#0160;with&#0160;that&#0160;indent&#0160;level.&#0160;An&#0160;indent&#0160;level</span><br />
-<a class="lnum" href="#125" name="125">0125</a><span class="string">&#0160;&#0160;&#0160;&#0160;of&#0160;0&#0160;will&#0160;only&#0160;insert&#0160;newlines.&#0160;``None``&#0160;is&#0160;the&#0160;most&#0160;compact&#0160;representation.</span><br />
-<a class="lnum" href="#126" name="126">0126</a><span class="string"></span><br />
-<a class="lnum" href="#127" name="127">0127</a><span class="string">&#0160;&#0160;&#0160;&#0160;``encoding``&#0160;is&#0160;the&#0160;character&#0160;encoding&#0160;for&#0160;str&#0160;instances,&#0160;default&#0160;is&#0160;UTF-8.</span><br />
+<a class="lnum" href="#98" name="98">0098</a><span class="name">_default_encoder</span>&#0160;<span class="op">=</span>&#0160;<span class="name">JSONEncoder</span><span class="op">(</span><br />
+<a class="lnum" href="#99" name="99">0099</a>&#0160;&#0160;&#0160;&#0160;<span class="name">skipkeys</span><span class="op">=</span><span class="name">False</span><span class="op">,</span><br />
+<a class="lnum" href="#100" name="100">0100</a>&#0160;&#0160;&#0160;&#0160;<span class="name">ensure_ascii</span><span class="op">=</span><span class="name">True</span><span class="op">,</span><br />
+<a class="lnum" href="#101" name="101">0101</a>&#0160;&#0160;&#0160;&#0160;<span class="name">check_circular</span><span class="op">=</span><span class="name">True</span><span class="op">,</span><br />
+<a class="lnum" href="#102" name="102">0102</a>&#0160;&#0160;&#0160;&#0160;<span class="name">allow_nan</span><span class="op">=</span><span class="name">True</span><span class="op">,</span><br />
+<a class="lnum" href="#103" name="103">0103</a>&#0160;&#0160;&#0160;&#0160;<span class="name">indent</span><span class="op">=</span><span class="name">None</span><span class="op">,</span><br />
+<a class="lnum" href="#104" name="104">0104</a>&#0160;&#0160;&#0160;&#0160;<span class="name">separators</span><span class="op">=</span><span class="name">None</span><span class="op">,</span><br />
+<a class="lnum" href="#105" name="105">0105</a>&#0160;&#0160;&#0160;&#0160;<span class="name">encoding</span><span class="op">=</span><span class="string">'utf-8'</span><br />
+<a class="lnum" href="#106" name="106">0106</a><span class="op">)</span><br />
+<a class="lnum" href="#107" name="107">0107</a><br />
+<a class="lnum" href="#108" name="108">0108</a><span class="keyword">def</span>&#0160;<span class="name">dump</span><span class="op">(</span><span class="name">obj</span><span class="op">,</span>&#0160;<span class="name">fp</span><span class="op">,</span>&#0160;<span class="name">skipkeys</span><span class="op">=</span><span class="name">False</span><span class="op">,</span>&#0160;<span class="name">ensure_ascii</span><span class="op">=</span><span class="name">True</span><span class="op">,</span>&#0160;<span class="name">check_circular</span><span class="op">=</span><span class="name">True</span><span class="op">,</span><br />
+<a class="lnum" href="#109" name="109">0109</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">allow_nan</span><span class="op">=</span><span class="name">True</span><span class="op">,</span>&#0160;<span class="name">cls</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">indent</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">encoding</span><span class="op">=</span><span class="string">'utf-8'</span><span class="op">,</span><br />
+<a class="lnum" href="#110" name="110">0110</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#111" name="111">0111</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
+<a class="lnum" href="#112" name="112">0112</a><span class="string">&#0160;&#0160;&#0160;&#0160;Serialize&#0160;``obj``&#0160;as&#0160;a&#0160;JSON&#0160;formatted&#0160;stream&#0160;to&#0160;``fp``&#0160;(a</span><br />
+<a class="lnum" href="#113" name="113">0113</a><span class="string">&#0160;&#0160;&#0160;&#0160;``.write()``-supporting&#0160;file-like&#0160;object).</span><br />
+<a class="lnum" href="#114" name="114">0114</a><span class="string"></span><br />
+<a class="lnum" href="#115" name="115">0115</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``skipkeys``&#0160;is&#0160;``True``&#0160;then&#0160;``dict``&#0160;keys&#0160;that&#0160;are&#0160;not&#0160;basic&#0160;types</span><br />
+<a class="lnum" href="#116" name="116">0116</a><span class="string">&#0160;&#0160;&#0160;&#0160;(``str``,&#0160;``unicode``,&#0160;``int``,&#0160;``long``,&#0160;``float``,&#0160;``bool``,&#0160;``None``)&#0160;</span><br />
+<a class="lnum" href="#117" name="117">0117</a><span class="string">&#0160;&#0160;&#0160;&#0160;will&#0160;be&#0160;skipped&#0160;instead&#0160;of&#0160;raising&#0160;a&#0160;``TypeError``.</span><br />
+<a class="lnum" href="#118" name="118">0118</a><span class="string"></span><br />
+<a class="lnum" href="#119" name="119">0119</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``ensure_ascii``&#0160;is&#0160;``False``,&#0160;then&#0160;the&#0160;some&#0160;chunks&#0160;written&#0160;to&#0160;``fp``</span><br />
+<a class="lnum" href="#120" name="120">0120</a><span class="string">&#0160;&#0160;&#0160;&#0160;may&#0160;be&#0160;``unicode``&#0160;instances,&#0160;subject&#0160;to&#0160;normal&#0160;Python&#0160;``str``&#0160;to</span><br />
+<a class="lnum" href="#121" name="121">0121</a><span class="string">&#0160;&#0160;&#0160;&#0160;``unicode``&#0160;coercion&#0160;rules.&#0160;Unless&#0160;``fp.write()``&#0160;explicitly</span><br />
+<a class="lnum" href="#122" name="122">0122</a><span class="string">&#0160;&#0160;&#0160;&#0160;understands&#0160;``unicode``&#0160;(as&#0160;in&#0160;``codecs.getwriter()``)&#0160;this&#0160;is&#0160;likely</span><br />
+<a class="lnum" href="#123" name="123">0123</a><span class="string">&#0160;&#0160;&#0160;&#0160;to&#0160;cause&#0160;an&#0160;error.</span><br />
+<a class="lnum" href="#124" name="124">0124</a><span class="string"></span><br />
+<a class="lnum" href="#125" name="125">0125</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``check_circular``&#0160;is&#0160;``False``,&#0160;then&#0160;the&#0160;circular&#0160;reference&#0160;check</span><br />
+<a class="lnum" href="#126" name="126">0126</a><span class="string">&#0160;&#0160;&#0160;&#0160;for&#0160;container&#0160;types&#0160;will&#0160;be&#0160;skipped&#0160;and&#0160;a&#0160;circular&#0160;reference&#0160;will</span><br />
+<a class="lnum" href="#127" name="127">0127</a><span class="string">&#0160;&#0160;&#0160;&#0160;result&#0160;in&#0160;an&#0160;``OverflowError``&#0160;(or&#0160;worse).</span><br />
<a class="lnum" href="#128" name="128">0128</a><span class="string"></span><br />
-<a class="lnum" href="#129" name="129">0129</a><span class="string">&#0160;&#0160;&#0160;&#0160;To&#0160;use&#0160;a&#0160;custom&#0160;``JSONEncoder``&#0160;subclass&#0160;(e.g.&#0160;one&#0160;that&#0160;overrides&#0160;the</span><br />
-<a class="lnum" href="#130" name="130">0130</a><span class="string">&#0160;&#0160;&#0160;&#0160;``.default()``&#0160;method&#0160;to&#0160;serialize&#0160;additional&#0160;types),&#0160;specify&#0160;it&#0160;with</span><br />
-<a class="lnum" href="#131" name="131">0131</a><span class="string">&#0160;&#0160;&#0160;&#0160;the&#0160;``cls``&#0160;kwarg.</span><br />
-<a class="lnum" href="#132" name="132">0132</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
-<a class="lnum" href="#133" name="133">0133</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">cls</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#134" name="134">0134</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">cls</span>&#0160;<span class="op">=</span>&#0160;<span class="name">JSONEncoder</span><br />
-<a class="lnum" href="#135" name="135">0135</a>&#0160;&#0160;&#0160;&#0160;<span class="name">iterable</span>&#0160;<span class="op">=</span>&#0160;<span class="name">cls</span><span class="op">(</span><span class="name">skipkeys</span><span class="op">=</span><span class="name">skipkeys</span><span class="op">,</span>&#0160;<span class="name">ensure_ascii</span><span class="op">=</span><span class="name">ensure_ascii</span><span class="op">,</span><br />
-<a class="lnum" href="#136" name="136">0136</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">check_circular</span><span class="op">=</span><span class="name">check_circular</span><span class="op">,</span>&#0160;<span class="name">allow_nan</span><span class="op">=</span><span class="name">allow_nan</span><span class="op">,</span>&#0160;<span class="name">indent</span><span class="op">=</span><span class="name">indent</span><span class="op">,</span><br />
-<a class="lnum" href="#137" name="137">0137</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoding</span><span class="op">=</span><span class="name">encoding</span><span class="op">,</span>&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">.</span><span class="name">iterencode</span><span class="op">(</span><span class="name">obj</span><span class="op">)</span><br />
-<a class="lnum" href="#138" name="138">0138</a>&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;could&#0160;accelerate&#0160;with&#0160;writelines&#0160;in&#0160;some&#0160;versions&#0160;of&#0160;Python,&#0160;at</span><br />
-<a class="lnum" href="#139" name="139">0139</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;a&#0160;debuggability&#0160;cost</span><br />
-<a class="lnum" href="#140" name="140">0140</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">chunk</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">iterable</span><span class="op">:</span><br />
-<a class="lnum" href="#141" name="141">0141</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">fp</span><span class="op">.</span><span class="name">write</span><span class="op">(</span><span class="name">chunk</span><span class="op">)</span><br />
-<a class="lnum" href="#142" name="142">0142</a><br />
-<a class="lnum" href="#143" name="143">0143</a><span class="keyword">def</span>&#0160;<span class="name">dumps</span><span class="op">(</span><span class="name">obj</span><span class="op">,</span>&#0160;<span class="name">skipkeys</span><span class="op">=</span><span class="name">False</span><span class="op">,</span>&#0160;<span class="name">ensure_ascii</span><span class="op">=</span><span class="name">True</span><span class="op">,</span>&#0160;<span class="name">check_circular</span><span class="op">=</span><span class="name">True</span><span class="op">,</span><br />
-<a class="lnum" href="#144" name="144">0144</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">allow_nan</span><span class="op">=</span><span class="name">True</span><span class="op">,</span>&#0160;<span class="name">cls</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">indent</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">separators</span><span class="op">=</span><span class="name">None</span><span class="op">,</span><br />
-<a class="lnum" href="#145" name="145">0145</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoding</span><span class="op">=</span><span class="string">'utf-8'</span><span class="op">,</span>&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#146" name="146">0146</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
-<a class="lnum" href="#147" name="147">0147</a><span class="string">&#0160;&#0160;&#0160;&#0160;Serialize&#0160;``obj``&#0160;to&#0160;a&#0160;JSON&#0160;formatted&#0160;``str``.</span><br />
-<a class="lnum" href="#148" name="148">0148</a><span class="string"></span><br />
-<a class="lnum" href="#149" name="149">0149</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``skipkeys``&#0160;is&#0160;``True``&#0160;then&#0160;``dict``&#0160;keys&#0160;that&#0160;are&#0160;not&#0160;basic&#0160;types</span><br />
-<a class="lnum" href="#150" name="150">0150</a><span class="string">&#0160;&#0160;&#0160;&#0160;(``str``,&#0160;``unicode``,&#0160;``int``,&#0160;``long``,&#0160;``float``,&#0160;``bool``,&#0160;``None``)&#0160;</span><br />
-<a class="lnum" href="#151" name="151">0151</a><span class="string">&#0160;&#0160;&#0160;&#0160;will&#0160;be&#0160;skipped&#0160;instead&#0160;of&#0160;raising&#0160;a&#0160;``TypeError``.</span><br />
-<a class="lnum" href="#152" name="152">0152</a><span class="string"></span><br />
-<a class="lnum" href="#153" name="153">0153</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``ensure_ascii``&#0160;is&#0160;``False``,&#0160;then&#0160;the&#0160;return&#0160;value&#0160;will&#0160;be&#0160;a</span><br />
-<a class="lnum" href="#154" name="154">0154</a><span class="string">&#0160;&#0160;&#0160;&#0160;``unicode``&#0160;instance&#0160;subject&#0160;to&#0160;normal&#0160;Python&#0160;``str``&#0160;to&#0160;``unicode``</span><br />
-<a class="lnum" href="#155" name="155">0155</a><span class="string">&#0160;&#0160;&#0160;&#0160;coercion&#0160;rules&#0160;instead&#0160;of&#0160;being&#0160;escaped&#0160;to&#0160;an&#0160;ASCII&#0160;``str``.</span><br />
-<a class="lnum" href="#156" name="156">0156</a><span class="string"></span><br />
-<a class="lnum" href="#157" name="157">0157</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``check_circular``&#0160;is&#0160;``False``,&#0160;then&#0160;the&#0160;circular&#0160;reference&#0160;check</span><br />
-<a class="lnum" href="#158" name="158">0158</a><span class="string">&#0160;&#0160;&#0160;&#0160;for&#0160;container&#0160;types&#0160;will&#0160;be&#0160;skipped&#0160;and&#0160;a&#0160;circular&#0160;reference&#0160;will</span><br />
-<a class="lnum" href="#159" name="159">0159</a><span class="string">&#0160;&#0160;&#0160;&#0160;result&#0160;in&#0160;an&#0160;``OverflowError``&#0160;(or&#0160;worse).</span><br />
-<a class="lnum" href="#160" name="160">0160</a><span class="string"></span><br />
-<a class="lnum" href="#161" name="161">0161</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``allow_nan``&#0160;is&#0160;``False``,&#0160;then&#0160;it&#0160;will&#0160;be&#0160;a&#0160;``ValueError``&#0160;to</span><br />
-<a class="lnum" href="#162" name="162">0162</a><span class="string">&#0160;&#0160;&#0160;&#0160;serialize&#0160;out&#0160;of&#0160;range&#0160;``float``&#0160;values&#0160;(``nan``,&#0160;``inf``,&#0160;``-inf``)&#0160;in</span><br />
-<a class="lnum" href="#163" name="163">0163</a><span class="string">&#0160;&#0160;&#0160;&#0160;strict&#0160;compliance&#0160;of&#0160;the&#0160;JSON&#0160;specification,&#0160;instead&#0160;of&#0160;using&#0160;the</span><br />
-<a class="lnum" href="#164" name="164">0164</a><span class="string">&#0160;&#0160;&#0160;&#0160;JavaScript&#0160;equivalents&#0160;(``NaN``,&#0160;``Infinity``,&#0160;``-Infinity``).</span><br />
-<a class="lnum" href="#165" name="165">0165</a><span class="string"></span><br />
-<a class="lnum" href="#166" name="166">0166</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``indent``&#0160;is&#0160;a&#0160;non-negative&#0160;integer,&#0160;then&#0160;JSON&#0160;array&#0160;elements&#0160;and</span><br />
-<a class="lnum" href="#167" name="167">0167</a><span class="string">&#0160;&#0160;&#0160;&#0160;object&#0160;members&#0160;will&#0160;be&#0160;pretty-printed&#0160;with&#0160;that&#0160;indent&#0160;level.&#0160;An&#0160;indent</span><br />
-<a class="lnum" href="#168" name="168">0168</a><span class="string">&#0160;&#0160;&#0160;&#0160;level&#0160;of&#0160;0&#0160;will&#0160;only&#0160;insert&#0160;newlines.&#0160;``None``&#0160;is&#0160;the&#0160;most&#0160;compact</span><br />
-<a class="lnum" href="#169" name="169">0169</a><span class="string">&#0160;&#0160;&#0160;&#0160;representation.</span><br />
-<a class="lnum" href="#170" name="170">0170</a><span class="string"></span><br />
-<a class="lnum" href="#171" name="171">0171</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``separators``&#0160;is&#0160;an&#0160;``(item_separator,&#0160;dict_separator)``&#0160;tuple</span><br />
-<a class="lnum" href="#172" name="172">0172</a><span class="string">&#0160;&#0160;&#0160;&#0160;then&#0160;it&#0160;will&#0160;be&#0160;used&#0160;instead&#0160;of&#0160;the&#0160;default&#0160;``(',&#0160;',&#0160;':&#0160;')``&#0160;separators.</span><br />
-<a class="lnum" href="#173" name="173">0173</a><span class="string">&#0160;&#0160;&#0160;&#0160;``(',',&#0160;':')``&#0160;is&#0160;the&#0160;most&#0160;compact&#0160;JSON&#0160;representation.</span><br />
-<a class="lnum" href="#174" name="174">0174</a><span class="string"></span><br />
-<a class="lnum" href="#175" name="175">0175</a><span class="string">&#0160;&#0160;&#0160;&#0160;``encoding``&#0160;is&#0160;the&#0160;character&#0160;encoding&#0160;for&#0160;str&#0160;instances,&#0160;default&#0160;is&#0160;UTF-8.</span><br />
-<a class="lnum" href="#176" name="176">0176</a><span class="string"></span><br />
-<a class="lnum" href="#177" name="177">0177</a><span class="string">&#0160;&#0160;&#0160;&#0160;To&#0160;use&#0160;a&#0160;custom&#0160;``JSONEncoder``&#0160;subclass&#0160;(e.g.&#0160;one&#0160;that&#0160;overrides&#0160;the</span><br />
-<a class="lnum" href="#178" name="178">0178</a><span class="string">&#0160;&#0160;&#0160;&#0160;``.default()``&#0160;method&#0160;to&#0160;serialize&#0160;additional&#0160;types),&#0160;specify&#0160;it&#0160;with</span><br />
-<a class="lnum" href="#179" name="179">0179</a><span class="string">&#0160;&#0160;&#0160;&#0160;the&#0160;``cls``&#0160;kwarg.</span><br />
-<a class="lnum" href="#180" name="180">0180</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
-<a class="lnum" href="#181" name="181">0181</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">cls</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#182" name="182">0182</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">cls</span>&#0160;<span class="op">=</span>&#0160;<span class="name">JSONEncoder</span><br />
-<a class="lnum" href="#183" name="183">0183</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">cls</span><span class="op">(</span><br />
-<a class="lnum" href="#184" name="184">0184</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">skipkeys</span><span class="op">=</span><span class="name">skipkeys</span><span class="op">,</span>&#0160;<span class="name">ensure_ascii</span><span class="op">=</span><span class="name">ensure_ascii</span><span class="op">,</span><br />
-<a class="lnum" href="#185" name="185">0185</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">check_circular</span><span class="op">=</span><span class="name">check_circular</span><span class="op">,</span>&#0160;<span class="name">allow_nan</span><span class="op">=</span><span class="name">allow_nan</span><span class="op">,</span>&#0160;<span class="name">indent</span><span class="op">=</span><span class="name">indent</span><span class="op">,</span><br />
-<a class="lnum" href="#186" name="186">0186</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">separators</span><span class="op">=</span><span class="name">separators</span><span class="op">,</span>&#0160;<span class="name">encoding</span><span class="op">=</span><span class="name">encoding</span><span class="op">,</span><br />
-<a class="lnum" href="#187" name="187">0187</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">.</span><span class="name">encode</span><span class="op">(</span><span class="name">obj</span><span class="op">)</span><br />
-<a class="lnum" href="#188" name="188">0188</a><br />
-<a class="lnum" href="#189" name="189">0189</a><span class="keyword">def</span>&#0160;<span class="name">load</span><span class="op">(</span><span class="name">fp</span><span class="op">,</span>&#0160;<span class="name">encoding</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">cls</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">object_hook</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#190" name="190">0190</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
-<a class="lnum" href="#191" name="191">0191</a><span class="string">&#0160;&#0160;&#0160;&#0160;Deserialize&#0160;``fp``&#0160;(a&#0160;``.read()``-supporting&#0160;file-like&#0160;object&#0160;containing</span><br />
-<a class="lnum" href="#192" name="192">0192</a><span class="string">&#0160;&#0160;&#0160;&#0160;a&#0160;JSON&#0160;document)&#0160;to&#0160;a&#0160;Python&#0160;object.</span><br />
+<a class="lnum" href="#129" name="129">0129</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``allow_nan``&#0160;is&#0160;``False``,&#0160;then&#0160;it&#0160;will&#0160;be&#0160;a&#0160;``ValueError``&#0160;to</span><br />
+<a class="lnum" href="#130" name="130">0130</a><span class="string">&#0160;&#0160;&#0160;&#0160;serialize&#0160;out&#0160;of&#0160;range&#0160;``float``&#0160;values&#0160;(``nan``,&#0160;``inf``,&#0160;``-inf``)</span><br />
+<a class="lnum" href="#131" name="131">0131</a><span class="string">&#0160;&#0160;&#0160;&#0160;in&#0160;strict&#0160;compliance&#0160;of&#0160;the&#0160;JSON&#0160;specification,&#0160;instead&#0160;of&#0160;using&#0160;the</span><br />
+<a class="lnum" href="#132" name="132">0132</a><span class="string">&#0160;&#0160;&#0160;&#0160;JavaScript&#0160;equivalents&#0160;(``NaN``,&#0160;``Infinity``,&#0160;``-Infinity``).</span><br />
+<a class="lnum" href="#133" name="133">0133</a><span class="string"></span><br />
+<a class="lnum" href="#134" name="134">0134</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``indent``&#0160;is&#0160;a&#0160;non-negative&#0160;integer,&#0160;then&#0160;JSON&#0160;array&#0160;elements&#0160;and&#0160;object</span><br />
+<a class="lnum" href="#135" name="135">0135</a><span class="string">&#0160;&#0160;&#0160;&#0160;members&#0160;will&#0160;be&#0160;pretty-printed&#0160;with&#0160;that&#0160;indent&#0160;level.&#0160;An&#0160;indent&#0160;level</span><br />
+<a class="lnum" href="#136" name="136">0136</a><span class="string">&#0160;&#0160;&#0160;&#0160;of&#0160;0&#0160;will&#0160;only&#0160;insert&#0160;newlines.&#0160;``None``&#0160;is&#0160;the&#0160;most&#0160;compact&#0160;representation.</span><br />
+<a class="lnum" href="#137" name="137">0137</a><span class="string"></span><br />
+<a class="lnum" href="#138" name="138">0138</a><span class="string">&#0160;&#0160;&#0160;&#0160;``encoding``&#0160;is&#0160;the&#0160;character&#0160;encoding&#0160;for&#0160;str&#0160;instances,&#0160;default&#0160;is&#0160;UTF-8.</span><br />
+<a class="lnum" href="#139" name="139">0139</a><span class="string"></span><br />
+<a class="lnum" href="#140" name="140">0140</a><span class="string">&#0160;&#0160;&#0160;&#0160;To&#0160;use&#0160;a&#0160;custom&#0160;``JSONEncoder``&#0160;subclass&#0160;(e.g.&#0160;one&#0160;that&#0160;overrides&#0160;the</span><br />
+<a class="lnum" href="#141" name="141">0141</a><span class="string">&#0160;&#0160;&#0160;&#0160;``.default()``&#0160;method&#0160;to&#0160;serialize&#0160;additional&#0160;types),&#0160;specify&#0160;it&#0160;with</span><br />
+<a class="lnum" href="#142" name="142">0142</a><span class="string">&#0160;&#0160;&#0160;&#0160;the&#0160;``cls``&#0160;kwarg.</span><br />
+<a class="lnum" href="#143" name="143">0143</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
+<a class="lnum" href="#144" name="144">0144</a>&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;cached&#0160;encoder</span><br />
+<a class="lnum" href="#145" name="145">0145</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="op">(</span><span class="name">skipkeys</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">False</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">ensure_ascii</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">True</span>&#0160;<span class="keyword">and</span><br />
+<a class="lnum" href="#146" name="146">0146</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">check_circular</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">True</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">allow_nan</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">True</span>&#0160;<span class="keyword">and</span><br />
+<a class="lnum" href="#147" name="147">0147</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">cls</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">indent</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">separators</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span>&#0160;<span class="keyword">and</span><br />
+<a class="lnum" href="#148" name="148">0148</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoding</span>&#0160;<span class="op">==</span>&#0160;<span class="string">'utf-8'</span>&#0160;<span class="keyword">and</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">kw</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#149" name="149">0149</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">iterable</span>&#0160;<span class="op">=</span>&#0160;<span class="name">_default_encoder</span><span class="op">.</span><span class="name">iterencode</span><span class="op">(</span><span class="name">obj</span><span class="op">)</span><br />
+<a class="lnum" href="#150" name="150">0150</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
+<a class="lnum" href="#151" name="151">0151</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">cls</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#152" name="152">0152</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">cls</span>&#0160;<span class="op">=</span>&#0160;<span class="name">JSONEncoder</span><br />
+<a class="lnum" href="#153" name="153">0153</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">iterable</span>&#0160;<span class="op">=</span>&#0160;<span class="name">cls</span><span class="op">(</span><span class="name">skipkeys</span><span class="op">=</span><span class="name">skipkeys</span><span class="op">,</span>&#0160;<span class="name">ensure_ascii</span><span class="op">=</span><span class="name">ensure_ascii</span><span class="op">,</span><br />
+<a class="lnum" href="#154" name="154">0154</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">check_circular</span><span class="op">=</span><span class="name">check_circular</span><span class="op">,</span>&#0160;<span class="name">allow_nan</span><span class="op">=</span><span class="name">allow_nan</span><span class="op">,</span>&#0160;<span class="name">indent</span><span class="op">=</span><span class="name">indent</span><span class="op">,</span><br />
+<a class="lnum" href="#155" name="155">0155</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoding</span><span class="op">=</span><span class="name">encoding</span><span class="op">,</span>&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">.</span><span class="name">iterencode</span><span class="op">(</span><span class="name">obj</span><span class="op">)</span><br />
+<a class="lnum" href="#156" name="156">0156</a>&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;could&#0160;accelerate&#0160;with&#0160;writelines&#0160;in&#0160;some&#0160;versions&#0160;of&#0160;Python,&#0160;at</span><br />
+<a class="lnum" href="#157" name="157">0157</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;a&#0160;debuggability&#0160;cost</span><br />
+<a class="lnum" href="#158" name="158">0158</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">chunk</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">iterable</span><span class="op">:</span><br />
+<a class="lnum" href="#159" name="159">0159</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">fp</span><span class="op">.</span><span class="name">write</span><span class="op">(</span><span class="name">chunk</span><span class="op">)</span><br />
+<a class="lnum" href="#160" name="160">0160</a><br />
+<a class="lnum" href="#161" name="161">0161</a><br />
+<a class="lnum" href="#162" name="162">0162</a><span class="keyword">def</span>&#0160;<span class="name">dumps</span><span class="op">(</span><span class="name">obj</span><span class="op">,</span>&#0160;<span class="name">skipkeys</span><span class="op">=</span><span class="name">False</span><span class="op">,</span>&#0160;<span class="name">ensure_ascii</span><span class="op">=</span><span class="name">True</span><span class="op">,</span>&#0160;<span class="name">check_circular</span><span class="op">=</span><span class="name">True</span><span class="op">,</span><br />
+<a class="lnum" href="#163" name="163">0163</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">allow_nan</span><span class="op">=</span><span class="name">True</span><span class="op">,</span>&#0160;<span class="name">cls</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">indent</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">separators</span><span class="op">=</span><span class="name">None</span><span class="op">,</span><br />
+<a class="lnum" href="#164" name="164">0164</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoding</span><span class="op">=</span><span class="string">'utf-8'</span><span class="op">,</span>&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#165" name="165">0165</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
+<a class="lnum" href="#166" name="166">0166</a><span class="string">&#0160;&#0160;&#0160;&#0160;Serialize&#0160;``obj``&#0160;to&#0160;a&#0160;JSON&#0160;formatted&#0160;``str``.</span><br />
+<a class="lnum" href="#167" name="167">0167</a><span class="string"></span><br />
+<a class="lnum" href="#168" name="168">0168</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``skipkeys``&#0160;is&#0160;``True``&#0160;then&#0160;``dict``&#0160;keys&#0160;that&#0160;are&#0160;not&#0160;basic&#0160;types</span><br />
+<a class="lnum" href="#169" name="169">0169</a><span class="string">&#0160;&#0160;&#0160;&#0160;(``str``,&#0160;``unicode``,&#0160;``int``,&#0160;``long``,&#0160;``float``,&#0160;``bool``,&#0160;``None``)&#0160;</span><br />
+<a class="lnum" href="#170" name="170">0170</a><span class="string">&#0160;&#0160;&#0160;&#0160;will&#0160;be&#0160;skipped&#0160;instead&#0160;of&#0160;raising&#0160;a&#0160;``TypeError``.</span><br />
+<a class="lnum" href="#171" name="171">0171</a><span class="string"></span><br />
+<a class="lnum" href="#172" name="172">0172</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``ensure_ascii``&#0160;is&#0160;``False``,&#0160;then&#0160;the&#0160;return&#0160;value&#0160;will&#0160;be&#0160;a</span><br />
+<a class="lnum" href="#173" name="173">0173</a><span class="string">&#0160;&#0160;&#0160;&#0160;``unicode``&#0160;instance&#0160;subject&#0160;to&#0160;normal&#0160;Python&#0160;``str``&#0160;to&#0160;``unicode``</span><br />
+<a class="lnum" href="#174" name="174">0174</a><span class="string">&#0160;&#0160;&#0160;&#0160;coercion&#0160;rules&#0160;instead&#0160;of&#0160;being&#0160;escaped&#0160;to&#0160;an&#0160;ASCII&#0160;``str``.</span><br />
+<a class="lnum" href="#175" name="175">0175</a><span class="string"></span><br />
+<a class="lnum" href="#176" name="176">0176</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``check_circular``&#0160;is&#0160;``False``,&#0160;then&#0160;the&#0160;circular&#0160;reference&#0160;check</span><br />
+<a class="lnum" href="#177" name="177">0177</a><span class="string">&#0160;&#0160;&#0160;&#0160;for&#0160;container&#0160;types&#0160;will&#0160;be&#0160;skipped&#0160;and&#0160;a&#0160;circular&#0160;reference&#0160;will</span><br />
+<a class="lnum" href="#178" name="178">0178</a><span class="string">&#0160;&#0160;&#0160;&#0160;result&#0160;in&#0160;an&#0160;``OverflowError``&#0160;(or&#0160;worse).</span><br />
+<a class="lnum" href="#179" name="179">0179</a><span class="string"></span><br />
+<a class="lnum" href="#180" name="180">0180</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``allow_nan``&#0160;is&#0160;``False``,&#0160;then&#0160;it&#0160;will&#0160;be&#0160;a&#0160;``ValueError``&#0160;to</span><br />
+<a class="lnum" href="#181" name="181">0181</a><span class="string">&#0160;&#0160;&#0160;&#0160;serialize&#0160;out&#0160;of&#0160;range&#0160;``float``&#0160;values&#0160;(``nan``,&#0160;``inf``,&#0160;``-inf``)&#0160;in</span><br />
+<a class="lnum" href="#182" name="182">0182</a><span class="string">&#0160;&#0160;&#0160;&#0160;strict&#0160;compliance&#0160;of&#0160;the&#0160;JSON&#0160;specification,&#0160;instead&#0160;of&#0160;using&#0160;the</span><br />
+<a class="lnum" href="#183" name="183">0183</a><span class="string">&#0160;&#0160;&#0160;&#0160;JavaScript&#0160;equivalents&#0160;(``NaN``,&#0160;``Infinity``,&#0160;``-Infinity``).</span><br />
+<a class="lnum" href="#184" name="184">0184</a><span class="string"></span><br />
+<a class="lnum" href="#185" name="185">0185</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``indent``&#0160;is&#0160;a&#0160;non-negative&#0160;integer,&#0160;then&#0160;JSON&#0160;array&#0160;elements&#0160;and</span><br />
+<a class="lnum" href="#186" name="186">0186</a><span class="string">&#0160;&#0160;&#0160;&#0160;object&#0160;members&#0160;will&#0160;be&#0160;pretty-printed&#0160;with&#0160;that&#0160;indent&#0160;level.&#0160;An&#0160;indent</span><br />
+<a class="lnum" href="#187" name="187">0187</a><span class="string">&#0160;&#0160;&#0160;&#0160;level&#0160;of&#0160;0&#0160;will&#0160;only&#0160;insert&#0160;newlines.&#0160;``None``&#0160;is&#0160;the&#0160;most&#0160;compact</span><br />
+<a class="lnum" href="#188" name="188">0188</a><span class="string">&#0160;&#0160;&#0160;&#0160;representation.</span><br />
+<a class="lnum" href="#189" name="189">0189</a><span class="string"></span><br />
+<a class="lnum" href="#190" name="190">0190</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``separators``&#0160;is&#0160;an&#0160;``(item_separator,&#0160;dict_separator)``&#0160;tuple</span><br />
+<a class="lnum" href="#191" name="191">0191</a><span class="string">&#0160;&#0160;&#0160;&#0160;then&#0160;it&#0160;will&#0160;be&#0160;used&#0160;instead&#0160;of&#0160;the&#0160;default&#0160;``(',&#0160;',&#0160;':&#0160;')``&#0160;separators.</span><br />
+<a class="lnum" href="#192" name="192">0192</a><span class="string">&#0160;&#0160;&#0160;&#0160;``(',',&#0160;':')``&#0160;is&#0160;the&#0160;most&#0160;compact&#0160;JSON&#0160;representation.</span><br />
<a class="lnum" href="#193" name="193">0193</a><span class="string"></span><br />
-<a class="lnum" href="#194" name="194">0194</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;the&#0160;contents&#0160;of&#0160;``fp``&#0160;is&#0160;encoded&#0160;with&#0160;an&#0160;ASCII&#0160;based&#0160;encoding&#0160;other</span><br />
-<a class="lnum" href="#195" name="195">0195</a><span class="string">&#0160;&#0160;&#0160;&#0160;than&#0160;utf-8&#0160;(e.g.&#0160;latin-1),&#0160;then&#0160;an&#0160;appropriate&#0160;``encoding``&#0160;name&#0160;must</span><br />
-<a class="lnum" href="#196" name="196">0196</a><span class="string">&#0160;&#0160;&#0160;&#0160;be&#0160;specified.&#0160;Encodings&#0160;that&#0160;are&#0160;not&#0160;ASCII&#0160;based&#0160;(such&#0160;as&#0160;UCS-2)&#0160;are</span><br />
-<a class="lnum" href="#197" name="197">0197</a><span class="string">&#0160;&#0160;&#0160;&#0160;not&#0160;allowed,&#0160;and&#0160;should&#0160;be&#0160;wrapped&#0160;with</span><br />
-<a class="lnum" href="#198" name="198">0198</a><span class="string">&#0160;&#0160;&#0160;&#0160;``codecs.getreader(fp)(encoding)``,&#0160;or&#0160;simply&#0160;decoded&#0160;to&#0160;a&#0160;``unicode``</span><br />
-<a class="lnum" href="#199" name="199">0199</a><span class="string">&#0160;&#0160;&#0160;&#0160;object&#0160;and&#0160;passed&#0160;to&#0160;``loads()``</span><br />
-<a class="lnum" href="#200" name="200">0200</a><span class="string"></span><br />
-<a class="lnum" href="#201" name="201">0201</a><span class="string">&#0160;&#0160;&#0160;&#0160;``object_hook``&#0160;is&#0160;an&#0160;optional&#0160;function&#0160;that&#0160;will&#0160;be&#0160;called&#0160;with&#0160;the</span><br />
-<a class="lnum" href="#202" name="202">0202</a><span class="string">&#0160;&#0160;&#0160;&#0160;result&#0160;of&#0160;any&#0160;object&#0160;literal&#0160;decode&#0160;(a&#0160;``dict``).&#0160;The&#0160;return&#0160;value&#0160;of</span><br />
-<a class="lnum" href="#203" name="203">0203</a><span class="string">&#0160;&#0160;&#0160;&#0160;``object_hook``&#0160;will&#0160;be&#0160;used&#0160;instead&#0160;of&#0160;the&#0160;``dict``.&#0160;This&#0160;feature</span><br />
-<a class="lnum" href="#204" name="204">0204</a><span class="string">&#0160;&#0160;&#0160;&#0160;can&#0160;be&#0160;used&#0160;to&#0160;implement&#0160;custom&#0160;decoders&#0160;(e.g.&#0160;JSON-RPC&#0160;class&#0160;hinting).</span><br />
-<a class="lnum" href="#205" name="205">0205</a><span class="string">&#0160;&#0160;&#0160;&#0160;</span><br />
-<a class="lnum" href="#206" name="206">0206</a><span class="string">&#0160;&#0160;&#0160;&#0160;To&#0160;use&#0160;a&#0160;custom&#0160;``JSONDecoder``&#0160;subclass,&#0160;specify&#0160;it&#0160;with&#0160;the&#0160;``cls``</span><br />
-<a class="lnum" href="#207" name="207">0207</a><span class="string">&#0160;&#0160;&#0160;&#0160;kwarg.</span><br />
-<a class="lnum" href="#208" name="208">0208</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
-<a class="lnum" href="#209" name="209">0209</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">cls</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#210" name="210">0210</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">cls</span>&#0160;<span class="op">=</span>&#0160;<span class="name">JSONDecoder</span><br />
-<a class="lnum" href="#211" name="211">0211</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">object_hook</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#212" name="212">0212</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">kw</span><span class="op">[</span><span class="string">'object_hook'</span><span class="op">]</span>&#0160;<span class="op">=</span>&#0160;<span class="name">object_hook</span><br />
-<a class="lnum" href="#213" name="213">0213</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">cls</span><span class="op">(</span><span class="name">encoding</span><span class="op">=</span><span class="name">encoding</span><span class="op">,</span>&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">.</span><span class="name">decode</span><span class="op">(</span><span class="name">fp</span><span class="op">.</span><span class="name">read</span><span class="op">(</span><span class="op">)</span><span class="op">)</span><br />
-<a class="lnum" href="#214" name="214">0214</a><br />
-<a class="lnum" href="#215" name="215">0215</a><span class="keyword">def</span>&#0160;<span class="name">loads</span><span class="op">(</span><span class="name">s</span><span class="op">,</span>&#0160;<span class="name">encoding</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">cls</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">object_hook</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#216" name="216">0216</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
-<a class="lnum" href="#217" name="217">0217</a><span class="string">&#0160;&#0160;&#0160;&#0160;Deserialize&#0160;``s``&#0160;(a&#0160;``str``&#0160;or&#0160;``unicode``&#0160;instance&#0160;containing&#0160;a&#0160;JSON</span><br />
-<a class="lnum" href="#218" name="218">0218</a><span class="string">&#0160;&#0160;&#0160;&#0160;document)&#0160;to&#0160;a&#0160;Python&#0160;object.</span><br />
-<a class="lnum" href="#219" name="219">0219</a><span class="string"></span><br />
-<a class="lnum" href="#220" name="220">0220</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``s``&#0160;is&#0160;a&#0160;``str``&#0160;instance&#0160;and&#0160;is&#0160;encoded&#0160;with&#0160;an&#0160;ASCII&#0160;based&#0160;encoding</span><br />
-<a class="lnum" href="#221" name="221">0221</a><span class="string">&#0160;&#0160;&#0160;&#0160;other&#0160;than&#0160;utf-8&#0160;(e.g.&#0160;latin-1)&#0160;then&#0160;an&#0160;appropriate&#0160;``encoding``&#0160;name</span><br />
-<a class="lnum" href="#222" name="222">0222</a><span class="string">&#0160;&#0160;&#0160;&#0160;must&#0160;be&#0160;specified.&#0160;Encodings&#0160;that&#0160;are&#0160;not&#0160;ASCII&#0160;based&#0160;(such&#0160;as&#0160;UCS-2)</span><br />
-<a class="lnum" href="#223" name="223">0223</a><span class="string">&#0160;&#0160;&#0160;&#0160;are&#0160;not&#0160;allowed&#0160;and&#0160;should&#0160;be&#0160;decoded&#0160;to&#0160;``unicode``&#0160;first.</span><br />
-<a class="lnum" href="#224" name="224">0224</a><span class="string"></span><br />
-<a class="lnum" href="#225" name="225">0225</a><span class="string">&#0160;&#0160;&#0160;&#0160;``object_hook``&#0160;is&#0160;an&#0160;optional&#0160;function&#0160;that&#0160;will&#0160;be&#0160;called&#0160;with&#0160;the</span><br />
-<a class="lnum" href="#226" name="226">0226</a><span class="string">&#0160;&#0160;&#0160;&#0160;result&#0160;of&#0160;any&#0160;object&#0160;literal&#0160;decode&#0160;(a&#0160;``dict``).&#0160;The&#0160;return&#0160;value&#0160;of</span><br />
-<a class="lnum" href="#227" name="227">0227</a><span class="string">&#0160;&#0160;&#0160;&#0160;``object_hook``&#0160;will&#0160;be&#0160;used&#0160;instead&#0160;of&#0160;the&#0160;``dict``.&#0160;This&#0160;feature</span><br />
-<a class="lnum" href="#228" name="228">0228</a><span class="string">&#0160;&#0160;&#0160;&#0160;can&#0160;be&#0160;used&#0160;to&#0160;implement&#0160;custom&#0160;decoders&#0160;(e.g.&#0160;JSON-RPC&#0160;class&#0160;hinting).</span><br />
-<a class="lnum" href="#229" name="229">0229</a><span class="string"></span><br />
-<a class="lnum" href="#230" name="230">0230</a><span class="string">&#0160;&#0160;&#0160;&#0160;To&#0160;use&#0160;a&#0160;custom&#0160;``JSONDecoder``&#0160;subclass,&#0160;specify&#0160;it&#0160;with&#0160;the&#0160;``cls``</span><br />
-<a class="lnum" href="#231" name="231">0231</a><span class="string">&#0160;&#0160;&#0160;&#0160;kwarg.</span><br />
-<a class="lnum" href="#232" name="232">0232</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
-<a class="lnum" href="#233" name="233">0233</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">cls</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#234" name="234">0234</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">cls</span>&#0160;<span class="op">=</span>&#0160;<span class="name">JSONDecoder</span><br />
-<a class="lnum" href="#235" name="235">0235</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">object_hook</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#236" name="236">0236</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">kw</span><span class="op">[</span><span class="string">'object_hook'</span><span class="op">]</span>&#0160;<span class="op">=</span>&#0160;<span class="name">object_hook</span><br />
-<a class="lnum" href="#237" name="237">0237</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">cls</span><span class="op">(</span><span class="name">encoding</span><span class="op">=</span><span class="name">encoding</span><span class="op">,</span>&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">.</span><span class="name">decode</span><span class="op">(</span><span class="name">s</span><span class="op">)</span><br />
+<a class="lnum" href="#194" name="194">0194</a><span class="string">&#0160;&#0160;&#0160;&#0160;``encoding``&#0160;is&#0160;the&#0160;character&#0160;encoding&#0160;for&#0160;str&#0160;instances,&#0160;default&#0160;is&#0160;UTF-8.</span><br />
+<a class="lnum" href="#195" name="195">0195</a><span class="string"></span><br />
+<a class="lnum" href="#196" name="196">0196</a><span class="string">&#0160;&#0160;&#0160;&#0160;To&#0160;use&#0160;a&#0160;custom&#0160;``JSONEncoder``&#0160;subclass&#0160;(e.g.&#0160;one&#0160;that&#0160;overrides&#0160;the</span><br />
+<a class="lnum" href="#197" name="197">0197</a><span class="string">&#0160;&#0160;&#0160;&#0160;``.default()``&#0160;method&#0160;to&#0160;serialize&#0160;additional&#0160;types),&#0160;specify&#0160;it&#0160;with</span><br />
+<a class="lnum" href="#198" name="198">0198</a><span class="string">&#0160;&#0160;&#0160;&#0160;the&#0160;``cls``&#0160;kwarg.</span><br />
+<a class="lnum" href="#199" name="199">0199</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
+<a class="lnum" href="#200" name="200">0200</a>&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;cached&#0160;encoder</span><br />
+<a class="lnum" href="#201" name="201">0201</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="op">(</span><span class="name">skipkeys</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">False</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">ensure_ascii</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">True</span>&#0160;<span class="keyword">and</span><br />
+<a class="lnum" href="#202" name="202">0202</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">check_circular</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">True</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">allow_nan</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">True</span>&#0160;<span class="keyword">and</span><br />
+<a class="lnum" href="#203" name="203">0203</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">cls</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">indent</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">separators</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span>&#0160;<span class="keyword">and</span><br />
+<a class="lnum" href="#204" name="204">0204</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoding</span>&#0160;<span class="op">==</span>&#0160;<span class="string">'utf-8'</span>&#0160;<span class="keyword">and</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">kw</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#205" name="205">0205</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">_default_encoder</span><span class="op">.</span><span class="name">encode</span><span class="op">(</span><span class="name">obj</span><span class="op">)</span><br />
+<a class="lnum" href="#206" name="206">0206</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">cls</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#207" name="207">0207</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">cls</span>&#0160;<span class="op">=</span>&#0160;<span class="name">JSONEncoder</span><br />
+<a class="lnum" href="#208" name="208">0208</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">cls</span><span class="op">(</span><br />
+<a class="lnum" href="#209" name="209">0209</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">skipkeys</span><span class="op">=</span><span class="name">skipkeys</span><span class="op">,</span>&#0160;<span class="name">ensure_ascii</span><span class="op">=</span><span class="name">ensure_ascii</span><span class="op">,</span><br />
+<a class="lnum" href="#210" name="210">0210</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">check_circular</span><span class="op">=</span><span class="name">check_circular</span><span class="op">,</span>&#0160;<span class="name">allow_nan</span><span class="op">=</span><span class="name">allow_nan</span><span class="op">,</span>&#0160;<span class="name">indent</span><span class="op">=</span><span class="name">indent</span><span class="op">,</span><br />
+<a class="lnum" href="#211" name="211">0211</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">separators</span><span class="op">=</span><span class="name">separators</span><span class="op">,</span>&#0160;<span class="name">encoding</span><span class="op">=</span><span class="name">encoding</span><span class="op">,</span><br />
+<a class="lnum" href="#212" name="212">0212</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">.</span><span class="name">encode</span><span class="op">(</span><span class="name">obj</span><span class="op">)</span><br />
+<a class="lnum" href="#213" name="213">0213</a><br />
+<a class="lnum" href="#214" name="214">0214</a><span class="name">_default_decoder</span>&#0160;<span class="op">=</span>&#0160;<span class="name">JSONDecoder</span><span class="op">(</span><span class="name">encoding</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">object_hook</span><span class="op">=</span><span class="name">None</span><span class="op">)</span><br />
+<a class="lnum" href="#215" name="215">0215</a><br />
+<a class="lnum" href="#216" name="216">0216</a><span class="keyword">def</span>&#0160;<span class="name">load</span><span class="op">(</span><span class="name">fp</span><span class="op">,</span>&#0160;<span class="name">encoding</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">cls</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">object_hook</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#217" name="217">0217</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
+<a class="lnum" href="#218" name="218">0218</a><span class="string">&#0160;&#0160;&#0160;&#0160;Deserialize&#0160;``fp``&#0160;(a&#0160;``.read()``-supporting&#0160;file-like&#0160;object&#0160;containing</span><br />
+<a class="lnum" href="#219" name="219">0219</a><span class="string">&#0160;&#0160;&#0160;&#0160;a&#0160;JSON&#0160;document)&#0160;to&#0160;a&#0160;Python&#0160;object.</span><br />
+<a class="lnum" href="#220" name="220">0220</a><span class="string"></span><br />
+<a class="lnum" href="#221" name="221">0221</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;the&#0160;contents&#0160;of&#0160;``fp``&#0160;is&#0160;encoded&#0160;with&#0160;an&#0160;ASCII&#0160;based&#0160;encoding&#0160;other</span><br />
+<a class="lnum" href="#222" name="222">0222</a><span class="string">&#0160;&#0160;&#0160;&#0160;than&#0160;utf-8&#0160;(e.g.&#0160;latin-1),&#0160;then&#0160;an&#0160;appropriate&#0160;``encoding``&#0160;name&#0160;must</span><br />
+<a class="lnum" href="#223" name="223">0223</a><span class="string">&#0160;&#0160;&#0160;&#0160;be&#0160;specified.&#0160;Encodings&#0160;that&#0160;are&#0160;not&#0160;ASCII&#0160;based&#0160;(such&#0160;as&#0160;UCS-2)&#0160;are</span><br />
+<a class="lnum" href="#224" name="224">0224</a><span class="string">&#0160;&#0160;&#0160;&#0160;not&#0160;allowed,&#0160;and&#0160;should&#0160;be&#0160;wrapped&#0160;with</span><br />
+<a class="lnum" href="#225" name="225">0225</a><span class="string">&#0160;&#0160;&#0160;&#0160;``codecs.getreader(fp)(encoding)``,&#0160;or&#0160;simply&#0160;decoded&#0160;to&#0160;a&#0160;``unicode``</span><br />
+<a class="lnum" href="#226" name="226">0226</a><span class="string">&#0160;&#0160;&#0160;&#0160;object&#0160;and&#0160;passed&#0160;to&#0160;``loads()``</span><br />
+<a class="lnum" href="#227" name="227">0227</a><span class="string"></span><br />
+<a class="lnum" href="#228" name="228">0228</a><span class="string">&#0160;&#0160;&#0160;&#0160;``object_hook``&#0160;is&#0160;an&#0160;optional&#0160;function&#0160;that&#0160;will&#0160;be&#0160;called&#0160;with&#0160;the</span><br />
+<a class="lnum" href="#229" name="229">0229</a><span class="string">&#0160;&#0160;&#0160;&#0160;result&#0160;of&#0160;any&#0160;object&#0160;literal&#0160;decode&#0160;(a&#0160;``dict``).&#0160;The&#0160;return&#0160;value&#0160;of</span><br />
+<a class="lnum" href="#230" name="230">0230</a><span class="string">&#0160;&#0160;&#0160;&#0160;``object_hook``&#0160;will&#0160;be&#0160;used&#0160;instead&#0160;of&#0160;the&#0160;``dict``.&#0160;This&#0160;feature</span><br />
+<a class="lnum" href="#231" name="231">0231</a><span class="string">&#0160;&#0160;&#0160;&#0160;can&#0160;be&#0160;used&#0160;to&#0160;implement&#0160;custom&#0160;decoders&#0160;(e.g.&#0160;JSON-RPC&#0160;class&#0160;hinting).</span><br />
+<a class="lnum" href="#232" name="232">0232</a><span class="string">&#0160;&#0160;&#0160;&#0160;</span><br />
+<a class="lnum" href="#233" name="233">0233</a><span class="string">&#0160;&#0160;&#0160;&#0160;To&#0160;use&#0160;a&#0160;custom&#0160;``JSONDecoder``&#0160;subclass,&#0160;specify&#0160;it&#0160;with&#0160;the&#0160;``cls``</span><br />
+<a class="lnum" href="#234" name="234">0234</a><span class="string">&#0160;&#0160;&#0160;&#0160;kwarg.</span><br />
+<a class="lnum" href="#235" name="235">0235</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
+<a class="lnum" href="#236" name="236">0236</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">loads</span><span class="op">(</span><span class="name">fp</span><span class="op">.</span><span class="name">read</span><span class="op">(</span><span class="op">)</span><span class="op">,</span><br />
+<a class="lnum" href="#237" name="237">0237</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoding</span><span class="op">=</span><span class="name">encoding</span><span class="op">,</span>&#0160;<span class="name">cls</span><span class="op">=</span><span class="name">cls</span><span class="op">,</span>&#0160;<span class="name">object_hook</span><span class="op">=</span><span class="name">object_hook</span><span class="op">,</span>&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><br />
<a class="lnum" href="#238" name="238">0238</a><br />
-<a class="lnum" href="#239" name="239">0239</a><span class="keyword">def</span>&#0160;<span class="name">read</span><span class="op">(</span><span class="name">s</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#239" name="239">0239</a><span class="keyword">def</span>&#0160;<span class="name">loads</span><span class="op">(</span><span class="name">s</span><span class="op">,</span>&#0160;<span class="name">encoding</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">cls</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">object_hook</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">:</span><br />
<a class="lnum" href="#240" name="240">0240</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
-<a class="lnum" href="#241" name="241">0241</a><span class="string">&#0160;&#0160;&#0160;&#0160;json-py&#0160;API&#0160;compatibility&#0160;hook.&#0160;Use&#0160;loads(s)&#0160;instead.</span><br />
-<a class="lnum" href="#242" name="242">0242</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
-<a class="lnum" href="#243" name="243">0243</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">import</span>&#0160;<span class="name">warnings</span><br />
-<a class="lnum" href="#244" name="244">0244</a>&#0160;&#0160;&#0160;&#0160;<span class="name">warnings</span><span class="op">.</span><span class="name">warn</span><span class="op">(</span><span class="string">"simplejson.loads(s)&#0160;should&#0160;be&#0160;used&#0160;instead&#0160;of&#0160;read(s)"</span><span class="op">,</span><br />
-<a class="lnum" href="#245" name="245">0245</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">DeprecationWarning</span><span class="op">)</span><br />
-<a class="lnum" href="#246" name="246">0246</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">loads</span><span class="op">(</span><span class="name">s</span><span class="op">)</span><br />
-<a class="lnum" href="#247" name="247">0247</a><br />
-<a class="lnum" href="#248" name="248">0248</a><span class="keyword">def</span>&#0160;<span class="name">write</span><span class="op">(</span><span class="name">obj</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#249" name="249">0249</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
-<a class="lnum" href="#250" name="250">0250</a><span class="string">&#0160;&#0160;&#0160;&#0160;json-py&#0160;API&#0160;compatibility&#0160;hook.&#0160;Use&#0160;dumps(s)&#0160;instead.</span><br />
-<a class="lnum" href="#251" name="251">0251</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
-<a class="lnum" href="#252" name="252">0252</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">import</span>&#0160;<span class="name">warnings</span><br />
-<a class="lnum" href="#253" name="253">0253</a>&#0160;&#0160;&#0160;&#0160;<span class="name">warnings</span><span class="op">.</span><span class="name">warn</span><span class="op">(</span><span class="string">"simplejson.dumps(s)&#0160;should&#0160;be&#0160;used&#0160;instead&#0160;of&#0160;write(s)"</span><span class="op">,</span><br />
-<a class="lnum" href="#254" name="254">0254</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">DeprecationWarning</span><span class="op">)</span><br />
-<a class="lnum" href="#255" name="255">0255</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">dumps</span><span class="op">(</span><span class="name">obj</span><span class="op">)</span></code></div></body></html> \ No newline at end of file
+<a class="lnum" href="#241" name="241">0241</a><span class="string">&#0160;&#0160;&#0160;&#0160;Deserialize&#0160;``s``&#0160;(a&#0160;``str``&#0160;or&#0160;``unicode``&#0160;instance&#0160;containing&#0160;a&#0160;JSON</span><br />
+<a class="lnum" href="#242" name="242">0242</a><span class="string">&#0160;&#0160;&#0160;&#0160;document)&#0160;to&#0160;a&#0160;Python&#0160;object.</span><br />
+<a class="lnum" href="#243" name="243">0243</a><span class="string"></span><br />
+<a class="lnum" href="#244" name="244">0244</a><span class="string">&#0160;&#0160;&#0160;&#0160;If&#0160;``s``&#0160;is&#0160;a&#0160;``str``&#0160;instance&#0160;and&#0160;is&#0160;encoded&#0160;with&#0160;an&#0160;ASCII&#0160;based&#0160;encoding</span><br />
+<a class="lnum" href="#245" name="245">0245</a><span class="string">&#0160;&#0160;&#0160;&#0160;other&#0160;than&#0160;utf-8&#0160;(e.g.&#0160;latin-1)&#0160;then&#0160;an&#0160;appropriate&#0160;``encoding``&#0160;name</span><br />
+<a class="lnum" href="#246" name="246">0246</a><span class="string">&#0160;&#0160;&#0160;&#0160;must&#0160;be&#0160;specified.&#0160;Encodings&#0160;that&#0160;are&#0160;not&#0160;ASCII&#0160;based&#0160;(such&#0160;as&#0160;UCS-2)</span><br />
+<a class="lnum" href="#247" name="247">0247</a><span class="string">&#0160;&#0160;&#0160;&#0160;are&#0160;not&#0160;allowed&#0160;and&#0160;should&#0160;be&#0160;decoded&#0160;to&#0160;``unicode``&#0160;first.</span><br />
+<a class="lnum" href="#248" name="248">0248</a><span class="string"></span><br />
+<a class="lnum" href="#249" name="249">0249</a><span class="string">&#0160;&#0160;&#0160;&#0160;``object_hook``&#0160;is&#0160;an&#0160;optional&#0160;function&#0160;that&#0160;will&#0160;be&#0160;called&#0160;with&#0160;the</span><br />
+<a class="lnum" href="#250" name="250">0250</a><span class="string">&#0160;&#0160;&#0160;&#0160;result&#0160;of&#0160;any&#0160;object&#0160;literal&#0160;decode&#0160;(a&#0160;``dict``).&#0160;The&#0160;return&#0160;value&#0160;of</span><br />
+<a class="lnum" href="#251" name="251">0251</a><span class="string">&#0160;&#0160;&#0160;&#0160;``object_hook``&#0160;will&#0160;be&#0160;used&#0160;instead&#0160;of&#0160;the&#0160;``dict``.&#0160;This&#0160;feature</span><br />
+<a class="lnum" href="#252" name="252">0252</a><span class="string">&#0160;&#0160;&#0160;&#0160;can&#0160;be&#0160;used&#0160;to&#0160;implement&#0160;custom&#0160;decoders&#0160;(e.g.&#0160;JSON-RPC&#0160;class&#0160;hinting).</span><br />
+<a class="lnum" href="#253" name="253">0253</a><span class="string"></span><br />
+<a class="lnum" href="#254" name="254">0254</a><span class="string">&#0160;&#0160;&#0160;&#0160;To&#0160;use&#0160;a&#0160;custom&#0160;``JSONDecoder``&#0160;subclass,&#0160;specify&#0160;it&#0160;with&#0160;the&#0160;``cls``</span><br />
+<a class="lnum" href="#255" name="255">0255</a><span class="string">&#0160;&#0160;&#0160;&#0160;kwarg.</span><br />
+<a class="lnum" href="#256" name="256">0256</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
+<a class="lnum" href="#257" name="257">0257</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">cls</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">encoding</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">object_hook</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span>&#0160;<span class="keyword">and</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">kw</span><span class="op">:</span><br />
+<a class="lnum" href="#258" name="258">0258</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">_default_decoder</span><span class="op">.</span><span class="name">decode</span><span class="op">(</span><span class="name">s</span><span class="op">)</span><br />
+<a class="lnum" href="#259" name="259">0259</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">cls</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#260" name="260">0260</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">cls</span>&#0160;<span class="op">=</span>&#0160;<span class="name">JSONDecoder</span><br />
+<a class="lnum" href="#261" name="261">0261</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">object_hook</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#262" name="262">0262</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">kw</span><span class="op">[</span><span class="string">'object_hook'</span><span class="op">]</span>&#0160;<span class="op">=</span>&#0160;<span class="name">object_hook</span><br />
+<a class="lnum" href="#263" name="263">0263</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">cls</span><span class="op">(</span><span class="name">encoding</span><span class="op">=</span><span class="name">encoding</span><span class="op">,</span>&#0160;<span class="op">**</span><span class="name">kw</span><span class="op">)</span><span class="op">.</span><span class="name">decode</span><span class="op">(</span><span class="name">s</span><span class="op">)</span><br />
+<a class="lnum" href="#264" name="264">0264</a><br />
+<a class="lnum" href="#265" name="265">0265</a><span class="keyword">def</span>&#0160;<span class="name">read</span><span class="op">(</span><span class="name">s</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#266" name="266">0266</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
+<a class="lnum" href="#267" name="267">0267</a><span class="string">&#0160;&#0160;&#0160;&#0160;json-py&#0160;API&#0160;compatibility&#0160;hook.&#0160;Use&#0160;loads(s)&#0160;instead.</span><br />
+<a class="lnum" href="#268" name="268">0268</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
+<a class="lnum" href="#269" name="269">0269</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">import</span>&#0160;<span class="name">warnings</span><br />
+<a class="lnum" href="#270" name="270">0270</a>&#0160;&#0160;&#0160;&#0160;<span class="name">warnings</span><span class="op">.</span><span class="name">warn</span><span class="op">(</span><span class="string">"simplejson.loads(s)&#0160;should&#0160;be&#0160;used&#0160;instead&#0160;of&#0160;read(s)"</span><span class="op">,</span><br />
+<a class="lnum" href="#271" name="271">0271</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">DeprecationWarning</span><span class="op">)</span><br />
+<a class="lnum" href="#272" name="272">0272</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">loads</span><span class="op">(</span><span class="name">s</span><span class="op">)</span><br />
+<a class="lnum" href="#273" name="273">0273</a><br />
+<a class="lnum" href="#274" name="274">0274</a><span class="keyword">def</span>&#0160;<span class="name">write</span><span class="op">(</span><span class="name">obj</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#275" name="275">0275</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
+<a class="lnum" href="#276" name="276">0276</a><span class="string">&#0160;&#0160;&#0160;&#0160;json-py&#0160;API&#0160;compatibility&#0160;hook.&#0160;Use&#0160;dumps(s)&#0160;instead.</span><br />
+<a class="lnum" href="#277" name="277">0277</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
+<a class="lnum" href="#278" name="278">0278</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">import</span>&#0160;<span class="name">warnings</span><br />
+<a class="lnum" href="#279" name="279">0279</a>&#0160;&#0160;&#0160;&#0160;<span class="name">warnings</span><span class="op">.</span><span class="name">warn</span><span class="op">(</span><span class="string">"simplejson.dumps(s)&#0160;should&#0160;be&#0160;used&#0160;instead&#0160;of&#0160;write(s)"</span><span class="op">,</span><br />
+<a class="lnum" href="#280" name="280">0280</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">DeprecationWarning</span><span class="op">)</span><br />
+<a class="lnum" href="#281" name="281">0281</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">dumps</span><span class="op">(</span><span class="name">obj</span><span class="op">)</span></code></div></body></html> \ No newline at end of file
diff --git a/docs/simplejson/encoder.py.html b/docs/simplejson/encoder.py.html
index a054125..8c814ab 100644
--- a/docs/simplejson/encoder.py.html
+++ b/docs/simplejson/encoder.py.html
@@ -74,339 +74,370 @@ function show_line_range() {
<a class="lnum" href="#2" name="2">0002</a><span class="string">Implementation&#0160;of&#0160;JSONEncoder</span><br />
<a class="lnum" href="#3" name="3">0003</a><span class="string">"""</span><br />
<a class="lnum" href="#4" name="4">0004</a><span class="keyword">import</span>&#0160;<span class="name">re</span><br />
-<a class="lnum" href="#5" name="5">0005</a><br />
-<a class="lnum" href="#6" name="6">0006</a><span class="name">ESCAPE</span>&#0160;<span class="op">=</span>&#0160;<span class="name">re</span><span class="op">.</span><span class="name">compile</span><span class="op">(</span><span class="string">r'[\x00-\x19\\"\b\f\n\r\t]'</span><span class="op">)</span><br />
-<a class="lnum" href="#7" name="7">0007</a><span class="name">ESCAPE_ASCII</span>&#0160;<span class="op">=</span>&#0160;<span class="name">re</span><span class="op">.</span><span class="name">compile</span><span class="op">(</span><span class="string">r'([\\"/]|[^\&#0160;-~])'</span><span class="op">)</span><br />
-<a class="lnum" href="#8" name="8">0008</a><span class="name">ESCAPE_DCT</span>&#0160;<span class="op">=</span>&#0160;<span class="op">{</span><br />
-<a class="lnum" href="#9" name="9">0009</a>&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;escape&#0160;all&#0160;forward&#0160;slashes&#0160;to&#0160;prevent&#0160;&lt;/script&gt;&#0160;attack</span><br />
-<a class="lnum" href="#10" name="10">0010</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'/'</span><span class="op">:</span>&#0160;<span class="string">'\\/'</span><span class="op">,</span><br />
-<a class="lnum" href="#11" name="11">0011</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'\\'</span><span class="op">:</span>&#0160;<span class="string">'\\\\'</span><span class="op">,</span><br />
-<a class="lnum" href="#12" name="12">0012</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'"'</span><span class="op">:</span>&#0160;<span class="string">'\\"'</span><span class="op">,</span><br />
-<a class="lnum" href="#13" name="13">0013</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'\b'</span><span class="op">:</span>&#0160;<span class="string">'\\b'</span><span class="op">,</span><br />
-<a class="lnum" href="#14" name="14">0014</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'\f'</span><span class="op">:</span>&#0160;<span class="string">'\\f'</span><span class="op">,</span><br />
-<a class="lnum" href="#15" name="15">0015</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'\n'</span><span class="op">:</span>&#0160;<span class="string">'\\n'</span><span class="op">,</span><br />
-<a class="lnum" href="#16" name="16">0016</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'\r'</span><span class="op">:</span>&#0160;<span class="string">'\\r'</span><span class="op">,</span><br />
-<a class="lnum" href="#17" name="17">0017</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'\t'</span><span class="op">:</span>&#0160;<span class="string">'\\t'</span><span class="op">,</span><br />
-<a class="lnum" href="#18" name="18">0018</a><span class="op">}</span><br />
-<a class="lnum" href="#19" name="19">0019</a><span class="keyword">for</span>&#0160;<span class="name">i</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">range</span><span class="op">(</span><span class="number">0x20</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#20" name="20">0020</a>&#0160;&#0160;&#0160;&#0160;<span class="name">ESCAPE_DCT</span><span class="op">.</span><span class="name">setdefault</span><span class="op">(</span><span class="name">chr</span><span class="op">(</span><span class="name">i</span><span class="op">)</span><span class="op">,</span>&#0160;<span class="string">'\\u%04x'</span>&#0160;<span class="op">%</span>&#0160;<span class="op">(</span><span class="name">i</span><span class="op">,</span><span class="op">)</span><span class="op">)</span><br />
-<a class="lnum" href="#21" name="21">0021</a><br />
-<a class="lnum" href="#22" name="22">0022</a><span class="comment">#&#0160;assume&#0160;this&#0160;produces&#0160;an&#0160;infinity&#0160;on&#0160;all&#0160;machines&#0160;(probably&#0160;not&#0160;guaranteed)</span><br />
-<a class="lnum" href="#23" name="23">0023</a><span class="comment"></span><span class="name">INFINITY</span>&#0160;<span class="op">=</span>&#0160;<span class="name">float</span><span class="op">(</span><span class="string">'1e66666'</span><span class="op">)</span><br />
-<a class="lnum" href="#24" name="24">0024</a><br />
-<a class="lnum" href="#25" name="25">0025</a><span class="keyword">def</span>&#0160;<span class="name">floatstr</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">allow_nan</span><span class="op">=</span><span class="name">True</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#26" name="26">0026</a>&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;Check&#0160;for&#0160;specials.&#0160;&#0160;Note&#0160;that&#0160;this&#0160;type&#0160;of&#0160;test&#0160;is&#0160;processor-&#0160;and/or</span><br />
-<a class="lnum" href="#27" name="27">0027</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;platform-specific,&#0160;so&#0160;do&#0160;tests&#0160;which&#0160;don't&#0160;depend&#0160;on&#0160;the&#0160;internals.</span><br />
-<a class="lnum" href="#28" name="28">0028</a><span class="comment"></span><br />
-<a class="lnum" href="#29" name="29">0029</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">o</span>&#0160;<span class="op">!=</span>&#0160;<span class="name">o</span><span class="op">:</span><br />
-<a class="lnum" href="#30" name="30">0030</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">text</span>&#0160;<span class="op">=</span>&#0160;<span class="string">'NaN'</span><br />
-<a class="lnum" href="#31" name="31">0031</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">o</span>&#0160;<span class="op">==</span>&#0160;<span class="name">INFINITY</span><span class="op">:</span><br />
-<a class="lnum" href="#32" name="32">0032</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">text</span>&#0160;<span class="op">=</span>&#0160;<span class="string">'Infinity'</span><br />
-<a class="lnum" href="#33" name="33">0033</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">o</span>&#0160;<span class="op">==</span>&#0160;<span class="op">-</span><span class="name">INFINITY</span><span class="op">:</span><br />
-<a class="lnum" href="#34" name="34">0034</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">text</span>&#0160;<span class="op">=</span>&#0160;<span class="string">'-Infinity'</span><br />
-<a class="lnum" href="#35" name="35">0035</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
-<a class="lnum" href="#36" name="36">0036</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">str</span><span class="op">(</span><span class="name">o</span><span class="op">)</span><br />
-<a class="lnum" href="#37" name="37">0037</a><br />
-<a class="lnum" href="#38" name="38">0038</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">allow_nan</span><span class="op">:</span><br />
-<a class="lnum" href="#39" name="39">0039</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">raise</span>&#0160;<span class="name">ValueError</span><span class="op">(</span><span class="string">"Out&#0160;of&#0160;range&#0160;float&#0160;values&#0160;are&#0160;not&#0160;JSON&#0160;compliant:&#0160;%r"</span><br />
-<a class="lnum" href="#40" name="40">0040</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="op">%</span>&#0160;<span class="op">(</span><span class="name">o</span><span class="op">,</span><span class="op">)</span><span class="op">)</span><br />
+<a class="lnum" href="#5" name="5">0005</a><span class="keyword">try</span><span class="op">:</span><br />
+<a class="lnum" href="#6" name="6">0006</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">from</span>&#0160;<span class="name">simplejson</span>&#0160;<span class="keyword">import</span>&#0160;<span class="name">_speedups</span><br />
+<a class="lnum" href="#7" name="7">0007</a><span class="keyword">except</span>&#0160;<span class="name">ImportError</span><span class="op">:</span><br />
+<a class="lnum" href="#8" name="8">0008</a>&#0160;&#0160;&#0160;&#0160;<span class="name">_speedups</span>&#0160;<span class="op">=</span>&#0160;<span class="name">None</span><br />
+<a class="lnum" href="#9" name="9">0009</a><br />
+<a class="lnum" href="#10" name="10">0010</a><span class="name">ESCAPE</span>&#0160;<span class="op">=</span>&#0160;<span class="name">re</span><span class="op">.</span><span class="name">compile</span><span class="op">(</span><span class="string">r'[\x00-\x19\\"\b\f\n\r\t]'</span><span class="op">)</span><br />
+<a class="lnum" href="#11" name="11">0011</a><span class="name">ESCAPE_ASCII</span>&#0160;<span class="op">=</span>&#0160;<span class="name">re</span><span class="op">.</span><span class="name">compile</span><span class="op">(</span><span class="string">r'([\\"/]|[^\&#0160;-~])'</span><span class="op">)</span><br />
+<a class="lnum" href="#12" name="12">0012</a><span class="name">ESCAPE_DCT</span>&#0160;<span class="op">=</span>&#0160;<span class="op">{</span><br />
+<a class="lnum" href="#13" name="13">0013</a>&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;escape&#0160;all&#0160;forward&#0160;slashes&#0160;to&#0160;prevent&#0160;&lt;/script&gt;&#0160;attack</span><br />
+<a class="lnum" href="#14" name="14">0014</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'/'</span><span class="op">:</span>&#0160;<span class="string">'\\/'</span><span class="op">,</span><br />
+<a class="lnum" href="#15" name="15">0015</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'\\'</span><span class="op">:</span>&#0160;<span class="string">'\\\\'</span><span class="op">,</span><br />
+<a class="lnum" href="#16" name="16">0016</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'"'</span><span class="op">:</span>&#0160;<span class="string">'\\"'</span><span class="op">,</span><br />
+<a class="lnum" href="#17" name="17">0017</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'\b'</span><span class="op">:</span>&#0160;<span class="string">'\\b'</span><span class="op">,</span><br />
+<a class="lnum" href="#18" name="18">0018</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'\f'</span><span class="op">:</span>&#0160;<span class="string">'\\f'</span><span class="op">,</span><br />
+<a class="lnum" href="#19" name="19">0019</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'\n'</span><span class="op">:</span>&#0160;<span class="string">'\\n'</span><span class="op">,</span><br />
+<a class="lnum" href="#20" name="20">0020</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'\r'</span><span class="op">:</span>&#0160;<span class="string">'\\r'</span><span class="op">,</span><br />
+<a class="lnum" href="#21" name="21">0021</a>&#0160;&#0160;&#0160;&#0160;<span class="string">'\t'</span><span class="op">:</span>&#0160;<span class="string">'\\t'</span><span class="op">,</span><br />
+<a class="lnum" href="#22" name="22">0022</a><span class="op">}</span><br />
+<a class="lnum" href="#23" name="23">0023</a><span class="keyword">for</span>&#0160;<span class="name">i</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">range</span><span class="op">(</span><span class="number">0x20</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#24" name="24">0024</a>&#0160;&#0160;&#0160;&#0160;<span class="name">ESCAPE_DCT</span><span class="op">.</span><span class="name">setdefault</span><span class="op">(</span><span class="name">chr</span><span class="op">(</span><span class="name">i</span><span class="op">)</span><span class="op">,</span>&#0160;<span class="string">'\\u%04x'</span>&#0160;<span class="op">%</span>&#0160;<span class="op">(</span><span class="name">i</span><span class="op">,</span><span class="op">)</span><span class="op">)</span><br />
+<a class="lnum" href="#25" name="25">0025</a><br />
+<a class="lnum" href="#26" name="26">0026</a><span class="comment">#&#0160;assume&#0160;this&#0160;produces&#0160;an&#0160;infinity&#0160;on&#0160;all&#0160;machines&#0160;(probably&#0160;not&#0160;guaranteed)</span><br />
+<a class="lnum" href="#27" name="27">0027</a><span class="comment"></span><span class="name">INFINITY</span>&#0160;<span class="op">=</span>&#0160;<span class="name">float</span><span class="op">(</span><span class="string">'1e66666'</span><span class="op">)</span><br />
+<a class="lnum" href="#28" name="28">0028</a><br />
+<a class="lnum" href="#29" name="29">0029</a><span class="keyword">def</span>&#0160;<span class="name">floatstr</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">allow_nan</span><span class="op">=</span><span class="name">True</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#30" name="30">0030</a>&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;Check&#0160;for&#0160;specials.&#0160;&#0160;Note&#0160;that&#0160;this&#0160;type&#0160;of&#0160;test&#0160;is&#0160;processor-&#0160;and/or</span><br />
+<a class="lnum" href="#31" name="31">0031</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;platform-specific,&#0160;so&#0160;do&#0160;tests&#0160;which&#0160;don't&#0160;depend&#0160;on&#0160;the&#0160;internals.</span><br />
+<a class="lnum" href="#32" name="32">0032</a><span class="comment"></span><br />
+<a class="lnum" href="#33" name="33">0033</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">o</span>&#0160;<span class="op">!=</span>&#0160;<span class="name">o</span><span class="op">:</span><br />
+<a class="lnum" href="#34" name="34">0034</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">text</span>&#0160;<span class="op">=</span>&#0160;<span class="string">'NaN'</span><br />
+<a class="lnum" href="#35" name="35">0035</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">o</span>&#0160;<span class="op">==</span>&#0160;<span class="name">INFINITY</span><span class="op">:</span><br />
+<a class="lnum" href="#36" name="36">0036</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">text</span>&#0160;<span class="op">=</span>&#0160;<span class="string">'Infinity'</span><br />
+<a class="lnum" href="#37" name="37">0037</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">o</span>&#0160;<span class="op">==</span>&#0160;<span class="op">-</span><span class="name">INFINITY</span><span class="op">:</span><br />
+<a class="lnum" href="#38" name="38">0038</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">text</span>&#0160;<span class="op">=</span>&#0160;<span class="string">'-Infinity'</span><br />
+<a class="lnum" href="#39" name="39">0039</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
+<a class="lnum" href="#40" name="40">0040</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">str</span><span class="op">(</span><span class="name">o</span><span class="op">)</span><br />
<a class="lnum" href="#41" name="41">0041</a><br />
-<a class="lnum" href="#42" name="42">0042</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">text</span><br />
-<a class="lnum" href="#43" name="43">0043</a><br />
-<a class="lnum" href="#44" name="44">0044</a><br />
-<a class="lnum" href="#45" name="45">0045</a><span class="keyword">def</span>&#0160;<span class="name">encode_basestring</span><span class="op">(</span><span class="name">s</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#46" name="46">0046</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
-<a class="lnum" href="#47" name="47">0047</a><span class="string">&#0160;&#0160;&#0160;&#0160;Return&#0160;a&#0160;JSON&#0160;representation&#0160;of&#0160;a&#0160;Python&#0160;string</span><br />
-<a class="lnum" href="#48" name="48">0048</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
-<a class="lnum" href="#49" name="49">0049</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">replace</span><span class="op">(</span><span class="name">match</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#50" name="50">0050</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">ESCAPE_DCT</span><span class="op">[</span><span class="name">match</span><span class="op">.</span><span class="name">group</span><span class="op">(</span><span class="number">0</span><span class="op">)</span><span class="op">]</span><br />
-<a class="lnum" href="#51" name="51">0051</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="string">'"'</span>&#0160;<span class="op">+</span>&#0160;<span class="name">ESCAPE</span><span class="op">.</span><span class="name">sub</span><span class="op">(</span><span class="name">replace</span><span class="op">,</span>&#0160;<span class="name">s</span><span class="op">)</span>&#0160;<span class="op">+</span>&#0160;<span class="string">'"'</span><br />
-<a class="lnum" href="#52" name="52">0052</a><br />
-<a class="lnum" href="#53" name="53">0053</a><span class="keyword">def</span>&#0160;<span class="name">encode_basestring_ascii</span><span class="op">(</span><span class="name">s</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#54" name="54">0054</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">replace</span><span class="op">(</span><span class="name">match</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#55" name="55">0055</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">s</span>&#0160;<span class="op">=</span>&#0160;<span class="name">match</span><span class="op">.</span><span class="name">group</span><span class="op">(</span><span class="number">0</span><span class="op">)</span><br />
-<a class="lnum" href="#56" name="56">0056</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">try</span><span class="op">:</span><br />
-<a class="lnum" href="#57" name="57">0057</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">ESCAPE_DCT</span><span class="op">[</span><span class="name">s</span><span class="op">]</span><br />
-<a class="lnum" href="#58" name="58">0058</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">except</span>&#0160;<span class="name">KeyError</span><span class="op">:</span><br />
-<a class="lnum" href="#59" name="59">0059</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="string">'\\u%04x'</span>&#0160;<span class="op">%</span>&#0160;<span class="op">(</span><span class="name">ord</span><span class="op">(</span><span class="name">s</span><span class="op">)</span><span class="op">,</span><span class="op">)</span><br />
-<a class="lnum" href="#60" name="60">0060</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="string">'"'</span>&#0160;<span class="op">+</span>&#0160;<span class="name">str</span><span class="op">(</span><span class="name">ESCAPE_ASCII</span><span class="op">.</span><span class="name">sub</span><span class="op">(</span><span class="name">replace</span><span class="op">,</span>&#0160;<span class="name">s</span><span class="op">)</span><span class="op">)</span>&#0160;<span class="op">+</span>&#0160;<span class="string">'"'</span><br />
-<a class="lnum" href="#61" name="61">0061</a><br />
-<a class="lnum" href="#62" name="62">0062</a><br />
-<a class="lnum" href="#63" name="63">0063</a><span class="keyword">class</span>&#0160;<span class="name">JSONEncoder</span><span class="op">(</span><span class="name">object</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#64" name="64">0064</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
-<a class="lnum" href="#65" name="65">0065</a><span class="string">&#0160;&#0160;&#0160;&#0160;Extensible&#0160;JSON&#0160;&lt;http://json.org&gt;&#0160;encoder&#0160;for&#0160;Python&#0160;data&#0160;structures.</span><br />
-<a class="lnum" href="#66" name="66">0066</a><span class="string"></span><br />
-<a class="lnum" href="#67" name="67">0067</a><span class="string">&#0160;&#0160;&#0160;&#0160;Supports&#0160;the&#0160;following&#0160;objects&#0160;and&#0160;types&#0160;by&#0160;default:</span><br />
-<a class="lnum" href="#68" name="68">0068</a><span class="string">&#0160;&#0160;&#0160;&#0160;</span><br />
-<a class="lnum" href="#69" name="69">0069</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
-<a class="lnum" href="#70" name="70">0070</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;Python&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|&#0160;JSON&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
-<a class="lnum" href="#71" name="71">0071</a><span class="string">&#0160;&#0160;&#0160;&#0160;+===================+===============+</span><br />
-<a class="lnum" href="#72" name="72">0072</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;dict&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|&#0160;object&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
-<a class="lnum" href="#73" name="73">0073</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
-<a class="lnum" href="#74" name="74">0074</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;list,&#0160;tuple&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|&#0160;array&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
-<a class="lnum" href="#75" name="75">0075</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
-<a class="lnum" href="#76" name="76">0076</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;str,&#0160;unicode&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|&#0160;string&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
-<a class="lnum" href="#77" name="77">0077</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
-<a class="lnum" href="#78" name="78">0078</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;int,&#0160;long,&#0160;float&#0160;&#0160;|&#0160;number&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
-<a class="lnum" href="#79" name="79">0079</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
-<a class="lnum" href="#80" name="80">0080</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;True&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|&#0160;true&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
-<a class="lnum" href="#81" name="81">0081</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
-<a class="lnum" href="#82" name="82">0082</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;False&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|&#0160;false&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
-<a class="lnum" href="#83" name="83">0083</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
-<a class="lnum" href="#84" name="84">0084</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;None&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|&#0160;null&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
-<a class="lnum" href="#85" name="85">0085</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
-<a class="lnum" href="#86" name="86">0086</a><span class="string"></span><br />
-<a class="lnum" href="#87" name="87">0087</a><span class="string">&#0160;&#0160;&#0160;&#0160;To&#0160;extend&#0160;this&#0160;to&#0160;recognize&#0160;other&#0160;objects,&#0160;subclass&#0160;and&#0160;implement&#0160;a</span><br />
-<a class="lnum" href="#88" name="88">0088</a><span class="string">&#0160;&#0160;&#0160;&#0160;``.default()``&#0160;method&#0160;with&#0160;another&#0160;method&#0160;that&#0160;returns&#0160;a&#0160;serializable</span><br />
-<a class="lnum" href="#89" name="89">0089</a><span class="string">&#0160;&#0160;&#0160;&#0160;object&#0160;for&#0160;``o``&#0160;if&#0160;possible,&#0160;otherwise&#0160;it&#0160;should&#0160;call&#0160;the&#0160;superclass</span><br />
-<a class="lnum" href="#90" name="90">0090</a><span class="string">&#0160;&#0160;&#0160;&#0160;implementation&#0160;(to&#0160;raise&#0160;``TypeError``).</span><br />
-<a class="lnum" href="#91" name="91">0091</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
-<a class="lnum" href="#92" name="92">0092</a>&#0160;&#0160;&#0160;&#0160;<span class="name">__all__</span>&#0160;<span class="op">=</span>&#0160;<span class="op">[</span><span class="string">'__init__'</span><span class="op">,</span>&#0160;<span class="string">'default'</span><span class="op">,</span>&#0160;<span class="string">'encode'</span><span class="op">,</span>&#0160;<span class="string">'iterencode'</span><span class="op">]</span><br />
-<a class="lnum" href="#93" name="93">0093</a>&#0160;&#0160;&#0160;&#0160;<span class="name">item_separator</span>&#0160;<span class="op">=</span>&#0160;<span class="string">',&#0160;'</span><br />
-<a class="lnum" href="#94" name="94">0094</a>&#0160;&#0160;&#0160;&#0160;<span class="name">key_separator</span>&#0160;<span class="op">=</span>&#0160;<span class="string">':&#0160;'</span><br />
-<a class="lnum" href="#95" name="95">0095</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">__init__</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">skipkeys</span><span class="op">=</span><span class="name">False</span><span class="op">,</span>&#0160;<span class="name">ensure_ascii</span><span class="op">=</span><span class="name">True</span><span class="op">,</span><br />
-<a class="lnum" href="#96" name="96">0096</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">check_circular</span><span class="op">=</span><span class="name">True</span><span class="op">,</span>&#0160;<span class="name">allow_nan</span><span class="op">=</span><span class="name">True</span><span class="op">,</span>&#0160;<span class="name">sort_keys</span><span class="op">=</span><span class="name">False</span><span class="op">,</span><br />
-<a class="lnum" href="#97" name="97">0097</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">indent</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">separators</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">encoding</span><span class="op">=</span><span class="string">'utf-8'</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#98" name="98">0098</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
-<a class="lnum" href="#99" name="99">0099</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;Constructor&#0160;for&#0160;JSONEncoder,&#0160;with&#0160;sensible&#0160;defaults.</span><br />
-<a class="lnum" href="#100" name="100">0100</a><span class="string"></span><br />
-<a class="lnum" href="#101" name="101">0101</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;skipkeys&#0160;is&#0160;False,&#0160;then&#0160;it&#0160;is&#0160;a&#0160;TypeError&#0160;to&#0160;attempt</span><br />
-<a class="lnum" href="#102" name="102">0102</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;encoding&#0160;of&#0160;keys&#0160;that&#0160;are&#0160;not&#0160;str,&#0160;int,&#0160;long,&#0160;float&#0160;or&#0160;None.&#0160;&#0160;If</span><br />
-<a class="lnum" href="#103" name="103">0103</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;skipkeys&#0160;is&#0160;True,&#0160;such&#0160;items&#0160;are&#0160;simply&#0160;skipped.</span><br />
-<a class="lnum" href="#104" name="104">0104</a><span class="string"></span><br />
-<a class="lnum" href="#105" name="105">0105</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;ensure_ascii&#0160;is&#0160;True,&#0160;the&#0160;output&#0160;is&#0160;guaranteed&#0160;to&#0160;be&#0160;str</span><br />
-<a class="lnum" href="#106" name="106">0106</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;objects&#0160;with&#0160;all&#0160;incoming&#0160;unicode&#0160;characters&#0160;escaped.&#0160;&#0160;If</span><br />
-<a class="lnum" href="#107" name="107">0107</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;ensure_ascii&#0160;is&#0160;false,&#0160;the&#0160;output&#0160;will&#0160;be&#0160;unicode&#0160;object.</span><br />
-<a class="lnum" href="#108" name="108">0108</a><span class="string"></span><br />
-<a class="lnum" href="#109" name="109">0109</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;check_circular&#0160;is&#0160;True,&#0160;then&#0160;lists,&#0160;dicts,&#0160;and&#0160;custom&#0160;encoded</span><br />
-<a class="lnum" href="#110" name="110">0110</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;objects&#0160;will&#0160;be&#0160;checked&#0160;for&#0160;circular&#0160;references&#0160;during&#0160;encoding&#0160;to</span><br />
-<a class="lnum" href="#111" name="111">0111</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;prevent&#0160;an&#0160;infinite&#0160;recursion&#0160;(which&#0160;would&#0160;cause&#0160;an&#0160;OverflowError).</span><br />
-<a class="lnum" href="#112" name="112">0112</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;Otherwise,&#0160;no&#0160;such&#0160;check&#0160;takes&#0160;place.</span><br />
-<a class="lnum" href="#113" name="113">0113</a><span class="string"></span><br />
-<a class="lnum" href="#114" name="114">0114</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;allow_nan&#0160;is&#0160;True,&#0160;then&#0160;NaN,&#0160;Infinity,&#0160;and&#0160;-Infinity&#0160;will&#0160;be</span><br />
-<a class="lnum" href="#115" name="115">0115</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;encoded&#0160;as&#0160;such.&#0160;&#0160;This&#0160;behavior&#0160;is&#0160;not&#0160;JSON&#0160;specification&#0160;compliant,</span><br />
-<a class="lnum" href="#116" name="116">0116</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;but&#0160;is&#0160;consistent&#0160;with&#0160;most&#0160;JavaScript&#0160;based&#0160;encoders&#0160;and&#0160;decoders.</span><br />
-<a class="lnum" href="#117" name="117">0117</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;Otherwise,&#0160;it&#0160;will&#0160;be&#0160;a&#0160;ValueError&#0160;to&#0160;encode&#0160;such&#0160;floats.</span><br />
-<a class="lnum" href="#118" name="118">0118</a><span class="string"></span><br />
-<a class="lnum" href="#119" name="119">0119</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;sort_keys&#0160;is&#0160;True,&#0160;then&#0160;the&#0160;output&#0160;of&#0160;dictionaries&#0160;will&#0160;be</span><br />
-<a class="lnum" href="#120" name="120">0120</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;sorted&#0160;by&#0160;key;&#0160;this&#0160;is&#0160;useful&#0160;for&#0160;regression&#0160;tests&#0160;to&#0160;ensure</span><br />
-<a class="lnum" href="#121" name="121">0121</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;that&#0160;JSON&#0160;serializations&#0160;can&#0160;be&#0160;compared&#0160;on&#0160;a&#0160;day-to-day&#0160;basis.</span><br />
-<a class="lnum" href="#122" name="122">0122</a><span class="string"></span><br />
-<a class="lnum" href="#123" name="123">0123</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;indent&#0160;is&#0160;a&#0160;non-negative&#0160;integer,&#0160;then&#0160;JSON&#0160;array</span><br />
-<a class="lnum" href="#124" name="124">0124</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;elements&#0160;and&#0160;object&#0160;members&#0160;will&#0160;be&#0160;pretty-printed&#0160;with&#0160;that</span><br />
-<a class="lnum" href="#125" name="125">0125</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;indent&#0160;level.&#0160;&#0160;An&#0160;indent&#0160;level&#0160;of&#0160;0&#0160;will&#0160;only&#0160;insert&#0160;newlines.</span><br />
-<a class="lnum" href="#126" name="126">0126</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;None&#0160;is&#0160;the&#0160;most&#0160;compact&#0160;representation.</span><br />
-<a class="lnum" href="#127" name="127">0127</a><span class="string"></span><br />
-<a class="lnum" href="#128" name="128">0128</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;specified,&#0160;separators&#0160;should&#0160;be&#0160;a&#0160;(item_separator,&#0160;key_separator)</span><br />
-<a class="lnum" href="#129" name="129">0129</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;tuple.&#0160;The&#0160;default&#0160;is&#0160;(',&#0160;',&#0160;':&#0160;').&#0160;To&#0160;get&#0160;the&#0160;most&#0160;compact&#0160;JSON</span><br />
-<a class="lnum" href="#130" name="130">0130</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;representation&#0160;you&#0160;should&#0160;specify&#0160;(',',&#0160;':')&#0160;to&#0160;eliminate&#0160;whitespace.</span><br />
-<a class="lnum" href="#131" name="131">0131</a><span class="string"></span><br />
-<a class="lnum" href="#132" name="132">0132</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;encoding&#0160;is&#0160;not&#0160;None,&#0160;then&#0160;all&#0160;input&#0160;strings&#0160;will&#0160;be</span><br />
-<a class="lnum" href="#133" name="133">0133</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;transformed&#0160;into&#0160;unicode&#0160;using&#0160;that&#0160;encoding&#0160;prior&#0160;to&#0160;JSON-encoding.&#0160;</span><br />
-<a class="lnum" href="#134" name="134">0134</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;The&#0160;default&#0160;is&#0160;UTF-8.</span><br />
-<a class="lnum" href="#135" name="135">0135</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;"""</span><br />
-<a class="lnum" href="#136" name="136">0136</a><br />
-<a class="lnum" href="#137" name="137">0137</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">skipkeys</span>&#0160;<span class="op">=</span>&#0160;<span class="name">skipkeys</span><br />
-<a class="lnum" href="#138" name="138">0138</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">ensure_ascii</span>&#0160;<span class="op">=</span>&#0160;<span class="name">ensure_ascii</span><br />
-<a class="lnum" href="#139" name="139">0139</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">check_circular</span>&#0160;<span class="op">=</span>&#0160;<span class="name">check_circular</span><br />
-<a class="lnum" href="#140" name="140">0140</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">allow_nan</span>&#0160;<span class="op">=</span>&#0160;<span class="name">allow_nan</span><br />
-<a class="lnum" href="#141" name="141">0141</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">sort_keys</span>&#0160;<span class="op">=</span>&#0160;<span class="name">sort_keys</span><br />
-<a class="lnum" href="#142" name="142">0142</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">indent</span>&#0160;<span class="op">=</span>&#0160;<span class="name">indent</span><br />
-<a class="lnum" href="#143" name="143">0143</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">current_indent_level</span>&#0160;<span class="op">=</span>&#0160;<span class="number">0</span><br />
-<a class="lnum" href="#144" name="144">0144</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">separators</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#145" name="145">0145</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">item_separator</span><span class="op">,</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">key_separator</span>&#0160;<span class="op">=</span>&#0160;<span class="name">separators</span><br />
-<a class="lnum" href="#146" name="146">0146</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">encoding</span>&#0160;<span class="op">=</span>&#0160;<span class="name">encoding</span><br />
-<a class="lnum" href="#147" name="147">0147</a><br />
-<a class="lnum" href="#148" name="148">0148</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">_newline_indent</span><span class="op">(</span><span class="name">self</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#149" name="149">0149</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="string">'\n'</span>&#0160;<span class="op">+</span>&#0160;<span class="op">(</span><span class="string">'&#0160;'</span>&#0160;<span class="op">*</span>&#0160;<span class="op">(</span><span class="name">self</span><span class="op">.</span><span class="name">indent</span>&#0160;<span class="op">*</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">current_indent_level</span><span class="op">)</span><span class="op">)</span><br />
-<a class="lnum" href="#150" name="150">0150</a><br />
-<a class="lnum" href="#151" name="151">0151</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">_iterencode_list</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">lst</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">=</span><span class="name">None</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#152" name="152">0152</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">lst</span><span class="op">:</span><br />
-<a class="lnum" href="#153" name="153">0153</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'[]'</span><br />
-<a class="lnum" href="#154" name="154">0154</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span><br />
-<a class="lnum" href="#155" name="155">0155</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markers</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#156" name="156">0156</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markerid</span>&#0160;<span class="op">=</span>&#0160;<span class="name">id</span><span class="op">(</span><span class="name">lst</span><span class="op">)</span><br />
-<a class="lnum" href="#157" name="157">0157</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markerid</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">markers</span><span class="op">:</span><br />
-<a class="lnum" href="#158" name="158">0158</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">raise</span>&#0160;<span class="name">ValueError</span><span class="op">(</span><span class="string">"Circular&#0160;reference&#0160;detected"</span><span class="op">)</span><br />
-<a class="lnum" href="#159" name="159">0159</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markers</span><span class="op">[</span><span class="name">markerid</span><span class="op">]</span>&#0160;<span class="op">=</span>&#0160;<span class="name">lst</span><br />
-<a class="lnum" href="#160" name="160">0160</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'['</span><br />
-<a class="lnum" href="#161" name="161">0161</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">indent</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#162" name="162">0162</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">current_indent_level</span>&#0160;<span class="op">+=</span>&#0160;<span class="number">1</span><br />
-<a class="lnum" href="#163" name="163">0163</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">newline_indent</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_newline_indent</span><span class="op">(</span><span class="op">)</span><br />
-<a class="lnum" href="#164" name="164">0164</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">separator</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">item_separator</span>&#0160;<span class="op">+</span>&#0160;<span class="name">newline_indent</span><br />
-<a class="lnum" href="#165" name="165">0165</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">newline_indent</span><br />
-<a class="lnum" href="#166" name="166">0166</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
-<a class="lnum" href="#167" name="167">0167</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">newline_indent</span>&#0160;<span class="op">=</span>&#0160;<span class="name">None</span><br />
-<a class="lnum" href="#168" name="168">0168</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">separator</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">item_separator</span><br />
-<a class="lnum" href="#169" name="169">0169</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">first</span>&#0160;<span class="op">=</span>&#0160;<span class="name">True</span><br />
-<a class="lnum" href="#170" name="170">0170</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">value</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">lst</span><span class="op">:</span><br />
-<a class="lnum" href="#171" name="171">0171</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">first</span><span class="op">:</span><br />
-<a class="lnum" href="#172" name="172">0172</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">first</span>&#0160;<span class="op">=</span>&#0160;<span class="name">False</span><br />
-<a class="lnum" href="#173" name="173">0173</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
-<a class="lnum" href="#174" name="174">0174</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">separator</span><br />
-<a class="lnum" href="#175" name="175">0175</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">chunk</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_iterencode</span><span class="op">(</span><span class="name">value</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#176" name="176">0176</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">chunk</span><br />
-<a class="lnum" href="#177" name="177">0177</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">newline_indent</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#178" name="178">0178</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">current_indent_level</span>&#0160;<span class="op">-=</span>&#0160;<span class="number">1</span><br />
-<a class="lnum" href="#179" name="179">0179</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_newline_indent</span><span class="op">(</span><span class="op">)</span><br />
-<a class="lnum" href="#180" name="180">0180</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">']'</span><br />
-<a class="lnum" href="#181" name="181">0181</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markers</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#182" name="182">0182</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">del</span>&#0160;<span class="name">markers</span><span class="op">[</span><span class="name">markerid</span><span class="op">]</span><br />
-<a class="lnum" href="#183" name="183">0183</a><br />
-<a class="lnum" href="#184" name="184">0184</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">_iterencode_dict</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">dct</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">=</span><span class="name">None</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#185" name="185">0185</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">dct</span><span class="op">:</span><br />
-<a class="lnum" href="#186" name="186">0186</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'{}'</span><br />
-<a class="lnum" href="#187" name="187">0187</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span><br />
-<a class="lnum" href="#188" name="188">0188</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markers</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#189" name="189">0189</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markerid</span>&#0160;<span class="op">=</span>&#0160;<span class="name">id</span><span class="op">(</span><span class="name">dct</span><span class="op">)</span><br />
-<a class="lnum" href="#190" name="190">0190</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markerid</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">markers</span><span class="op">:</span><br />
-<a class="lnum" href="#191" name="191">0191</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">raise</span>&#0160;<span class="name">ValueError</span><span class="op">(</span><span class="string">"Circular&#0160;reference&#0160;detected"</span><span class="op">)</span><br />
-<a class="lnum" href="#192" name="192">0192</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markers</span><span class="op">[</span><span class="name">markerid</span><span class="op">]</span>&#0160;<span class="op">=</span>&#0160;<span class="name">dct</span><br />
-<a class="lnum" href="#193" name="193">0193</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'{'</span><br />
-<a class="lnum" href="#194" name="194">0194</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">key_separator</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">key_separator</span><br />
-<a class="lnum" href="#195" name="195">0195</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">indent</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#196" name="196">0196</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">current_indent_level</span>&#0160;<span class="op">+=</span>&#0160;<span class="number">1</span><br />
-<a class="lnum" href="#197" name="197">0197</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">newline_indent</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_newline_indent</span><span class="op">(</span><span class="op">)</span><br />
-<a class="lnum" href="#198" name="198">0198</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">item_separator</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">item_separator</span>&#0160;<span class="op">+</span>&#0160;<span class="name">newline_indent</span><br />
-<a class="lnum" href="#199" name="199">0199</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">newline_indent</span><br />
-<a class="lnum" href="#200" name="200">0200</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
-<a class="lnum" href="#201" name="201">0201</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">newline_indent</span>&#0160;<span class="op">=</span>&#0160;<span class="name">None</span><br />
-<a class="lnum" href="#202" name="202">0202</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">item_separator</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">item_separator</span><br />
-<a class="lnum" href="#203" name="203">0203</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">first</span>&#0160;<span class="op">=</span>&#0160;<span class="name">True</span><br />
-<a class="lnum" href="#204" name="204">0204</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">ensure_ascii</span><span class="op">:</span><br />
-<a class="lnum" href="#205" name="205">0205</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoder</span>&#0160;<span class="op">=</span>&#0160;<span class="name">encode_basestring_ascii</span><br />
-<a class="lnum" href="#206" name="206">0206</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
-<a class="lnum" href="#207" name="207">0207</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoder</span>&#0160;<span class="op">=</span>&#0160;<span class="name">encode_basestring</span><br />
-<a class="lnum" href="#208" name="208">0208</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">allow_nan</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">allow_nan</span><br />
-<a class="lnum" href="#209" name="209">0209</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">sort_keys</span><span class="op">:</span><br />
-<a class="lnum" href="#210" name="210">0210</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">keys</span>&#0160;<span class="op">=</span>&#0160;<span class="name">dct</span><span class="op">.</span><span class="name">keys</span><span class="op">(</span><span class="op">)</span><br />
-<a class="lnum" href="#211" name="211">0211</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">keys</span><span class="op">.</span><span class="name">sort</span><span class="op">(</span><span class="op">)</span><br />
-<a class="lnum" href="#212" name="212">0212</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">items</span>&#0160;<span class="op">=</span>&#0160;<span class="op">[</span><span class="op">(</span><span class="name">k</span><span class="op">,</span>&#0160;<span class="name">dct</span><span class="op">[</span><span class="name">k</span><span class="op">]</span><span class="op">)</span>&#0160;<span class="keyword">for</span>&#0160;<span class="name">k</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">keys</span><span class="op">]</span><br />
-<a class="lnum" href="#213" name="213">0213</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
-<a class="lnum" href="#214" name="214">0214</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">items</span>&#0160;<span class="op">=</span>&#0160;<span class="name">dct</span><span class="op">.</span><span class="name">iteritems</span><span class="op">(</span><span class="op">)</span><br />
-<a class="lnum" href="#215" name="215">0215</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">key</span><span class="op">,</span>&#0160;<span class="name">value</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">items</span><span class="op">:</span><br />
-<a class="lnum" href="#216" name="216">0216</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">encoding</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">key</span><span class="op">,</span>&#0160;<span class="name">str</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#217" name="217">0217</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">key</span>&#0160;<span class="op">=</span>&#0160;<span class="name">key</span><span class="op">.</span><span class="name">decode</span><span class="op">(</span><span class="name">self</span><span class="op">.</span><span class="name">encoding</span><span class="op">)</span><br />
-<a class="lnum" href="#218" name="218">0218</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">key</span><span class="op">,</span>&#0160;<span class="name">basestring</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#219" name="219">0219</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">pass</span><br />
-<a class="lnum" href="#220" name="220">0220</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;JavaScript&#0160;is&#0160;weakly&#0160;typed&#0160;for&#0160;these,&#0160;so&#0160;it&#0160;makes&#0160;sense&#0160;to</span><br />
-<a class="lnum" href="#221" name="221">0221</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;also&#0160;allow&#0160;them.&#0160;&#0160;Many&#0160;encoders&#0160;seem&#0160;to&#0160;do&#0160;something&#0160;like&#0160;this.</span><br />
-<a class="lnum" href="#222" name="222">0222</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">key</span><span class="op">,</span>&#0160;<span class="name">float</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#223" name="223">0223</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">key</span>&#0160;<span class="op">=</span>&#0160;<span class="name">floatstr</span><span class="op">(</span><span class="name">key</span><span class="op">,</span>&#0160;<span class="name">allow_nan</span><span class="op">)</span><br />
-<a class="lnum" href="#224" name="224">0224</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">key</span><span class="op">,</span>&#0160;<span class="op">(</span><span class="name">int</span><span class="op">,</span>&#0160;<span class="name">long</span><span class="op">)</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#225" name="225">0225</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">key</span>&#0160;<span class="op">=</span>&#0160;<span class="name">str</span><span class="op">(</span><span class="name">key</span><span class="op">)</span><br />
-<a class="lnum" href="#226" name="226">0226</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">key</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">True</span><span class="op">:</span><br />
-<a class="lnum" href="#227" name="227">0227</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">key</span>&#0160;<span class="op">=</span>&#0160;<span class="string">'true'</span><br />
-<a class="lnum" href="#228" name="228">0228</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">key</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">False</span><span class="op">:</span><br />
-<a class="lnum" href="#229" name="229">0229</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">key</span>&#0160;<span class="op">=</span>&#0160;<span class="string">'false'</span><br />
-<a class="lnum" href="#230" name="230">0230</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">key</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#231" name="231">0231</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">key</span>&#0160;<span class="op">=</span>&#0160;<span class="string">'null'</span><br />
-<a class="lnum" href="#232" name="232">0232</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">skipkeys</span><span class="op">:</span><br />
-<a class="lnum" href="#233" name="233">0233</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">continue</span><br />
-<a class="lnum" href="#234" name="234">0234</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
-<a class="lnum" href="#235" name="235">0235</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">raise</span>&#0160;<span class="name">TypeError</span><span class="op">(</span><span class="string">"key&#0160;%r&#0160;is&#0160;not&#0160;a&#0160;string"</span>&#0160;<span class="op">%</span>&#0160;<span class="op">(</span><span class="name">key</span><span class="op">,</span><span class="op">)</span><span class="op">)</span><br />
-<a class="lnum" href="#236" name="236">0236</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">first</span><span class="op">:</span><br />
-<a class="lnum" href="#237" name="237">0237</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">first</span>&#0160;<span class="op">=</span>&#0160;<span class="name">False</span><br />
-<a class="lnum" href="#238" name="238">0238</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
-<a class="lnum" href="#239" name="239">0239</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">item_separator</span><br />
-<a class="lnum" href="#240" name="240">0240</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">encoder</span><span class="op">(</span><span class="name">key</span><span class="op">)</span><br />
-<a class="lnum" href="#241" name="241">0241</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">key_separator</span><br />
-<a class="lnum" href="#242" name="242">0242</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">chunk</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_iterencode</span><span class="op">(</span><span class="name">value</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#243" name="243">0243</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">chunk</span><br />
-<a class="lnum" href="#244" name="244">0244</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">newline_indent</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#245" name="245">0245</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">current_indent_level</span>&#0160;<span class="op">-=</span>&#0160;<span class="number">1</span><br />
-<a class="lnum" href="#246" name="246">0246</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_newline_indent</span><span class="op">(</span><span class="op">)</span><br />
-<a class="lnum" href="#247" name="247">0247</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'}'</span><br />
-<a class="lnum" href="#248" name="248">0248</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markers</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#249" name="249">0249</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">del</span>&#0160;<span class="name">markers</span><span class="op">[</span><span class="name">markerid</span><span class="op">]</span><br />
-<a class="lnum" href="#250" name="250">0250</a><br />
-<a class="lnum" href="#251" name="251">0251</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">_iterencode</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">o</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">=</span><span class="name">None</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#252" name="252">0252</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">basestring</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#253" name="253">0253</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">ensure_ascii</span><span class="op">:</span><br />
-<a class="lnum" href="#254" name="254">0254</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoder</span>&#0160;<span class="op">=</span>&#0160;<span class="name">encode_basestring_ascii</span><br />
+<a class="lnum" href="#42" name="42">0042</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">allow_nan</span><span class="op">:</span><br />
+<a class="lnum" href="#43" name="43">0043</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">raise</span>&#0160;<span class="name">ValueError</span><span class="op">(</span><span class="string">"Out&#0160;of&#0160;range&#0160;float&#0160;values&#0160;are&#0160;not&#0160;JSON&#0160;compliant:&#0160;%r"</span><br />
+<a class="lnum" href="#44" name="44">0044</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="op">%</span>&#0160;<span class="op">(</span><span class="name">o</span><span class="op">,</span><span class="op">)</span><span class="op">)</span><br />
+<a class="lnum" href="#45" name="45">0045</a><br />
+<a class="lnum" href="#46" name="46">0046</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">text</span><br />
+<a class="lnum" href="#47" name="47">0047</a><br />
+<a class="lnum" href="#48" name="48">0048</a><br />
+<a class="lnum" href="#49" name="49">0049</a><span class="keyword">def</span>&#0160;<span class="name">encode_basestring</span><span class="op">(</span><span class="name">s</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#50" name="50">0050</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
+<a class="lnum" href="#51" name="51">0051</a><span class="string">&#0160;&#0160;&#0160;&#0160;Return&#0160;a&#0160;JSON&#0160;representation&#0160;of&#0160;a&#0160;Python&#0160;string</span><br />
+<a class="lnum" href="#52" name="52">0052</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
+<a class="lnum" href="#53" name="53">0053</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">replace</span><span class="op">(</span><span class="name">match</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#54" name="54">0054</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">ESCAPE_DCT</span><span class="op">[</span><span class="name">match</span><span class="op">.</span><span class="name">group</span><span class="op">(</span><span class="number">0</span><span class="op">)</span><span class="op">]</span><br />
+<a class="lnum" href="#55" name="55">0055</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="string">'"'</span>&#0160;<span class="op">+</span>&#0160;<span class="name">ESCAPE</span><span class="op">.</span><span class="name">sub</span><span class="op">(</span><span class="name">replace</span><span class="op">,</span>&#0160;<span class="name">s</span><span class="op">)</span>&#0160;<span class="op">+</span>&#0160;<span class="string">'"'</span><br />
+<a class="lnum" href="#56" name="56">0056</a><br />
+<a class="lnum" href="#57" name="57">0057</a><span class="keyword">def</span>&#0160;<span class="name">encode_basestring_ascii</span><span class="op">(</span><span class="name">s</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#58" name="58">0058</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">replace</span><span class="op">(</span><span class="name">match</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#59" name="59">0059</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">s</span>&#0160;<span class="op">=</span>&#0160;<span class="name">match</span><span class="op">.</span><span class="name">group</span><span class="op">(</span><span class="number">0</span><span class="op">)</span><br />
+<a class="lnum" href="#60" name="60">0060</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">try</span><span class="op">:</span><br />
+<a class="lnum" href="#61" name="61">0061</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">ESCAPE_DCT</span><span class="op">[</span><span class="name">s</span><span class="op">]</span><br />
+<a class="lnum" href="#62" name="62">0062</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">except</span>&#0160;<span class="name">KeyError</span><span class="op">:</span><br />
+<a class="lnum" href="#63" name="63">0063</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">n</span>&#0160;<span class="op">=</span>&#0160;<span class="name">ord</span><span class="op">(</span><span class="name">s</span><span class="op">)</span><br />
+<a class="lnum" href="#64" name="64">0064</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">n</span>&#0160;<span class="op">&lt;</span>&#0160;<span class="number">0x10000</span><span class="op">:</span><br />
+<a class="lnum" href="#65" name="65">0065</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="string">'\\u%04x'</span>&#0160;<span class="op">%</span>&#0160;<span class="op">(</span><span class="name">n</span><span class="op">,</span><span class="op">)</span><br />
+<a class="lnum" href="#66" name="66">0066</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
+<a class="lnum" href="#67" name="67">0067</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;surrogate&#0160;pair</span><br />
+<a class="lnum" href="#68" name="68">0068</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">n</span>&#0160;<span class="op">-=</span>&#0160;<span class="number">0x10000</span><br />
+<a class="lnum" href="#69" name="69">0069</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">s1</span>&#0160;<span class="op">=</span>&#0160;<span class="number">0xd800</span>&#0160;<span class="op">|</span>&#0160;<span class="op">(</span><span class="op">(</span><span class="name">n</span>&#0160;<span class="op">&gt;&gt;</span>&#0160;<span class="number">10</span><span class="op">)</span>&#0160;<span class="op">&amp;</span>&#0160;<span class="number">0x3ff</span><span class="op">)</span><br />
+<a class="lnum" href="#70" name="70">0070</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">s2</span>&#0160;<span class="op">=</span>&#0160;<span class="number">0xdc00</span>&#0160;<span class="op">|</span>&#0160;<span class="op">(</span><span class="name">n</span>&#0160;<span class="op">&amp;</span>&#0160;<span class="number">0x3ff</span><span class="op">)</span><br />
+<a class="lnum" href="#71" name="71">0071</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="string">'\\u%04x\\u%04x'</span>&#0160;<span class="op">%</span>&#0160;<span class="op">(</span><span class="name">s1</span><span class="op">,</span>&#0160;<span class="name">s2</span><span class="op">)</span><br />
+<a class="lnum" href="#72" name="72">0072</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="string">'"'</span>&#0160;<span class="op">+</span>&#0160;<span class="name">str</span><span class="op">(</span><span class="name">ESCAPE_ASCII</span><span class="op">.</span><span class="name">sub</span><span class="op">(</span><span class="name">replace</span><span class="op">,</span>&#0160;<span class="name">s</span><span class="op">)</span><span class="op">)</span>&#0160;<span class="op">+</span>&#0160;<span class="string">'"'</span><br />
+<a class="lnum" href="#73" name="73">0073</a><br />
+<a class="lnum" href="#74" name="74">0074</a><span class="keyword">try</span><span class="op">:</span><br />
+<a class="lnum" href="#75" name="75">0075</a>&#0160;&#0160;&#0160;&#0160;<span class="name">encode_basestring_ascii</span>&#0160;<span class="op">=</span>&#0160;<span class="name">_speedups</span><span class="op">.</span><span class="name">encode_basestring_ascii</span><br />
+<a class="lnum" href="#76" name="76">0076</a>&#0160;&#0160;&#0160;&#0160;<span class="name">_need_utf8</span>&#0160;<span class="op">=</span>&#0160;<span class="name">True</span><br />
+<a class="lnum" href="#77" name="77">0077</a><span class="keyword">except</span>&#0160;<span class="name">AttributeError</span><span class="op">:</span><br />
+<a class="lnum" href="#78" name="78">0078</a>&#0160;&#0160;&#0160;&#0160;<span class="name">_need_utf8</span>&#0160;<span class="op">=</span>&#0160;<span class="name">False</span><br />
+<a class="lnum" href="#79" name="79">0079</a><br />
+<a class="lnum" href="#80" name="80">0080</a><span class="keyword">class</span>&#0160;<span class="name">JSONEncoder</span><span class="op">(</span><span class="name">object</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#81" name="81">0081</a>&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
+<a class="lnum" href="#82" name="82">0082</a><span class="string">&#0160;&#0160;&#0160;&#0160;Extensible&#0160;JSON&#0160;&lt;http://json.org&gt;&#0160;encoder&#0160;for&#0160;Python&#0160;data&#0160;structures.</span><br />
+<a class="lnum" href="#83" name="83">0083</a><span class="string"></span><br />
+<a class="lnum" href="#84" name="84">0084</a><span class="string">&#0160;&#0160;&#0160;&#0160;Supports&#0160;the&#0160;following&#0160;objects&#0160;and&#0160;types&#0160;by&#0160;default:</span><br />
+<a class="lnum" href="#85" name="85">0085</a><span class="string">&#0160;&#0160;&#0160;&#0160;</span><br />
+<a class="lnum" href="#86" name="86">0086</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
+<a class="lnum" href="#87" name="87">0087</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;Python&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|&#0160;JSON&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
+<a class="lnum" href="#88" name="88">0088</a><span class="string">&#0160;&#0160;&#0160;&#0160;+===================+===============+</span><br />
+<a class="lnum" href="#89" name="89">0089</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;dict&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|&#0160;object&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
+<a class="lnum" href="#90" name="90">0090</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
+<a class="lnum" href="#91" name="91">0091</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;list,&#0160;tuple&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|&#0160;array&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
+<a class="lnum" href="#92" name="92">0092</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
+<a class="lnum" href="#93" name="93">0093</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;str,&#0160;unicode&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|&#0160;string&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
+<a class="lnum" href="#94" name="94">0094</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
+<a class="lnum" href="#95" name="95">0095</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;int,&#0160;long,&#0160;float&#0160;&#0160;|&#0160;number&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
+<a class="lnum" href="#96" name="96">0096</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
+<a class="lnum" href="#97" name="97">0097</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;True&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|&#0160;true&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
+<a class="lnum" href="#98" name="98">0098</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
+<a class="lnum" href="#99" name="99">0099</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;False&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|&#0160;false&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
+<a class="lnum" href="#100" name="100">0100</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
+<a class="lnum" href="#101" name="101">0101</a><span class="string">&#0160;&#0160;&#0160;&#0160;|&#0160;None&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|&#0160;null&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;|</span><br />
+<a class="lnum" href="#102" name="102">0102</a><span class="string">&#0160;&#0160;&#0160;&#0160;+-------------------+---------------+</span><br />
+<a class="lnum" href="#103" name="103">0103</a><span class="string"></span><br />
+<a class="lnum" href="#104" name="104">0104</a><span class="string">&#0160;&#0160;&#0160;&#0160;To&#0160;extend&#0160;this&#0160;to&#0160;recognize&#0160;other&#0160;objects,&#0160;subclass&#0160;and&#0160;implement&#0160;a</span><br />
+<a class="lnum" href="#105" name="105">0105</a><span class="string">&#0160;&#0160;&#0160;&#0160;``.default()``&#0160;method&#0160;with&#0160;another&#0160;method&#0160;that&#0160;returns&#0160;a&#0160;serializable</span><br />
+<a class="lnum" href="#106" name="106">0106</a><span class="string">&#0160;&#0160;&#0160;&#0160;object&#0160;for&#0160;``o``&#0160;if&#0160;possible,&#0160;otherwise&#0160;it&#0160;should&#0160;call&#0160;the&#0160;superclass</span><br />
+<a class="lnum" href="#107" name="107">0107</a><span class="string">&#0160;&#0160;&#0160;&#0160;implementation&#0160;(to&#0160;raise&#0160;``TypeError``).</span><br />
+<a class="lnum" href="#108" name="108">0108</a><span class="string">&#0160;&#0160;&#0160;&#0160;"""</span><br />
+<a class="lnum" href="#109" name="109">0109</a>&#0160;&#0160;&#0160;&#0160;<span class="name">__all__</span>&#0160;<span class="op">=</span>&#0160;<span class="op">[</span><span class="string">'__init__'</span><span class="op">,</span>&#0160;<span class="string">'default'</span><span class="op">,</span>&#0160;<span class="string">'encode'</span><span class="op">,</span>&#0160;<span class="string">'iterencode'</span><span class="op">]</span><br />
+<a class="lnum" href="#110" name="110">0110</a>&#0160;&#0160;&#0160;&#0160;<span class="name">item_separator</span>&#0160;<span class="op">=</span>&#0160;<span class="string">',&#0160;'</span><br />
+<a class="lnum" href="#111" name="111">0111</a>&#0160;&#0160;&#0160;&#0160;<span class="name">key_separator</span>&#0160;<span class="op">=</span>&#0160;<span class="string">':&#0160;'</span><br />
+<a class="lnum" href="#112" name="112">0112</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">__init__</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">skipkeys</span><span class="op">=</span><span class="name">False</span><span class="op">,</span>&#0160;<span class="name">ensure_ascii</span><span class="op">=</span><span class="name">True</span><span class="op">,</span><br />
+<a class="lnum" href="#113" name="113">0113</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">check_circular</span><span class="op">=</span><span class="name">True</span><span class="op">,</span>&#0160;<span class="name">allow_nan</span><span class="op">=</span><span class="name">True</span><span class="op">,</span>&#0160;<span class="name">sort_keys</span><span class="op">=</span><span class="name">False</span><span class="op">,</span><br />
+<a class="lnum" href="#114" name="114">0114</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">indent</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">separators</span><span class="op">=</span><span class="name">None</span><span class="op">,</span>&#0160;<span class="name">encoding</span><span class="op">=</span><span class="string">'utf-8'</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#115" name="115">0115</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
+<a class="lnum" href="#116" name="116">0116</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;Constructor&#0160;for&#0160;JSONEncoder,&#0160;with&#0160;sensible&#0160;defaults.</span><br />
+<a class="lnum" href="#117" name="117">0117</a><span class="string"></span><br />
+<a class="lnum" href="#118" name="118">0118</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;skipkeys&#0160;is&#0160;False,&#0160;then&#0160;it&#0160;is&#0160;a&#0160;TypeError&#0160;to&#0160;attempt</span><br />
+<a class="lnum" href="#119" name="119">0119</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;encoding&#0160;of&#0160;keys&#0160;that&#0160;are&#0160;not&#0160;str,&#0160;int,&#0160;long,&#0160;float&#0160;or&#0160;None.&#0160;&#0160;If</span><br />
+<a class="lnum" href="#120" name="120">0120</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;skipkeys&#0160;is&#0160;True,&#0160;such&#0160;items&#0160;are&#0160;simply&#0160;skipped.</span><br />
+<a class="lnum" href="#121" name="121">0121</a><span class="string"></span><br />
+<a class="lnum" href="#122" name="122">0122</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;ensure_ascii&#0160;is&#0160;True,&#0160;the&#0160;output&#0160;is&#0160;guaranteed&#0160;to&#0160;be&#0160;str</span><br />
+<a class="lnum" href="#123" name="123">0123</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;objects&#0160;with&#0160;all&#0160;incoming&#0160;unicode&#0160;characters&#0160;escaped.&#0160;&#0160;If</span><br />
+<a class="lnum" href="#124" name="124">0124</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;ensure_ascii&#0160;is&#0160;false,&#0160;the&#0160;output&#0160;will&#0160;be&#0160;unicode&#0160;object.</span><br />
+<a class="lnum" href="#125" name="125">0125</a><span class="string"></span><br />
+<a class="lnum" href="#126" name="126">0126</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;check_circular&#0160;is&#0160;True,&#0160;then&#0160;lists,&#0160;dicts,&#0160;and&#0160;custom&#0160;encoded</span><br />
+<a class="lnum" href="#127" name="127">0127</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;objects&#0160;will&#0160;be&#0160;checked&#0160;for&#0160;circular&#0160;references&#0160;during&#0160;encoding&#0160;to</span><br />
+<a class="lnum" href="#128" name="128">0128</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;prevent&#0160;an&#0160;infinite&#0160;recursion&#0160;(which&#0160;would&#0160;cause&#0160;an&#0160;OverflowError).</span><br />
+<a class="lnum" href="#129" name="129">0129</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;Otherwise,&#0160;no&#0160;such&#0160;check&#0160;takes&#0160;place.</span><br />
+<a class="lnum" href="#130" name="130">0130</a><span class="string"></span><br />
+<a class="lnum" href="#131" name="131">0131</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;allow_nan&#0160;is&#0160;True,&#0160;then&#0160;NaN,&#0160;Infinity,&#0160;and&#0160;-Infinity&#0160;will&#0160;be</span><br />
+<a class="lnum" href="#132" name="132">0132</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;encoded&#0160;as&#0160;such.&#0160;&#0160;This&#0160;behavior&#0160;is&#0160;not&#0160;JSON&#0160;specification&#0160;compliant,</span><br />
+<a class="lnum" href="#133" name="133">0133</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;but&#0160;is&#0160;consistent&#0160;with&#0160;most&#0160;JavaScript&#0160;based&#0160;encoders&#0160;and&#0160;decoders.</span><br />
+<a class="lnum" href="#134" name="134">0134</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;Otherwise,&#0160;it&#0160;will&#0160;be&#0160;a&#0160;ValueError&#0160;to&#0160;encode&#0160;such&#0160;floats.</span><br />
+<a class="lnum" href="#135" name="135">0135</a><span class="string"></span><br />
+<a class="lnum" href="#136" name="136">0136</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;sort_keys&#0160;is&#0160;True,&#0160;then&#0160;the&#0160;output&#0160;of&#0160;dictionaries&#0160;will&#0160;be</span><br />
+<a class="lnum" href="#137" name="137">0137</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;sorted&#0160;by&#0160;key;&#0160;this&#0160;is&#0160;useful&#0160;for&#0160;regression&#0160;tests&#0160;to&#0160;ensure</span><br />
+<a class="lnum" href="#138" name="138">0138</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;that&#0160;JSON&#0160;serializations&#0160;can&#0160;be&#0160;compared&#0160;on&#0160;a&#0160;day-to-day&#0160;basis.</span><br />
+<a class="lnum" href="#139" name="139">0139</a><span class="string"></span><br />
+<a class="lnum" href="#140" name="140">0140</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;indent&#0160;is&#0160;a&#0160;non-negative&#0160;integer,&#0160;then&#0160;JSON&#0160;array</span><br />
+<a class="lnum" href="#141" name="141">0141</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;elements&#0160;and&#0160;object&#0160;members&#0160;will&#0160;be&#0160;pretty-printed&#0160;with&#0160;that</span><br />
+<a class="lnum" href="#142" name="142">0142</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;indent&#0160;level.&#0160;&#0160;An&#0160;indent&#0160;level&#0160;of&#0160;0&#0160;will&#0160;only&#0160;insert&#0160;newlines.</span><br />
+<a class="lnum" href="#143" name="143">0143</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;None&#0160;is&#0160;the&#0160;most&#0160;compact&#0160;representation.</span><br />
+<a class="lnum" href="#144" name="144">0144</a><span class="string"></span><br />
+<a class="lnum" href="#145" name="145">0145</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;specified,&#0160;separators&#0160;should&#0160;be&#0160;a&#0160;(item_separator,&#0160;key_separator)</span><br />
+<a class="lnum" href="#146" name="146">0146</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;tuple.&#0160;The&#0160;default&#0160;is&#0160;(',&#0160;',&#0160;':&#0160;').&#0160;To&#0160;get&#0160;the&#0160;most&#0160;compact&#0160;JSON</span><br />
+<a class="lnum" href="#147" name="147">0147</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;representation&#0160;you&#0160;should&#0160;specify&#0160;(',',&#0160;':')&#0160;to&#0160;eliminate&#0160;whitespace.</span><br />
+<a class="lnum" href="#148" name="148">0148</a><span class="string"></span><br />
+<a class="lnum" href="#149" name="149">0149</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;If&#0160;encoding&#0160;is&#0160;not&#0160;None,&#0160;then&#0160;all&#0160;input&#0160;strings&#0160;will&#0160;be</span><br />
+<a class="lnum" href="#150" name="150">0150</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;transformed&#0160;into&#0160;unicode&#0160;using&#0160;that&#0160;encoding&#0160;prior&#0160;to&#0160;JSON-encoding.&#0160;</span><br />
+<a class="lnum" href="#151" name="151">0151</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;The&#0160;default&#0160;is&#0160;UTF-8.</span><br />
+<a class="lnum" href="#152" name="152">0152</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;"""</span><br />
+<a class="lnum" href="#153" name="153">0153</a><br />
+<a class="lnum" href="#154" name="154">0154</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">skipkeys</span>&#0160;<span class="op">=</span>&#0160;<span class="name">skipkeys</span><br />
+<a class="lnum" href="#155" name="155">0155</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">ensure_ascii</span>&#0160;<span class="op">=</span>&#0160;<span class="name">ensure_ascii</span><br />
+<a class="lnum" href="#156" name="156">0156</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">check_circular</span>&#0160;<span class="op">=</span>&#0160;<span class="name">check_circular</span><br />
+<a class="lnum" href="#157" name="157">0157</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">allow_nan</span>&#0160;<span class="op">=</span>&#0160;<span class="name">allow_nan</span><br />
+<a class="lnum" href="#158" name="158">0158</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">sort_keys</span>&#0160;<span class="op">=</span>&#0160;<span class="name">sort_keys</span><br />
+<a class="lnum" href="#159" name="159">0159</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">indent</span>&#0160;<span class="op">=</span>&#0160;<span class="name">indent</span><br />
+<a class="lnum" href="#160" name="160">0160</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">current_indent_level</span>&#0160;<span class="op">=</span>&#0160;<span class="number">0</span><br />
+<a class="lnum" href="#161" name="161">0161</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">separators</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#162" name="162">0162</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">item_separator</span><span class="op">,</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">key_separator</span>&#0160;<span class="op">=</span>&#0160;<span class="name">separators</span><br />
+<a class="lnum" href="#163" name="163">0163</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">encoding</span>&#0160;<span class="op">=</span>&#0160;<span class="name">encoding</span><br />
+<a class="lnum" href="#164" name="164">0164</a><br />
+<a class="lnum" href="#165" name="165">0165</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">_newline_indent</span><span class="op">(</span><span class="name">self</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#166" name="166">0166</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="string">'\n'</span>&#0160;<span class="op">+</span>&#0160;<span class="op">(</span><span class="string">'&#0160;'</span>&#0160;<span class="op">*</span>&#0160;<span class="op">(</span><span class="name">self</span><span class="op">.</span><span class="name">indent</span>&#0160;<span class="op">*</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">current_indent_level</span><span class="op">)</span><span class="op">)</span><br />
+<a class="lnum" href="#167" name="167">0167</a><br />
+<a class="lnum" href="#168" name="168">0168</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">_iterencode_list</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">lst</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">=</span><span class="name">None</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#169" name="169">0169</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">lst</span><span class="op">:</span><br />
+<a class="lnum" href="#170" name="170">0170</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'[]'</span><br />
+<a class="lnum" href="#171" name="171">0171</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span><br />
+<a class="lnum" href="#172" name="172">0172</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markers</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#173" name="173">0173</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markerid</span>&#0160;<span class="op">=</span>&#0160;<span class="name">id</span><span class="op">(</span><span class="name">lst</span><span class="op">)</span><br />
+<a class="lnum" href="#174" name="174">0174</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markerid</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">markers</span><span class="op">:</span><br />
+<a class="lnum" href="#175" name="175">0175</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">raise</span>&#0160;<span class="name">ValueError</span><span class="op">(</span><span class="string">"Circular&#0160;reference&#0160;detected"</span><span class="op">)</span><br />
+<a class="lnum" href="#176" name="176">0176</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markers</span><span class="op">[</span><span class="name">markerid</span><span class="op">]</span>&#0160;<span class="op">=</span>&#0160;<span class="name">lst</span><br />
+<a class="lnum" href="#177" name="177">0177</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'['</span><br />
+<a class="lnum" href="#178" name="178">0178</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">indent</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#179" name="179">0179</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">current_indent_level</span>&#0160;<span class="op">+=</span>&#0160;<span class="number">1</span><br />
+<a class="lnum" href="#180" name="180">0180</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">newline_indent</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_newline_indent</span><span class="op">(</span><span class="op">)</span><br />
+<a class="lnum" href="#181" name="181">0181</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">separator</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">item_separator</span>&#0160;<span class="op">+</span>&#0160;<span class="name">newline_indent</span><br />
+<a class="lnum" href="#182" name="182">0182</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">newline_indent</span><br />
+<a class="lnum" href="#183" name="183">0183</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
+<a class="lnum" href="#184" name="184">0184</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">newline_indent</span>&#0160;<span class="op">=</span>&#0160;<span class="name">None</span><br />
+<a class="lnum" href="#185" name="185">0185</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">separator</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">item_separator</span><br />
+<a class="lnum" href="#186" name="186">0186</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">first</span>&#0160;<span class="op">=</span>&#0160;<span class="name">True</span><br />
+<a class="lnum" href="#187" name="187">0187</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">value</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">lst</span><span class="op">:</span><br />
+<a class="lnum" href="#188" name="188">0188</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">first</span><span class="op">:</span><br />
+<a class="lnum" href="#189" name="189">0189</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">first</span>&#0160;<span class="op">=</span>&#0160;<span class="name">False</span><br />
+<a class="lnum" href="#190" name="190">0190</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
+<a class="lnum" href="#191" name="191">0191</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">separator</span><br />
+<a class="lnum" href="#192" name="192">0192</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">chunk</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_iterencode</span><span class="op">(</span><span class="name">value</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#193" name="193">0193</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">chunk</span><br />
+<a class="lnum" href="#194" name="194">0194</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">newline_indent</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#195" name="195">0195</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">current_indent_level</span>&#0160;<span class="op">-=</span>&#0160;<span class="number">1</span><br />
+<a class="lnum" href="#196" name="196">0196</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_newline_indent</span><span class="op">(</span><span class="op">)</span><br />
+<a class="lnum" href="#197" name="197">0197</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">']'</span><br />
+<a class="lnum" href="#198" name="198">0198</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markers</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#199" name="199">0199</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">del</span>&#0160;<span class="name">markers</span><span class="op">[</span><span class="name">markerid</span><span class="op">]</span><br />
+<a class="lnum" href="#200" name="200">0200</a><br />
+<a class="lnum" href="#201" name="201">0201</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">_iterencode_dict</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">dct</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">=</span><span class="name">None</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#202" name="202">0202</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">dct</span><span class="op">:</span><br />
+<a class="lnum" href="#203" name="203">0203</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'{}'</span><br />
+<a class="lnum" href="#204" name="204">0204</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span><br />
+<a class="lnum" href="#205" name="205">0205</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markers</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#206" name="206">0206</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markerid</span>&#0160;<span class="op">=</span>&#0160;<span class="name">id</span><span class="op">(</span><span class="name">dct</span><span class="op">)</span><br />
+<a class="lnum" href="#207" name="207">0207</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markerid</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">markers</span><span class="op">:</span><br />
+<a class="lnum" href="#208" name="208">0208</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">raise</span>&#0160;<span class="name">ValueError</span><span class="op">(</span><span class="string">"Circular&#0160;reference&#0160;detected"</span><span class="op">)</span><br />
+<a class="lnum" href="#209" name="209">0209</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markers</span><span class="op">[</span><span class="name">markerid</span><span class="op">]</span>&#0160;<span class="op">=</span>&#0160;<span class="name">dct</span><br />
+<a class="lnum" href="#210" name="210">0210</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'{'</span><br />
+<a class="lnum" href="#211" name="211">0211</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">key_separator</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">key_separator</span><br />
+<a class="lnum" href="#212" name="212">0212</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">indent</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#213" name="213">0213</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">current_indent_level</span>&#0160;<span class="op">+=</span>&#0160;<span class="number">1</span><br />
+<a class="lnum" href="#214" name="214">0214</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">newline_indent</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_newline_indent</span><span class="op">(</span><span class="op">)</span><br />
+<a class="lnum" href="#215" name="215">0215</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">item_separator</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">item_separator</span>&#0160;<span class="op">+</span>&#0160;<span class="name">newline_indent</span><br />
+<a class="lnum" href="#216" name="216">0216</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">newline_indent</span><br />
+<a class="lnum" href="#217" name="217">0217</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
+<a class="lnum" href="#218" name="218">0218</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">newline_indent</span>&#0160;<span class="op">=</span>&#0160;<span class="name">None</span><br />
+<a class="lnum" href="#219" name="219">0219</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">item_separator</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">item_separator</span><br />
+<a class="lnum" href="#220" name="220">0220</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">first</span>&#0160;<span class="op">=</span>&#0160;<span class="name">True</span><br />
+<a class="lnum" href="#221" name="221">0221</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">ensure_ascii</span><span class="op">:</span><br />
+<a class="lnum" href="#222" name="222">0222</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoder</span>&#0160;<span class="op">=</span>&#0160;<span class="name">encode_basestring_ascii</span><br />
+<a class="lnum" href="#223" name="223">0223</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
+<a class="lnum" href="#224" name="224">0224</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoder</span>&#0160;<span class="op">=</span>&#0160;<span class="name">encode_basestring</span><br />
+<a class="lnum" href="#225" name="225">0225</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">allow_nan</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">allow_nan</span><br />
+<a class="lnum" href="#226" name="226">0226</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">sort_keys</span><span class="op">:</span><br />
+<a class="lnum" href="#227" name="227">0227</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">keys</span>&#0160;<span class="op">=</span>&#0160;<span class="name">dct</span><span class="op">.</span><span class="name">keys</span><span class="op">(</span><span class="op">)</span><br />
+<a class="lnum" href="#228" name="228">0228</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">keys</span><span class="op">.</span><span class="name">sort</span><span class="op">(</span><span class="op">)</span><br />
+<a class="lnum" href="#229" name="229">0229</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">items</span>&#0160;<span class="op">=</span>&#0160;<span class="op">[</span><span class="op">(</span><span class="name">k</span><span class="op">,</span>&#0160;<span class="name">dct</span><span class="op">[</span><span class="name">k</span><span class="op">]</span><span class="op">)</span>&#0160;<span class="keyword">for</span>&#0160;<span class="name">k</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">keys</span><span class="op">]</span><br />
+<a class="lnum" href="#230" name="230">0230</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
+<a class="lnum" href="#231" name="231">0231</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">items</span>&#0160;<span class="op">=</span>&#0160;<span class="name">dct</span><span class="op">.</span><span class="name">iteritems</span><span class="op">(</span><span class="op">)</span><br />
+<a class="lnum" href="#232" name="232">0232</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">_encoding</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">encoding</span><br />
+<a class="lnum" href="#233" name="233">0233</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">_do_decode</span>&#0160;<span class="op">=</span>&#0160;<span class="op">(</span><span class="name">_encoding</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><br />
+<a class="lnum" href="#234" name="234">0234</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">and</span>&#0160;<span class="keyword">not</span>&#0160;<span class="op">(</span><span class="name">_need_utf8</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">_encoding</span>&#0160;<span class="op">==</span>&#0160;<span class="string">'utf-8'</span><span class="op">)</span><span class="op">)</span><br />
+<a class="lnum" href="#235" name="235">0235</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">key</span><span class="op">,</span>&#0160;<span class="name">value</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">items</span><span class="op">:</span><br />
+<a class="lnum" href="#236" name="236">0236</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">key</span><span class="op">,</span>&#0160;<span class="name">str</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#237" name="237">0237</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">_do_decode</span><span class="op">:</span><br />
+<a class="lnum" href="#238" name="238">0238</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">key</span>&#0160;<span class="op">=</span>&#0160;<span class="name">key</span><span class="op">.</span><span class="name">decode</span><span class="op">(</span><span class="name">_encoding</span><span class="op">)</span><br />
+<a class="lnum" href="#239" name="239">0239</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">key</span><span class="op">,</span>&#0160;<span class="name">basestring</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#240" name="240">0240</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">pass</span><br />
+<a class="lnum" href="#241" name="241">0241</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;JavaScript&#0160;is&#0160;weakly&#0160;typed&#0160;for&#0160;these,&#0160;so&#0160;it&#0160;makes&#0160;sense&#0160;to</span><br />
+<a class="lnum" href="#242" name="242">0242</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;also&#0160;allow&#0160;them.&#0160;&#0160;Many&#0160;encoders&#0160;seem&#0160;to&#0160;do&#0160;something&#0160;like&#0160;this.</span><br />
+<a class="lnum" href="#243" name="243">0243</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">key</span><span class="op">,</span>&#0160;<span class="name">float</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#244" name="244">0244</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">key</span>&#0160;<span class="op">=</span>&#0160;<span class="name">floatstr</span><span class="op">(</span><span class="name">key</span><span class="op">,</span>&#0160;<span class="name">allow_nan</span><span class="op">)</span><br />
+<a class="lnum" href="#245" name="245">0245</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">key</span><span class="op">,</span>&#0160;<span class="op">(</span><span class="name">int</span><span class="op">,</span>&#0160;<span class="name">long</span><span class="op">)</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#246" name="246">0246</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">key</span>&#0160;<span class="op">=</span>&#0160;<span class="name">str</span><span class="op">(</span><span class="name">key</span><span class="op">)</span><br />
+<a class="lnum" href="#247" name="247">0247</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">key</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">True</span><span class="op">:</span><br />
+<a class="lnum" href="#248" name="248">0248</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">key</span>&#0160;<span class="op">=</span>&#0160;<span class="string">'true'</span><br />
+<a class="lnum" href="#249" name="249">0249</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">key</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">False</span><span class="op">:</span><br />
+<a class="lnum" href="#250" name="250">0250</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">key</span>&#0160;<span class="op">=</span>&#0160;<span class="string">'false'</span><br />
+<a class="lnum" href="#251" name="251">0251</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">key</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#252" name="252">0252</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">key</span>&#0160;<span class="op">=</span>&#0160;<span class="string">'null'</span><br />
+<a class="lnum" href="#253" name="253">0253</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">skipkeys</span><span class="op">:</span><br />
+<a class="lnum" href="#254" name="254">0254</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">continue</span><br />
<a class="lnum" href="#255" name="255">0255</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
-<a class="lnum" href="#256" name="256">0256</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoder</span>&#0160;<span class="op">=</span>&#0160;<span class="name">encode_basestring</span><br />
-<a class="lnum" href="#257" name="257">0257</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">encoding</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">str</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#258" name="258">0258</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">o</span>&#0160;<span class="op">=</span>&#0160;<span class="name">o</span><span class="op">.</span><span class="name">decode</span><span class="op">(</span><span class="name">self</span><span class="op">.</span><span class="name">encoding</span><span class="op">)</span><br />
-<a class="lnum" href="#259" name="259">0259</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">encoder</span><span class="op">(</span><span class="name">o</span><span class="op">)</span><br />
-<a class="lnum" href="#260" name="260">0260</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">o</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#261" name="261">0261</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'null'</span><br />
-<a class="lnum" href="#262" name="262">0262</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">o</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">True</span><span class="op">:</span><br />
-<a class="lnum" href="#263" name="263">0263</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'true'</span><br />
-<a class="lnum" href="#264" name="264">0264</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">o</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">False</span><span class="op">:</span><br />
-<a class="lnum" href="#265" name="265">0265</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'false'</span><br />
-<a class="lnum" href="#266" name="266">0266</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="op">(</span><span class="name">int</span><span class="op">,</span>&#0160;<span class="name">long</span><span class="op">)</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#267" name="267">0267</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">str</span><span class="op">(</span><span class="name">o</span><span class="op">)</span><br />
-<a class="lnum" href="#268" name="268">0268</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">float</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#269" name="269">0269</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">floatstr</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">allow_nan</span><span class="op">)</span><br />
-<a class="lnum" href="#270" name="270">0270</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="op">(</span><span class="name">list</span><span class="op">,</span>&#0160;<span class="name">tuple</span><span class="op">)</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#271" name="271">0271</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">chunk</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_iterencode_list</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#272" name="272">0272</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">chunk</span><br />
-<a class="lnum" href="#273" name="273">0273</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">dict</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#274" name="274">0274</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">chunk</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_iterencode_dict</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#275" name="275">0275</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">chunk</span><br />
-<a class="lnum" href="#276" name="276">0276</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
-<a class="lnum" href="#277" name="277">0277</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markers</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#278" name="278">0278</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markerid</span>&#0160;<span class="op">=</span>&#0160;<span class="name">id</span><span class="op">(</span><span class="name">o</span><span class="op">)</span><br />
-<a class="lnum" href="#279" name="279">0279</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markerid</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">markers</span><span class="op">:</span><br />
-<a class="lnum" href="#280" name="280">0280</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">raise</span>&#0160;<span class="name">ValueError</span><span class="op">(</span><span class="string">"Circular&#0160;reference&#0160;detected"</span><span class="op">)</span><br />
-<a class="lnum" href="#281" name="281">0281</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markers</span><span class="op">[</span><span class="name">markerid</span><span class="op">]</span>&#0160;<span class="op">=</span>&#0160;<span class="name">o</span><br />
-<a class="lnum" href="#282" name="282">0282</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">chunk</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_iterencode_default</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#283" name="283">0283</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">chunk</span><br />
-<a class="lnum" href="#284" name="284">0284</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markers</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
-<a class="lnum" href="#285" name="285">0285</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">del</span>&#0160;<span class="name">markers</span><span class="op">[</span><span class="name">markerid</span><span class="op">]</span><br />
-<a class="lnum" href="#286" name="286">0286</a><br />
-<a class="lnum" href="#287" name="287">0287</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">_iterencode_default</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">o</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">=</span><span class="name">None</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#288" name="288">0288</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">newobj</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">default</span><span class="op">(</span><span class="name">o</span><span class="op">)</span><br />
-<a class="lnum" href="#289" name="289">0289</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_iterencode</span><span class="op">(</span><span class="name">newobj</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">)</span><br />
-<a class="lnum" href="#290" name="290">0290</a><br />
-<a class="lnum" href="#291" name="291">0291</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">default</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">o</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#292" name="292">0292</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
-<a class="lnum" href="#293" name="293">0293</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;Implement&#0160;this&#0160;method&#0160;in&#0160;a&#0160;subclass&#0160;such&#0160;that&#0160;it&#0160;returns</span><br />
-<a class="lnum" href="#294" name="294">0294</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;a&#0160;serializable&#0160;object&#0160;for&#0160;``o``,&#0160;or&#0160;calls&#0160;the&#0160;base&#0160;implementation</span><br />
-<a class="lnum" href="#295" name="295">0295</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;(to&#0160;raise&#0160;a&#0160;``TypeError``).</span><br />
-<a class="lnum" href="#296" name="296">0296</a><span class="string"></span><br />
-<a class="lnum" href="#297" name="297">0297</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;For&#0160;example,&#0160;to&#0160;support&#0160;arbitrary&#0160;iterators,&#0160;you&#0160;could</span><br />
-<a class="lnum" href="#298" name="298">0298</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;implement&#0160;default&#0160;like&#0160;this::</span><br />
-<a class="lnum" href="#299" name="299">0299</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;</span><br />
-<a class="lnum" href="#300" name="300">0300</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;def&#0160;default(self,&#0160;o):</span><br />
-<a class="lnum" href="#301" name="301">0301</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;try:</span><br />
-<a class="lnum" href="#302" name="302">0302</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;iterable&#0160;=&#0160;iter(o)</span><br />
-<a class="lnum" href="#303" name="303">0303</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;except&#0160;TypeError:</span><br />
-<a class="lnum" href="#304" name="304">0304</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;pass</span><br />
-<a class="lnum" href="#305" name="305">0305</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;else:</span><br />
-<a class="lnum" href="#306" name="306">0306</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;return&#0160;list(iterable)</span><br />
-<a class="lnum" href="#307" name="307">0307</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;return&#0160;JSONEncoder.default(self,&#0160;o)</span><br />
-<a class="lnum" href="#308" name="308">0308</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;"""</span><br />
-<a class="lnum" href="#309" name="309">0309</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">raise</span>&#0160;<span class="name">TypeError</span><span class="op">(</span><span class="string">"%r&#0160;is&#0160;not&#0160;JSON&#0160;serializable"</span>&#0160;<span class="op">%</span>&#0160;<span class="op">(</span><span class="name">o</span><span class="op">,</span><span class="op">)</span><span class="op">)</span><br />
-<a class="lnum" href="#310" name="310">0310</a><br />
-<a class="lnum" href="#311" name="311">0311</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">encode</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">o</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#312" name="312">0312</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
-<a class="lnum" href="#313" name="313">0313</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;Return&#0160;a&#0160;JSON&#0160;string&#0160;representation&#0160;of&#0160;a&#0160;Python&#0160;data&#0160;structure.</span><br />
-<a class="lnum" href="#314" name="314">0314</a><span class="string"></span><br />
-<a class="lnum" href="#315" name="315">0315</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&gt;&gt;&gt;&#0160;JSONEncoder().encode({"foo":&#0160;["bar",&#0160;"baz"]})</span><br />
-<a class="lnum" href="#316" name="316">0316</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;'{"foo":["bar",&#0160;"baz"]}'</span><br />
-<a class="lnum" href="#317" name="317">0317</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;"""</span><br />
-<a class="lnum" href="#318" name="318">0318</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;This&#0160;doesn't&#0160;pass&#0160;the&#0160;iterator&#0160;directly&#0160;to&#0160;''.join()&#0160;because&#0160;it</span><br />
-<a class="lnum" href="#319" name="319">0319</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;sucks&#0160;at&#0160;reporting&#0160;exceptions.&#0160;&#0160;It's&#0160;going&#0160;to&#0160;do&#0160;this&#0160;internally</span><br />
-<a class="lnum" href="#320" name="320">0320</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;anyway&#0160;because&#0160;it&#0160;uses&#0160;PySequence_Fast&#0160;or&#0160;similar.</span><br />
-<a class="lnum" href="#321" name="321">0321</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">chunks</span>&#0160;<span class="op">=</span>&#0160;<span class="name">list</span><span class="op">(</span><span class="name">self</span><span class="op">.</span><span class="name">iterencode</span><span class="op">(</span><span class="name">o</span><span class="op">)</span><span class="op">)</span><br />
-<a class="lnum" href="#322" name="322">0322</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="string">''</span><span class="op">.</span><span class="name">join</span><span class="op">(</span><span class="name">chunks</span><span class="op">)</span><br />
-<a class="lnum" href="#323" name="323">0323</a><br />
-<a class="lnum" href="#324" name="324">0324</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">iterencode</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">o</span><span class="op">)</span><span class="op">:</span><br />
-<a class="lnum" href="#325" name="325">0325</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
-<a class="lnum" href="#326" name="326">0326</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;Encode&#0160;the&#0160;given&#0160;object&#0160;and&#0160;yield&#0160;each&#0160;string</span><br />
-<a class="lnum" href="#327" name="327">0327</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;representation&#0160;as&#0160;available.</span><br />
-<a class="lnum" href="#328" name="328">0328</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;</span><br />
-<a class="lnum" href="#329" name="329">0329</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;For&#0160;example::</span><br />
-<a class="lnum" href="#330" name="330">0330</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;</span><br />
-<a class="lnum" href="#331" name="331">0331</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;for&#0160;chunk&#0160;in&#0160;JSONEncoder().iterencode(bigobject):</span><br />
-<a class="lnum" href="#332" name="332">0332</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;mysocket.write(chunk)</span><br />
-<a class="lnum" href="#333" name="333">0333</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;"""</span><br />
-<a class="lnum" href="#334" name="334">0334</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">check_circular</span><span class="op">:</span><br />
-<a class="lnum" href="#335" name="335">0335</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markers</span>&#0160;<span class="op">=</span>&#0160;<span class="op">{</span><span class="op">}</span><br />
-<a class="lnum" href="#336" name="336">0336</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
-<a class="lnum" href="#337" name="337">0337</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markers</span>&#0160;<span class="op">=</span>&#0160;<span class="name">None</span><br />
-<a class="lnum" href="#338" name="338">0338</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_iterencode</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">)</span><br />
-<a class="lnum" href="#339" name="339">0339</a><br />
-<a class="lnum" href="#340" name="340">0340</a><span class="name">__all__</span>&#0160;<span class="op">=</span>&#0160;<span class="op">[</span><span class="string">'JSONEncoder'</span><span class="op">]</span></code></div></body></html> \ No newline at end of file
+<a class="lnum" href="#256" name="256">0256</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">raise</span>&#0160;<span class="name">TypeError</span><span class="op">(</span><span class="string">"key&#0160;%r&#0160;is&#0160;not&#0160;a&#0160;string"</span>&#0160;<span class="op">%</span>&#0160;<span class="op">(</span><span class="name">key</span><span class="op">,</span><span class="op">)</span><span class="op">)</span><br />
+<a class="lnum" href="#257" name="257">0257</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">first</span><span class="op">:</span><br />
+<a class="lnum" href="#258" name="258">0258</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">first</span>&#0160;<span class="op">=</span>&#0160;<span class="name">False</span><br />
+<a class="lnum" href="#259" name="259">0259</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
+<a class="lnum" href="#260" name="260">0260</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">item_separator</span><br />
+<a class="lnum" href="#261" name="261">0261</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">encoder</span><span class="op">(</span><span class="name">key</span><span class="op">)</span><br />
+<a class="lnum" href="#262" name="262">0262</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">key_separator</span><br />
+<a class="lnum" href="#263" name="263">0263</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">chunk</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_iterencode</span><span class="op">(</span><span class="name">value</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#264" name="264">0264</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">chunk</span><br />
+<a class="lnum" href="#265" name="265">0265</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">newline_indent</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#266" name="266">0266</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">self</span><span class="op">.</span><span class="name">current_indent_level</span>&#0160;<span class="op">-=</span>&#0160;<span class="number">1</span><br />
+<a class="lnum" href="#267" name="267">0267</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_newline_indent</span><span class="op">(</span><span class="op">)</span><br />
+<a class="lnum" href="#268" name="268">0268</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'}'</span><br />
+<a class="lnum" href="#269" name="269">0269</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markers</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#270" name="270">0270</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">del</span>&#0160;<span class="name">markers</span><span class="op">[</span><span class="name">markerid</span><span class="op">]</span><br />
+<a class="lnum" href="#271" name="271">0271</a><br />
+<a class="lnum" href="#272" name="272">0272</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">_iterencode</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">o</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">=</span><span class="name">None</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#273" name="273">0273</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">basestring</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#274" name="274">0274</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">ensure_ascii</span><span class="op">:</span><br />
+<a class="lnum" href="#275" name="275">0275</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoder</span>&#0160;<span class="op">=</span>&#0160;<span class="name">encode_basestring_ascii</span><br />
+<a class="lnum" href="#276" name="276">0276</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
+<a class="lnum" href="#277" name="277">0277</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">encoder</span>&#0160;<span class="op">=</span>&#0160;<span class="name">encode_basestring</span><br />
+<a class="lnum" href="#278" name="278">0278</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">_encoding</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">encoding</span><br />
+<a class="lnum" href="#279" name="279">0279</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="op">(</span><span class="name">_encoding</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">str</span><span class="op">)</span><br />
+<a class="lnum" href="#280" name="280">0280</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">and</span>&#0160;<span class="keyword">not</span>&#0160;<span class="op">(</span><span class="name">_need_utf8</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">_encoding</span>&#0160;<span class="op">==</span>&#0160;<span class="string">'utf-8'</span><span class="op">)</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#281" name="281">0281</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">o</span>&#0160;<span class="op">=</span>&#0160;<span class="name">o</span><span class="op">.</span><span class="name">decode</span><span class="op">(</span><span class="name">_encoding</span><span class="op">)</span><br />
+<a class="lnum" href="#282" name="282">0282</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">encoder</span><span class="op">(</span><span class="name">o</span><span class="op">)</span><br />
+<a class="lnum" href="#283" name="283">0283</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">o</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#284" name="284">0284</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'null'</span><br />
+<a class="lnum" href="#285" name="285">0285</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">o</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">True</span><span class="op">:</span><br />
+<a class="lnum" href="#286" name="286">0286</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'true'</span><br />
+<a class="lnum" href="#287" name="287">0287</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">o</span>&#0160;<span class="keyword">is</span>&#0160;<span class="name">False</span><span class="op">:</span><br />
+<a class="lnum" href="#288" name="288">0288</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="string">'false'</span><br />
+<a class="lnum" href="#289" name="289">0289</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="op">(</span><span class="name">int</span><span class="op">,</span>&#0160;<span class="name">long</span><span class="op">)</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#290" name="290">0290</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">str</span><span class="op">(</span><span class="name">o</span><span class="op">)</span><br />
+<a class="lnum" href="#291" name="291">0291</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">float</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#292" name="292">0292</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">floatstr</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">allow_nan</span><span class="op">)</span><br />
+<a class="lnum" href="#293" name="293">0293</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="op">(</span><span class="name">list</span><span class="op">,</span>&#0160;<span class="name">tuple</span><span class="op">)</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#294" name="294">0294</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">chunk</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_iterencode_list</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#295" name="295">0295</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">chunk</span><br />
+<a class="lnum" href="#296" name="296">0296</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">elif</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">dict</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#297" name="297">0297</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">chunk</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_iterencode_dict</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#298" name="298">0298</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">chunk</span><br />
+<a class="lnum" href="#299" name="299">0299</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
+<a class="lnum" href="#300" name="300">0300</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markers</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#301" name="301">0301</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markerid</span>&#0160;<span class="op">=</span>&#0160;<span class="name">id</span><span class="op">(</span><span class="name">o</span><span class="op">)</span><br />
+<a class="lnum" href="#302" name="302">0302</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markerid</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">markers</span><span class="op">:</span><br />
+<a class="lnum" href="#303" name="303">0303</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">raise</span>&#0160;<span class="name">ValueError</span><span class="op">(</span><span class="string">"Circular&#0160;reference&#0160;detected"</span><span class="op">)</span><br />
+<a class="lnum" href="#304" name="304">0304</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markers</span><span class="op">[</span><span class="name">markerid</span><span class="op">]</span>&#0160;<span class="op">=</span>&#0160;<span class="name">o</span><br />
+<a class="lnum" href="#305" name="305">0305</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">for</span>&#0160;<span class="name">chunk</span>&#0160;<span class="keyword">in</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_iterencode_default</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#306" name="306">0306</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">yield</span>&#0160;<span class="name">chunk</span><br />
+<a class="lnum" href="#307" name="307">0307</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">markers</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><span class="op">:</span><br />
+<a class="lnum" href="#308" name="308">0308</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">del</span>&#0160;<span class="name">markers</span><span class="op">[</span><span class="name">markerid</span><span class="op">]</span><br />
+<a class="lnum" href="#309" name="309">0309</a><br />
+<a class="lnum" href="#310" name="310">0310</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">_iterencode_default</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">o</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">=</span><span class="name">None</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#311" name="311">0311</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">newobj</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">default</span><span class="op">(</span><span class="name">o</span><span class="op">)</span><br />
+<a class="lnum" href="#312" name="312">0312</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_iterencode</span><span class="op">(</span><span class="name">newobj</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">)</span><br />
+<a class="lnum" href="#313" name="313">0313</a><br />
+<a class="lnum" href="#314" name="314">0314</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">default</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">o</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#315" name="315">0315</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
+<a class="lnum" href="#316" name="316">0316</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;Implement&#0160;this&#0160;method&#0160;in&#0160;a&#0160;subclass&#0160;such&#0160;that&#0160;it&#0160;returns</span><br />
+<a class="lnum" href="#317" name="317">0317</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;a&#0160;serializable&#0160;object&#0160;for&#0160;``o``,&#0160;or&#0160;calls&#0160;the&#0160;base&#0160;implementation</span><br />
+<a class="lnum" href="#318" name="318">0318</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;(to&#0160;raise&#0160;a&#0160;``TypeError``).</span><br />
+<a class="lnum" href="#319" name="319">0319</a><span class="string"></span><br />
+<a class="lnum" href="#320" name="320">0320</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;For&#0160;example,&#0160;to&#0160;support&#0160;arbitrary&#0160;iterators,&#0160;you&#0160;could</span><br />
+<a class="lnum" href="#321" name="321">0321</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;implement&#0160;default&#0160;like&#0160;this::</span><br />
+<a class="lnum" href="#322" name="322">0322</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;</span><br />
+<a class="lnum" href="#323" name="323">0323</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;def&#0160;default(self,&#0160;o):</span><br />
+<a class="lnum" href="#324" name="324">0324</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;try:</span><br />
+<a class="lnum" href="#325" name="325">0325</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;iterable&#0160;=&#0160;iter(o)</span><br />
+<a class="lnum" href="#326" name="326">0326</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;except&#0160;TypeError:</span><br />
+<a class="lnum" href="#327" name="327">0327</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;pass</span><br />
+<a class="lnum" href="#328" name="328">0328</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;else:</span><br />
+<a class="lnum" href="#329" name="329">0329</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;return&#0160;list(iterable)</span><br />
+<a class="lnum" href="#330" name="330">0330</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;return&#0160;JSONEncoder.default(self,&#0160;o)</span><br />
+<a class="lnum" href="#331" name="331">0331</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;"""</span><br />
+<a class="lnum" href="#332" name="332">0332</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">raise</span>&#0160;<span class="name">TypeError</span><span class="op">(</span><span class="string">"%r&#0160;is&#0160;not&#0160;JSON&#0160;serializable"</span>&#0160;<span class="op">%</span>&#0160;<span class="op">(</span><span class="name">o</span><span class="op">,</span><span class="op">)</span><span class="op">)</span><br />
+<a class="lnum" href="#333" name="333">0333</a><br />
+<a class="lnum" href="#334" name="334">0334</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">encode</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">o</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#335" name="335">0335</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
+<a class="lnum" href="#336" name="336">0336</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;Return&#0160;a&#0160;JSON&#0160;string&#0160;representation&#0160;of&#0160;a&#0160;Python&#0160;data&#0160;structure.</span><br />
+<a class="lnum" href="#337" name="337">0337</a><span class="string"></span><br />
+<a class="lnum" href="#338" name="338">0338</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&gt;&gt;&gt;&#0160;JSONEncoder().encode({"foo":&#0160;["bar",&#0160;"baz"]})</span><br />
+<a class="lnum" href="#339" name="339">0339</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;'{"foo":["bar",&#0160;"baz"]}'</span><br />
+<a class="lnum" href="#340" name="340">0340</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;"""</span><br />
+<a class="lnum" href="#341" name="341">0341</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;This&#0160;is&#0160;for&#0160;extremely&#0160;simple&#0160;cases&#0160;and&#0160;benchmarks...</span><br />
+<a class="lnum" href="#342" name="342">0342</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">basestring</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#343" name="343">0343</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">isinstance</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">str</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#344" name="344">0344</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">_encoding</span>&#0160;<span class="op">=</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">encoding</span><br />
+<a class="lnum" href="#345" name="345">0345</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="op">(</span><span class="name">_encoding</span>&#0160;<span class="keyword">is</span>&#0160;<span class="keyword">not</span>&#0160;<span class="name">None</span><br />
+<a class="lnum" href="#346" name="346">0346</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">and</span>&#0160;<span class="keyword">not</span>&#0160;<span class="op">(</span><span class="name">_encoding</span>&#0160;<span class="op">==</span>&#0160;<span class="string">'utf-8'</span>&#0160;<span class="keyword">and</span>&#0160;<span class="name">_need_utf8</span><span class="op">)</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#347" name="347">0347</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">o</span>&#0160;<span class="op">=</span>&#0160;<span class="name">o</span><span class="op">.</span><span class="name">decode</span><span class="op">(</span><span class="name">_encoding</span><span class="op">)</span><br />
+<a class="lnum" href="#348" name="348">0348</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">encode_basestring_ascii</span><span class="op">(</span><span class="name">o</span><span class="op">)</span><br />
+<a class="lnum" href="#349" name="349">0349</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;This&#0160;doesn't&#0160;pass&#0160;the&#0160;iterator&#0160;directly&#0160;to&#0160;''.join()&#0160;because&#0160;it</span><br />
+<a class="lnum" href="#350" name="350">0350</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;sucks&#0160;at&#0160;reporting&#0160;exceptions.&#0160;&#0160;It's&#0160;going&#0160;to&#0160;do&#0160;this&#0160;internally</span><br />
+<a class="lnum" href="#351" name="351">0351</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="comment">#&#0160;anyway&#0160;because&#0160;it&#0160;uses&#0160;PySequence_Fast&#0160;or&#0160;similar.</span><br />
+<a class="lnum" href="#352" name="352">0352</a><span class="comment"></span>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">chunks</span>&#0160;<span class="op">=</span>&#0160;<span class="name">list</span><span class="op">(</span><span class="name">self</span><span class="op">.</span><span class="name">iterencode</span><span class="op">(</span><span class="name">o</span><span class="op">)</span><span class="op">)</span><br />
+<a class="lnum" href="#353" name="353">0353</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="string">''</span><span class="op">.</span><span class="name">join</span><span class="op">(</span><span class="name">chunks</span><span class="op">)</span><br />
+<a class="lnum" href="#354" name="354">0354</a><br />
+<a class="lnum" href="#355" name="355">0355</a>&#0160;&#0160;&#0160;&#0160;<span class="keyword">def</span>&#0160;<span class="name">iterencode</span><span class="op">(</span><span class="name">self</span><span class="op">,</span>&#0160;<span class="name">o</span><span class="op">)</span><span class="op">:</span><br />
+<a class="lnum" href="#356" name="356">0356</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="string">"""</span><br />
+<a class="lnum" href="#357" name="357">0357</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;Encode&#0160;the&#0160;given&#0160;object&#0160;and&#0160;yield&#0160;each&#0160;string</span><br />
+<a class="lnum" href="#358" name="358">0358</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;representation&#0160;as&#0160;available.</span><br />
+<a class="lnum" href="#359" name="359">0359</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;</span><br />
+<a class="lnum" href="#360" name="360">0360</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;For&#0160;example::</span><br />
+<a class="lnum" href="#361" name="361">0361</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;</span><br />
+<a class="lnum" href="#362" name="362">0362</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;for&#0160;chunk&#0160;in&#0160;JSONEncoder().iterencode(bigobject):</span><br />
+<a class="lnum" href="#363" name="363">0363</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;mysocket.write(chunk)</span><br />
+<a class="lnum" href="#364" name="364">0364</a><span class="string">&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;"""</span><br />
+<a class="lnum" href="#365" name="365">0365</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">if</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">check_circular</span><span class="op">:</span><br />
+<a class="lnum" href="#366" name="366">0366</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markers</span>&#0160;<span class="op">=</span>&#0160;<span class="op">{</span><span class="op">}</span><br />
+<a class="lnum" href="#367" name="367">0367</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">else</span><span class="op">:</span><br />
+<a class="lnum" href="#368" name="368">0368</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="name">markers</span>&#0160;<span class="op">=</span>&#0160;<span class="name">None</span><br />
+<a class="lnum" href="#369" name="369">0369</a>&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;&#0160;<span class="keyword">return</span>&#0160;<span class="name">self</span><span class="op">.</span><span class="name">_iterencode</span><span class="op">(</span><span class="name">o</span><span class="op">,</span>&#0160;<span class="name">markers</span><span class="op">)</span><br />
+<a class="lnum" href="#370" name="370">0370</a><br />
+<a class="lnum" href="#371" name="371">0371</a><span class="name">__all__</span>&#0160;<span class="op">=</span>&#0160;<span class="op">[</span><span class="string">'JSONEncoder'</span><span class="op">]</span></code></div></body></html> \ No newline at end of file
diff --git a/setup.cfg b/setup.cfg
index 01bb954..406686a 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,3 +1,3 @@
[egg_info]
-tag_build = dev
-tag_svn_revision = true
+#tag_build = dev
+#tag_svn_revision = true
diff --git a/simplejson/__init__.py b/simplejson/__init__.py
index 7cccf90..6e9e2fd 100644
--- a/simplejson/__init__.py
+++ b/simplejson/__init__.py
@@ -105,10 +105,9 @@ _default_encoder = JSONEncoder(
encoding='utf-8'
)
-
def dump(obj, fp, skipkeys=False, ensure_ascii=True, check_circular=True,
allow_nan=True, cls=None, indent=None, encoding='utf-8',
- _iterencode=_default_encoder.iterencode, **kw):
+ **kw):
"""
Serialize ``obj`` as a JSON formatted stream to ``fp`` (a
``.write()``-supporting file-like object).
@@ -147,7 +146,7 @@ def dump(obj, fp, skipkeys=False, ensure_ascii=True, check_circular=True,
check_circular is True and allow_nan is True and
cls is None and indent is None and separators is None and
encoding == 'utf-8' and not kw):
- iterable = _iterencode(obj)
+ iterable = _default_encoder.iterencode(obj)
else:
if cls is None:
cls = JSONEncoder
@@ -162,7 +161,7 @@ def dump(obj, fp, skipkeys=False, ensure_ascii=True, check_circular=True,
def dumps(obj, skipkeys=False, ensure_ascii=True, check_circular=True,
allow_nan=True, cls=None, indent=None, separators=None,
- encoding='utf-8', _encode=_default_encoder.encode, **kw):
+ encoding='utf-8', **kw):
"""
Serialize ``obj`` to a JSON formatted ``str``.
@@ -203,7 +202,7 @@ def dumps(obj, skipkeys=False, ensure_ascii=True, check_circular=True,
check_circular is True and allow_nan is True and
cls is None and indent is None and separators is None and
encoding == 'utf-8' and not kw):
- return _encode(obj)
+ return _default_encoder.encode(obj)
if cls is None:
cls = JSONEncoder
return cls(
@@ -214,8 +213,7 @@ def dumps(obj, skipkeys=False, ensure_ascii=True, check_circular=True,
_default_decoder = JSONDecoder(encoding=None, object_hook=None)
-def load(fp, encoding=None, cls=None, object_hook=None,
- _decode=_default_decoder.decode, **kw):
+def load(fp, encoding=None, cls=None, object_hook=None, **kw):
"""
Deserialize ``fp`` (a ``.read()``-supporting file-like object containing
a JSON document) to a Python object.
@@ -235,16 +233,10 @@ def load(fp, encoding=None, cls=None, object_hook=None,
To use a custom ``JSONDecoder`` subclass, specify it with the ``cls``
kwarg.
"""
- if cls is None and encoding is None and object_hook is None and not kw:
- return _decode(fp.read())
- if cls is None:
- cls = JSONDecoder
- if object_hook is not None:
- kw['object_hook'] = object_hook
- return cls(encoding=encoding, **kw).decode(fp.read())
+ return loads(fp.read(),
+ encoding=encoding, cls=cls, object_hook=object_hook, **kw)
-def loads(s, encoding=None, cls=None, object_hook=None,
- _decode=_default_decoder.decode, **kw):
+def loads(s, encoding=None, cls=None, object_hook=None, **kw):
"""
Deserialize ``s`` (a ``str`` or ``unicode`` instance containing a JSON
document) to a Python object.
@@ -263,7 +255,7 @@ def loads(s, encoding=None, cls=None, object_hook=None,
kwarg.
"""
if cls is None and encoding is None and object_hook is None and not kw:
- return _decode(s)
+ return _default_decoder.decode(s)
if cls is None:
cls = JSONDecoder
if object_hook is not None: