Ignore:
Timestamp:
02/19/06 03:10:24 (8 years ago)
Author:
xi
Message:

Fix segfault under Python2.3.

Support for complex numbers.

Add /usr/local to the search path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_loader.py

    r23 r49  
    1616 
    1717try: 
    18     import sets 
    19 except ImportError: 
    20     class _sets: 
    21         def Set(self, items): 
     18    Set = set 
     19except: 
     20    try: 
     21        from sets import Set 
     22    except ImportError: 
     23        def Set(items): 
    2224            set = {} 
    2325            for items in items: 
    2426                set[items] = None 
    2527            return set 
    26     sets = _sets() 
     28 
    2729 
    2830INF = 1e300000 
     
    128130""", { 
    129131#    'baseball players': sets.Set(['Mark McGwire', 'Sammy Sosa', 'Ken Griffey']), 
    130     'baseball teams': sets.Set(['Boston Red Sox', 'Detroit Tigers', 'New York Yankees']), 
     132    'baseball teams': Set(['Boston Red Sox', 'Detroit Tigers', 'New York Yankees']), 
    131133} 
    132134 
Note: See TracChangeset for help on using the changeset viewer.