Python Forum
dynamic f-string example
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dynamic f-string example
#3
calling it a Frankenstein ... i would agree. but what else is there. i first wrote a function to do it, but that was worse grabbing the caller's namespaces and such. people are going to get used to short code doing f-strings so when they run into a dynamic case, such as reading the format in from a file, they want to do it as close to the same way as they can. i did, too. when i figure it out (was not hard) i decided to share.
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
dynamic f-string example - by Skaperen - Feb-16-2020, 03:53 AM
RE: dynamic f-string example - by DeaD_EyE - Feb-16-2020, 12:09 PM
RE: dynamic f-string example - by Skaperen - Feb-17-2020, 12:09 AM
RE: dynamic f-string example - by DeaD_EyE - Feb-17-2020, 07:08 AM
RE: dynamic f-string example - by Skaperen - Feb-18-2020, 12:51 AM
RE: dynamic f-string example - by DeaD_EyE - Feb-18-2020, 09:31 AM
RE: dynamic f-string example - by Skaperen - Feb-18-2020, 06:49 PM

Forum Jump:

User Panel Messages

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