#25515: The return value of BaseCommand.handle() is treated as output, but this
is
undocumented
-------------------------------+--------------------
Reporter: nedbatchelder | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
The docs for handle() (https://docs.djangoproject.com/en/1.8/howto
/custom-management-commands/#django.core.management.BaseCommand.handle)
don't mention what its return value means.
The code treats it as output, and writes it to self.stdout(). This should
be documented.
(Note: the behavior changed slightly between 1.4 and 1.8: In 1.4, we
returned a binary string, and it worked fine, in 1.8, this fails with a
DecodeError because of "results.endswith(ending)" ).
--
Ticket URL: <https://code.djangoproject.com/ticket/25515>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/056.ff371b086a9cef386f7116bc5b31e356%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.