class dict(object):
"""
dict() -> new empty dictionary
dict(mapping) -> new dictionary initialized from a mapping object's
(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
d = {}
for k, v in iterable:
d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
"""
def clear(self): # real signature unknown; restored from __doc__
""" D.clear() -> None. Remove all items from D. """
pass def copy(self): # real signature unknown; restored from __doc__
""" D.copy() -> a shallow copy of D """
pass @staticmethod # known case
def fromkeys(*args, **kwargs): # real signature unknown
""" Returns a new dict with keys from iterable and values equal to value. """
pass def get(self, k, d=None): # real signature unknown; restored from __doc__
""" D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None. """
pass def items(self): # real signature unknown; restored from __doc__
""" D.items() -> a set-like object providing a view on D's items """
pass def keys(self): # real signature unknown; restored from __doc__
""" D.keys() -> a set-like object providing a view on D's keys """
pass def pop(self, k, d=None): # real signature unknown; restored from __doc__
"""
D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
If key is not found, d is returned if given, otherwise KeyError is raised
"""
pass def popitem(self): # real signature unknown; restored from __doc__
"""
D.popitem() -> (k, v), remove and return some (key, value) pair as a
2-tuple; but raise KeyError if D is empty.
"""
pass def setdefault(self, k, d=None): # real signature unknown; restored from __doc__
""" D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D """
pass def update(self, E=None, **F): # known special case of dict.update
"""
D.update([E, ]**F) -> None. Update D from dict/iterable E and F.
If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v
In either case, this is followed by: for k in F: D[k] = F[k]
"""
pass def values(self): # real signature unknown; restored from __doc__
""" D.values() -> an object providing a view on D's values """
pass def __contains__(self, *args, **kwargs): # real signature unknown
""" True if D has a key k, else False. """
pass def __delitem__(self, *args, **kwargs): # real signature unknown
""" Delete self[key]. """
pass def __eq__(self, *args, **kwargs): # real signature unknown
""" Return self==value. """
pass def __getattribute__(self, *args, **kwargs): # real signature unknown
""" Return getattr(self, name). """
pass def __getitem__(self, y): # real signature unknown; restored from __doc__
""" x.__getitem__(y) <==> x[y] """
pass def __ge__(self, *args, **kwargs): # real signature unknown
""" Return self>=value. """
pass def __gt__(self, *args, **kwargs): # real signature unknown
""" Return self>value. """
pass def __init__(self, seq=None, **kwargs): # known special case of dict.__init__
"""
dict() -> new empty dictionary
dict(mapping) -> new dictionary initialized from a mapping object's
(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
d = {}
for k, v in iterable:
d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
# (copied from class doc)
"""
pass def __iter__(self, *args, **kwargs): # real signature unknown
""" Implement iter(self). """
pass def __len__(self, *args, **kwargs): # real signature unknown
""" Return len(self). """
pass def __le__(self, *args, **kwargs): # real signature unknown """ Return self<=value. """ pass def __lt__(self, *args, **kwargs): # real signature unknown """ Return self<value. """ pass @staticmethod # known case of __new__ def __new__(*args, **kwargs): # real signature unknown """ Create and return a new object. See help(type) for accurate signature. """ pass def __ne__(self, *args, **kwargs): # real signature unknown """ Return self!=value. """ pass def __repr__(self, *args, **kwargs): # real signature unknown """ Return repr(self). """ pass def __setitem__(self, *args, **kwargs): # real signature unknown """ Set self[key] to value. """ pass def __sizeof__(self): # real signature unknown; restored from __doc__ """ D.__sizeof__() -> size of D in memory, in bytes """ pass __hash__ = None

