PEP 417: Adding mock to the Python Standard Library

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

PEP 417: Adding mock to the Python Standard Library

Michael Foord-3
Hello all,

At the Python Language Summit adding the "mock" library to the Python Standard Library was discussed and agreed. Here is a very brief PEP covering the decision and rationale.

All the best,

Michael Foord




--
http://www.voidspace.org.uk/


May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing
http://www.sqlite.org/different.html






_______________________________________________
Python-Dev mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/lists%2B1324100855712-1801473%40n6.nabble.com

pep-0417.txt (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: PEP 417: Adding mock to the Python Standard Library

Gregory P. Smith-3
+10 for the record.  (given we all already agreed upon this in the summit :)

make it so.

On Mon, Mar 12, 2012 at 3:05 PM, Michael Foord <[hidden email]> wrote:
Hello all,

At the Python Language Summit adding the "mock" library to the Python Standard Library was discussed and agreed. Here is a very brief PEP covering the decision and rationale.

All the best,

Michael Foord




--
http://www.voidspace.org.uk/


May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing
http://www.sqlite.org/different.html






_______________________________________________
Python-Dev mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/greg%40krypto.org



_______________________________________________
Python-Dev mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/lists%2B1324100855712-1801473%40n6.nabble.com
Reply | Threaded
Open this post in threaded view
|

Re: PEP 417: Adding mock to the Python Standard Library

Guido van Rossum
More to the point, I am approving the PEP.

We chatted briefly at the sprint and I just want to emphasize that the
external version should not grow new features before the stdlib
version has those same features (we don't want users complaining that
the stdlib version is no good). Also, if you have some new features
you're planning to add, add them now, before inclusion into the
stdlib; and likewise, if you have some things you would like to
remove, remove them now.

Good luck!

--Guido

On Mon, Mar 12, 2012 at 4:01 PM, Gregory P. Smith <[hidden email]> wrote:

> +10 for the record.  (given we all already agreed upon this in the summit :)
>
> make it so.
>
> On Mon, Mar 12, 2012 at 3:05 PM, Michael Foord <[hidden email]>
> wrote:
>>
>> Hello all,
>>
>> At the Python Language Summit adding the "mock" library to the Python
>> Standard Library was discussed and agreed. Here is a very brief PEP covering
>> the decision and rationale.
>>
>> All the best,
>>
>> Michael Foord
>>
>>
>>
>>
>> --
>> http://www.voidspace.org.uk/
>>
>>
>> May you do good and not evil
>> May you find forgiveness for yourself and forgive others
>> May you share freely, never taking more than you give.
>> -- the sqlite blessing
>> http://www.sqlite.org/different.html
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Python-Dev mailing list
>> [hidden email]
>> http://mail.python.org/mailman/listinfo/python-dev
>> Unsubscribe:
>> http://mail.python.org/mailman/options/python-dev/greg%40krypto.org
>>
>
>
> _______________________________________________
> Python-Dev mailing list
> [hidden email]
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/guido%40python.org
>



--
--Guido van Rossum (python.org/~guido)
_______________________________________________
Python-Dev mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/lists%2B1324100855712-1801473%40n6.nabble.com
Reply | Threaded
Open this post in threaded view
|

Re: PEP 417: Adding mock to the Python Standard Library

Michael Foord-3

On 12 Mar 2012, at 16:31, Guido van Rossum wrote:

> More to the point, I am approving the PEP.
>
> We chatted briefly at the sprint and I just want to emphasize that the
> external version should not grow new features before the stdlib
> version has those same features (we don't want users complaining that
> the stdlib version is no good). Also, if you have some new features
> you're planning to add, add them now, before inclusion into the
> stdlib; and likewise, if you have some things you would like to
> remove, remove them now.
>

Thanks. I'm happy to live with new feature releases only every 18 months in the external backport.

Before inclusion there is one obsolete feature I'd like to remove (mocksignature) and two minor features I'd like to add (support for attribute deletion and a helper function for mocking open as a context manager). Beyond that the api is stable. A bunch of Python 2  compatibility code can also be removed in the standard library version.

All the best,

Michael Foord



> Good luck!
>
> --Guido
>
> On Mon, Mar 12, 2012 at 4:01 PM, Gregory P. Smith <[hidden email]> wrote:
>> +10 for the record.  (given we all already agreed upon this in the summit :)
>>
>> make it so.
>>
>> On Mon, Mar 12, 2012 at 3:05 PM, Michael Foord <[hidden email]>
>> wrote:
>>>
>>> Hello all,
>>>
>>> At the Python Language Summit adding the "mock" library to the Python
>>> Standard Library was discussed and agreed. Here is a very brief PEP covering
>>> the decision and rationale.
>>>
>>> All the best,
>>>
>>> Michael Foord
>>>
>>>
>>>
>>>
>>> --
>>> http://www.voidspace.org.uk/
>>>
>>>
>>> May you do good and not evil
>>> May you find forgiveness for yourself and forgive others
>>> May you share freely, never taking more than you give.
>>> -- the sqlite blessing
>>> http://www.sqlite.org/different.html
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Python-Dev mailing list
>>> [hidden email]
>>> http://mail.python.org/mailman/listinfo/python-dev
>>> Unsubscribe:
>>> http://mail.python.org/mailman/options/python-dev/greg%40krypto.org
>>>
>>
>>
>> _______________________________________________
>> Python-Dev mailing list
>> [hidden email]
>> http://mail.python.org/mailman/listinfo/python-dev
>> Unsubscribe:
>> http://mail.python.org/mailman/options/python-dev/guido%40python.org
>>
>
>
>
> --
> --Guido van Rossum (python.org/~guido)
> _______________________________________________
> Python-Dev mailing list
> [hidden email]
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
>


--
http://www.voidspace.org.uk/


May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing
http://www.sqlite.org/different.html





_______________________________________________
Python-Dev mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/lists%2B1324100855712-1801473%40n6.nabble.com
Reply | Threaded
Open this post in threaded view
|

Re: PEP 417: Adding mock to the Python Standard Library

Guido van Rossum
On Mon, Mar 12, 2012 at 4:47 PM, Michael Foord <[hidden email]> wrote:

>
> On 12 Mar 2012, at 16:31, Guido van Rossum wrote:
>
>> More to the point, I am approving the PEP.
>>
>> We chatted briefly at the sprint and I just want to emphasize that the
>> external version should not grow new features before the stdlib
>> version has those same features (we don't want users complaining that
>> the stdlib version is no good). Also, if you have some new features
>> you're planning to add, add them now, before inclusion into the
>> stdlib; and likewise, if you have some things you would like to
>> remove, remove them now.
>>
>
> Thanks. I'm happy to live with new feature releases only every 18 months in the external backport.
>
> Before inclusion there is one obsolete feature I'd like to remove (mocksignature) and two minor features I'd like to add (support for attribute deletion and a helper function for mocking open as a context manager). Beyond that the api is stable. A bunch of Python 2  compatibility code can also be removed in the standard library version.

Sounds good. Congrats!

--
--Guido van Rossum (python.org/~guido)
_______________________________________________
Python-Dev mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/lists%2B1324100855712-1801473%40n6.nabble.com