Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Python change string into variable name

Current License: CC BY-SA 4.0

Post Revisions

7 events
when toggle format what by license comment
Jul 30, 2021 at 13:41 vote accept WarLord
Jul 30, 2021 at 13:19 answer added hugovdberg timeline score: 5
Jul 30, 2021 at 13:05 review First posts
Jul 30, 2021 at 13:23
Jul 30, 2021 at 13:05 comment added Tranbi It looks like you rather need a dictionary with ID_0, ID_1 as keys and set their values to said list.
Jul 30, 2021 at 13:04 comment added Rich L Well, just about everything so far screams "this is a terrible approach", but as a nudge, why can’t you keep using exec?
Jul 30, 2021 at 13:04 comment added nicomp You want this: docs.python.org/3/c-api/reflection.html. Reflection is problematic to describe unless you already know what it's called, :)
Jul 30, 2021 at 13:01 history asked WarLord CC BY-SA 4.0

AltStyle によって変換されたページ (->オリジナル) /