Denilson Figueiredo de Sá <denilso...@gmail.com> added the comment:

> Good catch, I had intended on '-' being a valid list item character.
> It clearly needs to be escaped.

Either escaped, or it can be the first character in the set.

> but I happen to like list() and dict() instead of [] and {} for
> empty collections.

I just checked PEP 8, and unfortunately this is not mentioned in there. Maybe 
you could open a new issue (or post in a mailing list) to ask about which style 
should be recommended, and then add the conclusion to PEP 8.

> One a side note: due to #13041 the terminal width is normally stuck
> at 80 chars.

Getting the console width (and height) is something so common that I believe 
there should be a built-in Python library for doing that. And it's also 
something hard to do correctly (get COLUMNS variable, or use ioctl, or trap 
SIGWINCH signal, or do something completely different on non-unix, or fallback 
to hardcoded default or user-supplied default)

What's more, since built-in argparse module needs this feature, that is another 
good reason to get it inside standard Python library. It has been proposed 
before, but the issue was closed: #8408

Anyway, although I believe this is important, it is off-topic in this issue.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12806>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to