# encoding: utf-8
# module h5py._objects
# from C:\Users\xukai\Downloads\发票2\venv\Lib\site-packages\h5py\_objects.cp311-win_amd64.pyd
# by generator 1.147
""" Implements ObjectID base class. """

# imports
import builtins as __builtins__ # <module 'builtins' (built-in)>
import gc as gc # <module 'gc' (built-in)>
import weakref as weakref # C:\Programs\Python\Python311\Lib\weakref.py
import warnings as warnings # C:\Programs\Python\Python311\Lib\warnings.py

# functions

def nonlocal_close(*args, **kwargs): # real signature unknown
    """ Find dead ObjectIDs and set their integer identifiers to 0. """
    pass

def print_reg(*args, **kwargs): # real signature unknown
    pass

def with_phil(*args, **kwargs): # real signature unknown
    """ Locking decorator """
    pass

def __pyx_unpickle_BogoLock(*args, **kwargs): # real signature unknown
    pass

# classes

class BogoLock(object):
    # no doc
    def __enter__(self, *args, **kwargs): # real signature unknown
        pass

    def __exit__(self, *args, **kwargs): # real signature unknown
        pass

    def __init__(self, *args, **kwargs): # real signature unknown
        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 __reduce__(self, *args, **kwargs): # real signature unknown
        pass

    def __setstate__(self, *args, **kwargs): # real signature unknown
        pass


class FastRLock(object):
    """
    Fast, re-entrant locking.
    
        Under uncongested conditions, the lock is never acquired but only
        counted.  Only when a second thread comes in and notices that the
        lock is needed, it acquires the lock and notifies the first thread
        to release it when it's done.  This is all made possible by the
        wonderful GIL.
    """
    def acquire(self, *args, **kwargs): # real signature unknown
        pass

    def release(self, *args, **kwargs): # real signature unknown
        pass

    def _is_owned(self, *args, **kwargs): # real signature unknown
        pass

    def __enter__(self, *args, **kwargs): # real signature unknown
        pass

    def __exit__(self, *args, **kwargs): # real signature unknown
        pass

    def __init__(self, *args, **kwargs): # real signature unknown
        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 __reduce__(self, *args, **kwargs): # real signature unknown
        pass

    def __setstate__(self, *args, **kwargs): # real signature unknown
        pass


class ObjectID(object):
    """
    Represents an HDF5 identifier.
    
        attributes:
        cdef object __weakref__
        cdef readonly hid_t id
        cdef public int locked              # Cannot be closed, explicitly or auto
        cdef object _hash
        cdef size_t _pyid
    """
    def close(self, *args, **kwargs): # real signature unknown
        """ Close this identifier. """
        pass

    def _close(self, *args, **kwargs): # real signature unknown
        """ Manually close this object. """
        pass

    def __bool__(self, *args, **kwargs): # real signature unknown
        """ True if self else False """
        pass

    def __copy__(self, *args, **kwargs): # real signature unknown
        pass

    def __eq__(self, *args, **kwargs): # real signature unknown
        """ Return self==value. """
        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 __hash__(self, *args, **kwargs): # real signature unknown
        """
        Default hashing mechanism for HDF5 objects
        
                Default hashing strategy:
                1. Try to hash based on the object's fileno and objno records
                2. If (1) succeeds, cache the resulting value
                3. If (1) fails, raise TypeError
        """
        pass

    def __init__(self, *args, **kwargs): # real signature unknown
        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 __reduce__(self, *args, **kwargs): # real signature unknown
        pass

    def __setstate__(self, *args, **kwargs): # real signature unknown
        pass

    fileno = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default

    id = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default

    locked = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default

    valid = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default



# variables with complex values

phil = None # (!) real value is '<h5py._objects.FastRLock object at 0x00000199B6ADE580>'

__loader__ = None # (!) real value is '<_frozen_importlib_external.ExtensionFileLoader object at 0x00000199B6ADAE50>'

__pyx_capi__ = {
    'is_h5py_obj_valid': None, # (!) real value is '<capsule object "int (struct __pyx_obj_4h5py_8_objects_ObjectID *)" at 0x00000199B6ADE490>'
    'pdefault': None, # (!) real value is '<capsule object "hid_t (struct __pyx_obj_4h5py_8_objects_ObjectID *)" at 0x00000199B6ADE460>'
}

__spec__ = None # (!) real value is "ModuleSpec(name='h5py._objects', loader=<_frozen_importlib_external.ExtensionFileLoader object at 0x00000199B6ADAE50>, origin='C:\\\\Users\\\\xukai\\\\Downloads\\\\??2\\\\venv\\\\Lib\\\\site-packages\\\\h5py\\\\_objects.cp311-win_amd64.pyd')"

__test__ = {}

