The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Python Glossary: terms starting with letter H
By Guest on 13th November 2022 08:04:08 AM | Syntax: PYTHON | Views: 188



New Paste New paste | Download Paste Download | Toggle Line Numbers Show/Hide line no. | Copy Paste Copy text to clipboard
  1. Glossary - H
  2. ********
  3.  
  4. hash-based pyc
  5.    A bytecode cache file that uses the hash rather than the last-
  6.    modified time of the corresponding source file to determine its
  7.    validity. See Cached bytecode invalidation.
  8.  
  9. hashable
  10.    An object is *hashable* if it has a hash value which never changes
  11.    during its lifetime (it needs a "__hash__()" method), and can be
  12.    compared to other objects (it needs an "__eq__()" method).
  13.    Hashable objects which compare equal must have the same hash value.
  14.  
  15.    Hashability makes an object usable as a dictionary key and a set
  16.    member, because these data structures use the hash value
  17.    internally.
  18.  
  19.    Most of Python's immutable built-in objects are hashable; mutable
  20.   containers (such as lists or dictionaries) are not; immutable
  21.   containers (such as tuples and frozensets) are only hashable if
  22.   their elements are hashable.  Objects which are instances of user-
  23.   defined classes are hashable by default.  They all compare unequal
  24.   (except with themselves), and their hash value is derived from
  25.   their "id()".
















Python software and documentation are licensed under the PSF License Agreement.
Starting with Python 3.8.6, examples, recipes, and other code in the documentation are dual licensed under the PSF License Agreement and the Zero-Clause BSD license.
Some software incorporated into Python is under different licenses. The licenses are listed with code falling under that license. See Licenses and Acknowledgements for Incorporated Software for an incomplete list of these licenses.

Python and it's documentation is:
Copyright © 2001-2022 Python Software Foundation. All rights reserved.
Copyright © 2000 BeOpen.com. All rights reserved.
Copyright © 1995-2000 Corporation for National Research Initiatives. All rights reserved.
Copyright © 1991-1995 Stichting Mathematisch Centrum. All rights reserved.

See History and License for complete license and permissions information:
https://docs.python.org/3/license.html#psf-license
  • Recent Pastes