René's URL Explorer Experiment


Title: `count` does not seem to work · Issue #23 · pythonql/pythonql · GitHub

Open Graph Title: `count` does not seem to work · Issue #23 · pythonql/pythonql

X Title: `count` does not seem to work · Issue #23 · pythonql/pythonql

Description: Seems to be an issue with count. This results in Unknown clause encountered res = [ select (letter, lettercount) for letter in "helloworld" count lettercount ] If I then apply this patch, it now parses. diff --git a/pythonql/parser/Pytho...

Open Graph Description: Seems to be an issue with count. This results in Unknown clause encountered res = [ select (letter, lettercount) for letter in "helloworld" count lettercount ] If I then apply this patch, it now pa...

X Description: Seems to be an issue with count. This results in Unknown clause encountered res = [ select (letter, lettercount) for letter in "helloworld" count lettercount ] If I then apply this patch,...

Opengraph URL: https://github.com/pythonql/pythonql/issues/23

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`count` does not seem to work","articleBody":"Seems to be an issue with `count`. This results in `Unknown clause encountered`\r\n```python\r\nres = [ select (letter, lettercount)\r\n       for letter in \"helloworld\"\r\n       count lettercount\r\n      ]\r\n```\r\nIf I then apply this patch, it now parses.\r\n```diff\r\ndiff --git a/pythonql/parser/PythonQLParser.py b/pythonql/parser/PythonQLParser.py\r\nindex fb8d304..003f4bd 100644\r\n--- a/pythonql/parser/PythonQLParser.py\r\n+++ b/pythonql/parser/PythonQLParser.py\r\n@@ -835,7 +835,7 @@ class Parser:\r\n\r\n   def p_count_clause(self, p):\r\n     \"\"\"count_clause : COUNT NAME\"\"\"\r\n-    p[0] = make_node('count', p)\r\n+    p[0] = make_node('count_clause', p)\r\n\r\n   def p_testseq_query(self, p):\r\n     \"\"\"testseq_query : test_as_list comma_opt\r\n```\r\nWith results:\r\n```python\r\n[{\"letter\":'h',\"lettercount\":0}, {\"letter\":'e',\"lettercount\":1}, {\"letter\":'l',\"lettercount\":2}, {\"letter\":'l',\"lettercount\":3}, {\"letter\":'o',\"lettercount\":4}, {\"letter\":'w',\"lettercount\":5}, {\"letter\":'o',\"lettercount\":6}, {\"letter\":'r',\"lettercount\":7}, {\"letter\":'l',\"lettercount\":8}, {\"letter\":'d',\"lettercount\":9}]\r\n```","author":{"url":"https://github.com/rectalogic","@type":"Person","name":"rectalogic"},"datePublished":"2022-04-22T20:14:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/23/pythonql/issues/23"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2cdceeb4-dc6f-0c1e-2428-f8f619d90717
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE7B4:EA4D:AB4C0:E966E:6981D0C0
html-safe-nonce1786f3486e24cc30f21d0b7ac27bd579fd4442abe912761df73a236ebf715b60
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0I0OkVBNEQ6QUI0QzA6RTk2NkU6Njk4MUQwQzAiLCJ2aXNpdG9yX2lkIjoiMTcxOTE0ODM4MTE1NzMzNjk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf094877117d616c2ecf9ee59ada904e8e21f369fa1d5635c638b28d4ac517d50
hovercard-subject-tagissue:1212736056
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/pythonql/pythonql/23/issue_layout
twitter:imagehttps://opengraph.githubassets.com/042ec0607b732d86cdf4eb42601fba31d508290e2da318e32917515c8d117817/pythonql/pythonql/issues/23
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/042ec0607b732d86cdf4eb42601fba31d508290e2da318e32917515c8d117817/pythonql/pythonql/issues/23
og:image:altSeems to be an issue with count. This results in Unknown clause encountered res = [ select (letter, lettercount) for letter in "helloworld" count lettercount ] If I then apply this patch, it now pa...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerectalogic
hostnamegithub.com
expected-hostnamegithub.com
Noneebfdf8d3e0fd17b103f41cc6696d84938694ebebdfecaf11fe00dbe4a9785801
turbo-cache-controlno-preview
go-importgithub.com/pythonql/pythonql git https://github.com/pythonql/pythonql.git
octolytics-dimension-user_id22842849
octolytics-dimension-user_loginpythonql
octolytics-dimension-repository_id58056458
octolytics-dimension-repository_nwopythonql/pythonql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id58056458
octolytics-dimension-repository_network_root_nwopythonql/pythonql
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
releaseac96edcf00b294dfaa8f1b86d06a198589e60041
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/pythonql/pythonql/issues/23#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpythonql%2Fpythonql%2Fissues%2F23
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%2Fpythonql%2Fpythonql%2Fissues%2F23
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=pythonql%2Fpythonql
Reloadhttps://patch-diff.githubusercontent.com/pythonql/pythonql/issues/23
Reloadhttps://patch-diff.githubusercontent.com/pythonql/pythonql/issues/23
Reloadhttps://patch-diff.githubusercontent.com/pythonql/pythonql/issues/23
pythonql https://patch-diff.githubusercontent.com/pythonql
pythonqlhttps://patch-diff.githubusercontent.com/pythonql/pythonql
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpythonql%2Fpythonql
Fork 20 https://patch-diff.githubusercontent.com/login?return_to=%2Fpythonql%2Fpythonql
Star 245 https://patch-diff.githubusercontent.com/login?return_to=%2Fpythonql%2Fpythonql
Code https://patch-diff.githubusercontent.com/pythonql/pythonql
Issues 7 https://patch-diff.githubusercontent.com/pythonql/pythonql/issues
Pull requests 0 https://patch-diff.githubusercontent.com/pythonql/pythonql/pulls
Actions https://patch-diff.githubusercontent.com/pythonql/pythonql/actions
Projects 0 https://patch-diff.githubusercontent.com/pythonql/pythonql/projects
Wiki https://patch-diff.githubusercontent.com/pythonql/pythonql/wiki
Security 0 https://patch-diff.githubusercontent.com/pythonql/pythonql/security
Insights https://patch-diff.githubusercontent.com/pythonql/pythonql/pulse
Code https://patch-diff.githubusercontent.com/pythonql/pythonql
Issues https://patch-diff.githubusercontent.com/pythonql/pythonql/issues
Pull requests https://patch-diff.githubusercontent.com/pythonql/pythonql/pulls
Actions https://patch-diff.githubusercontent.com/pythonql/pythonql/actions
Projects https://patch-diff.githubusercontent.com/pythonql/pythonql/projects
Wiki https://patch-diff.githubusercontent.com/pythonql/pythonql/wiki
Security https://patch-diff.githubusercontent.com/pythonql/pythonql/security
Insights https://patch-diff.githubusercontent.com/pythonql/pythonql/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/pythonql/pythonql/issues/23
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/pythonql/pythonql/issues/23
count does not seem to workhttps://patch-diff.githubusercontent.com/pythonql/pythonql/issues/23#top
https://github.com/rectalogic
https://github.com/rectalogic
rectalogichttps://github.com/rectalogic
on Apr 22, 2022https://github.com/pythonql/pythonql/issues/23#issue-1212736056
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.