Message144518
> 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. |
|
Date |
User |
Action |
Args |
2011-09-25 03:10:05 | denilsonsa | set | recipients:
+ denilsonsa, bethard, eric.araujo, zbysz, GraylinKim |
2011-09-25 03:10:04 | denilsonsa | set | messageid: <1316920204.56.0.639972223995.issue12806@psf.upfronthosting.co.za> |
2011-09-25 03:10:03 | denilsonsa | link | issue12806 messages |
2011-09-25 03:10:03 | denilsonsa | create | |
|