This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年08月09日 20:01 by vstinner, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| optimize_format.patch | vstinner, 2012年08月09日 20:01 | review | ||
| Messages (3) | |||
|---|---|---|---|
| msg167827 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2012年08月09日 20:01 | |
Attached patch adds tests to check that str%args and str.format(args) take all optimization opportunities for simple format strings. It takes also the fast-path when Unicode string argument when width and/or precision is set. For example, "%.3s" % "abc" now returns "abc" unmodified (instead of creating a copy). The patch also takes the fast-path when formatting integers with str%args when the argument is not an int, but an object with __int__ method. |
|||
| msg171754 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年10月01日 22:43 | |
New changeset 559a430e563c by Victor Stinner in branch 'default': Issue #15609: Optimize str%args for integer argument http://hg.python.org/cpython/rev/559a430e563c |
|||
| msg171784 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年10月02日 10:54 | |
New changeset 5ddc7b3f2795 by Victor Stinner in branch 'default': Issue #15609: Fix refleak introduced by my last optimization http://hg.python.org/cpython/rev/5ddc7b3f2795 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:34 | admin | set | github: 59814 |
| 2012年10月02日 10:54:15 | python-dev | set | messages: + msg171784 |
| 2012年10月01日 22:44:22 | vstinner | set | status: open -> closed resolution: fixed |
| 2012年10月01日 22:43:09 | python-dev | set | nosy:
+ python-dev messages: + msg171754 |
| 2012年08月09日 20:01:46 | vstinner | create | |