#35187: Django 5.0+ doesn't work with pyc files only
---------------------------------+--------------------------------------
     Reporter:  Marcus Hoffmann  |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  Core (Other)     |                  Version:  5.0
     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
---------------------------------+--------------------------------------
Comment (by Jon Janzen):

 > As far as I'm aware, the only way to fix this is to revert

 I think there are alternatives, I don't really have time to explore them
 right now but:

 1. Use a different cache key, like swap the line number for the function
 name perhaps
 2. I think the code object stores the line numbers right? So perhaps
 there's a way to fetch the code object and get the line number that way.

 If the above commit is reverted I think we'd have to think about reverting
 other things that depend on it like
 https://github.com/django/django/pull/16636
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35187#comment:6>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018daa4efa17-80c2bf1f-f6ec-44b5-a5fc-00bdfdd8bd4b-000000%40eu-central-1.amazonses.com.

Reply via email to