Python Forum
documentation is wrong for exec()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
documentation is wrong for exec()
#4
From python.org:

Quote:This function supports dynamic execution of Python code. object must be either a string or a code object. If it is a string, the string is parsed as a suite of Python statements which is then executed (unless a syntax error occurs).

/.../

Note that the parser only accepts the Unix-style end of line convention. If you are reading the code from a file, make sure to use newline conversion mode to convert Windows or Mac-style newlines.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
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 perfringo - Jul-27-2019, 07:27 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,531 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