[Bf-python] Submitted scripts and python versions
Martin Poirier
theeth at yahoo.com
Wed Apr 5 16:10:31 CEST 2006
--- Chris Want <cwant at ualberta.ca> wrote:
> Chris Want wrote:
> > That's not going to work:
> >
> > Python 2.3.5 (#2, Mar 6 2006, 10:12:24)
> > [GCC 4.0.3 20060304 (prerelease) (Debian
> 4.0.2-10)] on linux2
> > Type "help", "copyright", "credits" or "license"
> for more information.
> > >>> from Sets import set
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in ?
> > ImportError: No module named Sets
>
> This works though:
>
> Python 2.3.5 (#2, Aug 30 2005, 15:50:26)
> [GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)]
> on linux2
> Type "help", "copyright", "credits" or "license" for
> more information.
> >>> from sets import Set
For compatibility, you'd probably want to do this too:
from sets import Set as set
since the builtin set type in 2.4 is in lowercase
(IIRC).
Martin
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Bf-python
mailing list