Python Forum
Trying to understand how import works in python
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to understand how import works in python
#2
This is a example of how websocket work.
It's not the meaning that you should import,should run the server from command line.
λ python SimpleExampleServer.py --example echo
Now is the server running,open websocket.html.
There is a connect button.
Then send and get a response.
Output:
connected sent: hello world response: hello world
Reply


Messages In This Thread
RE: Trying to understand how import works in python - by snippsat - Jun-11-2018, 07:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  beginner doesn't understand import cimerio 3 645 Feb-12-2025, 05:02 PM
Last Post: cimerio
  'import Path' do not understand how to use it tester_V 2 2,694 Jun-19-2021, 02:23 AM
Last Post: tester_V
  Python Regular expression, small sample works but not on file Acernz 5 4,518 Jun-09-2021, 08:27 PM
Last Post: bowlofred
  Understand what it means that everything in Python is an object... bytecrunch 8 5,572 Mar-19-2021, 04:47 PM
Last Post: nilamo
  Understand order of magnitude performance gap between python and C++ ThelannOryat 4 4,100 Mar-17-2021, 03:39 PM
Last Post: ThelannOryat
  "Automate the Boring Stuff with Python" creating a path works but only for CMD promt Milos 2 3,896 Nov-28-2020, 01:08 PM
Last Post: Larz60+
  Works with Curl. Can't get it to work in Python bazcurtis 3 4,227 May-07-2020, 07:47 AM
Last Post: bazcurtis
  New to Python, How does this lambda expression works? Joshh_33 2 2,856 Mar-26-2020, 03:32 PM
Last Post: Joshh_33
  Trying to understand the python code spalisetty 2 2,780 Mar-16-2020, 08:11 AM
Last Post: javiertzr01
  time.sleep works erratically, a bug in Python? stipcevic 2 5,888 Jan-21-2020, 09:38 PM
Last Post: Marbelous

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020