Title: Method could be a function · Issue #130 · quantifiedcode/python-anti-patterns · GitHub
Open Graph Title: Method could be a function · Issue #130 · quantifiedcode/python-anti-patterns
X Title: Method could be a function · Issue #130 · quantifiedcode/python-anti-patterns
Description: I couldn't get python (neither 2.7, nor 3.5 or 3.7) to raise a Method could be a function error on your example (or reasonable variations, like actually calling Rectangle.area). If this is obsolete, please update the page to describe the...
Open Graph Description: I couldn't get python (neither 2.7, nor 3.5 or 3.7) to raise a Method could be a function error on your example (or reasonable variations, like actually calling Rectangle.area). If this is obsolete...
X Description: I couldn't get python (neither 2.7, nor 3.5 or 3.7) to raise a Method could be a function error on your example (or reasonable variations, like actually calling Rectangle.area). If this is obso...
Opengraph URL: https://github.com/quantifiedcode/python-anti-patterns/issues/130
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Method could be a function","articleBody":"I couldn't get python (neither 2.7, nor 3.5 or 3.7) to raise a `Method could be a function` error on your example (or reasonable variations, like actually calling Rectangle.area). If this is obsolete, please update the page to describe the behaviour of current python versions. Otherwise, update the example to reproduce the error.\r\n\r\nAlso, you refer to `self` and `cls` as keywords. At least in Python 3 they aren't. There is just a (pretty strong) convention to call the first parameter of an instance method `self` and the first parameter of a class method `cls`. ","author":{"url":"https://github.com/hjp","@type":"Person","name":"hjp"},"datePublished":"2019-07-27T08:02:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/130/python-anti-patterns/issues/130"}
| 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:82433d32-55e7-1919-c510-ba3f8bf55b69 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84BE:3A8D90:4001DB4:52E2846:6974E36D |
| html-safe-nonce | 876d623a6969a2bc01ad989b285e1877b10d3628593d9104cd0a840c34d373b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEJFOjNBOEQ5MDo0MDAxREI0OjUyRTI4NDY6Njk3NEUzNkQiLCJ2aXNpdG9yX2lkIjoiNTg2Njk0NTU4MzE3MTAzNjAxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 11887c21459e62f2e3676b3f3201fe3363f9d689747e12d56e798c6479f30685 |
| hovercard-subject-tag | issue:473612915 |
| 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/130/issue_layout |
| twitter:image | https://opengraph.githubassets.com/782845fe53793e2ec10b954866b86fa67e6a7369a81a3e913bcae698c7315ab8/quantifiedcode/python-anti-patterns/issues/130 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/782845fe53793e2ec10b954866b86fa67e6a7369a81a3e913bcae698c7315ab8/quantifiedcode/python-anti-patterns/issues/130 |
| og:image:alt | I couldn't get python (neither 2.7, nor 3.5 or 3.7) to raise a Method could be a function error on your example (or reasonable variations, like actually calling Rectangle.area). If this is obsolete... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hjp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| 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 | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width