Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how do I make references in pyll? #3

Closed
yamins81 opened this issue Feb 17, 2012 · 4 comments
Closed

how do I make references in pyll? #3

yamins81 opened this issue Feb 17, 2012 · 4 comments

Comments

@yamins81
Copy link
Contributor

e.g. the old internal references from genson?

@jaberg
Copy link
Owner

jaberg commented Feb 17, 2012

currently this question doesn't really make sense - genson references were a workaround so that you could build a DAG from within a text file, which is organized as a tree.

Pyll does not have a text file representation yet, so there is no need for references. I'm closing this, because it's a duplicate of #2

@jaberg jaberg closed this as completed Feb 17, 2012
@yamins81
Copy link
Contributor Author

could you show point me to an example of how to represent the following old genson thing in pyll:

{"a": choice([1,2,3]),
"b": choice([1,2,3]),
"c": this.a}

@jaberg
Copy link
Owner

jaberg commented Feb 17, 2012

choice = pyll.scope.choice
a = choice([1, 2, 3])
dict(a=a, b= choice([1, 2, 3]), c=a)

@yamins81
Copy link
Contributor Author

OK! Great, thank you. Very nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants