Re: Translating unicode data

2009-03-24 Thread John Machin
On Mar 24, 10:30 am, Scott David Daniels wrote: > CaptainMcCrank wrote: > > Hi list, > > > I'm struggling with a problem analyzing large amounts of unicode data > > in an http wireshark capture. > > I've solved the problem with the interpreter, but I'm not sure how to > > do this in an automated f

Re: Why am I getting "[10263 refs]"?

2009-03-24 Thread Christian Heimes
Russ P. wrote: > I am running 2.5.2 on Red Hat 5. I am getting many printouts of > reference counts, such as > > [10263 refs] > > I do not recall ever seeing this until recently. Why am I getting > this? Thanks. You are using a debug build of Python. Christian -- http://mail.python.org/mailman

Re: Relative Imports, why the hell is it so hard?

2009-03-24 Thread Steve Holden
CinnamonDonkey wrote: > Top responses guys! This has all helped increadibly. > > Bearophile, > > My applogies if I have offended you, but: > > 1. "I can't know much about you from the start" - Is kind of my point. > Perhaps it would be better to avoid jumping to conclusions and pre- > judging so

Re: Relative Imports, why the hell is it so hard?

2009-03-24 Thread Istvan Albert
On Mar 24, 9:35 pm, Maxim Khitrov wrote: > Works perfectly fine with relative imports. This only demonstrates that you are not aware of what the problem actually is. Try using relative imports so that it works when you import the module itself. Now run the module as a program. The same module t

Re: Async serial communication/threads sharing data

2009-03-24 Thread John Nagle
Jean-Paul Calderone wrote: On Mon, 23 Mar 2009 05:30:04 -0500, Nick Craig-Wood wrote: Jean-Paul Calderone wrote: [snip] After bringing in all the heavy machinery of Twisted, you're still polling at 10Hz. That's disappointing. John Nagle -- http://mail.pyth

Tkinter - Multiple Tk() instances/mainloops in one process?

2009-03-24 Thread Gregory Sheaffer
I've been working on a Python project for several weeks involving a client for connecting to an AIM distribution server and holding multiple conversations in separate windows. Without getting into a lot of detail, the basic main program loop is while(1) on message recieved

Re: Relative Imports, why the hell is it so hard?

2009-03-24 Thread Carl Banks
On Mar 24, 8:32 pm, Istvan Albert wrote: > On Mar 24, 9:35 pm, Maxim Khitrov wrote: > > > Works perfectly fine with relative imports. > > This only demonstrates that you are not aware of what the problem > actually is. > > Try using relative imports so that it works when you import the module > i

garbage collection / reference cycles (cont.)

2009-03-24 Thread Aaron Brady
Hello, I am posting the code I mentioned on Saturday that collects garbage and cyclic garbage in a flattened two-step process. The code takes 122 lines incl. comments, with 100 in tests. It should be in a reply to this. My aim is a buffer-like object which can contain reference-counted objects.

Re: garbage collection / reference cycles (cont.)

2009-03-24 Thread Aaron Brady
On Mar 25, 12:11 am, Aaron Brady wrote: > Hello, > > I am posting the code I mentioned on Saturday that collects garbage > and cyclic garbage in a flattened two-step process.  The code takes > 122 lines incl. comments, with 100 in tests.  It should be in a reply > to this. > > My aim is a buffer-l

fft of a dat file?

2009-03-24 Thread Soumen banerjee
Hello, I'm kind of new to python and i wanted to do a little project, make a frequency plot of some wav audio. I have been following this webpage http://www.acronymchile.com/sigproc.html and have got to the making of a dat file containing the samples and time of sampling. The question here is how d

Re: fft of a dat file?

2009-03-24 Thread Steven D'Aprano
On Wed, 25 Mar 2009 11:26:00 +0530, Soumen banerjee wrote: > Hello, > I'm kind of new to python and i wanted to do a little project, make a > frequency plot of some wav audio. I have been following this webpage > http://www.acronymchile.com/sigproc.html and have got to the making of a > dat file c

<    1   2