#34204: Django cannot load when Python is compiled with --without-doc-strings
enabled
-------------------------------+--------------------------------------
Reporter: Jon Janzen | Owner: nobody
Type: Uncategorized | Status: new
Component: Core (Other) | Version: 4.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Jon Janzen):
* status: closed => new
* resolution: invalid =>
Comment:
Hey Mariusz,
> According to Python's docs, the --without-doc-strings option should not
affect builtins.
I must be missing something because as I read the docs you linked it fails
to mention this limitation, but that is not the same thing as saying that
it should not affect builtins.
In fact, when you read the CPython source code there are a few places that
make it more explicit. For example, the tests for parsing the signatures
of builtins are ''disabled'' when docstrings are disabled:
https://github.com/python/cpython/blob/7a0f3c1d92ef0768e082ace19d970b0ef12e7346/Lib/test/test_capi/test_misc.py#L164
Additionally, there is some commentary in-lined into the `inspect` module
about this:
https://github.com/python/cpython/blob/7a0f3c1d92ef0768e082ace19d970b0ef12e7346/Lib/inspect.py#L2528-L2534
I'll open a ticket with CPython when I have a chance to ask them to
document the limitation, but this is an intentional part of compiling with
`--without-doc-strings`.
> Moreover, we check signatures in other places, I don't think it's worth
the extra complexity.
Is this referring to the specific solution I offered or the concept of
fixing this issue overall?
Sorry if reopening isn't the proper procedure, I'm still trying to learn
my way around Django's process
--
Ticket URL: <https://code.djangoproject.com/ticket/34204#comment:4>
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/01070184f914183f-3cbf86e4-934a-422c-aae0-d1076fe7c810-000000%40eu-central-1.amazonses.com.