Hi, I am learning to simulate electrodynamics in python-meep. I observed that very often people define a variable and then they pass its value to a function so that they know what each parameter means.
Although this is surely better than just providing unnamed numbers, the correct pythonic way is AFAIK to use parameter names even for non-keyword parameters, e. g. >>> def a(x,y): return x**y >>> a(10,2) 100 >>> a(y=2, x=10) 100 If python-meep programs could be written with all parameters named, it would increase readability a lot. (I can see that the meep module passes the argument as dictionary to the compiled backend, which is somehow processed by SWIG, so this may not be possible at all.) Do you think this this can be done? Filip _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

