Change by Matthew Hughes :
--
keywords: +patch
pull_requests: +23612
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24851
___
Python tracker
<https://bugs.python.org/issu
New submission from Matthew Hughes :
Just a small thing in these docs, there is a mix of "#include
", e.g.
https://github.com/python/cpython/blame/master/Doc/extending/newtypes_tutorial.rst#L243
and '#include "structmember.h"', mostly in the included samples e
Matthew Hughes added the comment:
I've attached a patch containing tests showing the current behavior, namely
that exit_on_error does not change the behavior of
argparse.ArgumentParser.parse_args in either case:
* An unrecognized option is given
* A required option is not given
Shoul
Matthew Hughes added the comment:
> typo in the docs that it should have used enabled instead of enable
Well spotted, I'll happily fix this up.
> I guess the docs by manually mean that ArgumentError will be raised when
> exit_on_error is False that can be handled.
To be clear
New submission from Matthew Hughes :
>>> import argparse
>>> parser = argparse.ArgumentParser(exit_on_error=False)
>>> parser.parse_args(["--unknown"])
usage: [-h]
: error: unrecognized arguments: --unknown
The docs https://docs.python.o
Change by Matthew Hughes :
--
pull_requests: +20541
pull_request: https://github.com/python/cpython/pull/21393
___
Python tracker
<https://bugs.python.org/issue37
Matthew Hughes added the comment:
Whoops, I realise the patch I shared contained a combination of two
(independent) approaches I tried:
1. Add sleep and perform cleanup
2. Naively patch catch_threading_exception to accept a cleanup routine to be
run upon exiting but before removing the
Matthew Hughes added the comment:
I noticed this test was still emitting a "ResourceWarning":
--
$ ./python -m test test_ssl -m TestPostHandshakeAuth
0:00:00 load avg: 0.74 Run tests sequentially
0:00:00 load avg:
Change by Matthew Hughes :
--
pull_requests: +20431
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21282
___
Python tracker
<https://bugs.python.org/issu
Matthew Hughes added the comment:
> Applications should not change this setting
> A read-only getter for the policy sounds like a good idea, though.
Thanks for the feedback, sounds reasonable to me. I'll happily work on getting
a PR up for the read-
New submission from Matthew Hughes :
While investigating Python's SSL I noticed there was no interface for
interacting with OpenSSL's SSL_CTX_{get,set}_security_level
(https://www.openssl.org/docs/manmaster/man3/SSL_CTX_get_security_level.html)
so I thought I'd look into
11 matches
Mail list logo