summaryrefslogtreecommitdiff
path: root/reference/kombu.utils.compat.html
blob: d6989c3a62b5012e9e6f4fa2e29f785c6b56aadf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Compat. utilities - kombu.utils.compat &mdash; Kombu v1.0.1 documentation</title>
    <link rel="stylesheet" href="../static/celery.css" type="text/css" />
    <link rel="stylesheet" href="../static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '1.0.1',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../static/jquery.js"></script>
    <script type="text/javascript" src="../static/underscore.js"></script>
    <script type="text/javascript" src="../static/doctools.js"></script>
    <link rel="top" title="Kombu v1.0.1 documentation" href="../index.html" />
    <link rel="up" title="API Reference" href="index.html" />
    <link rel="next" title="Finalize - kombu.utils.finalize" href="kombu.utils.finalize.html" />
    <link rel="prev" title="kombu.utils.functional" href="kombu.utils.functional.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="kombu.utils.finalize.html" title="Finalize - kombu.utils.finalize"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="kombu.utils.functional.html" title="kombu.utils.functional"
             accesskey="P">previous</a> |</li>
        <li><a href="../index.html">Kombu v1.0.1 documentation</a> &raquo;</li>
          <li><a href="index.html" accesskey="U">API Reference</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="compat-utilities-kombu-utils-compat">
<h1>Compat. utilities - kombu.utils.compat<a class="headerlink" href="#compat-utilities-kombu-utils-compat" title="Permalink to this headline">¶</a></h1>
<span class="target" id="module-kombu.utils.compat"></span><dl class="class">
<dt id="kombu.utils.compat.CompatOrderedDict">
<em class="property">class </em><tt class="descclassname">kombu.utils.compat.</tt><tt class="descname">CompatOrderedDict</tt><big>(</big><em>*args</em>, <em>**kwds</em><big>)</big><a class="headerlink" href="#kombu.utils.compat.CompatOrderedDict" title="Permalink to this definition">¶</a></dt>
<dd><p>Dictionary that remembers insertion order</p>
<dl class="method">
<dt id="kombu.utils.compat.CompatOrderedDict.clear">
<tt class="descname">clear</tt><big>(</big><big>)</big><a class="headerlink" href="#kombu.utils.compat.CompatOrderedDict.clear" title="Permalink to this definition">¶</a></dt>
<dd><p>od.clear() -&gt; None.  Remove all items from od.</p>
</dd></dl>

<dl class="method">
<dt id="kombu.utils.compat.CompatOrderedDict.copy">
<tt class="descname">copy</tt><big>(</big><big>)</big><a class="headerlink" href="#kombu.utils.compat.CompatOrderedDict.copy" title="Permalink to this definition">¶</a></dt>
<dd><p>od.copy() -&gt; a shallow copy of od</p>
</dd></dl>

<dl class="classmethod">
<dt id="kombu.utils.compat.CompatOrderedDict.fromkeys">
<em class="property">classmethod </em><tt class="descname">fromkeys</tt><big>(</big><em>iterable</em>, <em>value=None</em><big>)</big><a class="headerlink" href="#kombu.utils.compat.CompatOrderedDict.fromkeys" title="Permalink to this definition">¶</a></dt>
<dd><p>OD.fromkeys(S[, v]) -&gt; New ordered dictionary with keys from S
and values equal to v (which defaults to None).</p>
</dd></dl>

<dl class="method">
<dt id="kombu.utils.compat.CompatOrderedDict.items">
<tt class="descname">items</tt><big>(</big><big>)</big><a class="headerlink" href="#kombu.utils.compat.CompatOrderedDict.items" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="kombu.utils.compat.CompatOrderedDict.iteritems">
<tt class="descname">iteritems</tt><big>(</big><big>)</big><a class="headerlink" href="#kombu.utils.compat.CompatOrderedDict.iteritems" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="kombu.utils.compat.CompatOrderedDict.iterkeys">
<tt class="descname">iterkeys</tt><big>(</big><big>)</big><a class="headerlink" href="#kombu.utils.compat.CompatOrderedDict.iterkeys" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="kombu.utils.compat.CompatOrderedDict.itervalues">
<tt class="descname">itervalues</tt><big>(</big><big>)</big><a class="headerlink" href="#kombu.utils.compat.CompatOrderedDict.itervalues" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="kombu.utils.compat.CompatOrderedDict.keys">
<tt class="descname">keys</tt><big>(</big><big>)</big><a class="headerlink" href="#kombu.utils.compat.CompatOrderedDict.keys" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="kombu.utils.compat.CompatOrderedDict.pop">
<tt class="descname">pop</tt><big>(</big><em>key</em>, <em>default=&lt;object object at 0x102a539b0&gt;</em><big>)</big><a class="headerlink" href="#kombu.utils.compat.CompatOrderedDict.pop" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="kombu.utils.compat.CompatOrderedDict.popitem">
<tt class="descname">popitem</tt><big>(</big><em>last=True</em><big>)</big><a class="headerlink" href="#kombu.utils.compat.CompatOrderedDict.popitem" title="Permalink to this definition">¶</a></dt>
<dd><p>od.popitem() -&gt; (k, v)</p>
<p>Return and remove a (key, value) pair.
Pairs are returned in LIFO order if last is true or FIFO
order if false.</p>
</dd></dl>

<dl class="method">
<dt id="kombu.utils.compat.CompatOrderedDict.setdefault">
<tt class="descname">setdefault</tt><big>(</big><em>key</em>, <em>default=None</em><big>)</big><a class="headerlink" href="#kombu.utils.compat.CompatOrderedDict.setdefault" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="kombu.utils.compat.CompatOrderedDict.update">
<tt class="descname">update</tt><big>(</big><em>other=()</em>, <em>**kwds</em><big>)</big><a class="headerlink" href="#kombu.utils.compat.CompatOrderedDict.update" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="kombu.utils.compat.CompatOrderedDict.values">
<tt class="descname">values</tt><big>(</big><big>)</big><a class="headerlink" href="#kombu.utils.compat.CompatOrderedDict.values" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper"><p class="logo"><a href="../index.html">
  <img class="logo" width="128" height="128" src="http://cloud.github.com/downloads/ask/kombu/kombusmall.jpg" alt="Logo"/>
</a></p>
  <h4>Previous topic</h4>
  <p class="topless"><a href="kombu.utils.functional.html"
                        title="previous chapter">kombu.utils.functional</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="kombu.utils.finalize.html"
                        title="next chapter">Finalize - kombu.utils.finalize</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../sources/reference/kombu.utils.compat.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" size="18" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="kombu.utils.finalize.html" title="Finalize - kombu.utils.finalize"
             >next</a> |</li>
        <li class="right" >
          <a href="kombu.utils.functional.html" title="kombu.utils.functional"
             >previous</a> |</li>
        <li><a href="../index.html">Kombu v1.0.1 documentation</a> &raquo;</li>
          <li><a href="index.html" >API Reference</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2009-2010, Ask Solem.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4.
    </div>
  </body>
</html>