-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-28974: object.__format__(x, '')
is now equivalent to str(x)
#506
bpo-28974: object.__format__(x, '')
is now equivalent to str(x)
#506
Conversation
rather of `format(str(self), '')`.
@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @benjaminp, @Haypo, @tim-one, @birkenfeld and @larryhastings to be potential reviewers. |
Doc/reference/datamodel.rst
Outdated
@@ -1282,6 +1282,9 @@ Basic customization | |||
The __format__ method of ``object`` itself raises a :exc:`TypeError` | |||
if passed any non-empty string. | |||
|
|||
.. versionchanged:: 3.7 | |||
``object.__format__(x, '')`` is now equivalent to ``str(x)`` rather of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rather than (not rather of)
Doc/whatsnew/3.7.rst
Outdated
@@ -87,6 +87,10 @@ Other Language Changes | |||
``from ... import ...`` fails. | |||
(Contributed by Matthias Bussonnier in :issue:`29546`.) | |||
|
|||
* ``object.__format__(x, '')`` is now equivalent to ``str(x)`` rather of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
“Rather of” also needs fixing here and in NEWS :)
* Bump celery from 5.1.2 to 5.2.3 Bumps [celery](https://github.com/celery/celery) from 5.1.2 to 5.2.3. - [Release notes](https://github.com/celery/celery/releases) - [Changelog](https://github.com/celery/celery/blob/master/Changelog.rst) - [Commits](celery/celery@v5.1.2...v5.2.3) --- updated-dependencies: - dependency-name: celery dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update requirements.txt Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
rather of
format(str(self), '')
.