home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 718168730

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
https://github.com/simonw/sqlite-utils/issues/191#issuecomment-718168730 https://api.github.com/repos/simonw/sqlite-utils/issues/191 718168730 MDEyOklzc3VlQ29tbWVudDcxODE2ODczMA== 9599 2020-10-28T19:47:20Z 2020-10-28T19:47:20Z OWNER

https://stackoverflow.com/a/3931903 looks useful: python def trace(*args): def _trace(func): def wrapper(*args, **kwargs): print enter_string func(*args, **kwargs) print exit_string return wrapper if len(args) == 1 and callable(args[0]): # No arguments, this is the decorator # Set default values for the arguments enter_string = 'entering' exit_string = 'exiting' return _trace(args[0]) else: # This is just returning the decorator enter_string, exit_string = args return _trace Can improve that code with functools.wraps.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
731740458  
Powered by Datasette · Queries took 0.899ms · About: github-to-sqlite