[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2014-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b4130b2f7748 by Senthil Kumaran in branch 'default':
merge from 3.4
http://hg.python.org/cpython/rev/b4130b2f7748

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15588
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2014-06-25 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Thanks for the review, Mark. Addressed that and committed the changes in 
changeset 606a18938476 (3.4)
changeset b4130b2f7748 (3.5)

--
nosy: +orsenthil
resolution:  - fixed
stage: patch review - resolved
status: open - closed
versions: +Python 3.5 -Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15588
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2014-06-24 Thread Mark Lawrence

Mark Lawrence added the comment:

Just one small query on the patch (more for my own benefit than anything else). 
 In the rst file there's now no difference between the wording for the 
quotetabs positional argument to encode and the keyword argument to 
encodestring.  Is there a rule (of thumb) that covers this situation?  Other 
than that LGTM.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15588
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2014-06-24 Thread R. David Murray

R. David Murray added the comment:

No, that's a good catch.  For a keyword argument, we generally do mention the 
default value in the text, and it looks like we still should in that instance, 
especially since it *is* different that it is a keyword argument and not 
positional like the method to which the text is giving a back-reference.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15588
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2014-06-20 Thread R. David Murray

R. David Murray added the comment:

Please do review it, Mark.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15588
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2014-06-19 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we have a review on this fairly small patch please.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15588
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2012-08-18 Thread Petri Lehtinen

Petri Lehtinen added the comment:

The encode() and decode() functions also expect binary file objects.

Attached a patch that changes documentation and docstrings. Removed the 
mentions of readline(), because read() is called on input instead, if the 
binascii module is available. Also removed the repeated descriptions of 
quotetabs and header in encodestring()'s docs.

--
keywords: +needs review, patch
nosy: +petri.lehtinen
stage:  - patch review
Added file: http://bugs.python.org/file26886/issue15588.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15588
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2012-08-08 Thread patrick vrijlandt

New submission from patrick vrijlandt:

quopri.py's functions encodestring and decodestring are documented to handle 
strings; and this is clearly suggested by their name. However, these functions 
accept and return bytes, not strings. This should be reflected in the 
documentation. 

Even better: deprecate these functions and introduce new ones with behaviour as 
suggested by their names: encode_string, encode_bytes etc.

--
assignee: docs@python
components: Documentation, Library (Lib)
messages: 167672
nosy: docs@python, patrick.vrijlandt
priority: normal
severity: normal
status: open
title: quopri: encodestring and decodestring handle bytes, not strings
type: behavior
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15588
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2012-08-08 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
components: +email
nosy: +barry, r.david.murray
versions: +Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15588
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com