question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal - store generated object field value to generate depended fields

See original GitHub issue

This is a proposal.

Right now I type

from elizabeth import Personal
p = Personal('en')
print( p.age() )
print( p.age() )

And got output

25
40

Because age is generated by request and doesn’t store in object p. What if I want to add the field child_count or work experience, depend on previously generated age value?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
yn-codercommented, Jan 18, 2017

I read your examples of Elizabeth usage, and now I think I understood.

Person object doesn’t contain the generated data because you design it just as wrapper for generator funcion. Person.age() yeld the new value each time and tester could use it in a loop, without creating the object instance for next person.

Now I see the root of our miscommunication.

I’ll prepare a some example for my proposal in a fork.

0reactions
yn-codercommented, Jan 18, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Make a field dependent - Product Documentation | ServiceNow
Dependent fields limit their available values based on the value in the dependent field. Before you begin. Role required: personalize_dictionary.
Read more >
Context-Dependent Object Proposal and Recognition - MDPI
Object proposal generation is a process that intends to superimpose bounding boxes on the regions containing the objects of interest in the image...
Read more >
Examples of Advanced Formula Fields
This formula displays a text value of “RED,” “YELLOW,” or “GREEN,” depending on the value of a case age custom text field. This...
Read more >
Create Custom Fields for the Document and Template URL
Create a Custom URL Field from the Object Manager Store documents created from a template in custom URL fields. Manage access to the...
Read more >
NetSuite - Using Conditional Fields with Actions
Input Parameters/Return Values for Shopping Object Methods · ShoppingSession Methods ... JSON Object Fields ... Steps for Creating Dependent Dropdown Lists.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found