Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What am I doing wrong
#6
A hacky hack hackorama. You won't do this.
[setattr(sys.modules[__name__], c, c) for c in string.ascii_lowercase]
But I do not understand the sense of having variable names from a-z assigned on module level.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
What am I doing wrong - by boxedtheropy - Jul-25-2017, 10:30 PM
RE: What am I doing wrong - by Larz60+ - Jul-25-2017, 11:08 PM
RE: What am I doing wrong - by boxedtheropy - Jul-25-2017, 11:24 PM
RE: What am I doing wrong - by Larz60+ - Jul-26-2017, 12:12 AM
RE: What am I doing wrong - by wavic - Jul-31-2017, 01:47 PM
RE: What am I doing wrong - by DeaD_EyE - Jul-31-2017, 02:14 PM
RE: What am I doing wrong - by nilamo - Aug-02-2017, 05:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Am I wrong or is Udemy wrong? String Slicing! Mavoz 3 2,667 Nov-05-2022, 11:33 AM
Last Post: Mavoz
  python gives wrong string length and wrong character thienson30 2 3,062 Oct-15-2019, 08:54 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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