-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, Nov 10, 2002 at 12:55:36PM +0200, Kai Hendry wrote: > test.py is: > import re > p = re.compile('[a-z]+') > print p > > The first error message is from python2.1, python2.2 and last > python2.3 from SID. > > [EMAIL PROTECTED]:/tmp$ vim test.py > > Traceback (most recent call last): > File "test.py", line 1, in ? > import re > ImportError: Bad magic number in re.pyc > > shell returned 1 You are starting 'vim' and get a Python traceback? That must be something of your personal configuration, my vim is never executing Python code.
Instead, the following works for me just fine in SID: > python2.1 test.py <SRE_Pattern object at 0x80d54a8> > python2.2 test.py <_sre.SRE_Pattern object at 0x8127e58> > python2.3 test.py <_sre.SRE_Pattern object at 0x4027aa20> Cheers, Bastian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE9zj1HeBwlBDLsbz4RAnC5AKCOiVtig/Bj3sexjVCPA38kuQPxdQCeK4XV 8lkNUy5sSzCKF6Hh8U4gCX0= =mZHZ -----END PGP SIGNATURE-----