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
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
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
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
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
Changes by Denilson Figueiredo de Sá denilso...@gmail.com:
--
nosy: +denilsonsa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9399
___
___
Python
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
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
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
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
Changes by Denilson Figueiredo de Sá denilso...@gmail.com:
--
nosy: +denilsonsa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13041
___
___
Python
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
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
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
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
Changes by Denilson Figueiredo de Sá denilso...@gmail.com:
--
nosy: +denilsonsa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4947
___
___
Python
16 matches
Mail list logo