RE: Register multiple excepthooks?

2022-07-31 Thread avi.e.gross
Albert-Jan, Unless there is something special in your scenario, aren't there many ways within python proper to create functions that effectively call another function or more as needed? Think decorators as one example. Of course if the caller expects some specific result when it calls your functi

Register multiple excepthooks?

2022-07-31 Thread Albert-Jan Roskam
Hi, I have a function init_logging.log_uncaught_errors() that I use for sys.excepthook. Now I also want to call another function (ffi.dlclose()) upon abnormal termination. Is it possible to register multiple excepthooks, like with atexit.register? Or should I rename/redefine log_u

Re: Simple TCP proxy

2022-07-31 Thread Morten W. Petersen
Well, initially I was just curious. As the name implies, it's a TCP proxy, and different features could go into that. I looked at for example port knocking for hindering unauthorized access to the (protected) TCP service SMPS, but there you also have the possibility of someone eavesdropping, and

Re: PEP about recommended project folder layout

2022-07-31 Thread Chris Angelico
On Sun, 31 Jul 2022 at 20:27, Weatherby,Gerard wrote: > > I’m not aware of any standard convention for laying out packages. > > PEP 8 (https://peps.python.org/pep-0008/) specifies conventions for how to > write Python, so a standard layout PEP would not be inconsistent. > PEP 8 species rules for

Re: PEP about recommended project folder layout

2022-07-31 Thread Weatherby,Gerard
I’m not aware of any standard convention for laying out packages. PEP 8 (https://peps.python.org/pep-0008/) specifies conventions for how to write Python, so a standard layout PEP would not be inconsistent. — Gerard Weatherby | Application Architect NMRbox | NAN | Department of Molecular Biolog