René's URL Explorer Experiment


Title: DuplicateFlagError when module with gflags definition is reimported · Issue #9 · gflags/python-gflags · GitHub

Open Graph Title: DuplicateFlagError when module with gflags definition is reimported · Issue #9 · gflags/python-gflags

X Title: DuplicateFlagError when module with gflags definition is reimported · Issue #9 · gflags/python-gflags

Description: A DuplicateFlagError is thrown when: 1) Module A imports the gflags module and defines gflags. 2) Module A imports B 3) Module B imports A Example: File main.py: --------------------------------- #!/usr/bin/python2.6 import sys import gf...

Open Graph Description: A DuplicateFlagError is thrown when: 1) Module A imports the gflags module and defines gflags. 2) Module A imports B 3) Module B imports A Example: File main.py: --------------------------------- #...

X Description: A DuplicateFlagError is thrown when: 1) Module A imports the gflags module and defines gflags. 2) Module A imports B 3) Module B imports A Example: File main.py: --------------------------------- #...

Opengraph URL: https://github.com/gflags/python-gflags/issues/9

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DuplicateFlagError when module with gflags definition is reimported","articleBody":"```\nA DuplicateFlagError is thrown when:\n1) Module A imports the gflags module and defines gflags.\n2) Module A imports B\n3) Module B imports A\n\nExample:\n\nFile main.py:\n---------------------------------\n#!/usr/bin/python2.6\n\nimport sys\nimport gflags\nimport dep   # error\n\nFLAGS = gflags.FLAGS\ngflags.DEFINE_boolean(\"example\", True, \"example_flag\")\n\nif __name__ == \"__main__\":\n  FLAGS(sys.argv)\n  print FLAGS.example\n\n---------------------------------\n\n\nFile dep.py:\n---------------------------------\n#!/usr/bin/python2.6\n\nimport main\n---------------------------------\n\n\nError output:\n---------------------------------\nTraceback (most recent call last):\n  File \"example\\main.py\", line 10, in \u003cmodule\u003e\n    gflags.DEFINE_boolean(\"example\", True, \"example_flag\")\n  File \"C:\\gflags\\python\\gflags.py\", line 2378, in DEFINE_boolean\n    DEFINE_flag(BooleanFlag(name, default, help, **args), flag_values)\n  File \"C:\\gflags\\python\\gflags.py\", line 2190, in DEFINE_flag\n    fv[flag.name] = flag\n  File \"C:\\gflags\\python\\gflags.py\", line 1040, in __setitem__\n    raise DuplicateFlagError(name, self)\ngflags.DuplicateFlagError: The flag 'example' is defined twice. First from \nmain, Second from example\\main.py\n\n```\n\nOriginal issue reported on code.google.com by `linshu...@google.com` on 26 Mar 2012 at 7:11\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2015-07-20T02:23:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/9/python-gflags/issues/9"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6e8a328b-a8ba-09a2-c4e3-1e1f1f8f001e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8016:3F9A9A:A7CF9C:ED60DD:6978C687
html-safe-nonceb1f6aff27607824647b24a2c6154aa9356bc56909d2be0e42b9246aaaac4eaf0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDE2OjNGOUE5QTpBN0NGOUM6RUQ2MEREOjY5NzhDNjg3IiwidmlzaXRvcl9pZCI6IjEyOTMzODA4MjI1ODQ4Mzc3NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac58d99fc1af638e58db0d57323c78b1af1a9a62c49640b50abb7665f127247283
hovercard-subject-tagissue:95970235
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gflags/python-gflags/9/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c350b6fd1401ed70e2c7b182723a2e89de87614827cc3b7d90ccf7df4135d34c/gflags/python-gflags/issues/9
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c350b6fd1401ed70e2c7b182723a2e89de87614827cc3b7d90ccf7df4135d34c/gflags/python-gflags/issues/9
og:image:altA DuplicateFlagError is thrown when: 1) Module A imports the gflags module and defines gflags. 2) Module A imports B 3) Module B imports A Example: File main.py: --------------------------------- #...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameGoogleCodeExporter
hostnamegithub.com
expected-hostnamegithub.com
None8a71ca1f7ab5436216e1df86f398ef7a51ed3152c90e3f7332fc70cf97fcb9d6
turbo-cache-controlno-preview
go-importgithub.com/gflags/python-gflags git https://github.com/gflags/python-gflags.git
octolytics-dimension-user_id11634238
octolytics-dimension-user_logingflags
octolytics-dimension-repository_id39358388
octolytics-dimension-repository_nwogflags/python-gflags
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id39358388
octolytics-dimension-repository_network_root_nwogflags/python-gflags
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseeaed570eead52a9920afef75dc3eb6d826fdc5ef
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/gflags/python-gflags/issues/9#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgflags%2Fpython-gflags%2Fissues%2F9
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgflags%2Fpython-gflags%2Fissues%2F9
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=gflags%2Fpython-gflags
Reloadhttps://patch-diff.githubusercontent.com/gflags/python-gflags/issues/9
Reloadhttps://patch-diff.githubusercontent.com/gflags/python-gflags/issues/9
Reloadhttps://patch-diff.githubusercontent.com/gflags/python-gflags/issues/9
gflags https://patch-diff.githubusercontent.com/gflags
python-gflagshttps://patch-diff.githubusercontent.com/gflags/python-gflags
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fgflags%2Fpython-gflags
Fork 6 https://patch-diff.githubusercontent.com/login?return_to=%2Fgflags%2Fpython-gflags
Star 17 https://patch-diff.githubusercontent.com/login?return_to=%2Fgflags%2Fpython-gflags
Code https://patch-diff.githubusercontent.com/gflags/python-gflags
Issues 6 https://patch-diff.githubusercontent.com/gflags/python-gflags/issues
Pull requests 0 https://patch-diff.githubusercontent.com/gflags/python-gflags/pulls
Actions https://patch-diff.githubusercontent.com/gflags/python-gflags/actions
Projects 0 https://patch-diff.githubusercontent.com/gflags/python-gflags/projects
Security 0 https://patch-diff.githubusercontent.com/gflags/python-gflags/security
Insights https://patch-diff.githubusercontent.com/gflags/python-gflags/pulse
Code https://patch-diff.githubusercontent.com/gflags/python-gflags
Issues https://patch-diff.githubusercontent.com/gflags/python-gflags/issues
Pull requests https://patch-diff.githubusercontent.com/gflags/python-gflags/pulls
Actions https://patch-diff.githubusercontent.com/gflags/python-gflags/actions
Projects https://patch-diff.githubusercontent.com/gflags/python-gflags/projects
Security https://patch-diff.githubusercontent.com/gflags/python-gflags/security
Insights https://patch-diff.githubusercontent.com/gflags/python-gflags/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/gflags/python-gflags/issues/9
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/gflags/python-gflags/issues/9
DuplicateFlagError when module with gflags definition is reimportedhttps://patch-diff.githubusercontent.com/gflags/python-gflags/issues/9#top
Priority-Mediumhttps://github.com/gflags/python-gflags/issues?q=state%3Aopen%20label%3A%22Priority-Medium%22
Type-Defecthttps://github.com/gflags/python-gflags/issues?q=state%3Aopen%20label%3A%22Type-Defect%22
auto-migratedhttps://github.com/gflags/python-gflags/issues?q=state%3Aopen%20label%3A%22auto-migrated%22
https://github.com/GoogleCodeExporter
https://github.com/GoogleCodeExporter
GoogleCodeExporterhttps://github.com/GoogleCodeExporter
on Jul 20, 2015https://github.com/gflags/python-gflags/issues/9#issue-95970235
Priority-Mediumhttps://github.com/gflags/python-gflags/issues?q=state%3Aopen%20label%3A%22Priority-Medium%22
Type-Defecthttps://github.com/gflags/python-gflags/issues?q=state%3Aopen%20label%3A%22Type-Defect%22
auto-migratedhttps://github.com/gflags/python-gflags/issues?q=state%3Aopen%20label%3A%22auto-migrated%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.