~denys.duchier/gecode-python/trunk

« back to all changes in this revision

Viewing changes to dev/_gecode.pyx

  • Committer: Denys Duchier
  • Date: 2011-12-12 17:53:12 UTC
  • Revision ID: denys.duchier@univ-orleans.fr-20111212175312-sfkjwln6t73djsp4
fix issue with NORMALIZED_PARAMETER_TYPES. refresh support for 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
630
630
def is_TaskTypeArgs(l):
631
631
    return is_list_or_tuple_of(l, TaskType)
632
632
 
633
 
NORMALIZED_PARAMETER_TYPES = [
634
 
     type(None), bool, int, float, str, Var, list, tuple, IntSet, TaskType]
 
633
NORMALIZED_PARAMETER_TYPES = (
 
634
     type(None), bool, int, float, str, Var, list, tuple, IntSet, TaskType)
635
635
 
636
636
IF HAS_REIFY == True:
637
637
 
664
664
          v = proto._get_bvar(bv)
665
665
          return Reify_(v,m)
666
666
 
667
 
     NORMALIZED_PARAMETER_TYPES.append(Reify)
 
667
     NORMALIZED_PARAMETER_TYPES = NORMALIZED_PARAMETER_TYPES + (Reify,)
668
668
 
669
669
def normalize_parameter(x):
670
670
     if isinstance(x, NORMALIZED_PARAMETER_TYPES):