(original) (raw)

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