Yield new comments as they become available. Comments are yielded oldest first. Up to 100 historical comments will initially be returned. Keyword arguments are passed to :func:`.stream_generator`. For example, to retrieve all new comments made by redditor u/spez, t
(self, **stream_options: Any)
| 424 | self.redditor = redditor |
| 425 | |
| 426 | def comments(self, **stream_options: Any) -> Iterator[models.Comment]: |
| 427 | """Yield new comments as they become available. |
| 428 | |
| 429 | Comments are yielded oldest first. Up to 100 historical comments will initially |
| 430 | be returned. |
| 431 | |
| 432 | Keyword arguments are passed to :func:`.stream_generator`. |
| 433 | |
| 434 | For example, to retrieve all new comments made by redditor u/spez, try: |
| 435 | |
| 436 | .. code-block:: python |
| 437 | |
| 438 | for comment in reddit.redditor("spez").stream.comments(): |
| 439 | print(comment) |
| 440 | |
| 441 | """ |
| 442 | return stream_generator(self.redditor.comments.new, **stream_options) |
| 443 | |
| 444 | def submissions(self, **stream_options: Any) -> Iterator[models.Submission]: |
| 445 | """Yield new submissions as they become available. |
nothing calls this directly
no test coverage detected