Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
file doesn't exist
#8
(Oct-24-2019, 08:46 AM)mcgrim Wrote: I changed line 16 and got this error.
why would you change it?

(Oct-24-2019, 08:46 AM)mcgrim Wrote: which line are you referring to?
As i said - line 17, in CLIENT code. Currently it reads:
        if data[:6] == 'EXISTS':
(Oct-24-2019, 08:46 AM)mcgrim Wrote: Also, what do you mean by PEP8 ?

https://www.python.org/dev/peps/pep-0008...mendations
PEP8 Wrote:Use ''.startswith() and ''.endswith() instead of string slicing to check for prefixes or suffixes.

startswith() and endswith() are cleaner and less error prone:
Yes: if foo.startswith('bar'):
No:  if foo[:3] == 'bar':
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
file doesn't exist - by mcgrim - Oct-23-2019, 09:09 PM
RE: file doesn't exist - by Larz60+ - Oct-23-2019, 11:35 PM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 06:58 AM
RE: file doesn't exist - by Gribouillis - Oct-24-2019, 07:20 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 08:25 AM
RE: file doesn't exist - by buran - Oct-24-2019, 08:33 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 08:46 AM
RE: file doesn't exist - by buran - Oct-24-2019, 08:50 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 09:02 AM
RE: file doesn't exist - by buran - Oct-24-2019, 09:08 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 09:13 AM
RE: file doesn't exist - by buran - Oct-24-2019, 09:24 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 09:25 AM
RE: file doesn't exist - by buran - Oct-24-2019, 09:31 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 09:36 AM
RE: file doesn't exist - by buran - Oct-24-2019, 10:07 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 10:10 AM
RE: file doesn't exist - by buran - Oct-24-2019, 10:19 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 10:23 AM
RE: file doesn't exist - by buran - Oct-24-2019, 10:37 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 10:42 AM
RE: file doesn't exist - by buran - Oct-24-2019, 10:46 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 10:51 AM
RE: file doesn't exist - by buran - Oct-24-2019, 10:57 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 11:11 AM
RE: file doesn't exist - by buran - Oct-24-2019, 11:14 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 11:20 AM
RE: file doesn't exist - by buran - Oct-24-2019, 11:23 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 11:29 AM
RE: file doesn't exist - by buran - Oct-24-2019, 11:30 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 11:31 AM
RE: file doesn't exist - by buran - Oct-24-2019, 11:33 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 11:38 AM
RE: file doesn't exist - by buran - Oct-24-2019, 11:52 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 11:53 AM
RE: file doesn't exist - by buran - Oct-24-2019, 11:56 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 11:57 AM
RE: file doesn't exist - by buran - Oct-24-2019, 11:58 AM
RE: file doesn't exist - by mcgrim - Oct-24-2019, 12:39 PM
RE: file doesn't exist - by buran - Oct-24-2019, 12:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  HTML file uploaded through python screen doesn't look as expected miker2808 6 5,265 Aug-04-2018, 02:05 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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