[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

Mark Summerfield report at bugs.python.org
Wed Jul 7 11:13:41 CEST 2010


Mark Summerfield <mark at qtrac.eu> added the comment:

If you do:

>>> import regex as re
>>> dir(re)

you get over 160 items, many of which begin with an underscore and so are private. Couldn't __dir__ be reimplemented to eliminate them. (I know that the current re module's dir() also returns private items, but I guess this is a legacy of not having the __dir__ special method?)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2636>
_______________________________________


More information about the Python-bugs-list mailing list