GRAYBYTE WORDPRESS FILE MANAGER5453

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python27/include/python2.7/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python27/include/python2.7//dictobject.h
#ifndef Py_DICTOBJECT_H
#define Py_DICTOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif


/* Dictionary object type -- mapping from hashable object to object */

/* The distribution includes a separate file, Objects/dictnotes.txt,
   describing explorations into dictionary design and optimization.
   It covers typical dictionary use patterns, the parameters for
   tuning dictionaries, and several ideas for possible optimizations.
*/

/*
There are three kinds of slots in the table:

1. Unused.  me_key == me_value == NULL
   Does not hold an active (key, value) pair now and never did.  Unused can
   transition to Active upon key insertion.  This is the only case in which
   me_key is NULL, and is each slot's initial state.

2. Active.  me_key != NULL and me_key != dummy and me_value != NULL
   Holds an active (key, value) pair.  Active can transition to Dummy upon
   key deletion.  This is the only case in which me_value != NULL.

3. Dummy.  me_key == dummy and me_value == NULL
   Previously held an active (key, value) pair, but that was deleted and an
   active pair has not yet overwritten the slot.  Dummy can transition to
   Active upon key insertion.  Dummy slots cannot be made Unused again
   (cannot have me_key set to NULL), else the probe sequence in case of
   collision would have no way to know they were once active.

Note: .popitem() abuses the me_hash field of an Unused or Dummy slot to
hold a search finger.  The me_hash field of Unused or Dummy slots has no
meaning otherwise.
*/

/* PyDict_MINSIZE is the minimum size of a dictionary.  This many slots are
 * allocated directly in the dict object (in the ma_smalltable member).
 * It must be a power of 2, and at least 4.  8 allows dicts with no more
 * than 5 active entries to live in ma_smalltable (and so avoid an
 * additional malloc); instrumentation suggested this suffices for the
 * majority of dicts (consisting mostly of usually-small instance dicts and
 * usually-small dicts created to pass keyword arguments).
 */
#define PyDict_MINSIZE 8

typedef struct {
    /* Cached hash code of me_key.  Note that hash codes are C longs.
     * We have to use Py_ssize_t instead because dict_popitem() abuses
     * me_hash to hold a search finger.
     */
    Py_ssize_t me_hash;
    PyObject *me_key;
    PyObject *me_value;
} PyDictEntry;

/*
To ensure the lookup algorithm terminates, there must be at least one Unused
slot (NULL key) in the table.
The value ma_fill is the number of non-NULL keys (sum of Active and Dummy);
ma_used is the number of non-NULL, non-dummy keys (== the number of non-NULL
values == the number of Active items).
To avoid slowing down lookups on a near-full table, we resize the table when
it's two-thirds full.
*/
typedef struct _dictobject PyDictObject;
struct _dictobject {
    PyObject_HEAD
    Py_ssize_t ma_fill;  /* # Active + # Dummy */
    Py_ssize_t ma_used;  /* # Active */

    /* The table contains ma_mask + 1 slots, and that's a power of 2.
     * We store the mask instead of the size because the mask is more
     * frequently needed.
     */
    Py_ssize_t ma_mask;

    /* ma_table points to ma_smalltable for small tables, else to
     * additional malloc'ed memory.  ma_table is never NULL!  This rule
     * saves repeated runtime null-tests in the workhorse getitem and
     * setitem calls.
     */
    PyDictEntry *ma_table;
    PyDictEntry *(*ma_lookup)(PyDictObject *mp, PyObject *key, long hash);
    PyDictEntry ma_smalltable[PyDict_MINSIZE];
};

PyAPI_DATA(PyTypeObject) PyDict_Type;
PyAPI_DATA(PyTypeObject) PyDictIterKey_Type;
PyAPI_DATA(PyTypeObject) PyDictIterValue_Type;
PyAPI_DATA(PyTypeObject) PyDictIterItem_Type;
PyAPI_DATA(PyTypeObject) PyDictKeys_Type;
PyAPI_DATA(PyTypeObject) PyDictItems_Type;
PyAPI_DATA(PyTypeObject) PyDictValues_Type;

