Python as a Language Choice

Marek "Baczek" Baczyński imbaczek at poczta.onet.pl
Fri Jun 20 02:58:43 CEST 2003


On Tue, 17 Jun 2003 10:10:09 -0700, Cousin Stanley wrote:

> I've only tried Python 2.2.1 and have just yesterday
> installed Python 2.3b1, but both seem very stable
> on the Win98 system that I use, although the amount
> of testing I've done with 2.3b1 is at this point limited ...

Doesn't really belong here I believe, but BTW:

C:\mingw\SWIG-1.3.19\Examples\python\import>python -V
Python 2.3b1

C:\mingw\SWIG-1.3.19\Examples\python\import>swig -version
SWIG Version 1.3.19
[...]

C:\mingw\SWIG-1.3.19\Examples\python\import>gcc -v
Reading specs from C:/MINGW/BIN/../lib/gcc-lib/mingw32/3.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
--host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
--disable-nls --enable-languages=f77,c++,objc,ada --disable-win32-registry
--disable-shared
Thread model: win32
gcc version 3.2 (mingw special 20020817-1)

C:\mingw\SWIG-1.3.19\Examples\python\import>python runme.py
Testing the %import directive
Creating some objects
Testing some methods
 Should see 'Base::A' ---> I'm Base::A
 Should see 'Base::B' ---> I'm Base::B
 Should see 'Foo::A' ---> I'm Foo::A
 Should see 'Foo::B' ---> I'm Foo::B
 Should see 'Bar::A' ---> I'm Bar::A
 Should see 'Bar::B' ---> I'm Bar::B
 Should see 'Spam::A' ---> I'm Spam::A
 Should see 'Spam::B' ---> I'm Spam::B

Testing some casts

 Should see 'Base::A' ---> I'm Base::A
 Should see 'Base::B' ---> I'm Base::B
 Should see 'Foo::A' --->
Traceback (most recent call last):
  File "runme.py", line 55, in ?
    x.A()
AttributeError: 'str' object has no attribute 'A'

Most unexpected, but that's the only problem I've stumbled across for now
(and it's propably swig's fault.)

Pozdrawiam, Baczek




More information about the Python-list mailing list