bpo-25782: Prevent cycles in the __context__ chain. by serhiy-storchaka · Pull Request #20543 · python/cpython
Conversation
Setting __context__ to self has no any effect. If set __context__ to the chain contained original exception, it is moved to the start of the context chain.
Setting __context__ to self has no any effect. If set __context__ to the chain contained original exception, it is moved to the start of the context chain.
Comment on lines +605 to +606
| If *ctx* is *ex*, the function has no any effect. If *ex* is in the | ||
| context chain started from *ctx*, it is moved to the start of the chain. |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| If *ctx* is *ex*, the function has no any effect. If *ex* is in the | |
| context chain started from *ctx*, it is moved to the start of the chain. | |
| If *ctx* is *ex*, the function has no effect. If *ex* is in the | |
| context chain started from *ctx*, it is moved to the start of the chain. |
Comment on lines +71 to +73
| Setting :attr:`__context__` to self has no any effect. If set | ||
| ``__context__`` to the chain contained original exception, it is moved to | ||
| the start of the context chain. |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Setting :attr:`__context__` to self has no any effect. If set | |
| ``__context__`` to the chain contained original exception, it is moved to | |
| the start of the context chain. | |
| Setting :attr:`__context__` to self has no effect. If set | |
| ``__context__`` to the chain contained an original exception, it is moved to | |
| the start of the context chain. |
1st1
mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters