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年03月12日 05:22 by py.user, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| cpython-re-finditer-kwargs.patch | jafo, 2012年03月12日 23:46 | Add keyword arguments to finditer() | review | |
| Messages (4) | |||
|---|---|---|---|
| msg155441 - (view) | Author: py.user (py.user) * | Date: 2012年03月12日 05:22 | |
>>> import re
>>> p = re.compile(r'abc')
>>> res = p.search('abcdefabcdef', pos=1, endpos=10)
>>> res = p.match('abcdefabcdef', pos=1, endpos=10)
>>> res = p.findall('abcdefabcdef', pos=1, endpos=10)
>>> res = p.finditer('abcdefabcdef', pos=1, endpos=10)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: finditer() takes no keyword arguments
>>>
|
|||
| msg155512 - (view) | Author: Sean Reifschneider (jafo) * (Python committer) | Date: 2012年03月12日 22:58 | |
Working on this. |
|||
| msg155526 - (view) | Author: Sean Reifschneider (jafo) * (Python committer) | Date: 2012年03月12日 23:46 | |
Attached is a patch which implements this, including updated tests. I would appreciate a review of this patch. |
|||
| msg155536 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年03月13日 00:22 | |
New changeset 1adb114343f9 by Sean Reifschneider in branch 'default': closes #14259 re.finditer() now takes keyword arguments: pos, endpos. http://hg.python.org/cpython/rev/1adb114343f9 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:27 | admin | set | github: 58467 |
| 2012年03月13日 00:22:55 | python-dev | set | status: open -> closed nosy: + python-dev messages: + msg155536 resolution: fixed stage: patch review -> resolved |
| 2012年03月12日 23:46:43 | jafo | set | files:
+ cpython-re-finditer-kwargs.patch messages: + msg155526 assignee: ezio.melotti keywords: + patch, needs review stage: patch review |
| 2012年03月12日 23:17:04 | eric.araujo | set | nosy:
+ eric.araujo versions: + Python 3.3, - Python 3.2 |
| 2012年03月12日 22:58:49 | jafo | set | nosy:
+ jafo messages: + msg155512 |
| 2012年03月12日 05:26:56 | eric.smith | set | title: regex.finditer() doesn't accept keyword arguments -> re.finditer() doesn't accept keyword arguments |
| 2012年03月12日 05:22:56 | py.user | create | |