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月02日 09:06 by ddvoinikov, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| fastsearch.patch | vstinner, 2012年08月02日 12:49 | review | ||
| Messages (5) | |||
|---|---|---|---|
| msg167199 - (view) | Author: Dmitry Dvoinikov (ddvoinikov) | Date: 2012年08月02日 09:06 | |
For the following script ------------------------------------ import xmlrpc.client; from xmlrpc.client import escape text = "...\u043c......<" print(escape(text)) ------------------------------------ Python 3.3.0b1 produces ...ь..<...< whereas Python 3.2 ...ь......< |
|||
| msg167210 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2012年08月02日 12:49 | |
Hum, it's a regression introduced by the super-optimized fastsearch. It is just a typo: _s => s. I renamed _s to ptr to avoid future confusion ;-) -- For your information, str.find(), str.rfind(), str.index(), str.rindex() and str.replace() are now using memchr() and memrchr() to find a substring, even if the substring contains characters outside the ASCII (U+0000-U+007F) and latin1 ranges (U+0000-U+00FF). memchr() and memrchr() are much faster than a dummy C loop, even if there are false positive. |
|||
| msg167211 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2012年08月02日 13:00 | |
Ow, nice find. |
|||
| msg167254 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年08月02日 21:09 | |
New changeset 0e95b61af859 by Victor Stinner in branch 'default': Close #15534: Fix a typo in the fast search function of the string library (_s => s) http://hg.python.org/cpython/rev/0e95b61af859 |
|||
| msg167255 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2012年08月02日 21:10 | |
The issue should be fixed, thanks for the report! |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:33 | admin | set | nosy:
+ georg.brandl github: 59739 |
| 2012年08月02日 21:10:37 | vstinner | set | messages: + msg167255 |
| 2012年08月02日 21:09:18 | python-dev | set | status: open -> closed nosy: + python-dev messages: + msg167254 resolution: fixed stage: resolved |
| 2012年08月02日 13:00:34 | pitrou | set | messages: + msg167211 |
| 2012年08月02日 12:50:07 | vstinner | set | priority: normal -> release blocker |
| 2012年08月02日 12:49:24 | vstinner | set | files:
+ fastsearch.patch nosy: + loewis, pitrou, flox, vstinner messages: + msg167210 keywords: + patch |
| 2012年08月02日 09:06:37 | ddvoinikov | create | |