Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Cool numbers.
Breaking compatability now is not an option now, I think.
Perhaps a new function (Get2())? Or a flag?
Original comment by arnim...@gmail.com
on 26 Jun 2012 at 10:30
That API is so compact and clean, I think Get2() would probably stick out.
Maybe the most flexible option is to match Python's dict get() and take a
default value in kwargs:
db.Get("missing_key", default=None)
Original comment by pe...@teichman.org
on 26 Jun 2012 at 11:33
I like the second one. Will do.
Original comment by arnim...@gmail.com
on 26 Jun 2012 at 11:51
Original comment by arnim...@gmail.com
on 26 Jun 2012 at 2:28
Original issue reported on code.google.com by
pe...@teichman.org
on 26 Jun 2012 at 2:33