[issue4297] Add error_log attribute to optparse.OptionParser

2008-11-11 Thread Daniel Watkins
New submission from Daniel Watkins [EMAIL PROTECTED]: I've recently had to subclass optparse.OptionParser, and copy-paste the exit method, just to change where errors were printed to (I needed stdout rather than stderr). I've also had a request from a client to log errors with command-line

[issue31129] RawConfigParser.items() is unusual in taking arguments

2017-08-14 Thread Daniel Watkins
Daniel Watkins added the comment: Having ironed out my confusion over typing the method, I agree that making the types more obvious is not a compelling argument for this change. That said, I think the current API has been confusing to me in the past, and I think the proposed change is still

[issue30949] Provide assertion functions in unittest.mock

2017-07-17 Thread Daniel Watkins
New submission from Daniel Watkins: The convenience assertion methods on mock objects can be easily mistyped and if they are mistyped, they will silently pass. This can be quite user-hostile. Consider the following: >>> example = Mock() >>> example.

[issue31040] mimetypes.add_type should complain when you give it an undotted ext

2017-07-25 Thread Daniel Watkins
New submission from Daniel Watkins: ``` import mimetypes print(mimetypes.guess_type('foo.manifest')) mimetypes.add_type('text/plain', 'manifest') print(mimetypes.guess_type('foo.manifest')) ``` results in: ``` ('application/x-ms-manifest', None) ('application/x-ms-manifest', None) ``` I

[issue31040] mimetypes.add_type should complain when you give it an undotted ext

2017-07-25 Thread Daniel Watkins
Changes by Daniel Watkins <dan...@daniel-watkins.co.uk>: -- pull_requests: +2922 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue31040] mimetypes.add_type should complain when you give it an undotted ext

2017-07-26 Thread Daniel Watkins
Changes by Daniel Watkins <dan...@daniel-watkins.co.uk>: -- pull_requests: +2948 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue31129] RawConfigParser.items() is unusual in taking arguments

2017-08-06 Thread Daniel Watkins
New submission from Daniel Watkins: A grep through the codebase shows that RawConfigParser.items() is the only .items() method in the stdlib which accepts arguments. This is annoying as a stdlib user because when I see the arguments being passed to RawConfigParser.items(), I have _no idea_

[issue31129] RawConfigParser.items() is unusual in taking arguments

2017-08-06 Thread Daniel Watkins
Changes by Daniel Watkins <dan...@daniel-watkins.co.uk>: -- pull_requests: +3045 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-06 Thread Daniel Watkins
Daniel Watkins added the comment: Hey folks, Thanks for all the work on this: I really appreciate the efforts to keep Python as secure as possible! This change _is_ causing us problems in the cloud-init codebase, which thankfully have been caught by our testing in Ubuntu's development

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-06 Thread Daniel Watkins
Daniel Watkins added the comment: (Accidentally dropped Ned from nosy list; apologies!) -- nosy: +ned.deily ___ Python tracker <https://bugs.python.org/issue43