Serhiy Storchaka added the comment:

Good catch Martin. Indeed, "pass", "break" and "continue" don't need a space, 
and "True", "False" and "None" need a space only in rare cases like "None in 
collection". Some keywords ("else", "finally", "try") need a colon. But while 
"return" and "lambda" not always need a space, I think that needing a space is 
more common case, and in any case the redundant space doesn't make a harm.

Here is revised patch that doesn't add a space in some cases and instead adds a 
colon in some cases.

----------
Added file: http://bugs.python.org/file40549/rlcompleter_keyword_space_2.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25209>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to