[Python-Dev] Exposing different versions of a system call in Python (original) (raw)

Terry Reedy tjreedy at udel.edu
Fri Jan 19 23:24:23 EST 2018


On 1/19/2018 11:06 PM, Nick Coghlan wrote:

On 20 January 2018 at 02:32, Random832 <random832 at fastmail.com> wrote:

On Fri, Jan 19, 2018, at 04:28, Pablo Galindo Salgado wrote:

On the other side, we have pipe and pipe2 as an example of exposing two versions when this situation happens.

The question is: What is preferable, exposing both functions or augment the old one?

I personally find a new parameter easier to remember than a new function, which will also have the new parameter.

-- Terry Jan Reedy



More information about the Python-Dev mailing list