Re: How to process a very large (4Gb) tarfile from python?

2008-07-17 Thread Terry Carroll
On Thu, 17 Jul 2008 06:14:45 -0700 (PDT), Uwe Schmitt <[EMAIL PROTECTED]> wrote: >I had a look at tarfile.py in my current Python 2.5 installations >lib path. The iterator caches TarInfo objects in a list >tf.members . If you only want to iterate and you are not interested >in more functionallity

How to process a very large (4Gb) tarfile from python?

2008-07-17 Thread Terry Carroll
I am trying to do something with a very large tarfile from within Python, and am running into memory constraints. The tarfile in question is a 4-gigabyte datafile from freedb.org, http://ftp.freedb.org/pub/freedb/ , and has about 2.5 million members in it. Here's a simple toy program that just go

Re: (wxPython) wx.ProgressDialog - how to cancel out of?

2007-09-17 Thread Terry Carroll
Thanks to both kyosohma and 7stud for the suggestions. I'll try variations on the code suggested by 7stud, and follow up to the wx-python list as kyosohma suggested if I need more help. -- http://mail.python.org/mailman/listinfo/python-list

(wxPython) wx.ProgressDialog - how to cancel out of?

2007-09-14 Thread Terry Carroll
I'm trying to use wx.ProgressBar, and the cancel button is not responding. Here is a simple program that exhibits the problem: # import wx import time max = 10 app = wx.PySimpleApp() dlg = wx.ProgressDialog("Progress dialog example",

Re: MP3 decoder module?

2007-01-12 Thread Terry Carroll
Paul Rubin wrote: > Anyone know of a reasonable mp3 decoder library I can call from > Python? Some Googling didn't find anything too promising. It found > Pymedia (which plays mp3's through a sound system) But I want to > actually decode the mp3 frames and crunch on the audio samples. As I

Re: ConfigParser: writes a list but reads a string?

2006-01-17 Thread Terry Carroll
On Tue, 17 Jan 2006 09:11:24 -0600, Larry Bates <[EMAIL PROTECTED]> wrote: >To read lists from .INI files I use following: > >listvalues=INI.get(section, option).split(',') > >where INI is an instance of ConfigParser > >There is the problem of if list items contain commas. Thanks; that's basical

ConfigParser: writes a list but reads a string?

2006-01-15 Thread Terry Carroll
It looks like ConfigParser will accept a list to be writing to the *.ini file; but when reading it back in, it treats it as a string. Example: ### import ConfigParser def whatzit(thingname, thing): print thingname, "value:", thing print thingname, "length:", len(

Re: Tkinter: How can I update an image display?

2005-06-05 Thread Terry Carroll
On 05 Jun 2005 21:04:40 -0700, Paul Rubin wrote: >Try using root.update()? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: How can I update an image display?

2005-06-05 Thread Terry Carroll
On Sun, 05 Jun 2005 20:39:04 -0700, Terry Carroll <[EMAIL PROTECTED]> wrote: >The thing is, if I uncomment the raw_input call, it works. But I >don't want to have to hit ENTER after each image. And the, just to be confusing, I posted the uncommented version. To make my exampl

Tkinter: How can I update an image display?

2005-06-05 Thread Terry Carroll
I've got a small batch image-processing program (it adds the time a digital photo was taken to the lower right of the image), and as a feature, I wanted to show a thumbnail of each image it was being processed. I can't get the image to update, though. I trimmed it down to a basic app indicating t

Re: Is there already a Python module to access the USPTO web site?

2005-05-28 Thread Terry Carroll
On Sat, 28 May 2005 20:37:40 +0200 (CEST), Tomasz Rola <[EMAIL PROTECTED]> wrote: >I don't know but if you are determined to have it in Python, perhaps ypu >should check MozPython. Thanks. That seems a little more than I need, but it looks intriguing. -- http://mail.python.org/mailman/listinfo/

Is there already a Python module to access the USPTO web site?

2005-05-28 Thread Terry Carroll
I have the need to run periodic searches on the US Patent and Trademark Office website, . I need a Python module to do this. Before I reinvent the wheel, I thought I'd check to see if anyone knew of such a beast. For instance, I'd like to be able to pass an argument like o