Title: Updated style with more explicit examples of truth checking by leetrout · Pull Request #105 · realpython/python-guide · GitHub
Open Graph Title: Updated style with more explicit examples of truth checking by leetrout · Pull Request #105 · realpython/python-guide
X Title: Updated style with more explicit examples of truth checking by leetrout · Pull Request #105 · realpython/python-guide
Description: I feel like the existing example if not attr: print 'attr is None!' is very misleading. Since this is such an opinionated style guide it seems like a great opportunity to link out to the Python documentation on falsey values and give an example of explicitly checking for a value to be None with the is keyword.
Open Graph Description: I feel like the existing example if not attr: print 'attr is None!' is very misleading. Since this is such an opinionated style guide it seems like a great opportunity to link out to the Py...
X Description: I feel like the existing example if not attr: print 'attr is None!' is very misleading. Since this is such an opinionated style guide it seems like a great opportunity to link out t...
Opengraph URL: https://github.com/realpython/python-guide/pull/105
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ded70983-eebd-ab46-fd0e-9524aac13882 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B030:2692AC:7C478:ADE6C:696FDCC3 |
| html-safe-nonce | 6a8c6a564d901f505e6c3a099332bbac79d1bc59b7e82af216dcc51ac69b54e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDMwOjI2OTJBQzo3QzQ3ODpBREU2Qzo2OTZGRENDMyIsInZpc2l0b3JfaWQiOiI3MjkxMTU3MzU2OTk5NTk3MjUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a3e6a2cf7336ffc8106eea7fb527948c5e1c67e61df907bb0c1b457bda719eba |
| hovercard-subject-tag | pull_request:1043562 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/realpython/python-guide/pull/105/files |
| twitter:image | https://avatars.githubusercontent.com/u/524648?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/524648?s=400&v=4 |
| og:image:alt | I feel like the existing example if not attr: print 'attr is None!' is very misleading. Since this is such an opinionated style guide it seems like a great opportunity to link out to the Py... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a5d30ba41f7d9acded2fd135aa830ac2f5c7e52dca0e776e658d37eaf9dfb033 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/realpython/python-guide git https://github.com/realpython/python-guide.git |
| octolytics-dimension-user_id | 5448020 |
| octolytics-dimension-user_login | realpython |
| octolytics-dimension-repository_id | 1481305 |
| octolytics-dimension-repository_nwo | realpython/python-guide |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1481305 |
| octolytics-dimension-repository_network_root_nwo | realpython/python-guide |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2f945b7bb88421600e89dfefbb1548ad0a44781a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width