#34795: ConnectionProxy (and likely others) do not expose the `__dir__` of the
object they are proxying
--------------------------------------------+------------------------
               Reporter:  Willem Van Onsem  |          Owner:  nobody
                   Type:  Uncategorized     |         Status:  new
              Component:  Core (Other)      |        Version:  4.2
               Severity:  Normal            |       Keywords:
           Triage Stage:  Unreviewed        |      Has patch:  0
    Needs documentation:  0                 |    Needs tests:  0
Patch needs improvement:  0                 |  Easy pickings:  1
                  UI/UX:  0                 |
--------------------------------------------+------------------------
 Based on this question: https://stackoverflow.com/q/76963171/67579 the
 `ConnectionProxy` does not communicate the `__dir__` of the object it is
 exposing. As a result, shells, etc. can not help with code completion.

 Overriding `__dir__` and returning the `dir(..)` of the items it exposes
 is however quite easy.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34795>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018a233f6cdf-f93a5f1d-acd4-4505-9a9b-0aafb53421a0-000000%40eu-central-1.amazonses.com.

Reply via email to