pydoc > collections.abc.MutableMapping

📛 NAME

collections.abc.MutableMapping = class MutableMapping(Mapping)

Help on class MutableMapping in collections.abc:

🚀 Quick Reference

Use CaseCommandDescription
Create a mutable mapping subclassclass MyDict(MutableMapping): ...Override __getitem__, __setitem__, __delitem__, __len__, __iter__
Remove all itemsd.clear()D.clear() -> None. Remove all items from D.
Remove and return value for keyd.pop(key, default)D.pop(k[,d]) -> v, remove specified key and return value. Raises KeyError if not found and no default.
Remove and return arbitrary itemd.popitem()D.popitem() -> (k, v), remove and return a (key, value) pair; raises KeyError if empty.
Set default value for keyd.setdefault(key, default)D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D.
Update with another mapping/iterabled.update(other, **kwds)D.update([E, ]**F) -> None. Update D from mapping/iterable E and F.

📖 Description

A MutableMapping is a generic container for associating key/value pairs.

This class provides concrete generic implementations of all methods except for __getitem__, __setitem__, __delitem__, __iter__, and __len__.

🔗 Method Resolution Order

⚙️ Methods defined here


📦 Data and other attributes defined here


🔗 Methods inherited from Mapping


📦 Data and other attributes inherited from Mapping


📚 Class methods inherited from Collection


📏 Methods inherited from Sized


🔄 Methods inherited from Iterable


📚 Class methods inherited from Iterable

collections.abc.MutableMapping
📛 NAME 🚀 Quick Reference 📖 Description 🔗 Method Resolution Order ⚙️ Methods defined here 📦 Data and other attributes defined here 🔗 Methods inherited from Mapping 📦 Data and other attributes inherited from Mapping 📚 Class methods inherited from Collection 📏 Methods inherited from Sized 🔄 Methods inherited from Iterable 📚 Class methods inherited from Iterable

Generated by phpman v4.9.27-5-g2cb901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-20 01:29 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^