#define PyDict_Check(op) \
                 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_DICT_SUBCLASS)
#define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type)
#define PyDictKeys_Check(op) (Py_TYPE(op) == &PyDictKeys_Type)
#define PyDictItems_Check(op) (Py_TYPE(op) == &PyDictItems_Type)
#define PyDictValues_Check(op) (Py_TYPE(op) == &PyDictValues_Type)
/* This excludes Values, since they are not sets. */
# define PyDictViewSet_Check(op) \
    (PyDictKeys_Check(op) || PyDictItems_Check(op))

PyAPI_FUNC(PyObject *) PyDict_New(void);
PyAPI_FUNC(PyObject *) PyDict_GetItem(PyObject *mp, PyObject *key);
PyAPI_FUNC(PyObject *) _PyDict_GetItemWithError(PyObject *mp, PyObject *key);
PyAPI_FUNC(int) PyDict_SetItem(PyObject *mp, PyObject *key, PyObject *item);
PyAPI_FUNC(int) PyDict_DelItem(PyObject *mp, PyObject *key);
PyAPI_FUNC(int) _PyDict_DelItemIf(PyObject *mp, PyObject *key,
                                  int (*predicate)(PyObject *value));

PyAPI_FUNC(void) PyDict_Clear(PyObject *mp);
PyAPI_FUNC(int) PyDict_Next(
    PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value);
PyAPI_FUNC(int) _PyDict_Next(
    PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value, long *hash);
PyAPI_FUNC(PyObject *) PyDict_Keys(PyObject *mp);
PyAPI_FUNC(PyObject *) PyDict_Values(PyObject *mp);
PyAPI_FUNC(PyObject *) PyDict_Items(PyObject *mp);
PyAPI_FUNC(Py_ssize_t) PyDict_Size(PyObject *mp);
PyAPI_FUNC(PyObject *) PyDict_Copy(PyObject *mp);
PyAPI_FUNC(int) PyDict_Contains(PyObject *mp, PyObject *key);
PyAPI_FUNC(int) _PyDict_Contains(PyObject *mp, PyObject *key, long hash);
PyAPI_FUNC(PyObject *) _PyDict_NewPresized(Py_ssize_t minused);
PyAPI_FUNC(void) _PyDict_MaybeUntrack(PyObject *mp);

/* PyDict_Update(mp, other) is equivalent to PyDict_Merge(mp, other, 1). */
PyAPI_FUNC(int) PyDict_Update(PyObject *mp, PyObject *other);

/* PyDict_Merge updates/merges from a mapping object (an object that
   supports PyMapping_Keys() and PyObject_GetItem()).  If override is true,
   the last occurrence of a key wins, else the first.  The Python
   dict.update(other) is equivalent to PyDict_Merge(dict, other, 1).
*/
PyAPI_FUNC(int) PyDict_Merge(PyObject *mp,
                                   PyObject *other,
                                   int override);

/* PyDict_MergeFromSeq2 updates/merges from an iterable object producing
   iterable objects of length 2.  If override is true, the last occurrence
   of a key wins, else the first.  The Python dict constructor dict(seq2)
   is equivalent to dict={}; PyDict_MergeFromSeq(dict, seq2, 1).
*/
PyAPI_FUNC(int) PyDict_MergeFromSeq2(PyObject *d,
                                           PyObject *seq2,
                                           int override);

PyAPI_FUNC(PyObject *) PyDict_GetItemString(PyObject *dp, const char *key);
PyAPI_FUNC(int) PyDict_SetItemString(PyObject *dp, const char *key, PyObject *item);
PyAPI_FUNC(int) PyDict_DelItemString(PyObject *dp, const char *key);

PyAPI_FUNC(void) _PyDict_DebugMallocStats(FILE *out);

