From 2fc3cffc921077856a98e7eb0f625b7ef353b139 2012-05-09 22:24:42 From: Bradley M. Froehle Date: 2012-05-09 22:24:42 Subject: [PATCH] Improve CRegExp docstring. --- diff --git a/IPython/utils/traitlets.py b/IPython/utils/traitlets.py index 3c5939a..7065f53 100644 --- a/IPython/utils/traitlets.py +++ b/IPython/utils/traitlets.py @@ -1413,7 +1413,10 @@ class TCPAddress(TraitType): self.error(obj, value) class CRegExp(TraitType): - """A trait for a compiled regular expression.""" + """A casting compiled regular expression trait. + + Accepts both strings and compiled regular expressions. The resulting + attribute will be a compiled regular expression.""" info_text = 'a regular expression'