# HG changeset patch
# User Karl-Dieter Crisman <kcrisman@gmail.com>
# Date 1233405628 18000
# Node ID e5f6de3bab5f64a81404059bea922bef55d13b06
# Parent  8f896c67fc104c08051c5bc088db48f0985d5cfb
Change remaining SageX refs to Cython

diff -r 8f896c67fc10 -r e5f6de3bab5f sage/calculus/var.pyx
--- a/sage/calculus/var.pyx	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/calculus/var.pyx	Sat Jan 31 07:40:28 2009 -0500
@@ -51,7 +51,7 @@
         sage: parent(theta)
         Symbolic Ring
     """
-    G = globals()  # this is the reason the code must be in SageX.
+    G = globals()  # this is the reason the code must be in Cython.
     if ns:
         v = new_var(s)
     else:
@@ -104,7 +104,7 @@
     if len(args) > 0:
         return function(s)(*args)
     
-    G = globals()  # this is the reason the code must be in SageX.
+    G = globals()  # this is the reason the code must be in Cython.
     v = calculus.function(s)
     if isinstance(v, tuple):
         for x in v:
diff -r 8f896c67fc10 -r e5f6de3bab5f sage/ext/python.pxi
--- a/sage/ext/python.pxi	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/ext/python.pxi	Sat Jan 31 07:40:28 2009 -0500
@@ -1,13 +1,13 @@
 #####################################################################
 #
-# These are the "SageX" pxi files for (most of) the Python/C API.
+# These are the Cython (SageX) pxi files for (most of) the Python/C API.
 #
-#    SageX = SAGE Pyrex, which is a fork of Pyrex for use in SAGE.
+#    Cython ( = SageX ) = SAGE Pyrex, which is a fork of Pyrex for use in SAGE.
 #
 # REFERENCE COUNTING:
 #
 #   JUST TO SCARE YOU:
-#   If you are going to use any of the Python/C API in your SageX
+#   If you are going to use any of the Python/C API in your Cython
 #   program, you might be responsible for doing reference counting.
 #   Read http://docs.python.org/api/refcounts.html which is so
 #   important I've copied it below.
@@ -15,10 +15,10 @@
 # For all the declaration below, whenver the Py_ function returns
 # a *new reference* to a PyObject*, the return type is "object".
 # When the function returns a borrowed reference, the return
-# type is PyObject*.  When SageX sees "object" as a return type
+# type is PyObject*.  When Cython sees "object" as a return type
 # it doesn't increment the reference count.  When it sees PyObject*
 # in order to use the result you must explicitly cast to <object>,
-# and when you do that SageX increments the reference count wether
+# and when you do that Cython increments the reference count wether
 # you want it to or not, forcing you to an explicit DECREF (or leak memory).
 # To avoid this we make the above convention.  Note, you can
 # always locally override this convention by putting something like
@@ -26,10 +26,10 @@
 #     cdef extern from "Python.h":
 #         PyObject* PyNumber_Add(PyObject *o1, PyObject *o2)
 #
-# in your file after any .pxi includes.  SageX will use the latest
+# in your file after any .pxi includes.  Cython will use the latest
 # declaration. 
 #
-# SageX takes care of this automatically for anything of type object.
+# Cython takes care of this automatically for anything of type object.
 ## More precisely, I think the correct convention for
 ## using the Python/C API from Pyrex is as follows.
 ##
diff -r 8f896c67fc10 -r e5f6de3bab5f sage/graphs/graph_fast.pyx
--- a/sage/graphs/graph_fast.pyx	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/graphs/graph_fast.pyx	Sat Jan 31 07:40:28 2009 -0500
@@ -1,5 +1,5 @@
 """
-Graph Theory SageX functions
+Graph Theory Cython functions
 
 AUTHORS:
     -- Robert L. Miller   (2007-02-13): initial version
diff -r 8f896c67fc10 -r e5f6de3bab5f sage/libs/pari/gen.pyx
--- a/sage/libs/pari/gen.pyx	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/libs/pari/gen.pyx	Sat Jan 31 07:40:28 2009 -0500
@@ -7241,7 +7241,7 @@
             return x
         raise TypeError, "x must be a PARI object"
 
-    cdef _an_element_c_impl(self):  # override this in SageX
+    cdef _an_element_c_impl(self):  # override this in Cython
         return self.ZERO
 
 # Commented out by John Cremona 2008-09-06 -- never used and confusing.
