Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ianj-als/pypeline.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Johnson <ian.johnson@appliedlanguage.com>2012-10-15 17:14:04 +0400
committerIan Johnson <ian.johnson@appliedlanguage.com>2012-10-15 17:14:04 +0400
commiteb5df15c90e0b25c366bd2fd106b831860b9c50c (patch)
treedc2a484f5dcb06108a5cd86cea9b876e15ac58b9
parent571986aae2f10a4275fe5ed70bf97f7e756b32e7 (diff)
Fixed some comments
-rw-r--r--src/pypeline/core/arrows/function_arrow.py2
-rw-r--r--src/pypeline/helpers/helpers.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pypeline/core/arrows/function_arrow.py b/src/pypeline/core/arrows/function_arrow.py
index 17e282d..15b880e 100644
--- a/src/pypeline/core/arrows/function_arrow.py
+++ b/src/pypeline/core/arrows/function_arrow.py
@@ -29,7 +29,7 @@ from pypeline.core.arrows.arrow import Arrow
# input (&&&) is the bitwise and operator (&).
# WATCH OUT FOR OPERATOR PRECEDENCE!!!
#
-# ** is higher than >> is higher than than &
+# ** is higher than >> is higher than &
#
#
# See:
diff --git a/src/pypeline/helpers/helpers.py b/src/pypeline/helpers/helpers.py
index 1d059d1..9fe2ad6 100644
--- a/src/pypeline/helpers/helpers.py
+++ b/src/pypeline/helpers/helpers.py
@@ -111,7 +111,7 @@ def cons_function_component(function,
input_forming_function = None,
output_forming_function = None,
state_mutator = None):
- """\n\nAny other type of process will be assumed to be a callable object. Any input or output forming functions shall be called if provided. In this mode only the Kleisli arrow is returned."""
+ """Construct a pipeline component whose computation will be achieved using a function. Optional input and output forming functions pre- and post-process the input and output values to and from the function. An optional state mutator function can be provided to alter the state object passed into one of the pipeline run/evaluating/executing functions. A Kleisli arrow is returned."""
if type(function) is not types.FunctionType and \
type(function) is not types.MethodType:
raise ValueError("Must be a function or method")