René's URL Explorer Experiment


Title: Unexpected parsing behaviour for --date=2018-12-09 vs. --date=2018-12-10 · Issue #102 · google/python-fire · GitHub

Open Graph Title: Unexpected parsing behaviour for --date=2018-12-09 vs. --date=2018-12-10 · Issue #102 · google/python-fire

X Title: Unexpected parsing behaviour for --date=2018-12-09 vs. --date=2018-12-10 · Issue #102 · google/python-fire

Description: Anything that can be interpreted as an arithmetics expression will be magically "calculated" by fire. This is very practical. But it bit me because I wanted to parse dates from command line parameters using fire, see below. Suggestion: a...

Open Graph Description: Anything that can be interpreted as an arithmetics expression will be magically "calculated" by fire. This is very practical. But it bit me because I wanted to parse dates from command line paramet...

X Description: Anything that can be interpreted as an arithmetics expression will be magically "calculated" by fire. This is very practical. But it bit me because I wanted to parse dates from command li...

Opengraph URL: https://github.com/google/python-fire/issues/102

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unexpected parsing behaviour for --date=2018-12-09 vs. --date=2018-12-10","articleBody":"Anything that can be interpreted as an arithmetics expression will be magically \"calculated\" by fire. This is very practical. But it bit me because I wanted to parse dates from command line parameters using fire, see below. \r\n\r\nSuggestion: accept type hints as a way to prevent this. A parameter with type hint \"str\" shoud not be \"calculated\". \r\n\r\nTest code:\r\n\r\n```import fire\r\n\r\ndef test(string: str=None) :\r\n    print(string)\r\n\r\nif __name__==\"__main__\" :\r\n    fire.Fire(test)\r\n```\r\n\r\nWill give you: \r\n\r\n```\r\n> python ./test-parsing.py --string=2010-10-10\r\n1990    # not interpreted as a string, but as 2010 minus 10 minus 10\r\n\r\n> python ./test-parsing.py --string=2010-10-09\r\n2010-10-09\r\n\r\n```","author":{"url":"https://github.com/martinvirtel","@type":"Person","name":"martinvirtel"},"datePublished":"2017-11-28T14:31:11Z","url":"https://github.com/google/python-fire/issues/102"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5abe8565-e731-9ff9-a376-6bf0b957cb29
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA870:B1603:30291D7:3FBCA2A:6B002B75
html-safe-nonce408e482b188198d8a4bf791fe561817d63476949dd4c6165872087955ee85374
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODcwOkIxNjAzOjMwMjkxRDc6M0ZCQ0EyQTo2QjAwMkI3NSIsInZpc2l0b3JfaWQiOiI3ODM3MjkzODIzNDQ4MzI5MDc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac97d4b9166e3d27602be704f73a629fe2bcc10bdeaff7ff834b608232cd219dae
hovercard-subject-tagissue:277405171
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/google/python-fire/102/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c5bfd9fa027f96dbca6c73b8e76865456dadd0ad28bb2ba2e3474c13413023f9/google/python-fire/issues/102
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c5bfd9fa027f96dbca6c73b8e76865456dadd0ad28bb2ba2e3474c13413023f9/google/python-fire/issues/102
og:image:altAnything that can be interpreted as an arithmetics expression will be magically "calculated" by fire. This is very practical. But it bit me because I wanted to parse dates from command line paramet...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemartinvirtel
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
turbo-cache-controlno-preview
go-importgithub.com/google/python-fire git https://github.com/google/python-fire.git
octolytics-dimension-user_id1342004
octolytics-dimension-user_logingoogle
octolytics-dimension-repository_id82729529
octolytics-dimension-repository_nwogoogle/python-fire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id82729529
octolytics-dimension-repository_network_root_nwogoogle/python-fire
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
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/google/python-fire/issues/102#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fpython-fire%2Fissues%2F102
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fpython-fire%2Fissues%2F102
Sign uphttps://github.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=google%2Fpython-fire
Reloadhttps://github.com/google/python-fire/issues/102
Reloadhttps://github.com/google/python-fire/issues/102
Reloadhttps://github.com/google/python-fire/issues/102
googlehttps://github.com/google
python-firehttps://github.com/google/python-fire
Codehttps://github.com/google/python-fire
Issues146 (146)https://github.com/google/python-fire/issues
Pull requests85 (85)https://github.com/google/python-fire/pulls
Actionshttps://github.com/google/python-fire/actions
Projectshttps://github.com/google/python-fire/projects
Security and qualityhttps://github.com/google/python-fire/security
Insightshttps://github.com/google/python-fire/insights
https://github.com/google/python-fire
New issuehttps://github.com/login?return_to=https://github.com/google/python-fire/issues/102
New issuehttps://github.com/login?return_to=https://github.com/google/python-fire/issues/102
Unexpected parsing behaviour for --date=2018-12-09 vs. --date=2018-12-10https://github.com/google/python-fire/issues/102#top
bughttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22bug%22
help wantedhttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
https://github.com/martinvirtel
martinvirtelhttps://github.com/martinvirtel
on Nov 28, 2017https://github.com/google/python-fire/issues/102#issue-277405171
martinvirtelhttps://github.com/martinvirtel
on Nov 28, 2017https://github.com/google/python-fire/issues/102#event-1361485881
test date parsing behaviour, see google/python-fire#102https://github.com/martinvirtel/picturalliance.py/commit/ac57eae8969192b37f957b0c1a66d8c1b868e451
google/python-fire#102https://github.com/google/python-fire/issues/102
ac57eaehttps://github.com/martinvirtel/picturalliance.py/commit/ac57eae8969192b37f957b0c1a66d8c1b868e451
https://github.com/dbieber
dbieberhttps://github.com/dbieber
on Nov 28, 2017https://github.com/google/python-fire/issues/102#issuecomment-347607000
#97https://github.com/google/python-fire/issues/97
dbieberhttps://github.com/dbieber
bughttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22bug%22
on Oct 5, 2018https://github.com/google/python-fire/issues/102#event-1888286096
https://github.com/danishprakash
danishprakashhttps://github.com/danishprakash
on Oct 9, 2018https://github.com/google/python-fire/issues/102#issuecomment-428132769
@dbieberhttps://github.com/dbieber
https://github.com/dbieber
dbieberhttps://github.com/dbieber
on Oct 29, 2018https://github.com/google/python-fire/issues/102#issuecomment-434005146
#97 (comment)https://github.com/google/python-fire/issues/97#issuecomment-349153815
dbieberhttps://github.com/dbieber
help wantedhttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
on May 24, 2019https://github.com/google/python-fire/issues/102#event-2365966221
https://github.com/dbieber
dbieberhttps://github.com/dbieber
on Feb 28, 2020https://github.com/google/python-fire/issues/102#issuecomment-592661482
dbieberhttps://github.com/dbieber
completedhttps://github.com/google/python-fire/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 28, 2020https://github.com/google/python-fire/issues/102#event-3083045690
Sign up for freehttps://github.com/signup?return_to=https://github.com/google/python-fire/issues/102
Sign in to commenthttps://github.com/login?return_to=https://github.com/google/python-fire/issues/102
bughttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22bug%22
help wantedhttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22help%20wanted%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.