2014-10-30 18:10:34 +00:00
|
|
|
#How to use Glue
|
2014-10-30 17:44:00 +00:00
|
|
|
|
2014-10-30 18:22:40 +00:00
|
|
|
```
|
|
|
|
>>> from glue import glue
|
2014-10-30 17:44:45 +00:00
|
|
|
>>> print glue("any","number","of","things","together")
|
|
|
|
any number of things together
|
2014-10-30 17:49:31 +00:00
|
|
|
|
|
|
|
>>> print glue("any","number","of","things","together",where="anywhere")
|
|
|
|
any number of things together anywhere
|
2014-10-30 18:30:22 +00:00
|
|
|
|
2014-10-30 18:32:39 +00:00
|
|
|
>>> print glue("any","number","of","things","together",["even",["nested","lists"]])
|
2014-10-30 18:30:22 +00:00
|
|
|
any number of things together even nested lists
|
2014-10-30 18:32:39 +00:00
|
|
|
|
|
|
|
>>> print glue("any","number","of","things","together", ["even",["nested","lists"]], "and numbers", 12345)
|
|
|
|
any number of things together even nested lists and numbers 12345
|
2014-10-30 17:44:00 +00:00
|
|
|
```
|
2014-10-30 17:50:34 +00:00
|
|
|
|
2014-10-30 18:23:01 +00:00
|
|
|
# Coverage
|
2014-10-30 18:22:40 +00:00
|
|
|
```
|
|
|
|
Name Stmts Miss Cover Missing
|
2014-10-30 18:22:22 +00:00
|
|
|
-------------------------------------
|
2014-10-30 18:50:07 +00:00
|
|
|
glue 13 0 100%
|
2014-10-30 18:30:22 +00:00
|
|
|
tests 24 0 100%
|
2014-10-30 18:22:22 +00:00
|
|
|
-------------------------------------
|
2014-10-30 18:50:07 +00:00
|
|
|
TOTAL 37 0 100%
|
2014-10-30 18:22:22 +00:00
|
|
|
```
|
2014-10-30 18:38:50 +00:00
|
|
|
|
|
|
|
#Protip
|
2014-10-30 18:50:07 +00:00
|
|
|
You should probably just use [str.join](https://docs.python.org/2/library/stdtypes.html#str.join) as this is satire.
|
2015-07-16 16:57:12 +00:00
|
|
|
|
|
|
|
Tyrel Souza 2015
|