# Buggy code
def __init__(
    self,
    reddit: "Reddit",
    id: Optional[str] = None,  # pylint: disable=redefined-builtin
    url: Optional[str] = None,
    _data: Optional[Dict[str, Any]] = None,
):
    """Construct an instance of the Comment object."""
    if (id, url, _data).count(None) != 2:
        raise TypeError("Exactly one of `id`, `url`, or `_data` must be provided.")
    self._replies = []
    self._submission = None
    super().__init__(reddit, _data=_data)
    if id:
        self.id = id
    elif url:
        self.id = self.id_from_url(url)
    else:
        self._fetched = True


# 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",
    id: Optional[str] = None,  # pylint: disable=redefined-builtin
    url: Optional[str] = None,
    _data: Optional[Dict[str, Any]] = None,
):
    """Construct an instance of the Comment object."""
    if (id, url, _data).count(None) != 2:
        raise TypeError("Exactly one of `id`, `url`, or `_data` must be provided.")
    fetched = False
    self._replies = []
    self._submission = None
    if id:
        self.id = id
    elif url:
        self.id = self.id_from_url(url)
    else:
        fetched = True
    super().__init__(reddit, _data=_data, _fetched=fetched)