Hello List,<br><br>I have a simple array <br><br>a = array([1,2,3])<br><br>I want to take the last two terms and make it a column vector:<br><br>a[[1,2],newaxis]<br><br>But I get a funny error: TypeError: long() argument must be a string or a number, not 'NoneType'<br>
<br>It does work if I do <br><br>a[[1,2]][:,newaxis]<br><br>But I don't understand why the first wouldn't work. Is there a reason such syntax is not supported? It would be very useful.<br><br>Thanks,<br><br>Mark<br>