#33217: Add parentheses to @functools.lru_cache
-------------------------------------+-------------------------------------
     Reporter:  Kim Beom Jin         |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Core (Other)         |                  Version:  4.0
     Severity:  Normal               |               Resolution:  wontfix
     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 Kim Beom Jin):

 Replying to [comment:1 Mariusz Felisiak]:
 > Python 3.6 and 3.7 are not supported by Django 4.0+, see #32355 and
 5bac1719a2fcbee5cb8b9e22c3480e3a24ed6c4c.

 First of all, I'm really sorry for replying late because I didn't
 recognize that the alarm had come.

 I also know that Django doesn't support Python 3.8 or less from 4.0, but
 users can't see proper error messages if Django doesn't put parentheses on
 @functions.lru_cache.
 Please refer to the picture I posted together with the ticket.

 If it is the way it was, when the user follows the Django tutorial with a
 version of 3.8 or less, 'TypeError: Expected max size to be integrated or
 None' raises in lru_cache. However, if Django add parentheses to
 lru_cache, users will see "ERROR: Package 'Django' requirement Python:
 3.x.x not in '>=3.8'.
 I think the latter is a better message for users.

 Kind regards,
 Beom Jin

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33217#comment:2>
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/064.49922ac9b14df1151f69a6ab251c3545%40djangoproject.com.

Reply via email to