Note that there are some explanatory texts on larger screens.

plurals
  1. POOO design: an object that can be exported to a "row", while accessing header names, without repeating myself
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COthe `?` in the seeds attribute is awfully peculiar, and makes a number of python idioms (`collections.namedtuple`, `property` come to mind) which would otherwise improve your situation, awkward or otherwise violate DRY principles. How important is that?
      singulars
    2. CONot especially important in my particular case. Of course, I'd prefer a solution that's amenable to headers that include spaces and special characters, since that would be more generally applicable. BTW using properties is not desirable since I don't want to have one method for each variable (some groups of variables need to be calculated simultaneously for efficiency, and I don't want to juggle shared state with extra instance variables).
      singulars
    3. CODo you actually have code that accesses a `lemon.ripeness` anywhere, or only code that deals with lemons as rows, etc.? If the latter, why not just store a `dict` mapping headers to values, and not bother trying to make those values accessible as attributes? (And if the former, you're not going to be able to write `lemon.seeds?` anywhere…)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload