SYMBOL INDEX (681 symbols across 131 files) FILE: Solutions/1_33/pcost.py function portfolio_cost (line 4) | def portfolio_cost(filename): FILE: Solutions/2_11/report.py function read_portfolio (line 4) | def read_portfolio(filename): function read_prices (line 24) | def read_prices(filename): function make_report_data (line 39) | def make_report_data(portfolio, prices): FILE: Solutions/2_16/pcost.py function portfolio_cost (line 4) | def portfolio_cost(filename): FILE: Solutions/2_16/report.py function read_portfolio (line 4) | def read_portfolio(filename): function read_prices (line 25) | def read_prices(filename): function make_report_data (line 40) | def make_report_data(portfolio, prices): FILE: Solutions/2_7/report.py function read_portfolio (line 4) | def read_portfolio(filename): function read_prices (line 24) | def read_prices(filename): FILE: Solutions/3_10/fileparse.py function parse_csv (line 4) | def parse_csv(filename, select=None, types=None, has_headers=True, delim... FILE: Solutions/3_14/fileparse.py function parse_csv (line 4) | def parse_csv(filename, select=None, types=None, has_headers=True, delim... FILE: Solutions/3_14/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): FILE: Solutions/3_14/report.py function read_portfolio (line 5) | def read_portfolio(filename): function read_prices (line 12) | def read_prices(filename): function make_report_data (line 18) | def make_report_data(portfolio,prices): function print_report (line 31) | def print_report(reportdata): function portfolio_report (line 41) | def portfolio_report(portfoliofile,pricefile): FILE: Solutions/3_16/fileparse.py function parse_csv (line 4) | def parse_csv(filename, select=None, types=None, has_headers=True, delim... FILE: Solutions/3_16/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/3_16/report.py function read_portfolio (line 5) | def read_portfolio(filename): function read_prices (line 12) | def read_prices(filename): function make_report_data (line 18) | def make_report_data(portfolio,prices): function print_report (line 31) | def print_report(reportdata): function portfolio_report (line 41) | def portfolio_report(portfoliofile, pricefile): function main (line 55) | def main(args): FILE: Solutions/3_18/fileparse.py function parse_csv (line 4) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/3_18/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/3_18/report.py function read_portfolio (line 5) | def read_portfolio(filename): function read_prices (line 13) | def read_prices(filename): function make_report_data (line 20) | def make_report_data(portfolio,prices): function print_report (line 33) | def print_report(reportdata): function portfolio_report (line 43) | def portfolio_report(portfoliofile, pricefile): function main (line 57) | def main(args): FILE: Solutions/3_2/report.py function read_portfolio (line 4) | def read_portfolio(filename): function read_prices (line 25) | def read_prices(filename): function make_report_data (line 40) | def make_report_data(portfolio,prices): function print_report (line 53) | def print_report(reportdata): function portfolio_report (line 63) | def portfolio_report(portfoliofile,pricefile): FILE: Solutions/3_7/fileparse.py function parse_csv (line 4) | def parse_csv(filename, select=None, types=None, has_headers=True, delim... FILE: Solutions/4_10/fileparse.py function parse_csv (line 4) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/4_10/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/4_10/report.py function read_portfolio (line 7) | def read_portfolio(filename): function read_prices (line 20) | def read_prices(filename): function make_report_data (line 27) | def make_report_data(portfolio, prices): function print_report (line 40) | def print_report(reportdata, formatter): function portfolio_report (line 49) | def portfolio_report(portfoliofile, pricefile, fmt='txt'): function main (line 64) | def main(args): FILE: Solutions/4_10/stock.py class Stock (line 3) | class Stock: method __init__ (line 7) | def __init__(self, name, shares, price): method __repr__ (line 12) | def __repr__(self): method cost (line 15) | def cost(self): method sell (line 21) | def sell(self, nshares): FILE: Solutions/4_10/tableformat.py class TableFormatter (line 3) | class TableFormatter: method headings (line 4) | def headings(self, headers): method row (line 10) | def row(self, rowdata): class TextTableFormatter (line 16) | class TextTableFormatter(TableFormatter): method headings (line 20) | def headings(self, headers): method row (line 26) | def row(self, rowdata): class CSVTableFormatter (line 31) | class CSVTableFormatter(TableFormatter): method headings (line 35) | def headings(self, headers): method row (line 38) | def row(self, rowdata): class HTMLTableFormatter (line 41) | class HTMLTableFormatter(TableFormatter): method headings (line 45) | def headings(self, headers): method row (line 51) | def row(self, rowdata): class FormatError (line 57) | class FormatError(Exception): function create_formatter (line 60) | def create_formatter(name): function print_table (line 73) | def print_table(objects, columns, formatter): FILE: Solutions/4_4/fileparse.py function parse_csv (line 4) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/4_4/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/4_4/report.py function read_portfolio (line 6) | def read_portfolio(filename): function read_prices (line 19) | def read_prices(filename): function make_report_data (line 26) | def make_report_data(portfolio, prices): function print_report (line 39) | def print_report(reportdata): function portfolio_report (line 49) | def portfolio_report(portfoliofile, pricefile): function main (line 63) | def main(args): FILE: Solutions/4_4/stock.py class Stock (line 3) | class Stock: method __init__ (line 7) | def __init__(self, name, shares, price): method cost (line 12) | def cost(self): method sell (line 18) | def sell(self, nshares): FILE: Solutions/5_8/fileparse.py function parse_csv (line 4) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/5_8/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/5_8/report.py function read_portfolio (line 7) | def read_portfolio(filename): function read_prices (line 20) | def read_prices(filename): function make_report_data (line 27) | def make_report_data(portfolio, prices): function print_report (line 40) | def print_report(reportdata, formatter): function portfolio_report (line 49) | def portfolio_report(portfoliofile, pricefile, fmt='txt'): function main (line 64) | def main(args): FILE: Solutions/5_8/stock.py class Stock (line 3) | class Stock: method __init__ (line 8) | def __init__(self,name, shares, price): method __repr__ (line 13) | def __repr__(self): method shares (line 17) | def shares(self): method shares (line 21) | def shares(self, value): method cost (line 27) | def cost(self): method sell (line 33) | def sell(self, nshares): FILE: Solutions/5_8/tableformat.py class TableFormatter (line 3) | class TableFormatter: method headings (line 4) | def headings(self, headers): method row (line 10) | def row(self, rowdata): class TextTableFormatter (line 16) | class TextTableFormatter(TableFormatter): method headings (line 20) | def headings(self, headers): method row (line 26) | def row(self, rowdata): class CSVTableFormatter (line 31) | class CSVTableFormatter(TableFormatter): method headings (line 35) | def headings(self, headers): method row (line 38) | def row(self, rowdata): class HTMLTableFormatter (line 41) | class HTMLTableFormatter(TableFormatter): method headings (line 45) | def headings(self, headers): method row (line 51) | def row(self, rowdata): class FormatError (line 57) | class FormatError(Exception): function create_formatter (line 60) | def create_formatter(name): function print_table (line 73) | def print_table(objects, columns, formatter): FILE: Solutions/6_12/fileparse.py function parse_csv (line 4) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/6_12/follow.py function follow (line 5) | def follow(filename): FILE: Solutions/6_12/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/6_12/portfolio.py class Portfolio (line 3) | class Portfolio: method __init__ (line 4) | def __init__(self, holdings): method __iter__ (line 7) | def __iter__(self): method __len__ (line 10) | def __len__(self): method __getitem__ (line 13) | def __getitem__(self, index): method __contains__ (line 16) | def __contains__(self, name): method total_cost (line 20) | def total_cost(self): method tabulate_shares (line 23) | def tabulate_shares(self): FILE: Solutions/6_12/report.py function read_portfolio (line 8) | def read_portfolio(filename): function read_prices (line 21) | def read_prices(filename): function make_report_data (line 28) | def make_report_data(portfolio, prices): function print_report (line 41) | def print_report(reportdata, formatter): function portfolio_report (line 50) | def portfolio_report(portfoliofile, pricefile, fmt='txt'): function main (line 65) | def main(args): FILE: Solutions/6_12/stock.py class Stock (line 3) | class Stock: method __init__ (line 8) | def __init__(self,name, shares, price): method __repr__ (line 13) | def __repr__(self): method shares (line 17) | def shares(self): method shares (line 21) | def shares(self, value): method cost (line 27) | def cost(self): method sell (line 33) | def sell(self, nshares): FILE: Solutions/6_12/tableformat.py class TableFormatter (line 3) | class TableFormatter: method headings (line 4) | def headings(self, headers): method row (line 10) | def row(self, rowdata): class TextTableFormatter (line 16) | class TextTableFormatter(TableFormatter): method headings (line 20) | def headings(self, headers): method row (line 26) | def row(self, rowdata): class CSVTableFormatter (line 31) | class CSVTableFormatter(TableFormatter): method headings (line 35) | def headings(self, headers): method row (line 38) | def row(self, rowdata): class HTMLTableFormatter (line 41) | class HTMLTableFormatter(TableFormatter): method headings (line 45) | def headings(self, headers): method row (line 51) | def row(self, rowdata): class FormatError (line 57) | class FormatError(Exception): function create_formatter (line 60) | def create_formatter(name): function print_table (line 73) | def print_table(objects, columns, formatter): FILE: Solutions/6_12/ticker.py function select_columns (line 9) | def select_columns(rows, indices): function convert_types (line 13) | def convert_types(rows, types): function make_dicts (line 17) | def make_dicts(rows, headers): function parse_stock_data (line 21) | def parse_stock_data(lines): function filter_symbols (line 28) | def filter_symbols(rows, names): function ticker (line 33) | def ticker(portfile, logfile, fmt): function main (line 43) | def main(args): FILE: Solutions/6_15/fileparse.py function parse_csv (line 4) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/6_15/follow.py function follow (line 6) | def follow(filename): FILE: Solutions/6_15/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/6_15/portfolio.py class Portfolio (line 3) | class Portfolio: method __init__ (line 4) | def __init__(self, holdings): method __iter__ (line 7) | def __iter__(self): method __len__ (line 10) | def __len__(self): method __getitem__ (line 13) | def __getitem__(self, index): method __contains__ (line 16) | def __contains__(self, name): method total_cost (line 20) | def total_cost(self): method tabulate_shares (line 23) | def tabulate_shares(self): FILE: Solutions/6_15/report.py function read_portfolio (line 8) | def read_portfolio(filename): function read_prices (line 21) | def read_prices(filename): function make_report_data (line 28) | def make_report_data(portfolio, prices): function print_report (line 41) | def print_report(reportdata, formatter): function portfolio_report (line 50) | def portfolio_report(portfoliofile, pricefile, fmt='txt'): function main (line 65) | def main(args): FILE: Solutions/6_15/stock.py class Stock (line 3) | class Stock: method __init__ (line 8) | def __init__(self,name, shares, price): method __repr__ (line 13) | def __repr__(self): method shares (line 17) | def shares(self): method shares (line 21) | def shares(self, value): method cost (line 27) | def cost(self): method sell (line 33) | def sell(self, nshares): FILE: Solutions/6_15/tableformat.py class TableFormatter (line 3) | class TableFormatter: method headings (line 4) | def headings(self, headers): method row (line 10) | def row(self, rowdata): class TextTableFormatter (line 16) | class TextTableFormatter(TableFormatter): method headings (line 20) | def headings(self, headers): method row (line 26) | def row(self, rowdata): class CSVTableFormatter (line 31) | class CSVTableFormatter(TableFormatter): method headings (line 35) | def headings(self, headers): method row (line 38) | def row(self, rowdata): class HTMLTableFormatter (line 41) | class HTMLTableFormatter(TableFormatter): method headings (line 45) | def headings(self, headers): method row (line 51) | def row(self, rowdata): class FormatError (line 57) | class FormatError(Exception): function create_formatter (line 60) | def create_formatter(name): function print_table (line 73) | def print_table(objects, columns, formatter): FILE: Solutions/6_15/ticker.py function select_columns (line 9) | def select_columns(rows, indices): function convert_types (line 13) | def convert_types(rows, types): function make_dicts (line 17) | def make_dicts(rows, headers): function parse_stock_data (line 20) | def parse_stock_data(lines): function ticker (line 27) | def ticker(portfile, logfile, fmt): function main (line 37) | def main(args): FILE: Solutions/6_3/fileparse.py function parse_csv (line 4) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/6_3/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/6_3/portfolio.py class Portfolio (line 3) | class Portfolio: method __init__ (line 4) | def __init__(self, holdings): method __iter__ (line 7) | def __iter__(self): method __len__ (line 10) | def __len__(self): method __getitem__ (line 13) | def __getitem__(self, index): method __contains__ (line 16) | def __contains__(self, name): method total_cost (line 20) | def total_cost(self): method tabulate_shares (line 23) | def tabulate_shares(self): FILE: Solutions/6_3/report.py function read_portfolio (line 8) | def read_portfolio(filename): function read_prices (line 21) | def read_prices(filename): function make_report_data (line 28) | def make_report_data(portfolio, prices): function print_report (line 41) | def print_report(reportdata, formatter): function portfolio_report (line 50) | def portfolio_report(portfoliofile, pricefile, fmt='txt'): function main (line 65) | def main(args): FILE: Solutions/6_3/stock.py class Stock (line 3) | class Stock: method __init__ (line 8) | def __init__(self,name, shares, price): method __repr__ (line 13) | def __repr__(self): method shares (line 17) | def shares(self): method shares (line 21) | def shares(self, value): method cost (line 27) | def cost(self): method sell (line 33) | def sell(self, nshares): FILE: Solutions/6_3/tableformat.py class TableFormatter (line 3) | class TableFormatter: method headings (line 4) | def headings(self, headers): method row (line 10) | def row(self, rowdata): class TextTableFormatter (line 16) | class TextTableFormatter(TableFormatter): method headings (line 20) | def headings(self, headers): method row (line 26) | def row(self, rowdata): class CSVTableFormatter (line 31) | class CSVTableFormatter(TableFormatter): method headings (line 35) | def headings(self, headers): method row (line 38) | def row(self, rowdata): class HTMLTableFormatter (line 41) | class HTMLTableFormatter(TableFormatter): method headings (line 45) | def headings(self, headers): method row (line 51) | def row(self, rowdata): class FormatError (line 57) | class FormatError(Exception): function create_formatter (line 60) | def create_formatter(name): function print_table (line 73) | def print_table(objects, columns, formatter): FILE: Solutions/6_7/fileparse.py function parse_csv (line 4) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/6_7/follow.py function follow (line 5) | def follow(filename): FILE: Solutions/6_7/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/6_7/portfolio.py class Portfolio (line 3) | class Portfolio: method __init__ (line 4) | def __init__(self, holdings): method __iter__ (line 7) | def __iter__(self): method __len__ (line 10) | def __len__(self): method __getitem__ (line 13) | def __getitem__(self, index): method __contains__ (line 16) | def __contains__(self, name): method total_cost (line 20) | def total_cost(self): method tabulate_shares (line 23) | def tabulate_shares(self): FILE: Solutions/6_7/report.py function read_portfolio (line 8) | def read_portfolio(filename): function read_prices (line 21) | def read_prices(filename): function make_report_data (line 28) | def make_report_data(portfolio, prices): function print_report (line 41) | def print_report(reportdata, formatter): function portfolio_report (line 50) | def portfolio_report(portfoliofile, pricefile, fmt='txt'): function main (line 65) | def main(args): FILE: Solutions/6_7/stock.py class Stock (line 3) | class Stock: method __init__ (line 8) | def __init__(self,name, shares, price): method __repr__ (line 13) | def __repr__(self): method shares (line 17) | def shares(self): method shares (line 21) | def shares(self, value): method cost (line 27) | def cost(self): method sell (line 33) | def sell(self, nshares): FILE: Solutions/6_7/tableformat.py class TableFormatter (line 3) | class TableFormatter: method headings (line 4) | def headings(self, headers): method row (line 10) | def row(self, rowdata): class TextTableFormatter (line 16) | class TextTableFormatter(TableFormatter): method headings (line 20) | def headings(self, headers): method row (line 26) | def row(self, rowdata): class CSVTableFormatter (line 31) | class CSVTableFormatter(TableFormatter): method headings (line 35) | def headings(self, headers): method row (line 38) | def row(self, rowdata): class HTMLTableFormatter (line 41) | class HTMLTableFormatter(TableFormatter): method headings (line 45) | def headings(self, headers): method row (line 51) | def row(self, rowdata): class FormatError (line 57) | class FormatError(Exception): function create_formatter (line 60) | def create_formatter(name): function print_table (line 73) | def print_table(objects, columns, formatter): FILE: Solutions/7_10/timethis.py function timethis (line 5) | def timethis(func): function countdown (line 17) | def countdown(n): FILE: Solutions/7_11/fileparse.py function parse_csv (line 4) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/7_11/follow.py function follow (line 6) | def follow(filename): FILE: Solutions/7_11/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/7_11/portfolio.py class Portfolio (line 6) | class Portfolio: method __init__ (line 7) | def __init__(self): method from_csv (line 11) | def from_csv(cls, lines, **opts): method append (line 23) | def append(self, holding): method __iter__ (line 26) | def __iter__(self): method __len__ (line 29) | def __len__(self): method __getitem__ (line 32) | def __getitem__(self, index): method __contains__ (line 35) | def __contains__(self, name): method total_cost (line 39) | def total_cost(self): method tabulate_shares (line 42) | def tabulate_shares(self): FILE: Solutions/7_11/report.py function read_portfolio (line 8) | def read_portfolio(filename, **opts): function read_prices (line 16) | def read_prices(filename, **opts): function make_report (line 23) | def make_report(portfolio, prices): function print_report (line 36) | def print_report(reportdata, formatter): function portfolio_report (line 45) | def portfolio_report(portfoliofile, pricefile, fmt='txt'): function main (line 60) | def main(args): FILE: Solutions/7_11/stock.py class Stock (line 5) | class Stock: method __init__ (line 13) | def __init__(self,name, shares, price): method __repr__ (line 18) | def __repr__(self): method cost (line 22) | def cost(self): method sell (line 28) | def sell(self, nshares): FILE: Solutions/7_11/tableformat.py class TableFormatter (line 3) | class TableFormatter: method headings (line 4) | def headings(self, headers): method row (line 10) | def row(self, rowdata): class TextTableFormatter (line 16) | class TextTableFormatter(TableFormatter): method headings (line 20) | def headings(self, headers): method row (line 26) | def row(self, rowdata): class CSVTableFormatter (line 31) | class CSVTableFormatter(TableFormatter): method headings (line 35) | def headings(self, headers): method row (line 38) | def row(self, rowdata): class HTMLTableFormatter (line 41) | class HTMLTableFormatter(TableFormatter): method headings (line 45) | def headings(self, headers): method row (line 51) | def row(self, rowdata): class FormatError (line 57) | class FormatError(Exception): function create_formatter (line 60) | def create_formatter(name): function print_table (line 73) | def print_table(objects, columns, formatter): FILE: Solutions/7_11/ticker.py function select_columns (line 8) | def select_columns(rows, indices): function convert_types (line 12) | def convert_types(rows, types): function make_dicts (line 16) | def make_dicts(rows, headers): function parse_stock_data (line 19) | def parse_stock_data(lines): function ticker (line 26) | def ticker(portfile, logfile, fmt): function main (line 36) | def main(args): FILE: Solutions/7_11/timethis.py function timethis (line 5) | def timethis(func): function countdown (line 17) | def countdown(n): FILE: Solutions/7_11/typedproperty.py function typedproperty (line 3) | def typedproperty(name, expected_type): class Stock (line 23) | class Stock: method __init__ (line 28) | def __init__(self, name, shares, price): class Stock2 (line 34) | class Stock2: method __init__ (line 39) | def __init__(self, name, shares, price): FILE: Solutions/7_4/fileparse.py function parse_csv (line 4) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/7_4/follow.py function follow (line 6) | def follow(filename): FILE: Solutions/7_4/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/7_4/portfolio.py class Portfolio (line 3) | class Portfolio: method __init__ (line 4) | def __init__(self, holdings): method __iter__ (line 7) | def __iter__(self): method __len__ (line 10) | def __len__(self): method __getitem__ (line 13) | def __getitem__(self, index): method __contains__ (line 16) | def __contains__(self, name): method total_cost (line 20) | def total_cost(self): method tabulate_shares (line 23) | def tabulate_shares(self): FILE: Solutions/7_4/report.py function read_portfolio (line 8) | def read_portfolio(filename, **opts): function read_prices (line 22) | def read_prices(filename, **opts): function make_report_data (line 29) | def make_report_data(portfolio, prices): function print_report (line 42) | def print_report(reportdata, formatter): function portfolio_report (line 51) | def portfolio_report(portfoliofile, pricefile, fmt='txt'): function main (line 66) | def main(args): FILE: Solutions/7_4/stock.py class Stock (line 3) | class Stock: method __init__ (line 8) | def __init__(self,name, shares, price): method __repr__ (line 13) | def __repr__(self): method shares (line 17) | def shares(self): method shares (line 21) | def shares(self, value): method cost (line 27) | def cost(self): method sell (line 33) | def sell(self, nshares): FILE: Solutions/7_4/tableformat.py class TableFormatter (line 3) | class TableFormatter: method headings (line 4) | def headings(self, headers): method row (line 10) | def row(self, rowdata): class TextTableFormatter (line 16) | class TextTableFormatter(TableFormatter): method headings (line 20) | def headings(self, headers): method row (line 26) | def row(self, rowdata): class CSVTableFormatter (line 31) | class CSVTableFormatter(TableFormatter): method headings (line 35) | def headings(self, headers): method row (line 38) | def row(self, rowdata): class HTMLTableFormatter (line 41) | class HTMLTableFormatter(TableFormatter): method headings (line 45) | def headings(self, headers): method row (line 51) | def row(self, rowdata): class FormatError (line 57) | class FormatError(Exception): function create_formatter (line 60) | def create_formatter(name): function print_table (line 73) | def print_table(objects, columns, formatter): FILE: Solutions/7_4/ticker.py function select_columns (line 9) | def select_columns(rows, indices): function convert_types (line 13) | def convert_types(rows, types): function make_dicts (line 17) | def make_dicts(rows, headers): function parse_stock_data (line 20) | def parse_stock_data(lines): function ticker (line 27) | def ticker(portfile, logfile, fmt): function main (line 37) | def main(args): FILE: Solutions/7_9/fileparse.py function parse_csv (line 4) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/7_9/follow.py function follow (line 6) | def follow(filename): FILE: Solutions/7_9/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/7_9/portfolio.py class Portfolio (line 3) | class Portfolio: method __init__ (line 4) | def __init__(self, holdings): method __iter__ (line 7) | def __iter__(self): method __len__ (line 10) | def __len__(self): method __getitem__ (line 13) | def __getitem__(self, index): method __contains__ (line 16) | def __contains__(self, name): method total_cost (line 20) | def total_cost(self): method tabulate_shares (line 23) | def tabulate_shares(self): FILE: Solutions/7_9/report.py function read_portfolio (line 8) | def read_portfolio(filename, **opts): function read_prices (line 22) | def read_prices(filename, **opts): function make_report_data (line 29) | def make_report_data(portfolio, prices): function print_report (line 42) | def print_report(reportdata, formatter): function portfolio_report (line 51) | def portfolio_report(portfoliofile, pricefile, fmt='txt'): function main (line 66) | def main(args): FILE: Solutions/7_9/stock.py class Stock (line 5) | class Stock: method __init__ (line 13) | def __init__(self,name, shares, price): method __repr__ (line 18) | def __repr__(self): method cost (line 22) | def cost(self): method sell (line 28) | def sell(self, nshares): FILE: Solutions/7_9/tableformat.py class TableFormatter (line 3) | class TableFormatter: method headings (line 4) | def headings(self, headers): method row (line 10) | def row(self, rowdata): class TextTableFormatter (line 16) | class TextTableFormatter(TableFormatter): method headings (line 20) | def headings(self, headers): method row (line 26) | def row(self, rowdata): class CSVTableFormatter (line 31) | class CSVTableFormatter(TableFormatter): method headings (line 35) | def headings(self, headers): method row (line 38) | def row(self, rowdata): class HTMLTableFormatter (line 41) | class HTMLTableFormatter(TableFormatter): method headings (line 45) | def headings(self, headers): method row (line 51) | def row(self, rowdata): class FormatError (line 57) | class FormatError(Exception): function create_formatter (line 60) | def create_formatter(name): function print_table (line 73) | def print_table(objects, columns, formatter): FILE: Solutions/7_9/ticker.py function select_columns (line 9) | def select_columns(rows, indices): function convert_types (line 13) | def convert_types(rows, types): function make_dicts (line 17) | def make_dicts(rows, headers): function parse_stock_data (line 20) | def parse_stock_data(lines): function ticker (line 27) | def ticker(portfile, logfile, fmt): function main (line 37) | def main(args): FILE: Solutions/7_9/typedproperty.py function typedproperty (line 3) | def typedproperty(name, expected_type): class Stock (line 23) | class Stock: method __init__ (line 28) | def __init__(self, name, shares, price): class Stock2 (line 33) | class Stock2: method __init__ (line 38) | def __init__(self, name, shares, price): FILE: Solutions/8_1/fileparse.py function parse_csv (line 4) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/8_1/follow.py function follow (line 6) | def follow(filename): FILE: Solutions/8_1/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/8_1/portfolio.py class Portfolio (line 6) | class Portfolio: method __init__ (line 7) | def __init__(self): method from_csv (line 11) | def from_csv(cls, lines, **opts): method append (line 23) | def append(self, holding): method __iter__ (line 26) | def __iter__(self): method __len__ (line 29) | def __len__(self): method __getitem__ (line 32) | def __getitem__(self, index): method __contains__ (line 35) | def __contains__(self, name): method total_cost (line 39) | def total_cost(self): method tabulate_shares (line 42) | def tabulate_shares(self): FILE: Solutions/8_1/report.py function read_portfolio (line 8) | def read_portfolio(filename, **opts): function read_prices (line 16) | def read_prices(filename, **opts): function make_report (line 23) | def make_report(portfolio, prices): function print_report (line 36) | def print_report(reportdata, formatter): function portfolio_report (line 45) | def portfolio_report(portfoliofile, pricefile, fmt='txt'): function main (line 60) | def main(args): FILE: Solutions/8_1/stock.py class Stock (line 5) | class Stock: method __init__ (line 13) | def __init__(self,name, shares, price): method __repr__ (line 18) | def __repr__(self): method cost (line 22) | def cost(self): method sell (line 28) | def sell(self, nshares): FILE: Solutions/8_1/tableformat.py class TableFormatter (line 3) | class TableFormatter: method headings (line 4) | def headings(self, headers): method row (line 10) | def row(self, rowdata): class TextTableFormatter (line 16) | class TextTableFormatter(TableFormatter): method headings (line 20) | def headings(self, headers): method row (line 26) | def row(self, rowdata): class CSVTableFormatter (line 31) | class CSVTableFormatter(TableFormatter): method headings (line 35) | def headings(self, headers): method row (line 38) | def row(self, rowdata): class HTMLTableFormatter (line 41) | class HTMLTableFormatter(TableFormatter): method headings (line 45) | def headings(self, headers): method row (line 51) | def row(self, rowdata): class FormatError (line 57) | class FormatError(Exception): function create_formatter (line 60) | def create_formatter(name): function print_table (line 73) | def print_table(objects, columns, formatter): FILE: Solutions/8_1/test_stock.py class TestStock (line 6) | class TestStock(unittest.TestCase): method test_create (line 7) | def test_create(self): method test_cost (line 13) | def test_cost(self): method test_sell (line 17) | def test_sell(self): method test_shares_check (line 22) | def test_shares_check(self): FILE: Solutions/8_1/ticker.py function select_columns (line 8) | def select_columns(rows, indices): function convert_types (line 12) | def convert_types(rows, types): function make_dicts (line 16) | def make_dicts(rows, headers): function parse_stock_data (line 19) | def parse_stock_data(lines): function ticker (line 26) | def ticker(portfile, logfile, fmt): function main (line 36) | def main(args): FILE: Solutions/8_1/timethis.py function timethis (line 5) | def timethis(func): function countdown (line 17) | def countdown(n): FILE: Solutions/8_1/typedproperty.py function typedproperty (line 3) | def typedproperty(name, expected_type): class Stock (line 23) | class Stock: method __init__ (line 28) | def __init__(self, name, shares, price): FILE: Solutions/8_2/fileparse.py function parse_csv (line 6) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/8_2/follow.py function follow (line 6) | def follow(filename): FILE: Solutions/8_2/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/8_2/portfolio.py class Portfolio (line 6) | class Portfolio: method __init__ (line 7) | def __init__(self): method from_csv (line 11) | def from_csv(cls, lines, **opts): method append (line 23) | def append(self, holding): method __iter__ (line 26) | def __iter__(self): method __len__ (line 29) | def __len__(self): method __getitem__ (line 32) | def __getitem__(self, index): method __contains__ (line 35) | def __contains__(self, name): method total_cost (line 39) | def total_cost(self): method tabulate_shares (line 42) | def tabulate_shares(self): FILE: Solutions/8_2/report.py function read_portfolio (line 8) | def read_portfolio(filename, **opts): function read_prices (line 16) | def read_prices(filename, **opts): function make_report (line 23) | def make_report(portfolio, prices): function print_report (line 36) | def print_report(reportdata, formatter): function portfolio_report (line 45) | def portfolio_report(portfoliofile, pricefile, fmt='txt'): function main (line 60) | def main(args): FILE: Solutions/8_2/stock.py class Stock (line 5) | class Stock: method __init__ (line 13) | def __init__(self,name, shares, price): method __repr__ (line 18) | def __repr__(self): method cost (line 22) | def cost(self): method sell (line 28) | def sell(self, nshares): FILE: Solutions/8_2/tableformat.py class TableFormatter (line 3) | class TableFormatter: method headings (line 4) | def headings(self, headers): method row (line 10) | def row(self, rowdata): class TextTableFormatter (line 16) | class TextTableFormatter(TableFormatter): method headings (line 20) | def headings(self, headers): method row (line 26) | def row(self, rowdata): class CSVTableFormatter (line 31) | class CSVTableFormatter(TableFormatter): method headings (line 35) | def headings(self, headers): method row (line 38) | def row(self, rowdata): class HTMLTableFormatter (line 41) | class HTMLTableFormatter(TableFormatter): method headings (line 45) | def headings(self, headers): method row (line 51) | def row(self, rowdata): class FormatError (line 57) | class FormatError(Exception): function create_formatter (line 60) | def create_formatter(name): function print_table (line 73) | def print_table(objects, columns, formatter): FILE: Solutions/8_2/test_stock.py class TestStock (line 6) | class TestStock(unittest.TestCase): method test_create (line 7) | def test_create(self): method test_cost (line 13) | def test_cost(self): method test_sell (line 17) | def test_sell(self): method test_shares_check (line 22) | def test_shares_check(self): FILE: Solutions/8_2/ticker.py function select_columns (line 8) | def select_columns(rows, indices): function convert_types (line 12) | def convert_types(rows, types): function make_dicts (line 16) | def make_dicts(rows, headers): function parse_stock_data (line 19) | def parse_stock_data(lines): function ticker (line 26) | def ticker(portfile, logfile, fmt): function main (line 36) | def main(args): FILE: Solutions/8_2/timethis.py function timethis (line 5) | def timethis(func): function countdown (line 17) | def countdown(n): FILE: Solutions/8_2/typedproperty.py function typedproperty (line 3) | def typedproperty(name, expected_type): class Stock (line 23) | class Stock: method __init__ (line 28) | def __init__(self, name, shares, price): FILE: Solutions/9_3/porty-app/porty/fileparse.py function parse_csv (line 6) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/9_3/porty-app/porty/follow.py function follow (line 6) | def follow(filename): FILE: Solutions/9_3/porty-app/porty/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/9_3/porty-app/porty/portfolio.py class Portfolio (line 6) | class Portfolio: method __init__ (line 7) | def __init__(self): method from_csv (line 11) | def from_csv(cls, lines, **opts): method append (line 23) | def append(self, holding): method __iter__ (line 26) | def __iter__(self): method __len__ (line 29) | def __len__(self): method __getitem__ (line 32) | def __getitem__(self, index): method __contains__ (line 35) | def __contains__(self, name): method total_cost (line 39) | def total_cost(self): method tabulate_shares (line 42) | def tabulate_shares(self): FILE: Solutions/9_3/porty-app/porty/report.py function read_portfolio (line 8) | def read_portfolio(filename, **opts): function read_prices (line 16) | def read_prices(filename, **opts): function make_report (line 23) | def make_report(portfolio, prices): function print_report (line 36) | def print_report(reportdata, formatter): function portfolio_report (line 45) | def portfolio_report(portfoliofile, pricefile, fmt='txt'): function main (line 60) | def main(args): FILE: Solutions/9_3/porty-app/porty/stock.py class Stock (line 5) | class Stock: method __init__ (line 14) | def __init__(self,name, shares, price): method __repr__ (line 19) | def __repr__(self): method cost (line 23) | def cost(self): method sell (line 29) | def sell(self, nshares): FILE: Solutions/9_3/porty-app/porty/tableformat.py class TableFormatter (line 3) | class TableFormatter: method headings (line 4) | def headings(self, headers): method row (line 10) | def row(self, rowdata): class TextTableFormatter (line 16) | class TextTableFormatter(TableFormatter): method headings (line 20) | def headings(self, headers): method row (line 26) | def row(self, rowdata): class CSVTableFormatter (line 31) | class CSVTableFormatter(TableFormatter): method headings (line 35) | def headings(self, headers): method row (line 38) | def row(self, rowdata): class HTMLTableFormatter (line 41) | class HTMLTableFormatter(TableFormatter): method headings (line 45) | def headings(self, headers): method row (line 51) | def row(self, rowdata): class FormatError (line 57) | class FormatError(Exception): function create_formatter (line 60) | def create_formatter(name): function print_table (line 73) | def print_table(objects, columns, formatter): FILE: Solutions/9_3/porty-app/porty/test_stock.py class TestStock (line 6) | class TestStock(unittest.TestCase): method test_create (line 7) | def test_create(self): method test_cost (line 13) | def test_cost(self): method test_sell (line 17) | def test_sell(self): method test_shares_check (line 22) | def test_shares_check(self): FILE: Solutions/9_3/porty-app/porty/ticker.py function select_columns (line 8) | def select_columns(rows, indices): function convert_types (line 12) | def convert_types(rows, types): function make_dicts (line 16) | def make_dicts(rows, headers): function parse_stock_data (line 19) | def parse_stock_data(lines): function ticker (line 26) | def ticker(portfile, logfile, fmt): function main (line 36) | def main(args): FILE: Solutions/9_3/porty-app/porty/typedproperty.py function typedproperty (line 3) | def typedproperty(name, expected_type): class Stock (line 23) | class Stock: method __init__ (line 28) | def __init__(self, name, shares, price): FILE: Solutions/9_5/porty-app/porty/fileparse.py function parse_csv (line 6) | def parse_csv(lines, select=None, types=None, has_headers=True, delimite... FILE: Solutions/9_5/porty-app/porty/follow.py function follow (line 6) | def follow(filename): FILE: Solutions/9_5/porty-app/porty/pcost.py function portfolio_cost (line 5) | def portfolio_cost(filename): function main (line 12) | def main(args): FILE: Solutions/9_5/porty-app/porty/portfolio.py class Portfolio (line 6) | class Portfolio: method __init__ (line 7) | def __init__(self): method from_csv (line 11) | def from_csv(cls, lines, **opts): method append (line 23) | def append(self, holding): method __iter__ (line 26) | def __iter__(self): method __len__ (line 29) | def __len__(self): method __getitem__ (line 32) | def __getitem__(self, index): method __contains__ (line 35) | def __contains__(self, name): method total_cost (line 39) | def total_cost(self): method tabulate_shares (line 42) | def tabulate_shares(self): FILE: Solutions/9_5/porty-app/porty/report.py function read_portfolio (line 8) | def read_portfolio(filename, **opts): function read_prices (line 16) | def read_prices(filename, **opts): function make_report (line 23) | def make_report(portfolio, prices): function print_report (line 36) | def print_report(reportdata, formatter): function portfolio_report (line 45) | def portfolio_report(portfoliofile, pricefile, fmt='txt'): function main (line 60) | def main(args): FILE: Solutions/9_5/porty-app/porty/stock.py class Stock (line 5) | class Stock: method __init__ (line 14) | def __init__(self,name, shares, price): method __repr__ (line 19) | def __repr__(self): method cost (line 23) | def cost(self): method sell (line 29) | def sell(self, nshares): FILE: Solutions/9_5/porty-app/porty/tableformat.py class TableFormatter (line 3) | class TableFormatter: method headings (line 4) | def headings(self, headers): method row (line 10) | def row(self, rowdata): class TextTableFormatter (line 16) | class TextTableFormatter(TableFormatter): method headings (line 20) | def headings(self, headers): method row (line 26) | def row(self, rowdata): class CSVTableFormatter (line 31) | class CSVTableFormatter(TableFormatter): method headings (line 35) | def headings(self, headers): method row (line 38) | def row(self, rowdata): class HTMLTableFormatter (line 41) | class HTMLTableFormatter(TableFormatter): method headings (line 45) | def headings(self, headers): method row (line 51) | def row(self, rowdata): class FormatError (line 57) | class FormatError(Exception): function create_formatter (line 60) | def create_formatter(name): function print_table (line 73) | def print_table(objects, columns, formatter): FILE: Solutions/9_5/porty-app/porty/test_stock.py class TestStock (line 6) | class TestStock(unittest.TestCase): method test_create (line 7) | def test_create(self): method test_cost (line 13) | def test_cost(self): method test_sell (line 17) | def test_sell(self): method test_shares_check (line 22) | def test_shares_check(self): FILE: Solutions/9_5/porty-app/porty/ticker.py function select_columns (line 8) | def select_columns(rows, indices): function convert_types (line 12) | def convert_types(rows, types): function make_dicts (line 16) | def make_dicts(rows, headers): function parse_stock_data (line 19) | def parse_stock_data(lines): function ticker (line 26) | def ticker(portfile, logfile, fmt): function main (line 36) | def main(args): FILE: Solutions/9_5/porty-app/porty/typedproperty.py function typedproperty (line 3) | def typedproperty(name, expected_type): class Stock (line 23) | class Stock: method __init__ (line 28) | def __init__(self, name, shares, price): FILE: Work/Data/stocksim.py function minutes (line 19) | def minutes(tm): function minutes_to_str (line 31) | def minutes_to_str(m): function read_history (line 39) | def read_history(filename): function csv_record (line 51) | def csv_record(fields): class StockTrack (line 55) | class StockTrack(object): method __init__ (line 56) | def __init__(self,name): method add_data (line 69) | def add_data(self,record): method reset (line 71) | def reset(self,time): method interpolate (line 90) | def interpolate(self,field): method update (line 102) | def update(self): method incr (line 112) | def incr(self,dt): method make_record (line 119) | def make_record(self): class MarketSimulator (line 123) | class MarketSimulator(object): method __init__ (line 124) | def __init__(self): method register (line 129) | def register(self,observer): method publish (line 132) | def publish(self,record): method add_history (line 135) | def add_history(self,filename): method reset (line 142) | def reset(self,time): method run (line 148) | def run(self,dt): class BasicPrinter (line 162) | class BasicPrinter(object): method update (line 163) | def update(self,record): class LogPrinter (line 166) | class LogPrinter(object): method __init__ (line 167) | def __init__(self,filename): method update (line 169) | def update(self,record):