cython.git
18 years agoModified usage banner.
William Stein [Sat, 25 Nov 2006 09:26:53 +0000 (01:26 -0800)]
Modified usage banner.

18 years agoHad to also put the type code in for the signed case.
William Stein [Fri, 3 Nov 2006 23:41:38 +0000 (15:41 -0800)]
Had to also put the type code in for the signed case.

18 years agoMade some error output more verbose.
William Stein [Fri, 3 Nov 2006 23:34:50 +0000 (15:34 -0800)]
Made some error output more verbose.

18 years agoAdded support for automatic conversion of input types to Py_ssize_t.
William Stein [Fri, 3 Nov 2006 23:34:39 +0000 (15:34 -0800)]
Added support for automatic conversion of input types to Py_ssize_t.

18 years agoMade annoted C files easier to read.
William Stein [Fri, 3 Nov 2006 17:33:27 +0000 (09:33 -0800)]
Made annoted C files easier to read.

18 years agoFix one warning was too high a level
William Stein [Fri, 3 Nov 2006 04:29:29 +0000 (20:29 -0800)]
Fix one warning was too high a level

18 years agoMade the output generated by Pyrex much more verbose with better context information.
William Stein [Thu, 2 Nov 2006 15:46:17 +0000 (07:46 -0800)]
Made the output generated by Pyrex much more verbose with better context information.

For example:

  /* "/Volumes/HOME/s/devel/sage-1/sage/matrix/matrix_generic_sparse.pyx":581
    x = set(v.keys()).intersection(set(w.keys()))
    a = 0
    for k in x:             # <<<<<<<<<<<<<<
        a = a + v[k]*w[k]
    return a
 */
  __pyx_3 = PyObject_GetIter(__pyx_v_x); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; goto __pyx_L1;}
  for (;;) {

18 years agoChanged that error to a warning.
William Stein [Sun, 29 Oct 2006 01:21:12 +0000 (18:21 -0700)]
Changed that error to a warning.

18 years agoFixed an error in a call to the error function.
William Stein [Sun, 29 Oct 2006 01:19:51 +0000 (18:19 -0700)]
Fixed an error in a call to the error function.

18 years agoFix a Py_ssize_t build problem.
William Stein [Fri, 27 Oct 2006 11:22:40 +0000 (06:22 -0500)]
Fix a Py_ssize_t build problem.

18 years agoAdd a new option "-e" or "--embed-positions" to Pyrex.
William Stein [Wed, 25 Oct 2006 07:05:47 +0000 (02:05 -0500)]
Add a new option "-e" or "--embed-positions" to Pyrex.

  -p, --embed-positions          If specified, the positions in Pyrex files of each
                                 function definition is embedded in its docstring.

This is very useful to support interactive viewing of *Pyrex* source
code in, e.g, IPython.

18 years agoChange so that warning for multiple declarations are printed by default.
William Stein [Wed, 25 Oct 2006 06:21:53 +0000 (01:21 -0500)]
Change so that warning for multiple declarations are printed by default.

18 years agoDelete spurious print statement (that was used for debugging).
William Stein [Mon, 23 Oct 2006 03:51:53 +0000 (22:51 -0500)]
Delete spurious print statement (that was used for debugging).

18 years agoAdd correct setting of tp_name to the full module name in Nodes.py.
William Stein [Sun, 22 Oct 2006 04:56:20 +0000 (21:56 -0700)]
Add correct setting of tp_name to the full module name in Nodes.py.

  This required a number of changes to a few files.  Basically, the
  full module name is determined in Main.py. It is then passed around
  a bit until it is used when generating tp_name.

  This change was needed because otherwise pickling of extension classes
  with full module names like sage.rings.integer.Integer would fail
  (since Python would look for integer.Integer instead).  NOTE: This is
  pickling of the extension class itself, not of instances (which could
  also fail, because the class doesn't pickle).

18 years agoPrint out the usage message if pyrexc is called with no options and no input source...
William Stein [Sun, 22 Oct 2006 04:54:06 +0000 (21:54 -0700)]
Print out the usage message if pyrexc is called with no options and no input source files.

18 years agoDon't list experimental macosx only options. Never needed in context of SAGE.
William Stein [Sun, 22 Oct 2006 03:56:56 +0000 (20:56 -0700)]
Don't list experimental macosx only options.  Never needed in context of SAGE.

18 years agoAdd to help that multiple include directories are allowed.
William Stein [Sun, 22 Oct 2006 03:55:47 +0000 (20:55 -0700)]
Add to help that multiple include directories are allowed.

18 years agoAdded nice error messages with context information.
William Stein [Sun, 22 Oct 2006 02:47:08 +0000 (19:47 -0700)]
Added nice error messages with context information.

Finally, you can see the line itself where the error occured,
instead of just the line number!!

18 years agoPrint "warning: " before warnings, so they look different than errors.
William Stein [Sun, 22 Oct 2006 02:35:04 +0000 (19:35 -0700)]
Print "warning: " before warnings, so they look different than errors.

18 years agoAdded a "Warning" class, and changed it so redeclaring or re-importing is a warning...
William Stein [Sun, 22 Oct 2006 01:53:34 +0000 (18:53 -0700)]
Added a "Warning" class, and changed it so redeclaring or re-importing is a warning rather than an error.

    Because Pyrex has no #ifndef macro, it is impossibly painful to use
    pxi files for declarations in a large project.  SAGE is a large project.
    Also, in Python it is not an error to import a module twice.  Thus
    more in line with Python's behavior, multiple declarations of the same
    symbol is no longer an error.

18 years agoVersion of Pyrex distributed with SAGE on October 19, 2006
William Stein [Fri, 20 Oct 2006 04:30:50 +0000 (21:30 -0700)]
Version of Pyrex distributed with SAGE on October 19, 2006

18 years agoOfficial Pyrex version 0.9.4.1
William Stein [Fri, 20 Oct 2006 04:28:18 +0000 (21:28 -0700)]
Official Pyrex version 0.9.4.1