This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Python 3.5.1's websocket's lib crashes in event that internet connection stops.
Type: Stage: resolved
Components: Versions:
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: Sean Hunt, ppperry, r.david.murray
Priority: normal Keywords:

Created on 2016-05-30 10:38 by Sean Hunt, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg266686 - (view) Author: Sean Hunt (Sean Hunt) Date: 2016-05-30 10:38
I know that websockets has a issue with when a internet connection is dropped and prints a bad traceback. However I have to manually recreate it when the exception happens which is a pain as when it does it crashes aiohttp sessions as well.

Also I wonder how I can bytecompile some dependencies that would normally be in site-packages to install manually to the embed version of python so that way I do not have to append to sys.path?

And 1 more thing why does importlib fail when you try to reload a relativly imported module. Do you guys plan to add support for it someday? I hope so as it sucks that I cant do such thing as ```py
from .somefile import someclass``` and be able to reload it by only knowing ``someclass``

Also it would be nice if there was a mode in python 3.5.1 that allows you to generate bytecode that you can use in the embed copy of the same version. Or to allow the embed version to generate bytecode that you can use to add to ```` eaily using WinRAR.
msg266695 - (view) Author: (ppperry) Date: 2016-05-30 14:08
This issue should really be split into (at least) four seperate issues.

The third problem (reloading relatively imported modules), can be done by doing `someclass = getattr(importlib.reload(sys.modules[someclass.__module__]),someclass.__name__)`. It also has nothing to do with relative imports, instead involving reloading the modules of classes imported using the `from ... import ...` statement.
msg266713 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2016-05-30 18:53
Yes, please open only single focus issues.  

websockets is not part of the standard library, so that's not appropriate for this tracker ((unless you've found an underlying bug in python, in which case report that please).

For the bytecode questions you should ask on the python-list mailing list for help.  If there actually is a feature missing in python (from what you said I don't think there is), they could help you formulate an enhancement request to file here.

I believe there's an open issue about the reload question...if not, you can open one.
Date User Action Args
2022-04-11 14:58:31adminsetgithub: 71346
2016-05-30 18:53:50r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg266713

resolution: third party
stage: resolved
2016-05-30 14:08:26ppperrysetnosy: + ppperry
messages: + msg266695
2016-05-30 10:38:18Sean Huntcreate