Re: [Python-ideas] Easing set-up of of console python applications

2018-02-10 Thread Mario Corchero
Sure thing! Will prepare it tomorrow. On Sat, 10 Feb 2018 at 21:00, Chris Angelico <ros...@gmail.com> wrote: > On Sun, Feb 11, 2018 at 7:49 AM, Mario Corchero <marioc...@gmail.com> > wrote: > > The recipe as you pointed out works by logging to both (just using > mult

Re: [Python-ideas] Easing set-up of of console python applications

2018-02-10 Thread Mario Corchero
0ad> and the filter here <https://gist.github.com/mariocj89/7d873fc84bf8723f5e2740adbeccde12>. Good point about just adding it to the how-to. On 10 February 2018 at 20:20, Chris Angelico <ros...@gmail.com> wrote: > On Sun, Feb 11, 2018 at 6:29 AM, Mario Corchero <marioc...@gmail.com

[Python-ideas] Easing set-up of of console python applications

2018-02-10 Thread Mario Corchero
eople like it I'll send an issue + PR. Regards, Mario Corchero ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

[Python-ideas] pdb to support running modules

2018-01-04 Thread Mario Corchero
Hello All, Since PEP 338 we can run python modules as a script via `python -m module_name` but there is no way to run pdb on those (AFAIK). The proposal is to add a new argument "-m" to the pdb module to allow users to run `python -m pdb -m

Re: [Python-ideas] Logging Levels

2017-11-28 Thread Mario Corchero
Yep, I personally prefer fatal so I'd be totally in for it. But as you said I can see an issue on the tools that work around the logs produced (typical alerting/monitoring around an app) and all the logs parsing stacks. On 28 November 2017 at 19:59, Guido van Rossum wrote: >

Re: [Python-ideas] Logging Levels

2017-11-28 Thread Mario Corchero
Not sure if that is what you meant, but here is already "FATAL" which is indeed an alias of CRITICAL: >>> logging.FATAL 50 >>> logging.fatal On 28 November 2017 at 19:45, Guido van Rossum wrote: > These look like good improvements. I think you should make an issue on >

Re: [Python-ideas] SealedMock proposal for unittest.mock

2017-06-01 Thread Mario Corchero
ode may already use this attribute. Maybe it can >> be a seal (mock) function which sets a secret attribute with a less common >> name? >> >> Yeah, please open an issue on bugs.python.org ;-) >> >> Victor >> >> >> Le 29 mai 2017 11:33 PM, "

[Python-ideas] SealedMock proposal for unittest.mock

2017-05-29 Thread Mario Corchero
Hello Everyone! First time writing to python-ideas. *Overview* Add a new mock class within the mock module , SealedMock (or RestrictedMock) that allows to restrict in a dynamic and recursive way the addition of attributes to it.