Changeset 7523:472a5bbd56ba


Ignore:
Timestamp:
11/26/07 19:35:20 (5 years ago)
Author:
Robert Bradshaw <robertwb@…>
Branch:
default
Message:

Fix segfault in coercion code for interfacing with sympy objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/structure/coerce.pyx

    r7522 r7523  
    2323import time 
    2424 
     25from sage_object cimport SageObject 
    2526import sage.categories.morphism 
    2627from sage.categories.action import InverseAction 
     
    329330             
    330331        try: 
    331             if PY_TYPE_CHECK(xp, type) or PY_TYPE_CHECK(yp, type): 
     332            if not PY_TYPE_CHECK(x, SageObject) or not PY_TYPE_CHECK(y, SageObject): 
    332333                x = x._sage_() 
    333334                y = y._sage_() 
Note: See TracChangeset for help on using the changeset viewer.