On Tuesday, February 25, 2014 5:07:11 AM UTC-5, Simon King wrote:
>
> However, Python has a handy shortcut for passing arbitrary keyword
> arguments to a function:
>
> status_args = {trans_status: 1}
> status = Status(**status_args)
You could also do that in one line, but i'm sure it violates a PEP or good
form..
status = Status(**{trans_status:1})
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.