Here is a snippet of code from cython.py in the main tree
(SAGE_ROOT/devel/sage/sage/misc/cython.py)

  def cython(filename, verbose=False, compile_message=False,
            use_cache=False, create_local_c_file=False, annotate=True,
sage_namespace=True):
      if not filename.endswith('pyx'):
          print "File (=%s) should have extension .pyx"%filename

      clean_filename = sanitize(filename)
====> base = os.path.split(os.path.splitext(clean_filename)[0])[1]
====> abs_base =
os.path.abspath(os.path.split(os.path.splitext(clean_filename)[0])[0])

It seems to me that the marked lines, in addition to being
hard to parse, do not have the intended effect. This is
because in the creation of clean_filename, the call to
the sanitize function converts all slashes and dots into
underscores, which are not 'picked up' by the calls to
the os.path.* functions.

Is this really what is intended?

Kate

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to