Re: [Numpy-discussion] combinations anomaly

2007-09-22 Thread Charles R Harris
On 9/22/07, Charles R Harris <[EMAIL PROTECTED]> wrote: > > > > On 9/22/07, Alan G Isaac <[EMAIL PROTECTED]> wrote: > > > > Charles harris posted a generator function for generating > > combinations (based on Knuth's fascicle). I get the > > expected results by iterating over the resulting generat

Re: [Numpy-discussion] combinations anomaly

2007-09-22 Thread Alan G Isaac
On Sat, 22 Sep 2007, Charles R Harris apparently wrote: > an array view is returned, and the data is updated in the > loop ... I think your range fix is the way to go. Got it. Thanks! Alan ___ Numpy-discussion mailing list Numpy-discussion@scipy.org

Re: [Numpy-discussion] combinations anomaly

2007-09-22 Thread Charles R Harris
On 9/22/07, Alan G Isaac <[EMAIL PROTECTED]> wrote: > > Charles harris posted a generator function for generating > combinations (based on Knuth's fascicle). I get the > expected results by iterating over the resulting generator, > but not if I let ``list`` do that for me. What is more, > changin

[Numpy-discussion] combinations anomaly

2007-09-22 Thread Alan G Isaac
Charles harris posted a generator function for generating combinations (based on Knuth's fascicle). I get the expected results by iterating over the resulting generator, but not if I let ``list`` do that for me. What is more, changing ``arange`` to ``range`` in the code eliminates this anomaly