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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:e46878a4-f1b3-95a7-d438-59c55436df34 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | A640:100738:7857D2:A407C2:696FF47B |
| html-safe-nonce | 5a03a5f14f19ce4745e50890100c0ef972b7a77421f44329032b0b754ca9e809 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjQwOjEwMDczODo3ODU3RDI6QTQwN0MyOjY5NkZGNDdCIiwidmlzaXRvcl9pZCI6IjMxMzY5NDI0Nzg2NjEyNTIyMTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8f047ac4ddf39de856e3a9f8fc5763762aaa8c30ba1243856428b4ab5b188850 |
| hovercard-subject-tag | pull_request:1043562 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | 61db99bbb6a7517db80567029869280bdefa9fa883092d6c2aa07ec4ea15f359 |
| turbo-cache-control | no-preview |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 91ceb31fcdebd150222e05551caf4a28f9532341 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width