issue_comments: 778821403

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app 778821403 MDEyOklzc3VlQ29tbWVudDc3ODgyMTQwMw== 9599 2021-02-14T18:38:16Z 2021-02-14T18:38:16Z OWNER

There are two code paths here that matter:

  • For a regular file, can read the first 2048 bytes, then .seek(0) before continuing. That's easy.
  • stdin is harder. I need to read and buffer the first 2048 bytes, then pass an object to csv.reader() which will replay that chunk and then play the rest of stdin.

I'm a bit stuck on the second one. Ideally I could use something like itertools.chain() but I can't find an alternative for file-like objects.

    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0