#ifdef __cplusplus
}
#endif
#endif /* !Py_DICTOBJECT_H */

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:48:56
root / root
0755
Python-ast.h
20.618 KB
January 08 2025 10:43:43
root / linksafe
0644
Python.h
4.272 KB
January 08 2025 10:43:43
root / linksafe
0644
abstract.h
44.165 KB
January 08 2025 10:43:43
root / linksafe
0644
asdl.h
1.073 KB
January 08 2025 10:43:43
root / linksafe
0644
ast.h
0.225 KB
January 08 2025 10:43:43
root / linksafe
0644
bitset.h
0.773 KB
January 08 2025 10:43:43
root / linksafe
0644
boolobject.h
0.891 KB
January 08 2025 10:43:43
root / linksafe
0644
bufferobject.h
0.9 KB
January 08 2025 10:43:43
root / linksafe
0644
bytearrayobject.h
1.896 KB
January 08 2025 10:43:43
root / linksafe
0644
bytes_methods.h
2.738 KB
January 08 2025 10:43:43
root / linksafe
0644
bytesobject.h
1.125 KB
January 08 2025 10:43:43
root / linksafe
0644
cStringIO.h
1.958 KB
January 08 2025 10:43:43
root / linksafe
0644
cellobject.h
0.636 KB
January 08 2025 10:43:43
root / linksafe
0644
ceval.h
4.942 KB
January 08 2025 10:43:43
root / linksafe
0644
classobject.h
2.932 KB
January 08 2025 10:43:43
root / linksafe
0644
cobject.h
2.861 KB
January 08 2025 10:43:43
root / linksafe
0644
code.h
4.304 KB
January 08 2025 10:43:43
root / linksafe
0644
codecs.h
6.026 KB
January 08 2025 10:43:43
root / linksafe
0644
compile.h
1.04 KB
January 08 2025 10:43:43
root / linksafe
0644
complexobject.h
1.81 KB
January 08 2025 10:43:43
root / linksafe
0644
datetime.h
8.118 KB
January 08 2025 10:43:43
root / linksafe
0644
descrobject.h
2.422 KB
January 08 2025 10:43:43
root / linksafe
0644
dictobject.h
6.73 KB
January 08 2025 10:43:43
root / linksafe
0644
dtoa.h
0.33 KB
January 08 2025 10:43:43
root / linksafe
0644
enumobject.h
0.247 KB
January 08 2025 10:43:43
root / linksafe
0644
errcode.h
1.366 KB
January 08 2025 10:43:43
root / linksafe
0644
eval.h
0.544 KB
January 08 2025 10:43:43
root / linksafe
0644
fileobject.h
3.576 KB
January 08 2025 10:43:43
root / linksafe
0644
floatobject.h
5.493 KB
January 08 2025 10:43:43
root / linksafe
0644
frameobject.h
3.178 KB
January 08 2025 10:43:43
root / linksafe
0644
funcobject.h
2.925 KB
January 08 2025 10:43:43
root / linksafe
0644
genobject.h
0.87 KB
January 08 2025 10:43:43
root / linksafe
0644
graminit.h
1.872 KB
January 08 2025 10:43:43
root / linksafe
0644
grammar.h
2.003 KB
January 08 2025 10:43:43
root / linksafe
0644
import.h
2.171 KB
January 08 2025 10:43:43
root / linksafe
0644
intobject.h
2.906 KB
January 08 2025 10:43:43
root / linksafe
0644
intrcheck.h
0.268 KB
January 08 2025 10:43:43
root / linksafe
0644
iterobject.h
0.51 KB
January 08 2025 10:43:43
root / linksafe
0644
listobject.h
2.509 KB
January 08 2025 10:43:43
root / linksafe
0644
longintrepr.h
3.815 KB
January 08 2025 10:43:43
root / linksafe
0644
longobject.h
5.673 KB
January 08 2025 10:43:43
root / linksafe
0644
marshal.h
0.696 KB
January 08 2025 10:43:43
root / linksafe
0644
memoryobject.h
2.757 KB
January 08 2025 10:43:43
root / linksafe
0644
metagrammar.h
0.247 KB
January 08 2025 10:43:43
root / linksafe
0644
methodobject.h
3.276 KB
January 08 2025 10:43:43
root / linksafe
0644
modsupport.h
4.906 KB
January 08 2025 10:43:43
root / linksafe
0644
moduleobject.h
0.595 KB
January 08 2025 10:43:43
root / linksafe
0644
node.h
0.916 KB
January 08 2025 10:43:43
root / linksafe
0644
object.h
39.12 KB
January 08 2025 10:43:43
root / linksafe
0644
objimpl.h
14.002 KB
January 08 2025 10:43:43
root / linksafe
0644
opcode.h
4.701 KB
January 08 2025 10:43:43
root / linksafe
0644
osdefs.h
1.034 KB
January 08 2025 10:43:43
root / linksafe
0644
parsetok.h
1.738 KB
January 08 2025 10:43:43
root / linksafe
0644
patchlevel.h
1.416 KB
January 08 2025 10:43:43
root / linksafe
0644
pgen.h
0.247 KB
January 08 2025 10:43:43
root / linksafe
0644
pgenheaders.h
1.152 KB
January 08 2025 10:43:43
root / linksafe
0644
py_curses.h
4.173 KB
January 08 2025 10:43:43
root / linksafe
0644
pyarena.h
2.63 KB
January 08 2025 10:43:43
root / linksafe
0644
pycapsule.h
1.64 KB
January 08 2025 10:43:43
root / linksafe
0644
pyconfig-64.h
36.942 KB
January 08 2025 10:43:43
root / linksafe
0644
pyconfig.h
0.158 KB
January 08 2025 10:43:43
root / linksafe
0644
pyctype.h
1.238 KB
January 08 2025 10:43:43
root / linksafe
0644
pydebug.h
1.291 KB
January 08 2025 10:43:43
root / linksafe
0644
pyerrors.h
11.466 KB
January 08 2025 10:43:43
root / linksafe
0644
pyexpat.h
2.067 KB
January 08 2025 10:43:43
root / linksafe
0644
pyfpe.h
8.272 KB
January 08 2025 10:43:43
root / linksafe
0644
pygetopt.h
0.34 KB
January 08 2025 10:43:43
root / linksafe
0644
pymacconfig.h
2.919 KB
January 08 2025 10:43:43
root / linksafe
0644
pymactoolbox.h
8.426 KB
January 08 2025 10:43:43
root / linksafe
0644
pymath.h
7.16 KB
January 08 2025 10:43:43
root / linksafe
0644
pymem.h
4.602 KB
January 08 2025 10:43:43
root / linksafe
0644
pyport.h
31.795 KB
January 08 2025 10:43:43
root / linksafe
0644
pystate.h
6.253 KB
January 08 2025 10:43:43
root / linksafe
0644
pystrcmp.h
0.452 KB
January 08 2025 10:43:43
root / linksafe
0644
pystrtod.h
1.545 KB
January 08 2025 10:43:43
root / linksafe
0644
pythonrun.h
7.064 KB
January 08 2025 10:43:43
root / linksafe
0644
pythread.h
1.128 KB
January 08 2025 10:43:43
root / linksafe
0644
rangeobject.h
0.631 KB
January 08 2025 10:43:43
root / linksafe
0644
setobject.h
3.005 KB
January 08 2025 10:43:43
root / linksafe
0644
sliceobject.h
1.642 KB
January 08 2025 10:43:43
root / linksafe
0644
stringobject.h
7.792 KB
January 08 2025 10:43:43
root / linksafe
0644
structmember.h
2.833 KB
January 08 2025 10:43:43
root / linksafe
0644
structseq.h
0.842 KB
January 08 2025 10:43:43
root / linksafe
0644
symtable.h
3.637 KB
January 08 2025 10:43:43
root / linksafe
0644
sysmodule.h
0.845 KB
January 08 2025 10:43:43
root / linksafe
0644
timefuncs.h
0.528 KB
January 08 2025 10:43:43
root / linksafe
0644
token.h
1.757 KB
January 08 2025 10:43:43
root / linksafe
0644
traceback.h
0.681 KB
January 08 2025 10:43:43
root / linksafe
0644
tupleobject.h
2.124 KB
January 08 2025 10:43:43
root / linksafe
0644
ucnhash.h
0.902 KB
January 08 2025 10:43:43
root / linksafe
0644
unicodeobject.h
51.003 KB
January 08 2025 10:43:43
root / linksafe
0644
warnings.h
0.62 KB
January 08 2025 10:43:43
root / linksafe
0644
weakrefobject.h
2.735 KB
January 08 2025 10:43:43
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF