Hooking into Python's memory management

2011-05-04 Thread Daniel Neilson
Hello, I'm hoping that there will be someone here with sufficient expertise to answer a question on Python 3 for me. I work in the Computer Science department at a large Canadian University. We are currently doing a feasibility analysis for switching to using Python in our first year major

Re: Hooking into Python's memory management

2011-05-04 Thread Daniel Neilson
Thanks for the feedback, everyone. I spent some time today playing around with the gc module, and came to the same conclusion that many of you have as well. for o in gc.get_objects(): print(o) was sufficient to convince me that I didn't want to go that route. Writing a simple mem

matching elements of numeric arrays

2005-10-13 Thread daniel . neilson
I have two one-dimensional Numeric arrays, and I need to know the indices in the second array of elements from the first. so if i had: a=array([2,4,6]) b=array([2,3,4,5,6]) i want a function match that does this: >>> match(a,b) array([0,2,4]) i have something that works, but it involves conver

Re: matching elements of numeric arrays

2005-10-13 Thread daniel . neilson
Thanks a lot. It was this equal.outer idea that I was missing. -- http://mail.python.org/mailman/listinfo/python-list