diff -r 8f896c67fc10 -r e5f6de3bab5f sage/misc/cython.py
--- a/sage/misc/cython.py	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/misc/cython.py	Sat Jan 31 07:40:28 2009 -0500
@@ -513,7 +513,7 @@
     Compile filename and make it available as a loadable shared object file.
     
     INPUT:
-        filename -- string: a Sagex (.spyx) file
+        filename -- string: a Cython (formerly SageX) (.spyx) file
     
     OUTPUT:
         None
diff -r 8f896c67fc10 -r e5f6de3bab5f sage/misc/reset.pyx
--- a/sage/misc/reset.pyx	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/misc/reset.pyx	Sat Jan 31 07:40:28 2009 -0500
@@ -28,7 +28,7 @@
     if not vars is None:
         restore(vars)
         return
-    G = globals()  # this is the reason the code must be in SageX.
+    G = globals()  # this is the reason the code must be in Cython.
     T = type(sys)
     for k in G.keys():
         if k[0] != '_' and type(k) != T and k not in EXCLUDE:
@@ -75,7 +75,7 @@
         ...
         NameError: name 'ww' is not defined
     """
-    G = globals()  # this is the reason the code must be in SageX.
+    G = globals()  # this is the reason the code must be in Cython.
     if not G.has_key('sage_mode'):
         import sage.all
         D = sage.all.__dict__
diff -r 8f896c67fc10 -r e5f6de3bab5f sage/misc/sagex_ds.pyx
--- a/sage/misc/sagex_ds.pyx	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/misc/sagex_ds.pyx	Sat Jan 31 07:40:28 2009 -0500
@@ -1,5 +1,5 @@
 """
-Implements a few data structures in SageX.
+Implements a few data structures in Cython (SageX).
 
 AUTHORS:
     -- Tom Boothby (2007-02-15).  Initial version free for any use (public domain).
diff -r 8f896c67fc10 -r e5f6de3bab5f sage/rings/integer.pyx
--- a/sage/rings/integer.pyx	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/rings/integer.pyx	Sat Jan 31 07:40:28 2009 -0500
@@ -4156,7 +4156,7 @@
 # To avoid this we calculate the byte offset of the value member and
 # remember it in this variable.
 #
-# Eventually this may be rendered obsolete by a change in SageX allowing 
+# Eventually this may be rendered obsolete by a change in Cython allowing 
 # non-reference counted extension types. 
 cdef long mpz_t_offset
 mpz_t_offset_python = None
@@ -4332,7 +4332,7 @@
     # an Integer which includes reference counting. Reference counting
     # is bad in constructors and destructors as it potentially calls
     # the destructor.
-    # Eventually this may be rendered obsolete by a change in SageX allowing 
+    # Eventually this may be rendered obsolete by a change in Cython allowing 
     # non-reference counted extension types. 
     mpz_t_offset = <char *>(&global_dummy_Integer.value) - <char *>o
     global mpz_t_offset_python
diff -r 8f896c67fc10 -r e5f6de3bab5f sage/rings/integer_mod_ring.py
--- a/sage/rings/integer_mod_ring.py	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/rings/integer_mod_ring.py	Sat Jan 31 07:40:28 2009 -0500
@@ -31,7 +31,7 @@
 AUTHORS
     -- William Stein (initial code)
     -- David Joyner (2005-12-22): most examples
-    -- Robert Bradshaw (2006-08-24): convert to SageX
+    -- Robert Bradshaw (2006-08-24): convert to SageX (Cython)
     -- William Stein (2007-04-29): square_roots_of_one    
 """
 
diff -r 8f896c67fc10 -r e5f6de3bab5f sage/rings/laurent_series_ring_element.pyx
--- a/sage/rings/laurent_series_ring_element.pyx	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/rings/laurent_series_ring_element.pyx	Sat Jan 31 07:40:28 2009 -0500
@@ -39,7 +39,7 @@
     -- William Stein: original version
     -- David Joyner: added examples 2006-01-22
     -- Robert Bradshaw: optimizations, shifting 2007-04
-    -- Robert Bradshaw: SageX version
+    -- Robert Bradshaw: Cython version
 """
 
 import operator
diff -r 8f896c67fc10 -r e5f6de3bab5f sage/rings/padics/tutorial.py
--- a/sage/rings/padics/tutorial.py	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/rings/padics/tutorial.py	Sat Jan 31 07:40:28 2009 -0500
@@ -25,7 +25,7 @@
 $p$-adics can be painfully slow at times when you're doing real
 computations.  However, finding and fixing bugs in Python code is
 \emph{far} easier than finding and fixing errors in the compiled
