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
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
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
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
&
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
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
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
Changes by Denilson Figueiredo de Sá :
--
nosy: +denilsonsa
___
Python tracker
<http://bugs.python.org/issue9399>
___
___
Python-bugs-list mailing list
Unsub
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:
>&
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 []
Changes by Denilson Figueiredo de Sá :
--
nosy: +denilsonsa
___
Python tracker
<http://bugs.python.org/issue13041>
___
___
Python-bugs-list mailing list
Unsub
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
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
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
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
Changes by Denilson Figueiredo de Sá :
--
nosy: +denilsonsa
___
Python tracker
<http://bugs.python.org/issue4947>
___
___
Python-bugs-list mailing list
Unsub
16 matches
Mail list logo