In working on the eigenspaces command, if an inexact ring uses the generic algorithm, we want to warn the user that the answer may not make sense because of numerical issues. Currently this is done by refusing to compute the eigenspaces unless a special option is set to true. Instead, I propose we use the standard Python warning features in the warnings module (see http://docs.python.org/lib/module-warnings.html ) As I understand it, warnings in Python are just exceptions that are treated in special ways. Using the warnings module, the user can decide to have warnings trigger different actions, from nothing to printing out error messages to throwing exceptions. I propose we add some warning classes to Sage that can be used as a general framework for warnings, much as the current exception framework is used. Python has several builtin warning categories, including a DeprecationWarning class, etc. I propose we add the following warning classes SageWarning - NumericalPrecisionWarning - ??? Okay, so I'm not very creative. What other warnings would be nice for Sage to have? Thanks, Jason --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@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-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---