Re: Recommendations (or best practices) to define functions (or methods)

2007-01-08 Thread Frank Millman
Diez B. Roggisch wrote: > > If you don't handle the exceptions, exactly what you seem to want will > happen - you will see the interpreter stop, and why. > > All you did was to take the unpythonic (and un-javaic and un-C#ic) road > to transform an exception to a returncode. But that has nothing to

Re: Recommendations (or best practices) to define functions (or methods)

2007-01-08 Thread Diez B. Roggisch
vizcayno schrieb: > Diez B. Roggisch ha escrito: > >> vizcayno schrieb: >>> Hello: >>> Need your help in the "correct" definition of the next function. If >>> necessary, I would like to know about a web site or documentation that >>> tells me about best practices in defining functions, especially

Re: Recommendations (or best practices) to define functions (or methods)

2007-01-08 Thread Bruno Desthuilliers
vizcayno a écrit : > Hello: > Need your help in the "correct" definition of the next function. If > necessary, I would like to know about a web site or documentation that > tells me about best practices in defining functions, especially for > those that consider the error exceptions management. > I

Re: Recommendations (or best practices) to define functions (or methods)

2007-01-08 Thread vizcayno
Thank you for your guidelines and for changing my mind. I am trying to do my best in generating good code and, in that attempt ... I only know that nothing know. Regards. -- http://mail.python.org/mailman/listinfo/python-list

Re: Recommendations (or best practices) to define functions (or methods)

2007-01-08 Thread Gabriel Genellina
At Monday 8/1/2007 10:25, vizcayno wrote: However, what happens when the error is due to data error. Or when the program is reading many files to save data into a database and one or two files have problems with data format. I would like to keep the program running (using exception in a controll

Re: Recommendations (or best practices) to define functions (or methods)

2007-01-08 Thread vizcayno
Diez B. Roggisch ha escrito: > vizcayno schrieb: > > Hello: > > Need your help in the "correct" definition of the next function. If > > necessary, I would like to know about a web site or documentation that > > tells me about best practices in defining functions, especially for > > those that con

Re: Recommendations (or best practices) to define functions (or methods)

2007-01-08 Thread vizcayno
Diez B. Roggisch ha escrito: > vizcayno schrieb: > > Hello: > > Need your help in the "correct" definition of the next function. If > > necessary, I would like to know about a web site or documentation that > > tells me about best practices in defining functions, especially for > > those that con

Re: Recommendations (or best practices) to define functions (or methods)

2007-01-08 Thread vizcayno
Martin v. Löwis ha escrito: > vizcayno schrieb: > > Need your help in the "correct" definition of the next function. If > > necessary, I would like to know about a web site or documentation that > > tells me about best practices in defining functions, especially for > > those that consider the er

Re: Recommendations (or best practices) to define functions (or methods)

2007-01-08 Thread Diez B. Roggisch
vizcayno schrieb: > Hello: > Need your help in the "correct" definition of the next function. If > necessary, I would like to know about a web site or documentation that > tells me about best practices in defining functions, especially for > those that consider the error exceptions management. > I

Re: Recommendations (or best practices) to define functions (or methods)

2007-01-08 Thread Martin v. Löwis
Frank Millman schrieb: > If there is something wrong with the SQL statement, I do not want to > crash the server, I want to notify the client that there was something > wrong, so that the offending module can be corrected and reloaded. Right. In a distributed system, you should propagate the error

Re: Recommendations (or best practices) to define functions (or methods)

2007-01-08 Thread Frank Millman
Martin v. Löwis wrote: > vizcayno schrieb: > > Need your help in the "correct" definition of the next function. If > > necessary, I would like to know about a web site or documentation that > > tells me about best practices in defining functions, especially for > > those that consider the error ex

Re: Recommendations (or best practices) to define functions (or methods)

2007-01-07 Thread Martin v. Löwis
vizcayno schrieb: > Need your help in the "correct" definition of the next function. If > necessary, I would like to know about a web site or documentation that > tells me about best practices in defining functions, especially for > those that consider the error exceptions management. I agree with

Re: Recommendations (or best practices) to define functions (or methods)

2007-01-07 Thread George Sakkis
vizcayno wrote: > Hello: > Need your help in the "correct" definition of the next function. If > necessary, I would like to know about a web site or documentation that > tells me about best practices in defining functions, especially for > those that consider the error exceptions management. > I h

Recommendations (or best practices) to define functions (or methods)

2007-01-07 Thread vizcayno
Hello: Need your help in the "correct" definition of the next function. If necessary, I would like to know about a web site or documentation that tells me about best practices in defining functions, especially for those that consider the error exceptions management. I have the next alternatives but