Skip to content

Instantly share code, notes, and snippets.

@ryanlong1004
Created January 10, 2022 18:17
Show Gist options
  • Select an option

  • Save ryanlong1004/399299210ce28670a0bb428dae7b8d3d to your computer and use it in GitHub Desktop.

Select an option

Save ryanlong1004/399299210ce28670a0bb428dae7b8d3d to your computer and use it in GitHub Desktop.
Useful Python One-liners
# log current function name and local vars
logger.debug("fx=%s: vars=%s", inspect.stack()[0][3], locals())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment