Python Forum
documentation is wrong for exec()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
documentation is wrong for exec()
#8
i discovered this because i wanted to see what exception it would actually raise. but the fact that it can just do these things lets me simplify my code. i don't need to decode bytes to strings and i don't need to do '\n'.join(whatever.splitlines()) to be sure i have consistent line endings for code snippets to run in exec().
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,564 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