[issue39447] imaplib documentation claims that commands return a string, but they return bytes

2020-01-24 Thread Daniel Kahn Gillmor
Daniel Kahn Gillmor added the comment: I should note that the "header of the response" appears to also be a bytes object, not a string object. -- ___ Python tracker <https://bugs.python.o

[issue39447] imaplib documentation claims that commands return a string, but they return bytes

2020-01-24 Thread Daniel Kahn Gillmor
New submission from Daniel Kahn Gillmor : The imaplib documentation says: > Each command returns a tuple: (type, [data, ...]) where type is usually > 'OK' or 'NO', and data is either the text from the command response, or > mandated results from the command. Eac

[issue37564] ArgumentParser should support bool type according to truth values

2019-11-10 Thread Daniel Kahn Gillmor
Daniel Kahn Gillmor added the comment: this is a common enough question, and enough people want this behavior, that argparse should supply it. I'm imagining that: type='bool' would be fine for triggering this behavior, instead of the shadowing that could happen with

[issue17123] Add OCSP support to ssl module

2019-10-16 Thread Daniel Kahn Gillmor
Daniel Kahn Gillmor added the comment: On Thu 2019-10-10 01:38:42 +, Benjamin Peterson wrote: > Considering OSCP has fallen out of favor relative to CT in recent > years, may be should simply reject this feature request. CT provides the possibility of a website operator to *dete

[issue17123] Add OCSP support to ssl module

2019-10-09 Thread Daniel Kahn Gillmor
Daniel Kahn Gillmor added the comment: It would be great to see at least minimal OCSP stapling support (in the form of callbacks on the client and server sides) availabl in the ssl module, similar to the way that pyopenssl has added such callbacks: https://github.com/pyca/pyopenssl/pull

[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2017-03-02 Thread Daniel Kahn Gillmor
Daniel Kahn Gillmor added the comment: and here is python demonstration script that will build breaker.c and then use it to cause the error to be raised from shutils.rmtree. the output of demo.py looks like this: make: 'breaker' is up to date. Traceback (most recent call las

[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2017-03-02 Thread Daniel Kahn Gillmor
New submission from Daniel Kahn Gillmor: There is a race condition in shutil.rmtree, where if a file gets removed between when rmtree plans to remove it and when it gets around to removing it, a FileNotFound exception gets raised. The expected semantics of rmtree imply that if the filesystem

[issue14983] email.generator should always add newlines after closing boundaries

2013-09-21 Thread Daniel Kahn Gillmor
Daniel Kahn Gillmor added the comment: I think the relevant specification for PGP/MIME-signed messages is RFC 3156: https://tools.ietf.org/html/rfc3156#page-5 in particular: Note: The accepted OpenPGP convention is for signed data to end with a sequence. Note that the sequence