Why Tcl/Tk?

2005-07-27 Thread Jerry He
I'm a little curious, why does most scripting languges(i.e. python and ruby) use Tcl/Tk rather than wx or Fox as its standard GUI? Although I did notice that the Vpython IDE that uses Tkinker starts up a lot faster than the DrPython IDE that uses wxpython. But that makes no sense, Tk is based on Tc

functions without parentheses

2005-07-28 Thread Jerry He
Hi, Is it possible to create a function that you can use without parenthesizing the arguments? for example, for def examine(str): . . Is there some way to define it so that I can call it like examine "string" instead of examine("string")? thanks in advance -Jerry

installing SWIG for python

2005-08-06 Thread Jerry He
Hi, I just installed SWIG on Windows(Cygwin) and tried to use it to compile some of the example python programs. For the first two commands it produced no error swig -python example.i gcc -c example.c example_wrap.c -I \ /usr/include/python2.4 For the third one however ld -shared

Installing/Using SWIG for python again

2005-08-06 Thread Jerry He
>From Jerry He: >For the third one however >ld -shared example.o example_wrap.o -o _example.so >It gave me a long list of errors listed at the end of >this email. Ok, I managed to get rid of the weird Tcl_Append, and strlen error messages, but right now I'm left with und

SWIG again

2005-08-06 Thread Jerry He
Robert Kern >Write a distutils setup.py script to do all of the >compiling and linking. Ok, I wrote the following distutils setup.py script from distutils.core import setup, Extension setup (name = 'example', version = '2.4', ext_modules = [Extension('example', \ ['example.c',

re:SWIG again

2005-08-06 Thread Jerry He
> Robert Kern >Please don't make a new thread every time you post. sorry, I chose the digest mode when I signed up, and I have no idea how to reply, nor any idea how to change to the normal mode where I get individual emails so I can actually just hit the reply button instead of copying your name

Re: SWIG again

2005-08-07 Thread Jerry He
> Can you tell me how to completely remove that > module? > > For cygwin, it should be in whatever corresponds to > /usr/lib/python2.4/site-packages . > > -- > Robert Kern > [EMAIL PROTECTED] > Hi, Do you mean to say that all I have to do is delete "example.py" and the "build" folder? (not

Is there a way of executing a command in a string?

2005-08-09 Thread Jerry He
Hi, suppose I have the following string cmdstr = "b = lambda s: s*s" Is there a way to execute this string other than copying it onto a file and then importing it? thanks in advance, Jerry __ Do You Yahoo!? Tired of spam? Yahoo! Mail has

distutils on Win32 using .NET Framework SDK

2005-08-14 Thread Jerry He
Hi, I was trying to build a C++ extension on Win32 with distutils. The extension worked on Cygwin but when I tried it with the Win32-build python, it complained that I don't have .NET Framework SDK installed. But after I installed .NET Framework SDK 2.0, it still complains "error: The .NET Frame