Re: Using loguru in a library

2023-05-02 Thread Roy Hann
Dieter Maurer wrote: > Roy Hann wrote at 2023-4-30 15:40 -: >>Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a >>library? >> ... >> import mylib >> logger.enable('mylib') >> >>expecting that it would report any log messages above level DEBUG, just >>as it does when I

Re: Editing PEP-8, in particular "expected 2 blanks, found 1

2023-05-02 Thread Thomas Passin
On 5/2/2023 4:39 PM, Kevin M. Wilson via Python-list wrote: Folks, help please! What the @#$! are these doing popping up. Code styles are personal, and not subject to debate.Where can I edit these out of my IDE? Kevin "When you pass through the waters, I will be with you: and when you pass throu

Re: Editing PEP-8, in particular "expected 2 blanks, found 1

2023-05-02 Thread 2QdxY4RzWzUUiLuE
On 2023-05-02 at 20:39:35 +, "Kevin M. Wilson via Python-list" wrote: > [...] Where can I edit these out of my IDE? I doubt anyone will know unless you at least tell us which IDE you're using. -- https://mail.python.org/mailman/listinfo/python-list

Editing PEP-8, in particular "expected 2 blanks, found 1

2023-05-02 Thread Kevin M. Wilson via Python-list
Folks, help please! What the @#$! are these doing popping up. Code styles are personal, and not subject to debate.Where can I edit these out of my IDE? Kevin "When you pass through the waters, I will be with you: and when you pass through the rivers, they will not sweep over you. When you walk th

Re: Using loguru in a library

2023-05-02 Thread Dieter Maurer
Roy Hann wrote at 2023-4-30 15:40 -: >Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a >library? > ... > import mylib > logger.enable('mylib') > >expecting that it would report any log messages above level DEBUG, just >as it does when I don't disable logging. Have you

Note when migrating '#' formats for PyArgs_ParseTuple

2023-05-02 Thread aapost
Just in case anyone else runs in to it. If you have code such as: char* a; char* b; char* d; int size; if (!PyArg_ParseTuple(args, "sss#:f", &a, &b, &d, &size)) return NULL; and it tells you to: #define PY_SSIZE_T_CLEAN #include "Python.h" Be sure to change int si

Re: Using loguru in a library

2023-05-02 Thread Roy Hann
MRAB wrote: > On 2023-04-30 16:40, Roy Hann wrote: >> Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a >> library? >> >> >> In my __init__.py in mylib I do >> >>logger.disable('mylib') >> >> which definitely works. I don't get any more logging. >> >> I "pip install