Changes between Initial Version and Version 1 of Ticket #26314, comment 13
- Timestamp:
- 10/02/18 13:34:46 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26314, comment 13
initial v1 2 2 > where Python 3 returns bytes, instead of making two separate cases, in the past I have done something like `print(E.read().decode('ascii'))`. This will have the same result in both cases. 3 3 > 4 I know, i hesitated between the two syntax and, as it is an {{{EXAMPLES::}}}, have think that the {{{# py2}}}-{{{# py3}}} might be clearer for the end-user.4 I know, i hesitated between the two syntax and, as it is an {{{EXAMPLES::}}}, have think that the {{{# py2}}}-{{{# py3}}} syntax might be clearer for the end-user. 5 5 6 6 I don't have a strong opinion on it, tell me what you prefer. If the past cases you talk about are also {{{EXAMPLES::}}} we should stick with the {{{decode('ascii')}}} solution for consistency.