XML 48 R37.htm IDEA: XBRL DOCUMENT v3.7.0.1
Investments - Additional Information (Detail) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jan. 31, 2017
Jan. 31, 2016
Jan. 31, 2017
Jan. 31, 2016
Jul. 31, 2016
Investment [Line Items]          
Sale (purchase) of trading securities $ 4,900 $ 14,800 $ 5,800 $ 43,700  
Gains (losses) in trading securities 1,011 1,115 94 (8,348)  
Sale of trading securities   15,500      
Unsettled trades associated with the sale of common stock of a publicly traded entity       800  
Trading securities 11,029   11,029   $ 16,768
Convertible Debt Securities          
Investment [Line Items]          
Trading securities         $ 12,600
Non Cash          
Investment [Line Items]          
Gains (losses) in trading securities 400 100 500 13,800  
Cash          
Investment [Line Items]          
Gains (losses) in trading securities $ 600 $ 1,200 $ 600 $ 5,500