Python Forum
documentation is wrong for exec()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
documentation is wrong for exec()
#1
the documentation for exec() says the first argument must be a string or code object and that only the unix style end-of-line is accept. but i have found that it also works with bytes and works with both '\r\n' and '\r' style end of lines.

anyone know why?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
documentation is wrong for exec() - by Skaperen - Jul-27-2019, 12:33 AM
RE: documentation is wrong for exec() - by Skaperen - Jul-27-2019, 06:33 PM
RE: documentation is wrong for exec() - by Skaperen - Jul-27-2019, 10:56 PM
RE: documentation is wrong for exec() - by Skaperen - Jul-28-2019, 06:49 AM
RE: documentation is wrong for exec() - by buran - Jul-28-2019, 07:33 AM
RE: documentation is wrong for exec() - by Skaperen - Jul-28-2019, 02:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  exec() instead of functions Skaperen 5 2,450 Aug-03-2020, 11:12 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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