Title: Using map() or filter() where list comprehension is possible · Issue #132 · quantifiedcode/python-anti-patterns · GitHub
Open Graph Title: Using map() or filter() where list comprehension is possible · Issue #132 · quantifiedcode/python-anti-patterns
X Title: Using map() or filter() where list comprehension is possible · Issue #132 · quantifiedcode/python-anti-patterns
Description: Generally this section is misleading. I understand what writer wanted to say but its not correct. map() returns an iterator not list. Therefore in text on few places is mentioned that map() returns list. Therefore use case for map over l...
Open Graph Description: Generally this section is misleading. I understand what writer wanted to say but its not correct. map() returns an iterator not list. Therefore in text on few places is mentioned that map() returns...
X Description: Generally this section is misleading. I understand what writer wanted to say but its not correct. map() returns an iterator not list. Therefore in text on few places is mentioned that map() returns...
Opengraph URL: https://github.com/quantifiedcode/python-anti-patterns/issues/132
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using map() or filter() where list comprehension is possible","articleBody":"Generally this section is misleading.\r\n\r\nI understand what writer wanted to say but its not correct.\r\n\r\nmap() returns an iterator not list. Therefore in text on few places is mentioned that map()\r\nreturns list.\r\n\r\nTherefore use case for map over list comprehension is let's say bit different and with map\r\ncan be more memory efficient.\r\n\r\nI'm just pointing out, so that section can be bit adjusted, but rest standing.","author":{"url":"https://github.com/drsasa","@type":"Person","name":"drsasa"},"datePublished":"2019-07-29T15:52:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/132/python-anti-patterns/issues/132"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d33caaa4-d205-b02f-1a42-3d5da27f5184 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB48:2B46F2:2E5503:40A0DF:696A4CDA |
| html-safe-nonce | e74902817b695f417a6cf8856b213992d5552a2a81cbf965eb3386b308f906f2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjQ4OjJCNDZGMjoyRTU1MDM6NDBBMERGOjY5NkE0Q0RBIiwidmlzaXRvcl9pZCI6IjQ4NjE2OTgzOTQzNjgzOTY1MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a0cc9f7538b4018903ee55ebdb9244157f4708f9caad789c761dd1097f527bb6 |
| hovercard-subject-tag | issue:474127782 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/quantifiedcode/python-anti-patterns/132/issue_layout |
| twitter:image | https://opengraph.githubassets.com/be40fc4bc622a1a9e9671070419865c4c192642b8c3d6965f67d11dc8fa9f8a5/quantifiedcode/python-anti-patterns/issues/132 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/be40fc4bc622a1a9e9671070419865c4c192642b8c3d6965f67d11dc8fa9f8a5/quantifiedcode/python-anti-patterns/issues/132 |
| og:image:alt | Generally this section is misleading. I understand what writer wanted to say but its not correct. map() returns an iterator not list. Therefore in text on few places is mentioned that map() returns... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | drsasa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| go-import | github.com/quantifiedcode/python-anti-patterns git https://github.com/quantifiedcode/python-anti-patterns.git |
| octolytics-dimension-user_id | 6774260 |
| octolytics-dimension-user_login | quantifiedcode |
| octolytics-dimension-repository_id | 22258112 |
| octolytics-dimension-repository_nwo | quantifiedcode/python-anti-patterns |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22258112 |
| octolytics-dimension-repository_network_root_nwo | quantifiedcode/python-anti-patterns |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width