summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorptmcg <ptmcg@9bf210a0-9d2d-494c-87cf-cfb32e7dff7b>2016-08-07 04:42:42 +0000
committerptmcg <ptmcg@9bf210a0-9d2d-494c-87cf-cfb32e7dff7b>2016-08-07 04:42:42 +0000
commit5665fc2582bf23e934d7228b514ec65a871278e2 (patch)
tree4c6badd4835136677567f467109a9d84845d0389
parent31ce7d348df910a64d18359b652a9b9fe298af23 (diff)
downloadpyparsing-5665fc2582bf23e934d7228b514ec65a871278e2.tar.gz
Reformat Word docstring to include links to helper strings
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@394 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
-rw-r--r--src/pyparsing.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/pyparsing.py b/src/pyparsing.py
index a97823a..d2b1172 100644
--- a/src/pyparsing.py
+++ b/src/pyparsing.py
@@ -58,7 +58,7 @@ The pyparsing module handles some of the problems that are typically vexing when
"""
__version__ = "2.1.6"
-__versionTime__ = "06 Aug 2016 22:22 UTC"
+__versionTime__ = "07 Aug 2016 04:42 UTC"
__author__ = "Paul McGuire <ptmcg@users.sourceforge.net>"
import string
@@ -2448,15 +2448,16 @@ class Word(Token):
L{srange} is useful for defining custom character set strings for defining
C{Word} expressions, using range notation from regular expression character sets.
+ pyparsing includes helper strings for building Words:
+ - L{alphas}
+ - L{nums}
+ - L{alphanums}
+ - L{hexnums}
+ - L{alphas8bit} (alphabetic characters in ASCII range 128-255 - accented, tilded, umlauted, etc.)
+ - L{punc8bit} (non-alphabetic characters in ASCII range 128-255 - currency, symbols, superscripts, diacriticals, etc.)
+ - L{printables} (any non-whitespace character)
+
Example::
- # pyparsing includes helper strings for building Words:
- # alphas
- # nums
- # alphanums
- # hexnums
- # alphas8bit (alphabetic characters in ASCII range 128-255 - accented, tilded, umlauted, etc.)
- # printables (any non-whitespace character)
-
# a word composed of digits
integer = Word(nums) # equivalent to Word("0123456789") or Word(srange("0-9"))