[issue1753718] base64 "legacy" functions violate RFC 3548

2016-01-10 Thread Martin Panter
Martin Panter added the comment: Uploaded a Python 3 patch to Issue 22088 which includes the doc string changes. -- ___ Python tracker ___

[issue1753718] base64 "legacy" functions violate RFC 3548

2016-01-02 Thread Martin Panter
Martin Panter added the comment: I was waiting for you to finish here to avoid any new merge conflicts. Now that you have committed your patch, I will try and work on mine in the next few days, and I am happy to update the doc strings at the same time. --

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-23 Thread R. David Murray
R. David Murray added the comment: Thanks everyone. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 105bf5dd93b8 by R David Murray in branch '3.5': #1753718: clarify RFC compliance and bytes/string argument types. https://hg.python.org/cpython/rev/105bf5dd93b8 New changeset 92760d2edc9e by R David Murray in branch 'default': Merge: #1753718:

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: While we are here, may be update docstrings too? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-20 Thread Martin Panter
Martin Panter added the comment: I understood “bytes-like” to mean what is now defined in the glossary: what is accepted by the C-level y* format for the PyArg parsing functions. I tend to agree with that it may not have been the best term to

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-20 Thread R. David Murray
R. David Murray added the comment: The term "bytes-like object" is specifically designed for those situations where python used to say "X does not support the buffer interface" if passed something else. Which is the case here...now it says "a bytes-like object is required". I'm not sure if

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-17 Thread R. David Murray
R. David Murray added the comment: The altchars 2 char limit is an assertion. That's a bug that should be dealt with separately. Either it should be turned into an error, or it should be dropped to match the docs. Probably the latter, since it is documented as OK and it might break code

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-17 Thread R. David Murray
R. David Murray added the comment: Fixed the spurious 'u'. -- Added file: http://bugs.python.org/file41343/issue-01753718.patch ___ Python tracker ___

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-17 Thread R. David Murray
R. David Murray added the comment: "or on python2" should be "or ported from python2". Also note that Nick's commit message specifically mentions a test for multi-dimensional input, so the module does indeed conform to the current bytes-like object definition in that regard. --

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-17 Thread R. David Murray
R. David Murray added the comment: The intent of the term "bytes-like object" it to make it possible to use it in documentation in the way I have used it here. That the buffer has a len is clearly discussed in the Buffer Protocol documentation, but of course that's only talking about the C

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-15 Thread R. David Murray
R. David Murray added the comment: Updated patch that addresses most of the comments. -- Added file: http://bugs.python.org/file41325/issue-01753718.patch ___ Python tracker

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-15 Thread R. David Murray
Changes by R. David Murray : -- versions: -Python 2.7 ___ Python tracker ___ ___

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-14 Thread R. David Murray
R. David Murray added the comment: How about we just make the docs more correct and say that input is read until readline() returns an empty bytes object? That should make it clear that a line-oriented file is expected. -- ___ Python tracker

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-14 Thread R. David Murray
R. David Murray added the comment: Updated patch. -- Added file: http://bugs.python.org/file41306/issue-01753718.patch ___ Python tracker ___

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-14 Thread Martin Panter
Martin Panter added the comment: The change to readline() works well. Any thoughts regarding my other comments? In particular, altchars and ignorechars cannot be arbitrary bytes-like objects. -- ___ Python tracker

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-14 Thread R. David Murray
R. David Murray added the comment: I missed the other comments somehow. Will take a look soon. -- ___ Python tracker ___

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-13 Thread Martin Panter
Martin Panter added the comment: Left some review comments. I left a comment about the original patch as well, because I didn’t notice the new patch in time :) Also, maybe we should say the input to the “legacy” MIME decode() function should be multiple lines, since it calls readline() with

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-13 Thread R. David Murray
R. David Murray added the comment: I started tweaking this patch, and wound up going through the whole doc and fixing the references to 'byte string' and 'string' throughout, as well as making all the entries consistent in how they reference the function arguments and output (previously some

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-06 Thread R. David Murray
R. David Murray added the comment: See also the discussion in issue 25495. I will try to review both of these issues soon. -- nosy: +r.david.murray versions: +Python 3.4, Python 3.5, Python 3.6 -Python 3.1, Python 3.2 ___ Python tracker

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-05 Thread Isobel Hooper
Isobel Hooper added the comment: Attached patch fixes library/base64.rst as requested, and adds a mention of RFC 3548 into the b2a_base64() docs in library/binascii.rst. I'm not sure I've made the changes against the right version of the docs - I think this might be against the 3.3 docs.

[issue1753718] base64 legacy functions violate RFC 3548

2010-09-17 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- assignee: barry - d...@python nosy: +d...@python versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1753718

[issue1753718] base64 legacy functions violate RFC 3548

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1753718 ___ ___

[issue1753718] base64 legacy functions violate RFC 3548

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- versions: +Python 2.5, Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1753718 _ ___ Python-bugs-list mailing list