Talin's example is that metadata inventor A documents that his/her users should use this syntax for parameter docstrings:
def myfunc( x : "The x coordinate", y : "The y coordinate" )
...
Then metadata inventor B documents this his/her users should use this syntax for getopt strings:
class MyHandler( CommandLineHandler ):
@getopt
def list( infile:"i" = sys.stdin, outfile:"o" = sys.stdout ):
Now the user is faced with the challenge of making these two work together in order to get the best of both worlds. What does the user type?
The mechanism of overloading, function dispatching etc. is uninteresting to me until I understand what goes in the user's Python file. Syntax is important.
Paul Prescod
_______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
