Re: Is it possible to save a running program and reload next time ?

2006-09-22 Thread Hans Georg Krauthaeuser
[EMAIL PROTECTED] wrote: Hans Georg Krauthaeuser wrote: [EMAIL PROTECTED] wrote: Can objects be saved and reloaded by Pickle ? I have tried but no success. Yes, that's the intended use of pickle/cPickle. There are examples in the docs: http://docs.python.org/lib/module

Re: Is it possible to save a running program and reload next time ?

2006-09-21 Thread Hans Georg Krauthaeuser
[EMAIL PROTECTED] wrote: Can objects be saved and reloaded by Pickle ? I have tried but no success. Yes, that's the intended use of pickle/cPickle. There are examples in the docs: http://docs.python.org/lib/module-pickle.html What have you tried and what didn't work? Hans Georg --

Re: pickling multiple dictionaries

2006-05-24 Thread Hans Georg Krauthaeuser
manstey wrote: Hi, I am running a script that produces about 450,000 dictionaries. I tried putting them into a tuple and then pickling the tuple, but the tuple gets too big. Can I pickle dictionaries one after another into the same file and then read them out again? Cheers, Matthew If

Re: How to determine if a line of python code is a continuation of the line above it

2006-04-09 Thread Hans Georg Krauthaeuser
Sandra-24 wrote: I'm not sure how complex this is, I've been brainstorming a little, and I've come up with: If the previous line ended with a comma or a \ (before an optional comment) That's easy to cover with a regex But that doesn't cover everything, because this is legal: l = [

Re: FIR filtering

2006-03-15 Thread Hans Georg Krauthaeuser
LabWINC wrote: Hi all, i'm looking for a module to implement a digital FIR filter! Can anyone help me? Thanks, Vincent gnuradio? Hans Georg -- http://mail.python.org/mailman/listinfo/python-list

Re: FIR filtering

2006-03-15 Thread Hans Georg Krauthaeuser
LabWINC wrote: What's gnuradio? http://www.gnu.org/software/gnuradio/ It's a c++ lib with a python wrapper. BTW, thats the first hit in google ... Hans Georg -- http://mail.python.org/mailman/listinfo/python-list

Re: FIR filtering

2006-03-15 Thread Hans Georg Krauthaeuser
LabWINC wrote: I can't understand how gnuradio can help me... I find scipy is the only way to implement a good FIR. Well, then do it with scipy... gnuradio has a module for FIR. I never used it. I just wanted to share that information. Hans Georg --

Re: RPy / R

2006-02-07 Thread Hans Georg Krauthaeuser
jason schrieb: Hello: I installed the following: python-2.4.2.msi pywin32-207.win32-py2.4.exe R-2.2.1-win32.exe rpy-0.4.6-R-2.0.0-to-2.2.1-py24.win32.exe on a Windows XP (SP2) box. When I try to run the following (source: http://rpy.sourceforge.net/plotting-with-RPy.html) in IDLE

Re: [OT] no goto (WAS: Python code written in 1998...)

2006-01-20 Thread Hans Georg Krauthaeuser
Steven Bethard schrieb: Carl Cerecke wrote: Python has no goto. Not in the standard library. You have to download the module: http://www.entrian.com/goto/ ;) STeVe This remerbers me to VATICAL, a famous programming language from the 80s.

scipy.stats.itemfreq: overflow with add.reduce

2005-12-21 Thread Hans Georg Krauthaeuser
Hi All, I was playing with scipy.stats.itemfreq when I observed the following overflow: In [119]:for i in [254,255,256,257,258]: .:l=[0]*i .:print i, stats.itemfreq(l), l.count(0) .: 254 [ [ 0 254]] 254 255 [ [ 0 255]] 255 256 [ [0 0]] 256 257 [ [0 1]] 257 258

Re: scipy.stats.itemfreq: overflow with add.reduce

2005-12-21 Thread Hans Georg Krauthaeuser
Hans Georg Krauthaeuser schrieb: Hi All, I was playing with scipy.stats.itemfreq when I observed the following overflow: In [119]:for i in [254,255,256,257,258]: .:l=[0]*i .:print i, stats.itemfreq(l), l.count(0) .: 254 [ [ 0 254]] 254 255 [ [ 0 255

Re: scipy.stats.itemfreq: overflow with add.reduce

2005-12-21 Thread Hans Georg Krauthaeuser
Hans Georg Krauthaeuser schrieb: Hans Georg Krauthaeuser schrieb: Hi All, I was playing with scipy.stats.itemfreq when I observed the following overflow: In [119]:for i in [254,255,256,257,258]: .:l=[0]*i .:print i, stats.itemfreq(l), l.count(0) .: 254

Re: Good python reference?

2005-11-11 Thread Hans Georg Krauthaeuser
derek schrieb: Hello! I'm new to the group and am looking for a decent reference for information about the history / evolution of the Python language and its features. Typing, scoping, etc... I'd appreciate any good links. Thanks! - Derek Looking at the title of your mail I would answer

Re: Help with cPickle for deserializing datetime.datetime instances

2005-10-14 Thread Hans Georg Krauthaeuser
Mingus Tsai schrieb: Hello- please help with unpickling problem: I am using Python version 2.3.4 with IDLE version 1.0.3 on a Windows XPhome system. My problem is with using cPickle to deserialize my pickled arrays of datetime.datetime instances. The following is the code I have written:

Re: searching python/gui developper in germany

2005-10-13 Thread Hans Georg Krauthaeuser
malv schrieb: Hans Georg Krauthaeuser wrote: Dear all, for the measurements in our labs we have developed python scripts that are pretty fine for our needs. Basically, we have classes and call the appropriate methods from the command line (or by other scripts). So, we don't have any GUI. Now

searching python/gui developper in germany

2005-10-11 Thread Hans Georg Krauthaeuser
, Germany). If someone is interested: contact me by email, please. Best regards Hans Georg Krauthaeuser -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Tkinter Question

2005-04-14 Thread Hans Georg Krauthaeuser
Peter Otten schrieb: Pseud O'Nym wrote: the following fragment doesn't cause any errors and results in buttons the correct size for the images, but the buttons don't work, and the images aren't displayed. If I add a text property, and remove the images, they work fine, so the rest of my

Re: Text To Speech with pyTTS

2005-03-04 Thread Hans Georg Krauthaeuser
Peter wrote: I released a new version of the Windows installer for Python 2.3 that includes the missing _TTSFast.pyd file. Unfortunenately, the file TTSFast.py is missing, not _TTSFast.pyd. Hans Georg -- http://mail.python.org/mailman/listinfo/python-list

Re: Text To Speech with pyTTS

2005-02-28 Thread Hans Georg Krauthaeuser
Mike P. wrote: Hi, I was wondering if anyone has had any luck with the python text to speech (pyTTS) module available on Sourceforge: http://sourceforge.net/projects/uncassist I have followed the tutorial for pyTTS at: http://www.cs.unc.edu/~parente/tech/tr02.shtml Using the first simple speech

platform independent kbhit()

2005-01-17 Thread Hans Georg Krauthaeuser
this http://my.execpc.com/~geezer/software/kbhit.c C source that has a kbhit() and a getch() for linux/unix that I can SWIG to python. Are there other (more simple, pure python, true platform independent) possibilities? Best regards Hans Georg Krauthaeuser -- www.uni-magdeburg.de/krauthae -- http