# Buggy code
def __init__(
    self,
    reddit: "Reddit",
    thread_id: Optional[str] = None,
    update_id: Optional[str] = None,
    _data: Optional[Dict[str, Any]] = None,
):
    """Initialize a lazy :class:`.LiveUpdate` instance.

    Either ``thread_id`` and ``update_id``, or ``_data`` must be provided.

    :param reddit: An instance of :class:`.Reddit`.
    :param thread_id: A live thread ID, e.g., ``"ukaeu1ik4sw5"``.
    :param update_id: A live update ID, e.g.,
        ``"7827987a-c998-11e4-a0b9-22000b6a88d2"``.

    Usage:

    .. code-block:: python

        update = LiveUpdate(reddit, "ukaeu1ik4sw5", "7827987a-c998-11e4-a0b9-22000b6a88d2")
        update.thread  # LiveThread(id="ukaeu1ik4sw5")
        update.id  # "7827987a-c998-11e4-a0b9-22000b6a88d2"
        update.author  # "umbrae"

    """
    if _data is not None:
        # Since _data (part of JSON returned from reddit) have no thread ID,
        # self._thread must be set by the caller of LiveUpdate(). See the code of
        # LiveThread.updates() for example.
        super().__init__(reddit, _data=_data)
        self._fetched = True
    elif thread_id and update_id:
        super().__init__(reddit, _data=None)
        self._thread = LiveThread(self._reddit, thread_id)
        self.id = update_id
    else:
        raise TypeError(
            "Either `thread_id` and `update_id`, or `_data` must be provided."
        )


# Traceback (RecursionError)
Traceback (most recent call last):
  File "C:\00. Datos\90. Descargas\claimdoneremover-master (1)\claimdoneremover-master\cdremover\main.py", line 49, in <module>
    for comment in reddit.redditor(user).comments.new(limit=limit):
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\util\cache.py", line 39, in __get__
    value = obj.__dict__[self.func.__name__] = self.func(obj)
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\listing\mixins\redditor.py", line 47, in comments
    return SubListing(self._reddit, self._path, "comments")
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 122, in _path
    return API_PATH["user"].format(user=self)
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\base.py", line 61, in __str__
    return getattr(self, self.STR_FIELD)
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\base.py", line 34, in __getattr__
    self._fetch()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 171, in _fetch
    data = self._fetch_data()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 166, in _fetch_data
    name, fields, params = self._fetch_info()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 163, in _fetch_info
    return ("user_about", {"user": self.name}, None)
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\base.py", line 34, in __getattr__
    self._fetch()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 171, in _fetch
    data = self._fetch_data()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 166, in _fetch_data
    name, fields, params = self._fetch_info()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 163, in _fetch_info
    return ("user_about", {"user": self.name}, None)
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\base.py", line 34, in __getattr__
    self._fetch()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 171, in _fetch
    data = self._fetch_data()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 166, in _fetch_data
    name, fields, params = self._fetch_info()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 163, in _fetch_info
    return ("user_about", {"user": self.name}, None)
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\base.py", line 34, in __getattr__
    self._fetch()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 171, in _fetch
    data = self._fetch_data()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 166, in _fetch_data
    name, fields, params = self._fetch_info()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 163, in _fetch_info
    return ("user_about", {"user": self.name}, None)
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\base.py", line 34, in __getattr__
    self._fetch()

...

  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 171, in _fetch
    data = self._fetch_data()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 166, in _fetch_data
    name, fields, params = self._fetch_info()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 163, in _fetch_info
    return ("user_about", {"user": self.name}, None)
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\base.py", line 34, in __getattr__
    self._fetch()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 171, in _fetch
    data = self._fetch_data()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 166, in _fetch_data
    name, fields, params = self._fetch_info()
  File "C:\Users\Andres\AppData\Local\Programs\Python\Python37-32\lib\site-packages\praw\models\reddit\redditor.py", line 161, in _fetch_info
    if hasattr(self, "_fullname"):
RecursionError: maximum recursion depth exceeded while calling a Python object

# Fixed code
def __init__(
    self,
    reddit: "Reddit",
    thread_id: Optional[str] = None,
    update_id: Optional[str] = None,
    _data: Optional[Dict[str, Any]] = None,
):
    """Initialize a lazy :class:`.LiveUpdate` instance.

    Either ``thread_id`` and ``update_id``, or ``_data`` must be provided.

    :param reddit: An instance of :class:`.Reddit`.
    :param thread_id: A live thread ID, e.g., ``"ukaeu1ik4sw5"``.
    :param update_id: A live update ID, e.g.,
        ``"7827987a-c998-11e4-a0b9-22000b6a88d2"``.

    Usage:

    .. code-block:: python

        update = LiveUpdate(reddit, "ukaeu1ik4sw5", "7827987a-c998-11e4-a0b9-22000b6a88d2")
        update.thread  # LiveThread(id="ukaeu1ik4sw5")
        update.id  # "7827987a-c998-11e4-a0b9-22000b6a88d2"
        update.author  # "umbrae"

    """
    if _data is not None:
        # Since _data (part of JSON returned from reddit) have no thread ID,
        # self._thread must be set by the caller of LiveUpdate(). See the code of
        # LiveThread.updates() for example.
        super().__init__(reddit, _data=_data, _fetched=True)
    elif thread_id and update_id:
        self.id = update_id
        super().__init__(reddit, _data=None)
        self._thread = LiveThread(self._reddit, thread_id)
    else:
        raise TypeError(
            "Either `thread_id` and `update_id`, or `_data` must be provided."
        )