Python Forum
readall() not working in python3.5
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
readall() not working in python3.5
#7
I'm sorry, I posted the code that I had got to, as I assumed that putting readall() where read() was would just get replies to use read() as the readall() command simply did not work. The research i had done on the matter had led me to understand that readall() was never a command in python, as I have not found it in any of the python docs online, and that it worked as part of a package, which as someone trying to learn is very difficult to navigate.

The original code that I am learning from uses readall() so it must have worked at some time, and the only difference I could find was that the tutorials were on Windows and using Python 3.4 and I am using Linux Mint and python 3.5.2. I understand that python is supposed to be completely cross platform, so I had dismissed the Windows/Linux option and I found one forum post on Stack Exchange that pointed out that readall() worked upto python 3.4, but not after that, however it was only the one place amongst about 5 pages of google search.

For clarity, I am learning and working exclusively with python 3 currently, I am aware of some of the differences and have read the differences page, but until I am a better programmer, I think trying to learn both of them would be confusing so I am learning python 3 as I am only writing scripts that are standalone at the current time.

I have since had to reinstall OS (Raspberry pi so no big deal) and wrote the script again and it worked. I am suspecting there may have been a typo or something that I could not spot, shame I never got to the bottom of it, but for the moment the issue seems to be resolved.
Reply


Messages In This Thread
readall() not working in python3.5 - by iFunKtion - Nov-04-2016, 01:37 PM
RE: readall() not working in python3.5 - by Larz60+ - Nov-04-2016, 01:40 PM
RE: readall() not working in python3.5 - by Larz60+ - Nov-07-2016, 12:30 PM
RE: readall() not working in python3.5 - by iFunKtion - Nov-09-2016, 03:38 PM

Forum Jump:

User Panel Messages

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