GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-106318: Add string method examples by blaisep · Pull Request #119445 · python/cpython Conversation
|
| >>> 'Python'.rjust(10, '.') | ||
| '....Python' | ||
|
|
||
| The original string is returned if *width* is less than or equal to ``len(s)``. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think this might fix the Sphinx error:
| The original string is returned if *width* is less than or equal to ``len(s)``. | |
| The original string is returned if *width* is less than or equal to ``len(s)``. |
For some reason, reST is usually indented in multiples of 3 spaces.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'll update this with the suggestions from https://www.youtube.com/live/-0SXSTkJsfg?si=yRQG9Pm0ochACy_x&t=3883 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
From office hours at https://www.youtube.com/live/-0SXSTkJsfg?si=QKhDzyWPVvWRLcDO&t=4267 Co-authored-by: Lisa Crispin <[email protected]>
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I notice some possible errors, @blaisep
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes, I am marking this draft and going over it much more carefully. BTW, @adorilson , I will be in UTC-4 for the rest of the week and happy to pair up on this if you like. I'll add you to my fork. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Fix doctest formatting errors
| ... | ||
| >>> '{name} was born in {country}'.format_map(Default(name='Guido')) | ||
| >>> '{name} was born in {country}'.format_map(Default(name='Guido', country='Netherlands')) | ||
| 'Guido was born in country' |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is supposed to be:
'Guido was born in Netherlands'
However, I think the previous example is more valuable. It shows the two Default class behaviour.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It could be closed in favor of all other PR linked to #106318 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.