quantopian/zipline — pull request #338 by ssanderson (2014-05-27 02:41:25+00:00)
Title: MAINT/PERF: Make the portfolio property call `updated_portfolio`.

Make the portfolio property on TradingAlgorithm call `updated_portfolio`
internally. This prevents needless recomputation of the portfolio between
calls to `handle_data`, and also prevents issues where the portfolio object
could be unexpectedly modified in place in the body of a `handle_date` call.