Re: Need Help with Python/C API

2006-01-19 Thread Doru-Catalin Togea
On Thu, 18 Jan 2006, pycraze wrote: Hi! I don't really understand what you need/want. Can you explain in more details? >I Need to know how do i create a dictionary... eg: > n = pali_hash > n={} > n={1:{ } } -> i need to know how to make a key of a dictionary, to a > dictionary using Pyth

Addressing the modem via pyserial

2006-01-18 Thread Doru-Catalin Togea
Hi! I asked previously how to address the COM port from Python and I was directed to pyserial. It is very elegant and I guess it works very well. However, it seems that what I try to do is more complicated than I first thought. I want to make my modem place a call using the number '1234'. The

Addressing a COM port from Python

2006-01-17 Thread Doru-Catalin Togea
Hi! I am writing some tests and I need to place calls through the modem. Is there an API for addressing the COM ports on my machine, so that I can issue AT-commands to the modem? If this can not be done from Python, I am sure it can be done from C/C++/Java. Any tutorials/examples that you know

py2exe and Amara

2006-01-09 Thread Doru-Catalin Togea
Hi! I am using Amara 1.1.6 in a project. I made an executable with py2exe but when I try to run it I am referred to the log file, which states: Traceback (most recent call last): File "makeTestSpec.py", line 281, in ? File "makeTestSpec.py", line 114, in __init__ File "makeTestSpec.py",

Re: Newbie Question: CSV to XML

2006-01-08 Thread Doru-Catalin Togea
On Fri, 6 Jan 2006, ProvoWallis wrote: Hi! > Would anyone be willing to give me some feedback about this little > script that I wrote to convert CSV to XML. I'll happily admit that I > still have a lot to learn about Python so I'm always grateful for > constructive feedback. I have started using

Python based Compiler tools

2006-01-06 Thread Doru-Catalin Togea
Hi! I have some experience with PLY. What other alternatives are there, and which is the "best" (that is most feature rich, easiest to use, ...)? Thanks, Catalin -- == << We are what we repeatedly do. >> << Excelle

Re: Amara (XML) problem on Solaris

2005-12-14 Thread Doru-Catalin Togea
On Wed, 14 Dec 2005, Alan Franzoni wrote: > Also, are you sure the code is correct? I've taken a peek at the Amara's > website, and the create_document() function seems to lie within the > binderytools module. I think the line should look like: > > depending on the way you imported the module, but

Amara (XML) problem on Solaris

2005-12-13 Thread Doru-Catalin Togea
Hi! I have ActiveState Python 2.4.1 on Win XP Pro, with Amara 1.1.6. I have a script which works fine. I am trying to run the same script on a Solaris machine, with Python 2.4.2 and Amara 1.1.6. It gives me this error: bash-2.03$ python generateXML.py Traceback (most recent call last): File

Re: Capturing output from stderr

2005-12-05 Thread Doru-Catalin Togea
On Mon, 5 Dec 2005, Doru-Catalin Togea wrote: Found a solution: os.system("some command 1>out.txt 2>err.txt") > On solaris, I call a program from python with > > os.system("some command > outputFile.txt" ) > > This redirects the output o

Capturing output from stderr

2005-12-05 Thread Doru-Catalin Togea
Hi! On solaris, I call a program from python with os.system("some command > outputFile.txt" ) This redirects the output of "some command"'s stdout to "outputFile.txt". However I need to redirect or somehow capture the output from "some command"'s stderr to this file too. How can I do t

XML processing

2005-11-30 Thread Doru-Catalin Togea
Hi! I need to do some XML programming, and I have installed the PyXML package. However I read some stuff on the web that using the modules in PyXML is slow and not elegant and it uses up lots of memory, and I don't know what else. Is the current implementation of PyXML legging behind in compar