[docs] suggestion about Python 3.2.3 online documentation about regular expressions

Winston Chuen-Shih Yang winston at cs.wisc.edu
Thu Sep 27 18:43:55 CEST 2012


See the following page:
 http://docs.python.org/py3k/library/re.html
 6.2.3. Regular Expression Objects
 regex.search
 regex.match
 regex.split
 :
 :
Suggestion: change "regex" to "pattern".
Reason 1: The object is a "Pattern" (_sre.SRE_Pattern).
Reason 2: People might confuse "regex" with "re", which is the name of 
the module.
Reason 3: People might think that there is a "regex" class somewhere. 
(Is there?)
Winston


More information about the docs mailing list

AltStyle によって変換されたページ (->オリジナル) /