-alternative within SAGE (SageX), and Python code is also faster and
+alternative within SAGE (Cython), and Python code is also faster and
 easier to write.  We thus have significantly more functionality
 implemented and working than we would have if we had chosen to focus
 initially on speed.  And at some point in the future, we will go back
diff -r 8f896c67fc10 -r e5f6de3bab5f sage/rings/polynomial/polynomial_element.pyx
--- a/sage/rings/polynomial/polynomial_element.pyx	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/rings/polynomial/polynomial_element.pyx	Sat Jan 31 07:40:28 2009 -0500
@@ -4,7 +4,7 @@
 AUTHORS:
     -- William Stein: first version
     -- Martin Albrecht: Added singular coercion.
-    -- Robert Bradshaw: Move Polynomial_generic_dense to SageX
+    -- Robert Bradshaw: Move Polynomial_generic_dense to Cython
 
 TESTS:
      sage: R.<x> = ZZ[]
@@ -4212,7 +4212,7 @@
         return w
 
 # ----------------- inner functions -------------
-# Sagex can't handle function definitions inside other function
+# Cython can't handle function definitions inside other function
     
 
 cdef _karatsuba_sum(v,w):
diff -r 8f896c67fc10 -r e5f6de3bab5f sage/rings/power_series_ring_element.pyx
--- a/sage/rings/power_series_ring_element.pyx	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/rings/power_series_ring_element.pyx	Sat Jan 31 07:40:28 2009 -0500
@@ -8,7 +8,7 @@
    -- William Stein
    -- David Harvey (2006-09-11): added solve_linear_de() method
    -- Robert Bradshaw (2007-04): sqrt, rmul, lmul, shifting
-   -- Robert Bradshaw (2007-04): SageX version
+   -- Robert Bradshaw (2007-04): Cython version
 
 EXAMPLE:
     sage: R.<x> = PowerSeriesRing(ZZ)
diff -r 8f896c67fc10 -r e5f6de3bab5f sage/rings/real_rqdf.pyx
--- a/sage/rings/real_rqdf.pyx	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/rings/real_rqdf.pyx	Sat Jan 31 07:40:28 2009 -0500
@@ -161,7 +161,7 @@
     cpdef bint is_exact(self) except -2:
         return False
 
-    cdef _an_element_c_impl(self):  # override this in SageX
+    cdef _an_element_c_impl(self):  # override this in Cython
         return self(1.23)
 
     def _latex_(self):
diff -r 8f896c67fc10 -r e5f6de3bab5f sage/structure/parent_old.pyx
--- a/sage/structure/parent_old.pyx	Wed Jan 28 16:22:42 2009 -0500
+++ b/sage/structure/parent_old.pyx	Sat Jan 31 07:40:28 2009 -0500
@@ -346,7 +346,7 @@
         else:
             return self._coerce_c_impl(x)
 
-    cdef _coerce_c_impl(self, x):     # OVERRIDE THIS FOR SAGEX CLASES
+    cdef _coerce_c_impl(self, x):     # OVERRIDE THIS FOR CYTHON CLASES
         """
         Canonically coerce x in assuming that the parent of x is not
         equal to self.
@@ -451,7 +451,7 @@
         check_old_coerce(self)
         return self._an_element_c_impl()
 
-    cdef _an_element_c_impl(self):  # override this in SageX
+    cdef _an_element_c_impl(self):  # override this in Cython
         """
         Returns an element of self. Want it in sufficent generality
         that poorly-written functions won't work when they're not
@@ -481,7 +481,7 @@
         check_old_coerce(self)
         return self._an_element_c()
         
-    cpdef _an_element_c(self):     # do not override this (call from SageX)
+    cpdef _an_element_c(self):     # do not override this (call from Cython)
         check_old_coerce(self)
         if not self.__an_element is None:
             return self.__an_element
@@ -532,10 +532,10 @@
             return PyBool_FromLong(r >= 0)
 
 ##     ####################################################################
-##     # For a derived SageX class, you **must** put the following in
+##     # For a derived Cython class, you **must** put the following in
 ##     # your subclasses, in order for it to take advantage of the
 ##     # above generic comparison code.  You must also define
-##     # _cmp_c_impl for a SageX class. 
+##     # _cmp_c_impl for a Cython class. 
 ##     #
 ##     # For a derived Python class, simply define __cmp__.
 ##     ####################################################################
