Lines Matching defs:new

105 /* PyDict_MINSIZE is the starting size for any new dict.
800 new dict object. */
1204 /* Insert into new slot. */
1220 Internal routine to insert a new item into the table.
1243 /* Insert into new slot. */
1391 Restructure the table by allocating a new table and reinserting all
1392 items again. When entries have been deleted, the new table may
1428 /* Allocate a new table. */
1441 /* Convert split table into new combined table.
1892 * and occasionally replace a value -- but you can't insert new keys or
2196 * the values associated with the keys (but doesn't insert new keys or
2658 Create a new dictionary with keys from iterable and values set to value.
2875 * incrementally resizing as we insert new items. Expect
3026 /* The dict is empty; just return a new dict. */
3081 PyDictObject *new = (PyDictObject *)new_dict(keys, NULL, 0, 0);
3082 if (new == NULL) {
3088 new->ma_used = mp->ma_used;
3089 ASSERT_CONSISTENT(new);
3092 _PyObject_GC_TRACK(new);
3095 return (PyObject *)new;
3611 PyObject *new = PyDict_Copy(self);
3612 if (new == NULL) {
3615 if (dict_update_arg(new, other)) {
3616 Py_DECREF(new);
3619 return new;
3830 "dict() -> new empty dictionary\n"
3831 "dict(mapping) -> new dictionary initialized from a mapping object's\n"
3833 "dict(iterable) -> new dictionary initialized as if via:\n"
3837 "dict(**kwargs) -> new dictionary initialized with the name=value pairs\n"
4760 // Returns a new reference.
5328 /* Returns NULL if cannot allocate a new PyDictKeysObject,
5339 /* Set to max size+1 as it will shrink by one before each new object */