On 01/24/2014 07:07 AM, Larry Hastings wrote:
b) Functions where there's no static Python value that behaves
identically to
not passing in that parameter (aka "the dynamic default problem")
Ouch! Sorry, I forgot a detail here. This can also be another form of
NULL problem. For example, socket.socket.getservbyport() takes an
optional "protocol" argument. Internally its default value is NULL.
But there's really no good static string that we could use for the
default. Guido specifically suggested accepting None here to mean "use
the internal default" should be fine. But again this is a change, we're
in beta, etc etc, discuss.
//arry/
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com