René's URL Explorer Experiment


Title: Naming collision between Processing `map()` and Python `map()` · Issue #131 · processing/libprocessing · GitHub

Open Graph Title: Naming collision between Processing `map()` and Python `map()` · Issue #131 · processing/libprocessing

X Title: Naming collision between Processing `map()` and Python `map()` · Issue #131 · processing/libprocessing

Description: Trying to port the array example (See issue: Port Basics / Arrays / Array #3) and I'm running into this error: coswave = [abs(cos(map(i, 0, width, 0, pi))) for i in range(width)] ~~~^^^^^^^^^^^^^^^^^^^^ TypeError: 'int' object is not ite...

Open Graph Description: Trying to port the array example (See issue: Port Basics / Arrays / Array #3) and I'm running into this error: coswave = [abs(cos(map(i, 0, width, 0, pi))) for i in range(width)] ~~~^^^^^^^^^^^^^^^...

X Description: Trying to port the array example (See issue: Port Basics / Arrays / Array #3) and I'm running into this error: coswave = [abs(cos(map(i, 0, width, 0, pi))) for i in range(width)] ~~~^^^^^^^^^^^...

Opengraph URL: https://github.com/processing/libprocessing/issues/131

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Naming collision between Processing `map()` and Python `map()`","articleBody":"Trying to port the array example (See issue: [Port `Basics` / `Arrays` / `Array` #3](https://github.com/processing/processing-examples-mewnala/issues/3)) and I'm running into this error:\n\n```\ncoswave = [abs(cos(map(i, 0, width, 0, pi))) for i in range(width)]\n                       ~~~^^^^^^^^^^^^^^^^^^^^\nTypeError: 'int' object is not iterable\n```\n\nI suppose this is because Python has its own [map()](https://www.w3schools.com/python/ref_func_map.asp) function (a list transformation) different from the [map()](https://processing.org/reference/map_.html) function in Processing (a linear interpolation function).\n\nProcessing.py handles this by wrapping `map()` and dispatching based on the arguments (see [source code](https://github.com/jdf/processing.py/blob/1932b4ca71f3befd333cc23d3a1c8fe7617014ff/runtime/src/jycessing/PAppletJythonDriver.java#L1047)). It uses the Processing version when called with five numeric arguments, and otherwise falls back to Python’s built-in. Note: the same approach is used for `filter()`.\n\nBy contrast, py5 avoids the conflict by renaming the function to  [`remap()`](https://py5coding.org/reference/sketch_remap.html) instead.\n","author":{"url":"https://github.com/SableRaf","@type":"Person","name":"SableRaf"},"datePublished":"2026-04-24T13:06:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/131/libprocessing/issues/131"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:dbbe8c77-0c7f-442c-56c5-23817c043b03
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAAD8:D3A0E:12F02EE:1952E10:6A5D1553
html-safe-noncec5a0486aef36c8c44f02e4e371b20dfac22a924406bf409eeb1c509bb1e9db4f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUQ4OkQzQTBFOjEyRjAyRUU6MTk1MkUxMDo2QTVEMTU1MyIsInZpc2l0b3JfaWQiOiI4NjAwMTY4ODkwOTY1NDk3MTcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac373539eb8e0233903d957197ccf7ef68225740385b430985b82ec6a7cbbcffab
hovercard-subject-tagissue:4323106606
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/processing/libprocessing/131/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f67885124411347faf1b319eaacc7e1fc3cd8258cd0090535b1e4b8fb14b884d/processing/libprocessing/issues/131
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f67885124411347faf1b319eaacc7e1fc3cd8258cd0090535b1e4b8fb14b884d/processing/libprocessing/issues/131
og:image:altTrying to port the array example (See issue: Port Basics / Arrays / Array #3) and I'm running into this error: coswave = [abs(cos(map(i, 0, width, 0, pi))) for i in range(width)] ~~~^^^^^^^^^^^^^^^...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSableRaf
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
go-importgithub.com/processing/libprocessing git https://github.com/processing/libprocessing.git
octolytics-dimension-user_id1617169
octolytics-dimension-user_loginprocessing
octolytics-dimension-repository_id1101329545
octolytics-dimension-repository_nwoprocessing/libprocessing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1101329545
octolytics-dimension-repository_network_root_nwoprocessing/libprocessing
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/processing/libprocessing/issues/131#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fissues%2F131
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fissues%2F131
Sign up https://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=processing%2Flibprocessing
Reloadhttps://github.com/processing/libprocessing/issues/131
Reloadhttps://github.com/processing/libprocessing/issues/131
Reloadhttps://github.com/processing/libprocessing/issues/131
Please reload this pagehttps://github.com/processing/libprocessing/issues/131
processing https://github.com/processing
libprocessinghttps://github.com/processing/libprocessing
Notifications https://github.com/login?return_to=%2Fprocessing%2Flibprocessing
Fork 12 https://github.com/login?return_to=%2Fprocessing%2Flibprocessing
Star 56 https://github.com/login?return_to=%2Fprocessing%2Flibprocessing
Code https://github.com/processing/libprocessing
Issues 68 https://github.com/processing/libprocessing/issues
Pull requests 2 https://github.com/processing/libprocessing/pulls
Actions https://github.com/processing/libprocessing/actions
Projects https://github.com/processing/libprocessing/projects
Wiki https://github.com/processing/libprocessing/wiki
Security and quality 0 https://github.com/processing/libprocessing/security
Insights https://github.com/processing/libprocessing/pulse
Code https://github.com/processing/libprocessing
Issues https://github.com/processing/libprocessing/issues
Pull requests https://github.com/processing/libprocessing/pulls
Actions https://github.com/processing/libprocessing/actions
Projects https://github.com/processing/libprocessing/projects
Wiki https://github.com/processing/libprocessing/wiki
Security and quality https://github.com/processing/libprocessing/security
Insights https://github.com/processing/libprocessing/pulse
Naming collision between Processing map() and Python map()https://github.com/processing/libprocessing/issues/131#top
https://github.com/SableRaf
SableRafhttps://github.com/SableRaf
on Apr 24, 2026https://github.com/processing/libprocessing/issues/131#issue-4323106606
Port Basics / Arrays / Array #3https://github.com/processing/processing-examples-mewnala/issues/3
map()https://www.w3schools.com/python/ref_func_map.asp
map()https://processing.org/reference/map_.html
source codehttps://github.com/jdf/processing.py/blob/1932b4ca71f3befd333cc23d3a1c8fe7617014ff/runtime/src/jycessing/PAppletJythonDriver.java#L1047
remap()https://py5coding.org/reference/sketch_remap.html
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.