René's URL Explorer Experiment


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

direct link

Domain: github.com

IPv4 address: 140.82.113.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:be430828-0f42-c672-dc31-1bb45eccbe6b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE1FA:2E2C5:4EE3B7:6B55D6:6B067D82
html-safe-noncee51141e37208143783972d2fabc5e3d3e947ec6d855b71c7493cc95f724c7bc2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUZBOjJFMkM1OjRFRTNCNzo2QjU1RDY6NkIwNjdEODIiLCJ2aXNpdG9yX2lkIjoiMjU3NjYwNzgyOTYzNzM2NTEyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac587e0280b098054599d817c49314f01c5d07d9e9d352a2179947839021f67e8b
hovercard-subject-tagpull_request:737060776
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/fluentpython/example-code/pull/54/files
twitter:imagehttps://avatars.githubusercontent.com/u/90860637?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/90860637?s=400&v=4
og:image:altHello, 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/fluentpython/example-code git https://github.com/fluentpython/example-code.git
octolytics-dimension-user_id9216311
octolytics-dimension-user_loginfluentpython
octolytics-dimension-repository_id25216588
octolytics-dimension-repository_nwofluentpython/example-code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id25216588
octolytics-dimension-repository_network_root_nwofluentpython/example-code
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6d3909414814ff86ce7da4c51a0f4918a13fb41b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/fluentpython/example-code/pull/54/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffluentpython%2Fexample-code%2Fpull%2F54%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffluentpython%2Fexample-code%2Fpull%2F54%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=fluentpython%2Fexample-code
Reloadhttps://github.com/fluentpython/example-code/pull/54/files
Reloadhttps://github.com/fluentpython/example-code/pull/54/files
Reloadhttps://github.com/fluentpython/example-code/pull/54/files
fluentpythonhttps://github.com/fluentpython
example-codehttps://github.com/fluentpython/example-code
Codehttps://github.com/fluentpython/example-code
Issues14 (14)https://github.com/fluentpython/example-code/issues
Pull requests10 (10)https://github.com/fluentpython/example-code/pulls
Actionshttps://github.com/fluentpython/example-code/actions
Projectshttps://github.com/fluentpython/example-code/projects
Wikihttps://github.com/fluentpython/example-code/wiki
Security and qualityhttps://github.com/fluentpython/example-code/security
Insightshttps://github.com/fluentpython/example-code/insights
WeiGodHorsehttps://github.com/WeiGodHorse
fluentpython:masterhttps://github.com/fluentpython/example-code/tree/master
WeiGodHorse:masterhttps://github.com/WeiGodHorse/example-code/tree/master
Conversation 1 https://github.com/fluentpython/example-code/pull/54
Commits 1 https://github.com/fluentpython/example-code/pull/54/commits
Checks 0 https://github.com/fluentpython/example-code/pull/54/checks
Files changed https://github.com/fluentpython/example-code/pull/54/files
Please reload this pagehttps://github.com/fluentpython/example-code/pull/54/files
Adding the ability to control length to __format__ https://github.com/fluentpython/example-code/pull/54/files#top
Show all changes 1 commit https://github.com/fluentpython/example-code/pull/54/files
7716ef0 Adding the ability to control length to __format__ WeiGodHorse Sep 19, 2021 https://github.com/fluentpython/example-code/pull/54/commits/7716ef0645a3c28fb725bb4be61cbc2c9c4c9469
Clear filters https://github.com/fluentpython/example-code/pull/54/files
Please reload this pagehttps://github.com/fluentpython/example-code/pull/54/files
Please reload this pagehttps://github.com/fluentpython/example-code/pull/54/files
10-seq-hacking/vector_v5.pyhttps://github.com/fluentpython/example-code/pull/54/files#diff-3dd8660595cb1aed914924e4a294f1bcd5d016ec3d35be61387082fb50477aff
View file https://github.com/fluentpython/example-code/blob/7716ef0645a3c28fb725bb4be61cbc2c9c4c9469/10-seq-hacking/vector_v5.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/fluentpython/example-code/pull/54/{{ revealButtonHref }}
https://github.com/fluentpython/example-code/pull/54/files#diff-3dd8660595cb1aed914924e4a294f1bcd5d016ec3d35be61387082fb50477aff
https://github.com/fluentpython/example-code/pull/54/files#diff-3dd8660595cb1aed914924e4a294f1bcd5d016ec3d35be61387082fb50477aff
https://github.com/fluentpython/example-code/pull/54/files#diff-3dd8660595cb1aed914924e4a294f1bcd5d016ec3d35be61387082fb50477aff
https://github.com/fluentpython/example-code/pull/54/files#diff-3dd8660595cb1aed914924e4a294f1bcd5d016ec3d35be61387082fb50477aff
https://github.com/fluentpython/example-code/pull/54/files#diff-3dd8660595cb1aed914924e4a294f1bcd5d016ec3d35be61387082fb50477aff
https://github.com/fluentpython/example-code/pull/54/files#diff-3dd8660595cb1aed914924e4a294f1bcd5d016ec3d35be61387082fb50477aff
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.