René's URL Explorer Experiment


Title: Incorrect highlighting because of flaws in ObjectAssignmentParser · Issue #359 · datacamp/pythonwhat · GitHub

Open Graph Title: Incorrect highlighting because of flaws in ObjectAssignmentParser · Issue #359 · datacamp/pythonwhat

X Title: Incorrect highlighting because of flaws in ObjectAssignmentParser · Issue #359 · datacamp/pythonwhat

Description: When checking whether an object is correctly created and the exercise only contains a single = operator in addition to other 'object-mutating' operations that don't use =, highlighting trips up. Reproducible example (in words) # solution...

Open Graph Description: When checking whether an object is correctly created and the exercise only contains a single = operator in addition to other 'object-mutating' operations that don't use =, highlighting trips up. Re...

X Description: When checking whether an object is correctly created and the exercise only contains a single = operator in addition to other 'object-mutating' operations that don't use =, highlighting ...

Opengraph URL: https://github.com/datacamp/pythonwhat/issues/359

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect highlighting because of flaws in ObjectAssignmentParser","articleBody":"When checking whether an object is correctly created and the exercise only contains a single `=` operator in addition to other 'object-mutating' operations that don't use `=`, highlighting trips up.\r\n\r\n## Reproducible example (in words)\r\n\r\n```python\r\n# solution\r\nx = []\r\nfor i in range(3):\r\n    x.append(i)\r\n\r\n# sct\r\nEx().check_object('x').has_equal_value()\r\n```\r\n\r\nIf the student submits:\r\n\r\n```python\r\n# student\r\nx = []\r\nfor i in range(3):\r\n    x.append(2 * i)\r\n```\r\n\r\nThe `x = []` will be highlighted, even though the mistake is in the `x.append()` step. This is extremely confusing for students! You can see it in action [here](https://www.dropbox.com/s/me22ch8ojuqb1en/Screenshot%202018-09-25%2013.19.00.png?dl=0)\r\n\r\n## Reproducible example (in code)\r\n\r\n```python\r\nfrom pythonwhat.local import setup_state\r\nfrom pythonwhat.Test import TestFail\r\nsol_code = \"x = []\\nfor i in range(3): x.append(i)\"\r\nstu_code = \"x = []\\nfor i in range(3): x.append(2 * i)\"\r\ns = setup_state(sol_code, stu_code)\r\ntry:\r\n    s.check_object('x').has_equal_value()\r\nexcept TestFail as e:\r\n    line_info = e.feedback.line_info\r\n\r\nline_info\r\n```\r\n\r\nThis will print out:\r\n\r\n```\r\n{'column_start': 0, 'line_start': 1, 'line_end': 1, 'column_end': 6}\r\n```\r\n\r\nWhile it should have a `line_start` on `line_end` equal to 2, _or just not highlight anything at all_.","author":{"url":"https://github.com/filipsch","@type":"Person","name":"filipsch"},"datePublished":"2018-09-26T15:49:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/359/pythonwhat/issues/359"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:108d28e8-73fb-1958-5c96-139fbd197ee5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD9BA:FBF0:7EF184:B01064:698CA3D9
html-safe-nonce24f582e23956cc8aebfde58f7386699445402e713347fddd05c9c110faa77849
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUJBOkZCRjA6N0VGMTg0OkIwMTA2NDo2OThDQTNEOSIsInZpc2l0b3JfaWQiOiI1NzQ5NjUzNzM3MTcwNTc2MzQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac47667796e1d71f176a5fb5abe76774b23286f832d3c4a838e3ee45cf62172a0b
hovercard-subject-tagissue:364098048
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/datacamp/pythonwhat/359/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d5eb141b52a2f7d0dd650706352a03bb55bdff628366d13cb32fa09e54bc388c/datacamp/pythonwhat/issues/359
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d5eb141b52a2f7d0dd650706352a03bb55bdff628366d13cb32fa09e54bc388c/datacamp/pythonwhat/issues/359
og:image:altWhen checking whether an object is correctly created and the exercise only contains a single = operator in addition to other 'object-mutating' operations that don't use =, highlighting trips up. Re...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefilipsch
hostnamegithub.com
expected-hostnamegithub.com
None640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4
turbo-cache-controlno-preview
go-importgithub.com/datacamp/pythonwhat git https://github.com/datacamp/pythonwhat.git
octolytics-dimension-user_id6276968
octolytics-dimension-user_logindatacamp
octolytics-dimension-repository_id51361383
octolytics-dimension-repository_nwodatacamp/pythonwhat
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51361383
octolytics-dimension-repository_network_root_nwodatacamp/pythonwhat
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
release3d444f0a47beeeac94cddbb51c91ab408befe8d4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/datacamp/pythonwhat/issues/359#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdatacamp%2Fpythonwhat%2Fissues%2F359
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%2Fdatacamp%2Fpythonwhat%2Fissues%2F359
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=datacamp%2Fpythonwhat
Reloadhttps://patch-diff.githubusercontent.com/datacamp/pythonwhat/issues/359
Reloadhttps://patch-diff.githubusercontent.com/datacamp/pythonwhat/issues/359
Reloadhttps://patch-diff.githubusercontent.com/datacamp/pythonwhat/issues/359
datacamp https://patch-diff.githubusercontent.com/datacamp
pythonwhathttps://patch-diff.githubusercontent.com/datacamp/pythonwhat
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fdatacamp%2Fpythonwhat
Fork 31 https://patch-diff.githubusercontent.com/login?return_to=%2Fdatacamp%2Fpythonwhat
Star 74 https://patch-diff.githubusercontent.com/login?return_to=%2Fdatacamp%2Fpythonwhat
Code https://patch-diff.githubusercontent.com/datacamp/pythonwhat
Issues 34 https://patch-diff.githubusercontent.com/datacamp/pythonwhat/issues
Pull requests 3 https://patch-diff.githubusercontent.com/datacamp/pythonwhat/pulls
Projects 0 https://patch-diff.githubusercontent.com/datacamp/pythonwhat/projects
Wiki https://patch-diff.githubusercontent.com/datacamp/pythonwhat/wiki
Security 0 https://patch-diff.githubusercontent.com/datacamp/pythonwhat/security
Insights https://patch-diff.githubusercontent.com/datacamp/pythonwhat/pulse
Code https://patch-diff.githubusercontent.com/datacamp/pythonwhat
Issues https://patch-diff.githubusercontent.com/datacamp/pythonwhat/issues
Pull requests https://patch-diff.githubusercontent.com/datacamp/pythonwhat/pulls
Projects https://patch-diff.githubusercontent.com/datacamp/pythonwhat/projects
Wiki https://patch-diff.githubusercontent.com/datacamp/pythonwhat/wiki
Security https://patch-diff.githubusercontent.com/datacamp/pythonwhat/security
Insights https://patch-diff.githubusercontent.com/datacamp/pythonwhat/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/datacamp/pythonwhat/issues/359
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/datacamp/pythonwhat/issues/359
Incorrect highlighting because of flaws in ObjectAssignmentParserhttps://patch-diff.githubusercontent.com/datacamp/pythonwhat/issues/359#top
bughttps://github.com/datacamp/pythonwhat/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/filipsch
https://github.com/filipsch
filipschhttps://github.com/filipsch
on Sep 26, 2018https://github.com/datacamp/pythonwhat/issues/359#issue-364098048
herehttps://www.dropbox.com/s/me22ch8ojuqb1en/Screenshot%202018-09-25%2013.19.00.png?dl=0
bughttps://github.com/datacamp/pythonwhat/issues?q=state%3Aopen%20label%3A%22bug%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.