Functional and Pythonic stdlib

tags 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
  2. !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
  3. !_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
  4. !_TAG_PROGRAM_NAME Exuberant Ctags //
  5. !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
  6. !_TAG_PROGRAM_VERSION 5.9~svn20110310 //
  7. Mode funpy/io.py /^Mode = str$/;" v
  8. Path funpy/io.py /^Path = str$/;" v
  9. Pool funpy/pp.py /^Pool = Type[futures.Executor]$/;" v
  10. Predicate funpy/fn.py /^Predicate = Callable[..., bool]$/;" v
  11. ProcessPool funpy/pp.py /^ProcessPool = futures.ProcessPoolExecutor$/;" v
  12. ThreadPool funpy/pp.py /^ThreadPool = futures.ThreadPoolExecutor$/;" v
  13. X funpy/fn.py /^X = TypeVar("X")$/;" v
  14. Y funpy/fn.py /^Y = TypeVar("Y")$/;" v
  15. Z funpy/fn.py /^Z = TypeVar("Z")$/;" v
  16. abs funpy/op.py /^abs = operator.abs$/;" v
  17. accumulate funpy/it.py /^accumulate = itertools.accumulate$/;" v
  18. add funpy/op.py /^add = operator.add$/;" v
  19. addseq funpy/op.py /^addseq = operator.concat$/;" v
  20. all funpy/it.py /^all = builtins.all$/;" v
  21. and_ funpy/op.py /^and_ = operator.and_$/;" v
  22. any funpy/it.py /^any = builtins.any$/;" v
  23. author setup.py /^ author="Médéric Hurier",$/;" v
  24. author_email setup.py /^ author_email="dev@fmind.me",$/;" v
  25. butlast funpy/it.py /^def butlast(l: Iterable) -> Iterator:$/;" f
  26. c ipython.py /^c = get_config()$/;" v
  27. c shells/ipython.py /^c = get_config()$/;" v
  28. cat funpy/it.py /^cat = itertools.chain$/;" v
  29. ceil funpy/op.py /^ceil = math.ceil$/;" v
  30. chunk funpy/it.py /^def chunk(l: Iterable, n: int) -> Iterator[tuple]:$/;" f
  31. chunkall funpy/it.py /^def chunkall(l: Iterable, n: int) -> Iterator[tuple]:$/;" f
  32. chunkby funpy/it.py /^def chunkby(l: Iterable, p: fn.Predicate = bool) -> Iterator[tuple]:$/;" f
  33. classifiers setup.py /^ classifiers=[$/;" v
  34. combinations funpy/it.py /^combinations = itertools.combinations$/;" v
  35. combinatoric funpy/it.py /^combinatoric = itertools.combinations_with_replacement$/;" v
  36. combine funpy/io.py /^combine = fileinput.input$/;" v
  37. comp funpy/fn.py /^def comp(*fs: Callable) -> Callable:$/;" f
  38. comparator funpy/fn.py /^comparator = functools.cmp_to_key$/;" v
  39. complement funpy/fn.py /^def complement(p: Predicate) -> Predicate:$/;" f
  40. compose funpy/fn.py /^def compose(f: Callable[[Z], Y], g: Callable[..., Z]) -> Callable[..., Y]:$/;" f
  41. composed funpy/fn.py /^ def composed(*args, **kwargs):$/;" f function:compose
  42. compress funpy/it.py /^compress = itertools.compress$/;" v
  43. concat funpy/it.py /^concat = itertools.chain.from_iterable$/;" v
  44. conj funpy/it.py /^def conj(l: Iterable, x: Any) -> Iterator:$/;" f
  45. cons funpy/it.py /^def cons(l: Iterable, x: Any) -> Iterator:$/;" f
  46. constant funpy/fn.py /^ def constant(*_, **__):$/;" f function:constantly
  47. constantly funpy/fn.py /^def constantly(x: X) -> Callable[..., X]:$/;" f
  48. consume funpy/it.py /^def consume(l: Iterable) -> None:$/;" f
  49. contains funpy/it.py /^def contains(l: Iterable, x: Any) -> bool:$/;" f
  50. copies funpy/fn.py /^def copies(x: X, n: int = 2, deep: bool = False) -> Iterable[X]:$/;" f
  51. copy funpy/fn.py /^def copy(x: X, deep: bool = False) -> X:$/;" f
  52. cos funpy/op.py /^cos = math.cos$/;" v
  53. count funpy/it.py /^count = itertools.count$/;" v
  54. count funpy/op.py /^count = operator.countOf$/;" v
  55. cycle funpy/it.py /^cycle = itertools.cycle$/;" v
  56. dec funpy/op.py /^def dec(x: int) -> int:$/;" f
  57. dedent funpy/io.py /^dedent = textwrap.dedent$/;" v
  58. dedupe funpy/it.py /^def dedupe(l: Iterable, f: Callable = fn.ident) -> Iterator:$/;" f
  59. degrees funpy/op.py /^degrees = math.degrees$/;" v
  60. description setup.py /^ description="Functional and Pythonic stdlib.",$/;" v
  61. distinct funpy/it.py /^def distinct(l: Iterable, f: Callable = fn.ident) -> Iterator:$/;" f
  62. div funpy/op.py /^div = fractions.Fraction$/;" v
  63. drop funpy/it.py /^def drop(l: Iterable, n: int) -> Iterator:$/;" f
  64. droplast funpy/it.py /^def droplast(l: Iterable, n: int) -> Iterator:$/;" f
  65. dropnth funpy/it.py /^def dropnth(l: Iterable, n: int) -> Iterator:$/;" f
  66. dropwhile funpy/it.py /^dropwhile = itertools.dropwhile$/;" v
  67. e funpy/op.py /^e = math.e$/;" v
  68. enumerate funpy/it.py /^enumerate = builtins.enumerate$/;" v
  69. eq funpy/op.py /^eq = operator.eq$/;" v
  70. exp funpy/op.py /^exp = math.exp$/;" v
  71. extras_require setup.py /^ extras_require={$/;" v
  72. factorial funpy/op.py /^factorial = math.factorial$/;" v
  73. fill funpy/io.py /^fill = textwrap.fill$/;" v
  74. filter funpy/it.py /^filter = builtins.filter$/;" v
  75. find funpy/it.py /^def find(l: Iterable, p: fn.Predicate = bool, d: Any = None) -> Optional[Any]:$/;" f
  76. first funpy/it.py /^def first(l: Iterable, d: Any = None) -> Optional[Any]:$/;" f
  77. flip funpy/fn.py /^def flip(f: Callable[..., Y]) -> Callable[..., Y]:$/;" f
  78. floor funpy/op.py /^floor = math.floor$/;" v
  79. floordiv funpy/op.py /^floordiv = operator.floordiv$/;" v
  80. fluent funpy/fn.py /^def fluent(f: Callable[..., None]) -> Callable:$/;" f
  81. fnil funpy/fn.py /^def fnil(f: Callable[..., Y], x: X) -> Callable[..., Y]:$/;" f
  82. gcd funpy/op.py /^gcd = math.gcd$/;" v
  83. ge funpy/op.py /^ge = operator.ge$/;" v
  84. getat funpy/op.py /^getat = operator.attrgetter$/;" v
  85. getit funpy/op.py /^getit = operator.itemgetter$/;" v
  86. getme funpy/op.py /^getme = operator.methodcaller$/;" v
  87. glob funpy/io.py /^glob = Glob.glob$/;" v
  88. groupby funpy/it.py /^groupby = itertools.groupby$/;" v
  89. grouped funpy/it.py /^def grouped($/;" f
  90. groupkv funpy/it.py /^def groupkv(l: Iterable):$/;" f
  91. gt funpy/op.py /^gt = operator.gt$/;" v
  92. hasat funpy/op.py /^hasat = builtins.hasattr$/;" v
  93. hypot funpy/op.py /^hypot = math.hypot$/;" v
  94. ident funpy/fn.py /^def ident(x: X) -> X:$/;" f
  95. iglob funpy/io.py /^iglob = Glob.iglob$/;" v
  96. inc funpy/op.py /^def inc(x: int) -> int:$/;" f
  97. indent funpy/io.py /^indent = textwrap.indent$/;" v
  98. index funpy/op.py /^index = operator.indexOf$/;" v
  99. inf funpy/op.py /^inf = math.inf$/;" v
  100. info setup.py /^info = dict($/;" v
  101. install_requires setup.py /^ install_requires=requires(),$/;" v
  102. interact funpy/io.py /^def interact($/;" f
  103. interchange funpy/it.py /^def interchange(*ls: Iterable, x: Any = None) -> Iterator:$/;" f
  104. interleave funpy/it.py /^def interleave(*ls: Iterable) -> Iterator:$/;" f
  105. interpose funpy/it.py /^def interpose(l: Iterable, x: Any) -> Iterator:$/;" f
  106. inv funpy/op.py /^inv = operator.inv$/;" v
  107. is_ funpy/op.py /^is_ = operator.is_$/;" v
  108. isa funpy/op.py /^isa = builtins.isinstance$/;" v
  109. isclose funpy/op.py /^isclose = math.isclose$/;" v
  110. isempty funpy/op.py /^def isempty(l: Sized) -> bool:$/;" f
  111. iseven funpy/op.py /^def iseven(x: int) -> bool:$/;" f
  112. isfalse funpy/op.py /^def isfalse(x: Any) -> bool:$/;" f
  113. isfinite funpy/op.py /^isfinite = math.isfinite$/;" v
  114. isin funpy/op.py /^isin = operator.contains$/;" v
  115. isinf funpy/op.py /^isinf = math.isinf$/;" v
  116. isnan funpy/op.py /^isnan = math.isnan$/;" v
  117. isneg funpy/op.py /^def isneg(x: int) -> bool:$/;" f
  118. isnone funpy/op.py /^def isnone(x: Any) -> bool:$/;" f
  119. isnot funpy/op.py /^isnot = operator.is_not$/;" v
  120. isodd funpy/op.py /^def isodd(x: int) -> bool:$/;" f
  121. ispos funpy/op.py /^def ispos(x: int) -> bool:$/;" f
  122. issome funpy/op.py /^def issome(x: Any) -> bool:$/;" f
  123. issub funpy/op.py /^issub = builtins.issubclass$/;" v
  124. istrue funpy/op.py /^istrue = operator.truth$/;" v
  125. iszero funpy/op.py /^def iszero(x: int) -> bool:$/;" f
  126. iterate funpy/it.py /^def iterate(f: Callable, x: Any) -> Iterator:$/;" f
  127. iterwith funpy/it.py /^def iterwith(x: Any) -> Iterator:$/;" f
  128. juxt funpy/fn.py /^def juxt(*fs: Callable) -> Callable[..., tuple]:$/;" f
  129. juxted funpy/fn.py /^ def juxted(*args, **kwargs):$/;" f function:juxt
  130. keywords setup.py /^ keywords="operator function iterator parallel io",$/;" v
  131. last funpy/it.py /^def last(it: Iterable, d: Any = None) -> Optional[Any]:$/;" f
  132. le funpy/op.py /^le = operator.le$/;" v
  133. len funpy/it.py /^def len(l: Iterable) -> int:$/;" f
  134. license setup.py /^ license="AGPL-3.0",$/;" v
  135. lines funpy/io.py /^def lines(s: str) -> Iterator[str]:$/;" f
  136. locate funpy/it.py /^def locate(l: Iterable, p: fn.Predicate = bool):$/;" f
  137. log funpy/op.py /^log = math.log$/;" v
  138. log10 funpy/op.py /^log10 = math.log10$/;" v
  139. log2 funpy/op.py /^log2 = math.log2$/;" v
  140. long_description setup.py /^ long_description=open("README.md", "r").read(),$/;" v
  141. long_description_content_type setup.py /^ long_description_content_type="text\/markdown",$/;" v
  142. lshift funpy/op.py /^lshift = operator.lshift$/;" v
  143. lt funpy/op.py /^lt = operator.lt$/;" v
  144. map funpy/it.py /^map = builtins.map$/;" v
  145. mapcat funpy/it.py /^def mapcat(f: Callable, *ls: Iterable) -> Iterator:$/;" f
  146. mapevery funpy/it.py /^def mapevery(f: Callable, n: int, *ls: Iterable) -> Iterator:$/;" f
  147. mapreduce funpy/pp.py /^def mapreduce($/;" f
  148. matmul funpy/op.py /^matmul = operator.matmul$/;" v
  149. max funpy/it.py /^max = builtins.max$/;" v
  150. means funpy/op.py /^means = statistics.mean$/;" v
  151. median funpy/op.py /^median = statistics.median$/;" v
  152. member funpy/it.py /^def member(l: Iterable, s: Container) -> Iterator:$/;" f
  153. memoize funpy/fn.py /^memoize = functools.lru_cache$/;" v
  154. min funpy/it.py /^min = builtins.min$/;" v
  155. mod funpy/op.py /^mod = operator.mod$/;" v
  156. mode funpy/op.py /^mode = statistics.mode$/;" v
  157. mul funpy/op.py /^mul = operator.mul$/;" v
  158. mult funpy/it.py /^def mult(l: Iterable, start: Any = 1) -> Any:$/;" f
  159. name setup.py /^ name="funpy",$/;" v
  160. nan funpy/op.py /^nan = math.nan$/;" v
  161. ne funpy/op.py /^ne = operator.ne$/;" v
  162. neg funpy/op.py /^neg = operator.neg$/;" v
  163. not_ funpy/op.py /^not_ = operator.not_$/;" v
  164. notempty funpy/op.py /^def notempty(l: Sized) -> bool:$/;" f
  165. notin funpy/op.py /^def notin(l: Container, x: Any) -> bool:$/;" f
  166. nth funpy/it.py /^def nth(l: Iterable, n: int, d: Any = None) -> Optional[Any]:$/;" f
  167. or_ funpy/op.py /^or_ = operator.or_$/;" v
  168. packages setup.py /^ packages=["funpy"],$/;" v
  169. pad funpy/it.py /^def pad(l: Iterable, d: Any = None) -> Iterator:$/;" f
  170. partial funpy/fn.py /^partial = functools.partial$/;" v
  171. partialfp funpy/fn.py /^def partialfp(f: Callable[..., Y], *args, **kwargs) -> Callable[..., Y]:$/;" f
  172. partialme funpy/fn.py /^partialme = functools.partialmethod$/;" v
  173. permutated funpy/it.py /^permutated = itertools.permutations$/;" v
  174. permutations funpy/it.py /^permutations = itertools.permutations$/;" v
  175. pi funpy/op.py /^pi = math.pi$/;" v
  176. pmap funpy/pp.py /^def pmap($/;" f
  177. pos funpy/op.py /^pos = operator.pos$/;" v
  178. post funpy/fn.py /^def post($/;" f
  179. pow funpy/op.py /^pow = builtins.pow$/;" v
  180. pprint funpy/io.py /^pprint = Print.pprint$/;" v
  181. pre funpy/fn.py /^def pre($/;" f
  182. product funpy/it.py /^product = itertools.product$/;" v
  183. pure funpy/fn.py /^def pure(f: Callable[..., None], deep: bool = False) -> Callable:$/;" f
  184. quantify funpy/it.py /^def quantify(l: Iterable, p: fn.Predicate = bool) -> int:$/;" f
  185. radians funpy/op.py /^radians = math.radians$/;" v
  186. range funpy/it.py /^range = builtins.range$/;" v
  187. reduce funpy/it.py /^reduce = functools.reduce$/;" v
  188. remove funpy/it.py /^remove = itertools.filterfalse$/;" v
  189. repeat funpy/it.py /^repeat = itertools.repeat$/;" v
  190. replace funpy/it.py /^def replace(l: Iterable, m: dict, d: Any = None) -> Iterator:$/;" f
  191. requires setup.py /^def requires(requirements="requirements.txt"):$/;" f
  192. rest funpy/it.py /^def rest(l: Iterable) -> Iterator:$/;" f
  193. reversed funpy/it.py /^reversed = builtins.reversed$/;" v
  194. root setup.py /^root = os.path.abspath(os.path.dirname(__file__))$/;" v
  195. round funpy/op.py /^round = builtins.round$/;" v
  196. rshift funpy/op.py /^rshift = operator.rshift$/;" v
  197. safe funpy/fn.py /^def safe(f: Callable[..., Y], x: Z = None) -> Callable[..., Union[Y, Z]]:$/;" f
  198. second funpy/it.py /^def second(l: Iterable, d: Any = None) -> Optional[Any]:$/;" f
  199. shorten funpy/io.py /^shorten = textwrap.shorten$/;" v
  200. sin funpy/op.py /^sin = math.sin$/;" v
  201. singledispatch funpy/fn.py /^singledispatch = functools.singledispatch$/;" v
  202. slice funpy/it.py /^slice = itertools.islice$/;" v
  203. slide funpy/it.py /^def slide(l: Iterable, n: int) -> Iterator[tuple]:$/;" f
  204. slurp funpy/io.py /^def slurp(path: Path, mode: Mode = "r") -> AnyStr:$/;" f
  205. sorted funpy/it.py /^sorted = builtins.sorted$/;" v
  206. spit funpy/io.py /^def spit(path: Path, s: AnyStr, mode: Mode = "w") -> None:$/;" f
  207. split funpy/it.py /^def split(l: Iterable, n: int) -> Tuple[Iterator, Iterator]:$/;" f
  208. splitby funpy/it.py /^def splitby(l: Iterable, p: fn.Predicate = bool) -> Tuple[Iterator, Iterator]:$/;" f
  209. sqrt funpy/op.py /^sqrt = math.sqrt$/;" v
  210. starmap funpy/it.py /^starmap = itertools.starmap$/;" v
  211. stdev funpy/op.py /^stdev = statistics.stdev$/;" v
  212. sub funpy/it.py /^def sub(l: Iterable, start: int, stop: int) -> Iterator:$/;" f
  213. sub funpy/op.py /^sub = operator.sub$/;" v
  214. sum funpy/it.py /^sum = builtins.sum$/;" v
  215. tabulate funpy/it.py /^def tabulate(f: Callable, start: int = 0, step: int = 1) -> Iterator:$/;" f
  216. take funpy/it.py /^def take(l: Iterable, n: int) -> Iterator:$/;" f
  217. takelast funpy/it.py /^def takelast(l: Iterable, n: int) -> Iterator:$/;" f
  218. takenth funpy/it.py /^def takenth(l: Iterable, n: int, start: int = 0, end: int = None) -> Iterator:$/;" f
  219. takewhile funpy/it.py /^takewhile = itertools.takewhile$/;" v
  220. tan funpy/op.py /^tan = math.tan$/;" v
  221. tau funpy/op.py /^tau = math.tau$/;" v
  222. tee funpy/it.py /^tee = itertools.tee$/;" v
  223. test_error tests/test_example.py /^def test_error():$/;" f
  224. test_success tests/test_example.py /^def test_success():$/;" f
  225. third funpy/it.py /^def third(l: Iterable, d: Any = None) -> Optional[Any]:$/;" f
  226. totalordering funpy/fn.py /^totalordering = functools.total_ordering$/;" v
  227. transpose funpy/it.py /^transpose = builtins.zip$/;" v
  228. truediv funpy/op.py /^truediv = operator.truediv$/;" v
  229. unbl funpy/io.py /^def unbl(l: Iterable[str]) -> Iterator[str]:$/;" f
  230. unlines funpy/io.py /^def unlines(l: Iterable[str]) -> str:$/;" f
  231. unnl funpy/io.py /^def unnl(l: Iterable[str]) -> Iterator[str]:$/;" f
  232. unwords funpy/io.py /^def unwords(l: Iterable[str]) -> str:$/;" f
  233. url setup.py /^ url="https:\/\/git.fmind.me\/fmind\/funpy",$/;" v
  234. variance funpy/op.py /^variance = statistics.variance$/;" v
  235. version setup.py /^ version="0.5.5",$/;" v
  236. window funpy/it.py /^ def window(x):$/;" f function:slide
  237. words funpy/io.py /^def words(s: str) -> Iterator[str]:$/;" f
  238. wrap funpy/io.py /^wrap = textwrap.wrap$/;" v
  239. wrapped funpy/fn.py /^ def wrapped(*args, **kwargs):$/;" f function:complement
  240. wrapped funpy/fn.py /^ def wrapped(*args, **kwargs):$/;" f function:flip
  241. wrapped funpy/fn.py /^ def wrapped(*args, **kwargs):$/;" f function:post
  242. wrapped funpy/fn.py /^ def wrapped(*args, **kwargs):$/;" f function:pre
  243. wrapped funpy/fn.py /^ def wrapped(*args, **kwargs):$/;" f function:safe
  244. wrapped funpy/fn.py /^ def wrapped(x, *args, **kwargs):$/;" f function:fluent
  245. wrapped funpy/fn.py /^ def wrapped(x, *args, **kwargs):$/;" f function:pure
  246. wrapped funpy/fn.py /^ def wrapped(z: X, *args, **kwargs):$/;" f function:fnil
  247. wraps funpy/fn.py /^wraps = functools.wraps$/;" v
  248. xor funpy/op.py /^xor = operator.xor$/;" v
  249. zip funpy/it.py /^zip = builtins.zip$/;" v
  250. ziplong funpy/it.py /^ziplong = itertools.zip_longest$/;" v