Python- class -dict More articles about

  1. LightMysql: For ease of operation MySQL And packaged Python class

    Link to the original text :http://www.danfengcao.info/python/2015/12/26/lightweight-python-mysql-class.html mysqldb yes Python ...

  2. 【Python&amp; data structure 】 Abstract data types Python Class mechanisms and exceptions

    This article is < Data structure and algorithm Python Language description > The notes , But big head is Python Class mechanism and object-oriented programming . I don't know what classification to put .. In a word, I haven't been in touch with class based rather than independent function before Pyt ...

  3. python class :magic Magic methods

    http://blog.csdn.net/pipisorry/article/details/50708812 The magic method is object-oriented Python Everything in language . They are things you can customize and add " magic &q ...

  4. ( turn )python class :magic Magic methods

    original text :https://blog.csdn.net/pipisorry/article/details/50708812 Copyright notice : This article is for Blogger Pipi http://blog.csdn.net/pipisor ...

  5. python Within class init The properties of the outer declaration are related to init The access and operation differences of object properties declared in

    python Within class init The properties of the outer declaration are related to init The access and operation differences of object properties declared in ( Interview questions ) 1. stay ipython Enter the following code in , What the output will be ? In [1]: class ClassOut: ...: ...

  6. Python Object oriented programming of learning notes ( 3、 ... and )Python Class magic method

    python There are some methods in the class that have two underscores before and after , These functions are called magic methods . These methods have special uses , Some don't need our own definition , Some can achieve more magical functions through some simple definitions I mainly divide them into three parts , The following is also divided into ...

  7. python Class and metaclass

    python Class and metaclass   Wheat, wheat  2016-09-06 11:11:00         I saw an article on the Internet today about python Classes and metaclasses in languages (metaclass) Some explanation and simple application of , Feeling for pyth ...

  8. Python Class inheritance ( Advanced 5)

    Reprint please indicate the source : http://www.cnblogs.com/why168888/p/6411918.html This article from the :[Edwin Blog Garden ] Python Class inheritance ( Advanced 5) 1. python Zhongshi ...

  9. python class , object

    Declaration class ''' class Class name : ' Document string for class ' The class body ''' # Let's create a class class Data: pass Declaration class class Person: # Define a human being role = 'perso ...

  10. python The second part

    Class inheritance . polymorphic . encapsulation One . Class inheritance 1. Application scenarios : Most of the functions of classes are the same , A large class contains a small class for example : Animal species Generality : Eat and drink Lasa . They all have heads and feet characteristic : Cats . It's a light walk , The sound is special , I like sleeping during the day Dogs . It's very ...

Random recommendation

  1. Solve the upgrade PHP7 after The official account of WeChat is not available

    Server configuration Linux+Nginx+PHP5.5+mysql index Method to configure wechat's attention reply . Menu events . Multiple customer service . Auto reply, etc public function actionIndex() { if (is ...

  2. Java Medium Atomic package

    Atomic The role of package It is convenient for programmers to work in multithreading environment , Atomic operation without lock Atomic Package core Atomic The classes in the package basically use Unsafe Implemented wrapper class , The core operation is CAS Atomic manipulation : About CAS compare ...

  3. Eclipse Integrate javap Check bytecode

    analysis java A good helper of language features is to use javap Tool View java Compiled bytecode , The building owner is studying today java We encountered some puzzles when we used the bridge method in generics , The thought of javap This is a good tool to help answer some questions , It's just how to make trouble in ecl ...

  4. SharePoint I can't log on to the website ,3 Enter the user name for the first time / Password white page

    Newly built SharePoint 2013 Environmental Science , It's the first time I've done this , First, I took one Ghost Server for , Installed server .Sql.SharePoint.VS A series of , But I found that I couldn't land on it , Enter account 3 The next time, the white ...

  5. ArrayAdapter And SimpleAdapter Use

    In the use of ListView We use adapter,android It not only provides us with BaseAdapter Class to let us customize our own Adapter, It also provides us with ArrayAdapter as well as SimpleAd ...

  6. centos Lower installation node js

    #wget http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz #tar xf node-v0.10.24.tar.gz #cd node-v0. ...

  7. JS Dealing with hexadecimal color gradient algorithm - Enter the color , Output gradient rgb Array

    html There are several ways to express colors : Color value of English words :background-color:Blue: Hex color value :background-color:#FFFFFF:  RGB The color value is a ternary number :backgroun ...

  8. 【 One day LeetCode】#73. Set Matrix Zeroes

    One day LeetCode All articles in this series have been uploaded to my github, Address :ZeeCoder's Github Welcome to my Sina Weibo , My Sina Weibo Welcome to reprint , Reprint please indicate the source ( One ) subject Given a ...

  9. grunt plug-in unit

    A simple grunt plug-in unit , Role is hold css In the document  /images/   Replace with the specified  url path, In order to realize the picture cdn Lujin transformation Plug in project file structure grunt-contrib-s ...

  10. IOS Detailed explanation of gesture in

    1. Click on UITapGestureRecognizer *tap=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selecto ...