[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 insta

[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 stty: standard input

[issue13609] Add os.get_terminal_size() function

2012-02-14 Thread Denilson Figueiredo de
Denilson Figueiredo de Sá denilso...@gmail.com added the comment: On Tue, Feb 14, 2012 at 22:17, Zbyszek Szmek rep...@bugs.python.org 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

[issue13609] Add os.get_terminal_size() function

2012-01-21 Thread Denilson Figueiredo de
Denilson Figueiredo de Sá denilso...@gmail.com added the comment: On Sat, Jan 21, 2012 at 17:40, Giampaolo Rodola' rep...@bugs.python.org 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

[issue13609] Add os.get_terminal_size() function

2011-12-16 Thread Denilson Figueiredo de
Denilson Figueiredo de Sá denilso...@gmail.com 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

[issue9399] Provide a 'print' action for argparse

2011-12-15 Thread Denilson Figueiredo de
Changes by Denilson Figueiredo de Sá denilso...@gmail.com: -- nosy: +denilsonsa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9399 ___ ___ Python

[issue13609] Add os.get_terminal_size() function

2011-12-15 Thread Denilson Figueiredo de
New submission from Denilson Figueiredo de Sá denilso...@gmail.com: 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 correctly. I'm pretty sure

[issue13041] argparse: terminal width is not detected properly

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

[issue13041] argparse: terminal width is not detected properly

2011-09-25 Thread Denilson Figueiredo de
Denilson Figueiredo de Sá denilso...@gmail.com 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

[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á denilso...@gmail.com 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/issue12806

[issue13041] argparse: terminal width is not detected properly

2011-09-24 Thread Denilson Figueiredo de
Changes by Denilson Figueiredo de Sá denilso...@gmail.com: -- nosy: +denilsonsa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13041 ___ ___ Python

[issue12806] argparse: Hybrid help text formatter

2011-09-24 Thread Denilson Figueiredo de
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

[issue12806] argparse: Hybrid help text formatter

2011-09-20 Thread Denilson Figueiredo de
Denilson Figueiredo de Sá denilso...@gmail.com 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

[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á denilso...@gmail.com: 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

[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á denilso...@gmail.com: 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

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

2009-05-26 Thread Denilson Figueiredo de
Changes by Denilson Figueiredo de Sá denilso...@gmail.com: -- nosy: +denilsonsa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4947 ___ ___ Python