Commit ffc216d6 authored by Fred Drake's avatar Fred Drake

Remove the "constructor" and "key-value" datatypes; these are no longer used

and are of questionable value.  "constructor" is also generally unsafe;
applications that need it can provide their own version of this if necessary.
parent 0c6b6a72
...@@ -708,15 +708,6 @@ The following data types are provided by the default type registry. ...@@ -708,15 +708,6 @@ The following data types are provided by the default type registry.
example, \samp{128MB}). Suffixes are case insensitive and may be example, \samp{128MB}). Suffixes are case insensitive and may be
\samp{KB}, \samp{MB}, or \samp{GB} \samp{KB}, \samp{MB}, or \samp{GB}
\term{\datatype{constructor}}
Parse value in the form \samp{fn('1', '2', kw1='a', kw2='b')} into a
3-tuple where the first element is the string \code{'fn'}, the 2nd
element is the list \code{['1', '2']}, and the 3rd element is the
dictionary \code{\{'kw1': 'a', 'kw2': 'b'\}}. This is useful when
representing a Python-style constructor as a value. Python syntax
rules are enforced, but only constants are allowed as positional and
keyword arguments. The 3-tuple is returned.
\term{\datatype{existing-dirpath}} \term{\datatype{existing-dirpath}}
Validates that the directory portion of a pathname exists. For Validates that the directory portion of a pathname exists. For
example, if the value provided is \file{/foo/bar}, \file{/foo} must example, if the value provided is \file{/foo/bar}, \file{/foo} must
...@@ -760,10 +751,6 @@ The following data types are provided by the default type registry. ...@@ -760,10 +751,6 @@ The following data types are provided by the default type registry.
is assumed to be a hostname. Hostnames are converted to lower is assumed to be a hostname. Hostnames are converted to lower
case. case.
\term{\datatype{key-value}}
Parse a value in the form \code{'A B'} into the list \code{['A',
'B']}. Returns the list.
\term{\datatype{locale}} \term{\datatype{locale}}
Any valid locale specifier accepted by the available Any valid locale specifier accepted by the available
\function{locale.setlocale()} function. Be aware that only the \function{locale.setlocale()} function. Be aware that only the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment