Skip to content

Commit

Permalink
Documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EntilZha committed Jun 6, 2016
1 parent c19c4a2 commit 25f2cc9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

## Features
`PyFunctional` makes creating data pipelines easy by using chained functional operators. Here are a
few examples of what `PyFunctional` and its builtin tools can do:
few examples of what it can do:

* Chained operators: `seq(1, 2, 3).map(lambda x: x * 2).reduce(lambda x, y: x + y)`
* Expressive and feature complete API
Expand Down
4 changes: 4 additions & 0 deletions functional/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,11 @@ def cartesian(self, *iterables, **kwargs):
The keyword argument `repeat` is read from kwargs to pass to itertools.cartesian.
>>> seq.range(2).cartesian(range(2))
[(0, 0), (0, 1), (1, 0), (1, 1)]
:param iterables: elements for cartesian product
:param kwargs: the variable `repeat` is read from kwargs
:return: cartesian product
"""
return self._transform(transformations.cartesian_t(iterables, kwargs.get('repeat', 1)))
Expand Down
2 changes: 1 addition & 1 deletion functional/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def open(self, path, delimiter=None, mode='r', buffering=-1, encoding=None, erro
allowed.
>>> seq.open('examples/gear_list.txt').take(1)
[u'tent\n']
[u'tent\\n']
:param path: path to file
:param delimiter: delimiter to split joined text on. if None, defaults to per line split
Expand Down

0 comments on commit 25f2cc9

Please sign in to comment.