Re: Can this be easily done in Python?

2016-09-28 Thread Mario R. Osorio
I'm not sure I understand your question, but I 'think' you area talking about executing dynamically chunks of code. If that is the case, there are a couple of ways to do it. These are some links that might interest you: http://stackoverflow.com/questions/3974554/python-how-to-generate-the-code-o

Re: Can this be easily done in Python?

2016-09-28 Thread Peter Pearson
On Tue, 27 Sep 2016 12:58:40 -0700 (PDT), TUA wrote: > Is the following possible in Python? > > Given how the line below works > > TransactionTerms = 'TransactionTerms' > > > have something like > > TransactionTerms = > > that sets the variable TransactionTerms to its own name as string > represe

Re: Can this be easily done in Python?

2016-09-28 Thread Matt Wheeler
On Tue, 27 Sep 2016 at 20:58 TUA wrote: > Is the following possible in Python? > > Given how the line below works > > TransactionTerms = 'TransactionTerms' > > > have something like > > TransactionTerms = > > that sets the variable TransactionTerms to its own name as string > representation with

Re: Can this be easily done in Python?

2016-09-27 Thread Paul Rubin
TUA writes: > TransactionTerms = > that sets the variable TransactionTerms to its own name as string It's conceivably possible using messy introspection hackery, but if you're asking that question you don't want to think about doing it that way. If you describe the actual goal (application) you

Re: Can this be easily done in Python?

2016-09-27 Thread Random832
On Tue, Sep 27, 2016, at 15:58, TUA wrote: > Is the following possible in Python? > > Given how the line below works > > TransactionTerms = 'TransactionTerms' > > > have something like > > TransactionTerms = > > that sets the variable TransactionTerms to its own name as string > representati

Can this be easily done in Python?

2016-09-27 Thread TUA
Is the following possible in Python? Given how the line below works TransactionTerms = 'TransactionTerms' have something like TransactionTerms = that sets the variable TransactionTerms to its own name as string representation without having to specify it explicitly as in the line above