#32378: Incorrect exception raising syntax in documentation
-------------------------------+--------------------------------------
Reporter: johnthagen | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by johnthagen):
Looking into this closer, it looks like this is actually valid Python:
https://docs.python.org/3/reference/simple_stmts.html#the-raise-statement
"If it is a class, the exception instance will be obtained when needed by
instantiating the class with no arguments."
I'll leave the ticket open to see if the Django team wants to still fix
this for style consistency purposes.
--
Ticket URL: <https://code.djangoproject.com/ticket/32378#comment:1>
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/068.d64a8c9215a144fb752e1c716b230b81%40djangoproject.com.