[Tutor] Memory profileing on Python 2.7 64bit for windows

2011-04-17 Thread David Crisp
Hello, I need to look at the memory usage of a number of sets of data I am working with. I have been able to find memory profilers for Python 2.6 but I havent been able to find anything for Python 2.7 and or Python 2.7 64bit. Can anybody point me in the right direction for this? Regards, David

Re: [Tutor] Creating Binary Files of 1MB

2011-04-17 Thread Becky Mcquilling
Thanks, Steve. For the first step, I just wasn't sure how to write the file. I appreciate the help. Becky On Sun, Apr 17, 2011 at 12:34 AM, Steven D'Aprano wrote: > Becky Mcquilling wrote: > >> I'm trying to work out a method to create a binary file of 1mb and I'm >> somewhat confused by the d

Re: [Tutor] data validation logic

2011-04-17 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Rance Hall wrote: Hey gang: I need some help trying to pythonize (sp?, if this is even a word?) an idea. I'd like to define a datavalidation function that returns true if data is valid, and false if it isn't. I need a way to store the pass fail values of each of th

Re: [Tutor] Creating Binary Files of 1MB

2011-04-17 Thread Steven D'Aprano
Becky Mcquilling wrote: I'm trying to work out a method to create a binary file of 1mb and I'm somewhat confused by the docs I'm reading is there a method that will do this? # Open a file in binary (b) mode for writing. fp = open("mybinaryfile", "wb") # Write whatever data you like to it. fp.w