Changes between Initial Version and Version 1 of Ticket #23551
- Timestamp:
- Sep 24, 2014, 4:34:12 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23551
- Property Cc added
- Property Owner changed from to
- Property Status new → assigned
-
Ticket #23551 – Description
initial v1 1 My environment is Python 3.4 and Linux Mint 17. When using the django autocompletion, a TAB-completion after a command gives me an exception. For instance, typing a TAB after *django-admin startproject*:1 My environment is Python 3.4 and Linux Mint 17. When using the django autocompletion, a TAB-completion after a command gives me an exception. For instance, typing a TAB after `django-admin startproject`: 2 2 3 3 {{{ … … 10 10 11 11 12 That happens because at line 225 the *options*list is initilized as:12 That happens because at line 225 the `options` list is initilized as: 13 13 14 14 … … 26 26 27 27 28 But since *options* contains *--help* twice, in Python 3 we get an error comparing a *bool* with *None*:28 But since `options` contains `--help` twice, in Python 3 we get an error comparing a `bool` with `None`: 29 29 30 30 … … 37 37 38 38 39 That obviously does not happen in Python 2. The doctring of *autocomplete()*says:39 That obviously does not happen in Python 2. The doctring of `autocomplete()` says: 40 40 41 41 … … 53 53 54 54 55 So, how come *options* is initialized with the pair *('--help', None)* instead of *('--help', False)*?55 So, how come `options` is initialized with the pair `('--help', None)` instead of `('--help', False)`?