[Python-ideas] Open parenthesis in REPL completion

2019-04-19 Thread Danilo J. S. Bellini
I'm not aware if that was already discussed, but something I find quite annoying is the REPL auto-complete that also includes the open parenthesis symbol. I think it shouldn't be included in TAB completion. At least twice a week I make mistakes like typing "help(something()" with unmatched

[Python-ideas] Add a `dir_fd` parameter to `os.truncate`?

2019-04-19 Thread Sebastian M. Ernst
Hi everyone, many methods in `os` have a `dir_fd` parameter, for instance `unlink` [1]: ```python os.unlink(path, *, dir_fd=None) ``` The `dir_fd` parameter [2] allows it to describe paths relative to directory descriptors. Otherwise, relative paths are relative to the current working directory.