def _get_init_args(self):
        """Get a dictionary of instance constructor arguments.

        This implementation works on classes which use the same names
        for both constructor arguments and instance attributes.

        """

        # @COMPATIBILITY: inspect.getargspec has been deprecated since
        #                 Python 3.5
        try:
            # inspect.signature is new in Python 3.5
            signature = inspect.signature(self.__init__)
        except __HOLE__:
            args = inspect.getargspec(self.__init__)[0]
        else:
            parameters = signature.parameters
            args = [arg for arg, p in parameters.items()
                if p.kind is p.POSITIONAL_OR_KEYWORD]

        return dict((arg, getattr(self, arg)) for arg in args if arg != 'self')
dataset/ETHPy150Open PyTables/PyTables/tables/atom.py/Atom._get_init_args