Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: socket.gaierror: [Errno 11001]
Post: RE: socket.gaierror: [Errno 11001]

Thank you DeaD_EyE for the explanation. So although the file is a text file, when python goes through the lines of it, it sees a new line at the end of each line. That's why the for loop can't find an...
Johnygo Networking 4 10,762 Aug-07-2019, 02:49 PM
    Thread: socket.gaierror: [Errno 11001]
Post: RE: socket.gaierror: [Errno 11001]

import getpass import sys import telnetlib user = raw_input("Enter your telnet username: ") password = getpass.getpass() file = 'ips.txt' with open(file) as f: for line in f: print " con...
Johnygo Networking 4 10,762 Aug-06-2019, 08:14 PM
    Thread: socket.gaierror: [Errno 11001]
Post: socket.gaierror: [Errno 11001]

Hello everyone. In my path to learning Python I want to use the code mentioned to telnet into 3 different switches with different IP addresses and add vlan 5,6 and name those vlans. The IP addresses a...
Johnygo Networking 4 10,762 Aug-06-2019, 06:40 PM
    Thread: Learning Python
Post: RE: Learning Python

Thank you Sudheerm for sharing your experience with me.
Johnygo News and Discussions 7 3,402 Jul-29-2019, 02:23 PM
    Thread: Learning Python
Post: RE: Learning Python

Thank you Perfringo and metulburr for responses. Perfringo: I am kind of doing the same thing but I save all the codes with the page as the name in Geany so every time I have to check something I know...
Johnygo News and Discussions 7 3,402 Jul-28-2019, 06:12 AM
    Thread: Learning Python
Post: Learning Python

I have a general question about learning Python. I am learning Python by myself using a book and doing the practice tests in the book which are every 5-10 page. The book is 530 page and I got to the p...
Johnygo News and Discussions 7 3,402 Jul-28-2019, 12:21 AM
    Thread: indefinite loop
Post: RE: indefinite loop

Thank you Thomas and perfringo. Thomas I will try your solution to fix the problem. Thank you perfringo: you are right this code is missing a colon which I dropped while copy pasting but as you mentio...
Johnygo General Coding Help 3 2,131 Jul-03-2019, 12:53 PM
    Thread: indefinite loop
Post: indefinite loop

Hello everyone I am new to Python and I am learning with a book I bought. In this book there are some do it yourself questions which are much more complicated than the examples. Now here is the code I...
Johnygo General Coding Help 3 2,131 Jul-03-2019, 03:03 AM

User Panel Messages

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