aio-libs / aio-libs/aiohttp-session

Documentation for `Session.created` does not match actual behavior

オープン
#981 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
245
フォーク
91
平均マージ
2分
マージ済み PR(30日)
4

説明

The [documentation for `Session.created`](https://aiohttp-session.readthedocs.io/en/stable/reference.html#aiohttp_session.Session.created) states that this field represents "Creation UNIX TIMESTAMP, the value returned by `time.time()` for very first access to the session object."

This appears to be incorrect. In practice, `Session.created` seems to contain the timestamp of the last time the session data was changed. There is also some inconsistency to this. In particular, `Session.created` is only updated if you change the session by explicitly setting or deleting a value. Calling `Session.changed()` or `Session.invalidate()` does not update `Session.created`, even though these methods also change the session.

What is the intended behavior of `Session.created`? Please update the documentation and/or code so that the documented and actual behavior match.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。