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 2011年12月14日 08:13 by dwt, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg149428 - (view) | Author: Martin Häcker (dwt) | Date: 2011年12月14日 08:13 | |
When looking at a regex with dir() you don't get all available attributes - which is inconvenient as some very important ones (like .pattern) are not visible.
To demonstrate:
> import re
> re.compile('foo').pattern
'foo'
> dir(re.compile('foo'))
['__copy__',
'__deepcopy__',
'findall',
'finditer',
'match',
'scanner',
'search',
'split',
'sub',
'subn']
|
|||
| msg149432 - (view) | Author: Ezio Melotti (ezio.melotti) * (Python committer) | Date: 2011年12月14日 09:06 | |
This seems already fixed in 2.7.2+/3.2/3.3, what version have you tried? |
|||
| msg149440 - (view) | Author: Martin Häcker (dwt) | Date: 2011年12月14日 11:08 | |
Indeed, I'm on version % python --version Python 2.7.1 Sorry. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:24 | admin | set | github: 57808 |
| 2011年12月14日 13:22:31 | ezio.melotti | set | stage: resolved |
| 2011年12月14日 11:08:54 | dwt | set | status: pending -> closed messages: + msg149440 |
| 2011年12月14日 09:06:27 | ezio.melotti | set | status: open -> pending type: enhancement resolution: out of date messages: + msg149432 |
| 2011年12月14日 08:13:45 | dwt | create | |