[Tutor] Why use decorators ?

2009-05-01 Thread sudhanshu gautam
Last night was using a pyglet for creating some good graphical applications ,it was my first introduction with the pyglet,so just went on pyglet.org and downloaded a pdf file . Now simply made two programs that is mentioned in the pdf of the pyglet program 1.It is simple program that prints 'HE

Re: [Tutor] Encode problem

2009-05-01 Thread Kent Johnson
On Fri, May 1, 2009 at 4:54 PM, Pablo P. F. de Faria wrote: > Hi, Kent. > > The stack trace is: > > Traceback (most recent call last): >  File "/home/pablo/workspace/E-Dictor/src/MainFrame.py", line 1057, in OnClose >    self.SavePreferences() >  File "/home/pablo/workspace/E-Dictor/src/MainFrame.

Re: [Tutor] Encode problem

2009-05-01 Thread spir
Le Fri, 1 May 2009 15:19:29 -0300, "Pablo P. F. de Faria" s'exprima ainsi: > self.cfg.write(codecs.open(self.properties_file,'w','utf-8')) > > As one can see, the character encoding is explicitly UTF-8. But > ConfigParser keeps trying to save it as a 'ascii' file and gives me > error for directo

Re: [Tutor] Encode problem

2009-05-01 Thread Kent Johnson
On Fri, May 1, 2009 at 2:19 PM, Pablo P. F. de Faria wrote: > Hi, all. I need some help. > > I'm trying to save a configuration file, using ConfigParser. The code > is the following: > > self.cfg.write(codecs.open(self.properties_file,'w','utf-8')) > > As one can see, the character encoding is exp

[Tutor] Encode problem

2009-05-01 Thread Pablo P. F. de Faria
Hi, all. I need some help. I'm trying to save a configuration file, using ConfigParser. The code is the following: self.cfg.write(codecs.open(self.properties_file,'w','utf-8')) As one can see, the character encoding is explicitly UTF-8. But ConfigParser keeps trying to save it as a 'ascii' file

Re: [Tutor] Running subProcesses in parallel for mixed external Windows.exe and Python functions on specified CPUs.

2009-05-01 Thread Tim Golden
Ian Campbell wrote: Running subProcesses in parallel for mixed external Windows.exe and Python functions on specified CPUs. How does a newbie start to make this work? [... snip most stuff ...] p11 = subprocess.Popen("C:\myDdeServer.exe ") # loads DDE Serverp12 = sub

Re: [Tutor] Running subProcesses in parallel for mixed external Windows.exe and Python functions on specified CPUs.

2009-05-01 Thread Alan Gauld
"Ian Campbell" wrote Running subProcesses in parallel for mixed external Windows.exe and Python functions on specified CPUs. This is getting a wee bit technical for the tutor list and only slightly related to Python - the real issue is how to do it using the Win32 API. I suspect you would

[Tutor] Running subProcesses in parallel for mixed external Windows.exe and Python functions on specified CPUs.

2009-05-01 Thread Ian Campbell
Running subProcesses in parallel for mixed external Windows.exe and Python functions on specified CPUs. How does a newbie start to make this work? def startMyFiles():(not real code, this is only for explaining my problem) import OS import time import sys import subprocess from win32e