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: redirect.github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8b97e2c4-fc39-2370-ce0f-18f647442541 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BC74:35E21B:6D45D:9326C:696E610B |
| html-safe-nonce | 13620fbbc2ac350e5553621b6e0b6e67aff5fef89742579354b1fa28b2bb89e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzc0OjM1RTIxQjo2RDQ1RDo5MzI2Qzo2OTZFNjEwQiIsInZpc2l0b3JfaWQiOiI0NzM0Nzk2NTc0OTYxNDIwOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5c468360d74fb9fcbc11dc54df7a278796b9d3192c018f0c9e9dd90450e4d9f3 |
| hovercard-subject-tag | pull_request:737060776 |
| 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/fluentpython/example-code/pull/54/files |
| 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 | f68b42d371252b0f236260d6234f4304a806fe5ac43d59faa21fb59d80df103b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6b74bc8dbcd10b5d69fd9ee9d2cfdc8b35e18a4c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width