GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — All console-runnable samples should use better main pattern. · Issue #80 · GoogleCloudPlatform/python-docs-samples

All console-runnable samples should use better main pattern. #80

New issue
Copy link
New issue
Copy link
Closed
Closed
All console-runnable samples should use better main pattern.#80
Copy link
Assignees
theacodes
Labels
🚨This issue needs some love.triage meI really want to be triaged.

Description

@theacodes
theacodes
opened on Sep 14, 2015
Issue body actions

Instead of:

def main(argv):
    args = parser.parse_args(argv[1:])

if __name__ == '__main__':
    main(sys.argv)

It should be

def descriptive_function_name(arg1, arg2, arg3):
    ...

if __name__ == '__main__':
    args = parser.parse_args()
    descriptive_function_name(args.arg1, args.arg2, args.arg3)

Activity

  1. theacodes
    changed the title [-]Storage samples should use better main pattern.[/-] [+]All console-runnable samples should use better main pattern.[/+] on Sep 14, 2015
  2. theacodes
    self-assigned this
    on Sep 14, 2015
  3. theacodes
    closed this as completedin #89on Sep 15, 2015
  4. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 7, 2020
  5. donmccasland
    added a commit that references this issue on Nov 8, 2022

    chore(deps): update dependency google-cloud-build to v3.2.0 (#80)

    4a1354b
  6. dandhlee
    added a commit that references this issue on Nov 9, 2022

    chore(deps): update dependency google-cloud-build to v3.2.0 (#80)

    1028b02
  7. arbrown
    added a commit that references this issue on Nov 14, 2022

    chore(deps): update dependency google-cloud-storage to v1.35.0 (#80)

    2c88f2e
  8. dandhlee
    added a commit that references this issue on Nov 15, 2022

    chore(deps): update dependency google-cloud-storage to v1.35.0 (#80)

    acb730e
  9. m-strzelczyk
    added a commit that references this issue on Nov 18, 2022

    chore(deps): update dependency google-auth-httplib2 to v0.1.0 (#80)

    69d77ce
  10. cojenco
    added a commit that references this issue on Apr 12, 2023

    chore(deps): update dependency google-cloud-media-translation to v0.5…

    078520f
  11. dandhlee
    added a commit that references this issue on Apr 13, 2023

    chore(deps): update dependency google-cloud-media-translation to v0.5…

    11e08d3
  12. parthea
    added 2 commits that reference this issue on Jun 8, 2023

    chore(deps): update dependency google-api-python-client to v2.62.0 (#80)

    266c99b

    chore(deps): update dependency google-api-python-client to v2.62.0 (#80)

    67c7d0e
  13. dizcology
    added a commit that references this issue on Jun 16, 2023

    docs: remove out-of-date sample from README (#80)

    5688ba2
  14. dizcology
    added a commit that references this issue on Jul 10, 2023

    docs: remove out-of-date sample from README (#80)

    6453eaf
  15. leahecole
    added a commit that references this issue on Jul 11, 2023

    docs: remove out-of-date sample from README (#80)

    f26155d
  16. Linchin
    added a commit that references this issue on Feb 3, 2026

    chore(deps): update dependency pytest to v7.1.0 (#80)

    12f870d
  17. iennae
    added a commit that references this issue on Feb 3, 2026

    chore: migrate code from googleapis/python-db-dtypes-pandas (#13776)

    92d6169
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @theacodes
    theacodes

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.