Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi-Dimm Array or Class?
#2
it depends - would you have methods, extra attributes, would you make change in values, etc.
if it will be just data structure as shown in your example you can consider using the namedtuple from collections or dict, etc.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Multi-Dimm Array or Class? - by PappaBear - May-02-2019, 05:14 PM
RE: Multi-Dimm Array or Class? - by buran - May-02-2019, 05:23 PM
RE: Multi-Dimm Array or Class? - by PappaBear - May-02-2019, 07:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Multi-class iterator Pedroski55 2 2,425 Jan-02-2021, 12:29 AM
Last Post: Pedroski55
  Applying Multi-Class Classification instead of binary classification alex80 1 1,526 Sep-18-2020, 07:39 AM
Last Post: alex80
  class random var write to array storzo 5 2,950 Aug-02-2019, 03:26 PM
Last Post: storzo
  multi-dimm array -- dynamic PappaBear 3 2,622 May-03-2019, 03:47 AM
Last Post: buran
  Best construct? Array, class, other? PappaBear 1 3,011 May-10-2017, 06:02 PM
Last Post: nilamo
  What work faster and take less memory array or class? Kamilbek 1 3,162 Apr-20-2017, 05:32 PM
Last Post: Larz60+
  Fast method of searching a string in a multi-dimension array? draems 6 6,075 Feb-20-2017, 01:02 PM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

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