codegooglecom / json-template

Automatically exported from code.google.com/p/json-template
0 stars 0 forks source link

Consider adding a default value instead of raising UndefinedVariable #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
From group:

"""
  Although since there are 3 methods in Python that expand, it might be
better to use a keyword argument, like "t.expand(dictionary, default='')" 
If default=None, then an exception is raised.
"""

In Java this can just use method overloading.

Original issue reported on code.google.com by gtempacc...@yahoo.com on 15 Apr 2009 at 4:17

GoogleCodeExporter commented 9 years ago
Done in Python and JavaScript in revisions 190 and 191.

Original comment by gtempacc...@yahoo.com on 17 Apr 2009 at 6:19

GoogleCodeExporter commented 9 years ago

Original comment by andyc...@gmail.com on 9 Nov 2009 at 6:59