This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author denilsonsa
Recipients GraylinKim, bethard, denilsonsa, eric.araujo, zbysz
Date 2011-09-25.03:10:03
SpamBayes Score 2.4980018e-15
Marked as misclassified No
Message-id <1316920204.56.0.639972223995.issue12806@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2011-09-25 03:10:05denilsonsasetrecipients: + denilsonsa, bethard, eric.araujo, zbysz, GraylinKim
2011-09-25 03:10:04denilsonsasetmessageid: <1316920204.56.0.639972223995.issue12806@psf.upfronthosting.co.za>
2011-09-25 03:10:03denilsonsalinkissue12806 messages
2011-09-25 03:10:03denilsonsacreate