Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alias names
#2
I'm not sure what exactly you're looking for in an answer here. That said, if I were to do what you've described you want, I'd just have a JSON file essentially containing a dict which maps the IDs to the human readable alias. As another hint, I'd likely use dict's get method rather than regular indexing or checking ahead of time so that un-aliased IDs show in the right way.
Reply


Messages In This Thread
Alias names - by dukbilt - Jan-18-2019, 11:53 AM
RE: Alias names - by micseydel - Jan-22-2019, 05:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Alias for different parts of a variable mln4python 3 2,284 Aug-28-2019, 03:03 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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