##// END OF EJS Templates
A new ipipe table has been added: ialias produces all entries from IPython's...
walter.doerwald -
Show More
@@ -138,7 +138,7 b' from IPython import ipapi'
138 __all__ = [
138 __all__ = [
139 "ifile", "ils", "iglob", "iwalk", "ipwdentry", "ipwd", "igrpentry", "igrp",
139 "ifile", "ils", "iglob", "iwalk", "ipwdentry", "ipwd", "igrpentry", "igrp",
140 "icsv", "ix", "ichain", "isort", "ifilter", "ieval", "ienum",
140 "icsv", "ix", "ichain", "isort", "ifilter", "ieval", "ienum",
141 "ienv", "ihist", "icap", "idump", "iless"
141 "ienv", "ihist", "ialias", "icap", "idump", "iless"
142 ]
142 ]
143
143
144
144
@@ -1598,6 +1598,34 b' class ihist(Table):'
1598 yield line.rstrip("\n")
1598 yield line.rstrip("\n")
1599
1599
1600
1600
1601 class Alias(object):
1602 """
1603 Entry in the alias table
1604 """
1605 def __init__(self, name, args, command):
1606 self.name = name
1607 self.args = args
1608 self.command = command
1609
1610 def __xattrs__(self, mode="default"):
1611 return ("name", "args", "command")
1612
1613
1614 class ialias(Table):
1615 """
1616 IPython alias list
1617
1618 Example::
1619
1620 >>> ialias
1621 """
1622 def __iter__(self):
1623 api = ipapi.get()
1624
1625 for (name, (args, command)) in api.IP.alias_table.iteritems():
1626 yield Alias(name, args, command)
1627
1628
1601 class icsv(Pipe):
1629 class icsv(Pipe):
1602 """
1630 """
1603 This ``Pipe`` turns the input (with must be a pipe outputting lines
1631 This ``Pipe`` turns the input (with must be a pipe outputting lines
@@ -1,3 +1,8 b''
1 2008-02-02 Walter Doerwald <walter@livinglogic.de>
2
3 * ipipe.py: A new ipipe table has been added: ialias produces all
4 entries from IPython's alias table.
5
1 2008-02-01 Fernando Perez <Fernando.Perez@colorado.edu>
6 2008-02-01 Fernando Perez <Fernando.Perez@colorado.edu>
2
7
3 * IPython/Shell.py (MTInteractiveShell.runcode): Improve handling
8 * IPython/Shell.py (MTInteractiveShell.runcode): Improve handling
General Comments 0
You need to be logged in to leave comments. Login now