Title: Adding the ability to control length to __format__ by WeiGodHorse · Pull Request #54 · fluentpython/example-code · GitHub
Open Graph Title: Adding the ability to control length to __format__ by WeiGodHorse · Pull Request #54 · fluentpython/example-code
X Title: Adding the ability to control length to __format__ by WeiGodHorse · Pull Request #54 · fluentpython/example-code
Description: Hello, I am a beginner of Python and github. I have just learned chapter 10 of Fluent Python. I noticed that in the last discussion section in chapter 10 you offered a little exercise in adding control over the length of output to the format method. I've just finished this exercise (although I feel like what I added looks jumbled) and added a few simple tests to the doctest (which may not be enough). I hope you can check whether the functions I added are correct. Meanwhile, I hope to take this opportunity to improve my python programming ability and practice the use of git and other functions. Thank you!
Open Graph Description: Hello, I am a beginner of Python and github. I have just learned chapter 10 of Fluent Python. I noticed that in the last discussion section in chapter 10 you offered a little exercise in adding con...
X Description: Hello, I am a beginner of Python and github. I have just learned chapter 10 of Fluent Python. I noticed that in the last discussion section in chapter 10 you offered a little exercise in adding con...
Opengraph URL: https://github.com/fluentpython/example-code/pull/54
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:1b6149d2-457d-d55b-1741-1b4eca83ac13 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | BDA6:3FE5AD:143D58C:1B7169E:69700D5D |
| html-safe-nonce | a705ac304ae2c396f16a8cd640a482115807b995b227833ad9873e39fa9f71b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREE2OjNGRTVBRDoxNDNENThDOjFCNzE2OUU6Njk3MDBENUQiLCJ2aXNpdG9yX2lkIjoiNjMyNjIxOTI2MDkwNDM0NDkyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c641e02a2c2af8f4433996b90546b18cf00dda4c82c2a88e476c1279a1ae6197 |
| hovercard-subject-tag | pull_request:737060776 |
| 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/fluentpython/example-code/pull/54/checks |
| twitter:image | https://avatars.githubusercontent.com/u/90860637?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/90860637?s=400&v=4 |
| og:image:alt | Hello, I am a beginner of Python and github. I have just learned chapter 10 of Fluent Python. I noticed that in the last discussion section in chapter 10 you offered a little exercise in adding con... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6e3493a220046ce21668e7217b5ac322bdc4edd2736ee04362e5462968204bd5 |
| turbo-cache-control | no-preview |
| go-import | github.com/fluentpython/example-code git https://github.com/fluentpython/example-code.git |
| octolytics-dimension-user_id | 9216311 |
| octolytics-dimension-user_login | fluentpython |
| octolytics-dimension-repository_id | 25216588 |
| octolytics-dimension-repository_nwo | fluentpython/example-code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 25216588 |
| octolytics-dimension-repository_network_root_nwo | fluentpython/example-code |
| 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 | 9f627dfc82200bff3d2b49e4fb4b0a99594a9a9a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width