It could work if the hints are callable objects as Sebastian suggests, though 
you would have to first dig up the objects in order to call them.

Aaron Meurer
On May 8, 2010, at 7:43 AM, smichr wrote:

> 
> 
> On May 8, 5:37 pm, Vinzent Steinberg
> <vinzent.steinb...@googlemail.com> wrote:
>> On 7 Mai, 23:51, "Aaron S. Meurer" <asmeu...@gmail.com> wrote:
>> 
>>> Another possibility would be to somehow take advantage of *args, which is 
>>> ordered.
>> 
>> What about expand('mul', 'trig')?
> 
> This works if you just want hints that should be on, but you would
> have to do something like require a bool to be entered if you want
> some on and some off:
> 
> foo(True, 'foo', 'bar', False, 'baz')
> 
> But this only works if no hint needs a string value.
> 
> ======
> 
> as to use of the underscore for separation: use the double underscore
> for the separator and require that no hint starts or ends with an
> underscore.
> 
> ======
> 
> Yes, I meant OptionParser which has built in help...but you would have
> to figure out how to get it to parse something other than the
> sys.argv[1:].
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To post to this group, send email to sy...@googlegroups.com.
> To unsubscribe from this group, send email to 
> sympy+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/sympy?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to