[issue41575] Please use active voice "Return foobar" instead of passive voice "foobar is returned"

2020-08-18 Thread Denilson Figueiredo de
New submission from Denilson Figueiredo de Sá : When reading the documentation for call_soon(), call_later(), call_at(), and several other functions, the sentence that describes the return value is in passive voice: https://docs.python.org/3/library/asyncio-eventloop.html > An instance

[issue14841] os.get_terminal_size() should check stdin as a fallback

2014-07-07 Thread Denilson Figueiredo de
Denilson Figueiredo de Sá added the comment: FYI, "tput" tool can find out the dimensions even when both stdin and stdout are redirected. It can't, however, if all stdin, stdout and stderr are redirected. Python should probably implement a similar logic. $ echo | stty size

[issue13609] Add "os.get_terminal_size()" function

2012-02-14 Thread Denilson Figueiredo de
Denilson Figueiredo de Sá added the comment: On Tue, Feb 14, 2012 at 22:17, Zbyszek Szmek wrote: > > I have four small questions: > - -1 is used as the argument meaning "try stdout and stdin". > - Why stderr is not checked too? I propose the following solution: accept

[issue13609] Add "os.get_terminal_size()" function

2012-01-21 Thread Denilson Figueiredo de
Denilson Figueiredo de Sá added the comment: On Sat, Jan 21, 2012 at 17:40, Giampaolo Rodola' wrote: > > Given the different opinions about the API, I think it's best to expose the > lowest > level functionality as-is, and let the user decide what to do (read env vars &

[issue13609] Add "os.get_terminal_size()" function

2011-12-16 Thread Denilson Figueiredo de
Denilson Figueiredo de Sá added the comment: Zbyszek, I just looked at [1] and I disagree that the environment variable should have higher precedence. In fact, I believe it should have lower precedence, and should be used as a fallback. [1]: http://bugs.python.org/file23241/patch1.1.diff

[issue13041] argparse: terminal width is not detected properly

2011-12-15 Thread Denilson Figueiredo de
Denilson Figueiredo de Sá added the comment: Issue #13609 created, but I don't have permission to edit the dependencies. -- ___ Python tracker <http://bugs.python.org/is

[issue13609] Add "os.get_terminal_size()" function

2011-12-15 Thread Denilson Figueiredo de
New submission from Denilson Figueiredo de Sá : Please add a function called "os.get_terminal_size()" that should return a tuple "(width, height)". The built-in "argparse" module would directly benefit from this function, as it would wrap the help text correct

[issue9399] Provide a 'print' action for argparse

2011-12-15 Thread Denilson Figueiredo de
Changes by Denilson Figueiredo de Sá : -- nosy: +denilsonsa ___ Python tracker <http://bugs.python.org/issue9399> ___ ___ Python-bugs-list mailing list Unsub

[issue13041] argparse: terminal width is not detected properly

2011-09-25 Thread Denilson Figueiredo de
Denilson Figueiredo de Sá added the comment: > #8408 was proposing a new module, which seems a bit overkill If a module seems overkill, then maybe add this useful function to os module. Don't leave it private to argparse module. Maybe something along these lines: >&

[issue12806] argparse: Hybrid help text formatter

2011-09-24 Thread Denilson Figueiredo de
Denilson Figueiredo de Sá 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 []

[issue13041] argparse: terminal width is not detected properly

2011-09-24 Thread Denilson Figueiredo de
Changes by Denilson Figueiredo de Sá : -- nosy: +denilsonsa ___ Python tracker <http://bugs.python.org/issue13041> ___ ___ Python-bugs-list mailing list Unsub

[issue13023] argparse should allow displaying argument default values in addition to setting a formatter class

2011-09-24 Thread Denilson Figueiredo de
Denilson Figueiredo de Sá added the comment: > adding a formatter instance seems overkill for the usual case of > wanting to preserve formatting of the epilog. Related bug (look at it before (re)designing the API): http://bugs.python.org/issu

[issue13023] argparse should allow displaying argument default values in addition to setting a formatter class

2011-09-20 Thread Denilson Figueiredo de
New submission from Denilson Figueiredo de Sá : In my script, I wanted two things at the same time: 1. Setting a formatter class so that the epilog would have the line breaks preserved. 2. Telling argparse to automatically display default values for all arguments. Currently, both things are

[issue12806] argparse: Hybrid help text formatter

2011-09-20 Thread Denilson Figueiredo de
Denilson Figueiredo de Sá added the comment: I was about to suggest this feature. I had the exact same need: a formatter that preserves newlines (and maybe whitespace), but that also automatically wraps the lines. In other words, the behavior would be similar to CSS property white-space

[issue8270] Should socket.PF_PACKET be removed, in favor of socket.AF_PACKET?

2010-03-30 Thread Denilson Figueiredo de
New submission from Denilson Figueiredo de Sá : If you look at socket module, there are around 29 AF_* constants (like AF_INET). On the other hand, there is only one PF_ constant: PF_PACKET. This constant is also defined as AF_PACKET. Following the "There should be one-- and preferably

[issue4947] sys.stdout fails to use default encoding as advertised

2009-05-26 Thread Denilson Figueiredo de
Changes by Denilson Figueiredo de Sá : -- nosy: +denilsonsa ___ Python tracker <http://bugs.python.org/issue4947> ___ ___ Python-bugs-list mailing list Unsub