|
167 | 167 |
|
168 | 168 | <dl ><dt ><a name="SpecialAttributesDict-__init__" ><strong >__init__</strong></a>(self, tag)</dt><dd ><tt >Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl> |
169 | 169 |
|
| 170 | +<dl ><dt ><a name="SpecialAttributesDict-__iter__" ><strong >__iter__</strong></a>(self)</dt><dd ><tt >Implement iter(self).</tt></dd></dl> |
| 171 | + |
| 172 | +<dl ><dt ><a name="SpecialAttributesDict-__repr__" ><strong >__repr__</strong></a>(self)</dt><dd ><tt >Return repr(self).</tt></dd></dl> |
| 173 | + |
170 | 174 | <dl ><dt ><a name="SpecialAttributesDict-__setitem__" ><strong >__setitem__</strong></a>(self, key, value)</dt><dd ><tt >Set self[key] to value.</tt></dd></dl> |
171 | 175 |
|
172 | 176 | <dl ><dt ><a name="SpecialAttributesDict-get" ><strong >get</strong></a>(self, key, default=None)</dt><dd ><tt >get - Gets an attribute by key with the chance to provide a default value<br /> |
|
181 | 185 |
|
182 | 186 | <dl ><dt ><a name="SpecialAttributesDict-keys" ><strong >keys</strong></a>(self)</dt><dd ><tt >D.<a href="#SpecialAttributesDict-keys" >keys</a>() -> a set-like <a href="builtins.html#object" >object</a> providing a view on D's keys</tt></dd></dl> |
183 | 187 |
|
| 188 | +<dl ><dt ><a name="SpecialAttributesDict-pop" ><strong >pop</strong></a>(self, key)</dt><dd ><tt >D.<a href="#SpecialAttributesDict-pop" >pop</a>(k[,d]) -> v, remove specified key and return the corresponding value.<br /> |
| 189 | +If key is not found, d is returned if given, otherwise KeyError is raised</tt></dd></dl> |
| 190 | + |
| 191 | +<dl ><dt ><a name="SpecialAttributesDict-setdefault" ><strong >setdefault</strong></a>(self, *args, **kwargs)</dt><dd ><tt >D.<a href="#SpecialAttributesDict-setdefault" >setdefault</a>(k[,d]) -> D.<a href="#SpecialAttributesDict-get" >get</a>(k,d), also set D[k]=d if k not in D</tt></dd></dl> |
| 192 | + |
184 | 193 | <hr /> |
185 | 194 | Data descriptors defined here:<br /> |
186 | 195 | <dl ><dt ><strong >__dict__</strong></dt> |
|
206 | 215 |
|
207 | 216 | <dl ><dt ><a name="SpecialAttributesDict-__gt__" ><strong >__gt__</strong></a>(self, value, /)</dt><dd ><tt >Return self>value.</tt></dd></dl> |
208 | 217 |
|
209 | | -<dl ><dt ><a name="SpecialAttributesDict-__iter__" ><strong >__iter__</strong></a>(self, /)</dt><dd ><tt >Implement iter(self).</tt></dd></dl> |
210 | | - |
211 | 218 | <dl ><dt ><a name="SpecialAttributesDict-__le__" ><strong >__le__</strong></a>(self, value, /)</dt><dd ><tt >Return self<=value.</tt></dd></dl> |
212 | 219 |
|
213 | 220 | <dl ><dt ><a name="SpecialAttributesDict-__len__" ><strong >__len__</strong></a>(self, /)</dt><dd ><tt >Return len(self).</tt></dd></dl> |
|
218 | 225 |
|
219 | 226 | <dl ><dt ><a name="SpecialAttributesDict-__new__" ><strong >__new__</strong></a>(*args, **kwargs)<font color="#909090" ><font face="helvetica, arial" > from <a href="builtins.html#type" >builtins.type</a></font></font></dt><dd ><tt >Create and return a new <a href="builtins.html#object" >object</a>. See help(type) for accurate signature.</tt></dd></dl> |
220 | 227 |
|
221 | | -<dl ><dt ><a name="SpecialAttributesDict-__repr__" ><strong >__repr__</strong></a>(self, /)</dt><dd ><tt >Return repr(self).</tt></dd></dl> |
222 | | - |
223 | 228 | <dl ><dt ><a name="SpecialAttributesDict-__sizeof__" ><strong >__sizeof__</strong></a>(...)</dt><dd ><tt >D.<a href="#SpecialAttributesDict-__sizeof__" >__sizeof__</a>() -> size of D in memory, in bytes</tt></dd></dl> |
224 | 229 |
|
225 | 230 | <dl ><dt ><a name="SpecialAttributesDict-clear" ><strong >clear</strong></a>(...)</dt><dd ><tt >D.<a href="#SpecialAttributesDict-clear" >clear</a>() -> None. Remove all items from D.</tt></dd></dl> |
|
228 | 233 |
|
229 | 234 | <dl ><dt ><a name="SpecialAttributesDict-fromkeys" ><strong >fromkeys</strong></a>(iterable, value=None, /)<font color="#909090" ><font face="helvetica, arial" > from <a href="builtins.html#type" >builtins.type</a></font></font></dt><dd ><tt >Returns a new <a href="builtins.html#dict" >dict</a> with keys from iterable and values equal to value.</tt></dd></dl> |
230 | 235 |
|
231 | | -<dl ><dt ><a name="SpecialAttributesDict-pop" ><strong >pop</strong></a>(...)</dt><dd ><tt >D.<a href="#SpecialAttributesDict-pop" >pop</a>(k[,d]) -> v, remove specified key and return the corresponding value.<br /> |
232 | | -If key is not found, d is returned if given, otherwise KeyError is raised</tt></dd></dl> |
233 | | - |
234 | 236 | <dl ><dt ><a name="SpecialAttributesDict-popitem" ><strong >popitem</strong></a>(...)</dt><dd ><tt >D.<a href="#SpecialAttributesDict-popitem" >popitem</a>() -> (k, v), remove and return some (key, value) pair as a<br /> |
235 | 237 | 2-tuple; but raise KeyError if D is empty.</tt></dd></dl> |
236 | 238 |
|
237 | | -<dl ><dt ><a name="SpecialAttributesDict-setdefault" ><strong >setdefault</strong></a>(...)</dt><dd ><tt >D.<a href="#SpecialAttributesDict-setdefault" >setdefault</a>(k[,d]) -> D.<a href="#SpecialAttributesDict-get" >get</a>(k,d), also set D[k]=d if k not in D</tt></dd></dl> |
238 | | - |
239 | 239 | <dl ><dt ><a name="SpecialAttributesDict-update" ><strong >update</strong></a>(...)</dt><dd ><tt >D.<a href="#SpecialAttributesDict-update" >update</a>([E, ]**F) -> None. Update D from <a href="builtins.html#dict" >dict</a>/iterable E and F.<br /> |
240 | 240 | If E is present and has a .<a href="#SpecialAttributesDict-keys" >keys</a>() method, then does: for k in E: D[k] = E[k]<br /> |
241 | 241 | If E is present and lacks a .<a href="#SpecialAttributesDict-keys" >keys</a>() method, then does: for k, v in E: D[k] = v<br /> |
|
0 commit comments