ipython / ipython/traitlets

get function of TraitType(BaseDescriptor) is called right after start ipython and then run forever?

未关闭
#533 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
653
派生
217
平均合并
2 天 21 小时
30 天内合并 PR
2

描述

Hi, I'm using ipython and trailets. I met a bug in my code and eventually lead me to try to print something inside `get` function of `TraitType(BaseDescriptor)`.

I put `print('enter get function')` before `try` block [here](https://github.com/ipython/traitlets/blob/master/traitlets/traitlets.py#L518). I observed that once I start `ipython`, `enter get function` started printing out and never stopped. It looks like `get` was called in a loop and run forever. Is there something that could help me understand this?

output
```
enter get function
enter get function
enter get function
enter get function
enter get function
...
```

Below are version info:
ipython 7.7.0
python 3.7
traitlets 4.3.3

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。