[issue30662] fix OrderedDict.__init__ docstring to reflect PEP 468

2017-06-13 Thread Jonathan Eunice

New submission from Jonathan Eunice:

In Python 3.6 and current repo (pre-3.7), the docstring for 
collections.OrderedDict.__init__() stats that keyword argument order is 
arbitrary. That is untrue if I properly understand PEP 468, which as of Python 
3.6 makes the order of kwargs stable / identical to the order seen in the 
source code.

Associated PR imminent.

--
components: Library (Lib)
messages: 295982
nosy: jonathaneunice
priority: normal
severity: normal
status: open
title: fix OrderedDict.__init__ docstring to reflect PEP 468
versions: Python 3.7

___
Python tracker 
<http://bugs.python.org/issue30662>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30662] fix OrderedDict.__init__ docstring to reflect PEP 468

2017-06-13 Thread Jonathan Eunice

Changes by Jonathan Eunice :


--
pull_requests: +2232

___
Python tracker 
<http://bugs.python.org/issue30662>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30662] fix OrderedDict.__init__ docstring to reflect PEP 468

2017-06-14 Thread Jonathan Eunice

Jonathan Eunice added the comment:

PR updated to incorporate Serhiy Storchaka and Brett Cannon feedback.

--

___
Python tracker 
<http://bugs.python.org/issue30662>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30603] textwrap: declining indent level has no test case

2017-06-14 Thread Jonathan Eunice

Changes by Jonathan Eunice :


--
pull_requests: +2250

___
Python tracker 
<http://bugs.python.org/issue30603>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30603] textwrap: declining indent level has no test case

2017-06-14 Thread Jonathan Eunice

Jonathan Eunice added the comment:

@emilyemorehouse Added new tests per your request:

https://github.com/python/cpython/pull/2206

--

___
Python tracker 
<http://bugs.python.org/issue30603>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice

New submission from Jonathan Eunice:

The textwrap module goes to great lengths to "do the right thing" when it finds 
the ASCII simulation of an em-dash (two or more consecutive hyphens), but it 
does nothing to recognize and similarly treat true (Unicode) em-dashes (aka 
'\N{EM DASH}', '\u2014', or U+2014). Real em-dashes should get at least as good 
a treatment as simulated em-dashes.

--
components: Library (Lib)
messages: 296124
nosy: jonathaneunice
priority: normal
severity: normal
status: open
title: textwrap should treat Unicode em-dash like ASCII em-dash
type: enhancement
versions: Python 3.7

___
Python tracker 
<http://bugs.python.org/issue30680>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice

Changes by Jonathan Eunice :


--
pull_requests: +2269

___
Python tracker 
<http://bugs.python.org/issue30680>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice

Jonathan Eunice added the comment:

Agreed. It makes great sense that textwrap started as highly ASCII-centric. But 
in the Python 3, Unicode-friendly era, ASCII-biased isn't where we should leave 
things.

--

___
Python tracker 
<http://bugs.python.org/issue30680>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30688] support named Unicode escapes (\N{name}) in re

2017-06-17 Thread Jonathan Eunice

New submission from Jonathan Eunice:

The re module specially handles Unicode escapes (\u and \U) so that 
even raw strings (r'...') have symbolic Unicode characters. But it has not 
supported named Unicode escapes such as r'\N{EM DASH}', making the escapes for 
string literals and the escapes for regular expressions asymmetric

--
components: Library (Lib)
messages: 296234
nosy: jonathaneunice
priority: normal
severity: normal
status: open
title: support named Unicode escapes (\N{name}) in re
type: enhancement
versions: Python 3.7

___
Python tracker 
<http://bugs.python.org/issue30688>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30688] support named Unicode escapes (\N{name}) in re

2017-06-17 Thread Jonathan Eunice

Changes by Jonathan Eunice :


--
pull_requests: +2311

___
Python tracker 
<http://bugs.python.org/issue30688>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30591] textwrap: placeholder backtracking special case lacks test coverage

2017-06-07 Thread Jonathan Eunice

New submission from Jonathan Eunice:

A rare case in textwrap when max_lines insufficient and textwrap needs to 
backtrack to a previous line to add the placeholder seems to lack test coverage.

This issue added as prereq for suggesting an additional test. PR imminent.

Code: Lib/textwrap.py (as is)
Test: Lib/test/test_textwrap.py (extended)

--
components: Tests
messages: 295354
nosy: jonathaneunice
priority: normal
severity: normal
status: open
title: textwrap: placeholder backtracking special case lacks test coverage
type: enhancement
versions: Python 3.6

___
Python tracker 
<http://bugs.python.org/issue30591>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30591] textwrap: placeholder backtracking special case lacks test coverage

2017-06-07 Thread Jonathan Eunice

Changes by Jonathan Eunice :


--
pull_requests: +2054

___
Python tracker 
<http://bugs.python.org/issue30591>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30603] textwrap: declining indent level has no test case

2017-06-08 Thread Jonathan Eunice

New submission from Jonathan Eunice:

The case where textwrap.dedent() handles a declining indent level, requiring it 
to revise its margin estimate downward, remains untested.

This issue is opened in support of an imminent PR that adds an appropriate test.

--
components: Library (Lib)
messages: 295464
nosy: jonathaneunice
priority: normal
severity: normal
status: open
title: textwrap: declining indent level has no test case
type: enhancement
versions: Python 3.7

___
Python tracker 
<http://bugs.python.org/issue30603>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30603] textwrap: declining indent level has no test case

2017-06-08 Thread Jonathan Eunice

Changes by Jonathan Eunice :


--
pull_requests: +2079

___
Python tracker 
<http://bugs.python.org/issue30603>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30620] textwrap: dedent contains logic that can never execute

2017-06-09 Thread Jonathan Eunice

New submission from Jonathan Eunice:

textwrap.dedent contains a bit of code that appears logical at first blush, but 
in fact can never execute under any input conditions.

Not only are the lines "dead code," they are the only thing (i.e. only 
non-debugging lines) now standing in the way of textwrap having 100% test 
coverage.

Here is the proof: 
https://gist.github.com/jonathaneunice/86f6a721e48c89e272a778530e8f758c

A PR removing the bogus lines is imminent.

--
components: Library (Lib)
messages: 295606
nosy: jonathaneunice
priority: normal
severity: normal
status: open
title: textwrap: dedent contains logic that can never execute
type: enhancement
versions: Python 3.7

___
Python tracker 
<http://bugs.python.org/issue30620>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30603] textwrap: declining indent level has no test case

2017-06-09 Thread Jonathan Eunice

Changes by Jonathan Eunice :


--
pull_requests: +2128

___
Python tracker 
<http://bugs.python.org/issue30603>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30620] textwrap: dedent contains logic that can never execute

2017-06-09 Thread Jonathan Eunice

Changes by Jonathan Eunice :


--
pull_requests: +2126

___
Python tracker 
<http://bugs.python.org/issue30620>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30591] textwrap: placeholder backtracking special case lacks test coverage

2017-06-09 Thread Jonathan Eunice

Changes by Jonathan Eunice :


--
pull_requests: +2127

___
Python tracker 
<http://bugs.python.org/issue30591>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com