Menu

SVN archive Commit Log


Commit Date  
[r2544] by macraild

Move RelaxWarning initialisation till after parsing of command line
arguments.

See: mail.gna.org/public/relax-devel/2006-08/msg00088.html

2006-08-31 13:38:20 Tree
[r2543] by macraild

Further modifications to the Warnings system.

Discussed in thread starting
https://mail.gna.org/public/relax-devel/2006-08/msg00082.html

2006-08-31 10:36:29 Tree
[r2542] by bugman

Shifting of the error and warning system initialisation to being after the Pedantic flag
initialisation but before the command line argument parsing. This removes the problem of the
AllRelaxErrors structure not being initialised prior to the command line argument parsing.

2006-08-30 05:00:05 Tree
[r2541] by macraild

Replaces missing imports in r2540

2006-08-18 09:46:08 Tree
[r2540] by macraild

A warning system for relax.

This is based on the system started in r2532, and is discussed in
detail in the thread starting:
https://mail.gna.org/public/relax-devel/2006-08/msg00071.html

The system is based on the standard Python warnings system.
Warnings are generated with the syntax:

warn(RelaxWarning(args))

where RelaxWarning can be any of the Warning classes defined in
errors.py, and args is an arbitrary number of arguments of
arbitrary type which are used by the Warning class to generate a
meaningful message string.

The system also impliments a --pedantic command-line flag, which
causes all warnings to be escalated to exceptions. All of the
relax warnings are subclasses of both BaseWarning and BaseError,
so the escalated exceptions will be caught by except clauses
based on these types.

A further feature in the current implimentation is to include
an exception-like traceback in the warning message when in
debug mode.

2006-08-17 16:32:54 Tree
[r2539] by macraild

Creating a new branch for work on the RelaxWarnings system

See discussion in thread starting:
https://mail.gna.org/public/relax-devel/2006-08/msg00071.html

2006-08-17 15:51:50 Tree
[r2538] by macraild

Rolling back revisions 2535-2537

See discussions in the thread starting:
https://mail.gna.org/public/relax-devel/2006-08/msg00052.html

2006-08-17 15:45:43 Tree
[r2537] by bugman

Modified the sys.exit() statements to return 1 to the shell to indicate failure.

2006-08-15 05:12:05 Tree
[r2536] by bugman

Significant improvements to the new error/warning system.

The idea of this system was suggested in two threads which commence at:
https://mail.gna.org/public/relax-devel/2006-08/msg00052.html
https://mail.gna.org/public/relax-devel/2006-08/msg00053.html

The improvements includes the addition of the printing of the traceback, the option of saving the
program state (self.relax.data pickling), a new way of calling the RelaxErrors or RelaxWarnings
(for example RelaxBadError('Hello')), addition of the warning functions, and a number of other small
changes.

2006-08-12 05:51:03 Tree
[r2535] by bugman

Start of a new relax error/warning subsystem.

The idea of this system was suggested in two threads which commence at:
https://mail.gna.org/public/relax-devel/2006-08/msg00052.html
https://mail.gna.org/public/relax-devel/2006-08/msg00053.html

Essentially a rudimentary framework for replacing the entire Error and Warning system has been set
up. Many essential elements are missing (for example the warning function, tracebacks, etc)
however it shouldn't take long to add these. This new system significantly simplifies the
RelaxError/RelaxWarning system, allows easy implementation of the --ignore-errors and --pedantic
command line flags (https://mail.gna.org/public/relax-devel/2006-08/msg00052.html), and allows fine
tuning of how RelaxErrors and RelaxWarnings are handled within the different relax user interfaces
(UIs).

2006-08-11 17:58:47 Tree
Older >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.