Skip to content

Instantly share code, notes, and snippets.

@prog-mitsu
Created November 8, 2013 05:23
Show Gist options
  • Select an option

  • Save prog-mitsu/7366632 to your computer and use it in GitHub Desktop.

Select an option

Save prog-mitsu/7366632 to your computer and use it in GitHub Desktop.
対象オブジェクトが所持している属性名をひとつずつprint
# 対象オブジェクトが所持している属性名をひとつずつprint
def printObjAttribute(targetObj):
logging.info("------------------------------");
for attr in dir(targetObj):
logging.info(attr);
logging.info("------------------------------");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment