You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking at CookieTransport, and was wondering why we are limited to integers for defining cookie_max_age. I wish we could use datetime.timedelta at least as an alternative.
There are some other time-defining variables where this also makes sense to me.
Looking more into this, I can see that this is also the way starlette operates, the upstream culture is almost always conservative 😆 This is python, we have abstractions for everything! I made a poll on the Starlette side
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was looking at
CookieTransport
, and was wondering why we are limited to integers for definingcookie_max_age
. I wish we could usedatetime.timedelta
at least as an alternative.There are some other time-defining variables where this also makes sense to me.
Looking more into this, I can see that this is also the way
starlette
operates, the upstream culture is almost always conservative 😆 This is python, we have abstractions for everything! I made a poll on the Starlette sideBeta Was this translation helpful? Give feedback.
All reactions