Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you have any excample using this module? #1

Open
Weless opened this issue Feb 25, 2018 · 1 comment
Open

Do you have any excample using this module? #1

Weless opened this issue Feb 25, 2018 · 1 comment

Comments

@Weless
Copy link

Weless commented Feb 25, 2018

Which kind of situation we can use this kind of reload?
Do you have some simple example?

@fyrestone
Copy link
Owner

When developing a sophisticated system in Python, for example, a game. The logic is complex, and to restart the game (login & loading) will take a few seconds. In that case, you can write logic and just reload the code. So, when your logic is hard to replay, pydevd_reload would give you a hand.

The usage of pydevd_reload is the same with Python's built-in reload function. While Python 3 is going to make a better reload (importlib.reload: https://docs.python.org/3/library/importlib.html). I haven't run a full comparison between importlib.reload and pydevd_reload, but pydevd_reload comes from pydevd which is widely used in the famous IDE PyCharm and in my practice it works great.

BTW, I will add some practice examples in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants