Changes between Initial Version and Version 1 of Ticket #23551


Ignore:
Timestamp:
Sep 24, 2014, 4:34:12 AM (10 years ago)
Author:
Marco Buttu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23551

    • Property Cc marco.buttu@… added
    • Property Owner changed from nobody to Marco Buttu
    • Property Status newassigned
  • 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*:
     1My 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`:
    22
    33{{{
     
    1010
    1111
    12 That happens because at line 225 the *options* list is initilized as:
     12That happens because at line 225 the `options` list is initilized as:
    1313
    1414
     
    2626
    2727
    28 But since *options* contains *--help* twice, in Python 3 we get an error comparing a *bool* with *None*:
     28But since `options` contains `--help` twice, in Python 3 we get an error comparing a `bool` with `None`:
    2929
    3030
     
    3737
    3838
    39 That obviously does not happen in Python 2. The doctring of *autocomplete()* says:
     39That obviously does not happen in Python 2. The doctring of `autocomplete()` says:
    4040
    4141
     
    5353
    5454
    55 So, how come *options* is initialized with the pair *('--help', None)* instead of *('--help', False)*?
     55So, how come `options` is initialized with the pair `('--help', None)` instead of `('--help', False)`?
Back to Top