Re: [Python-Dev] cpython (2.6): Added tag v2.6.8rc2 for changeset bd9e1a02e3e3

2012-03-18 Thread Georg Brandl
On 03/18/2012 12:15 AM, Éric Araujo wrote: Hi, Le 17/03/2012 19:03, Georg Brandl a écrit : On 03/17/2012 11:43 PM, Barry Warsaw wrote: I'm afraid it's the latter: tags are entries in .hgtags. So when you completely null-merge your 2.6 changes into 2.7, you are basically removing the tag

Re: [Python-Dev] [Python-checkins] cpython (2.7): Closes #14306: clarify expensiveness of try-except and update code snippet

2012-03-18 Thread Nick Coghlan
On Sun, Mar 18, 2012 at 1:58 AM, georg.brandl python-check...@python.org wrote: +catching an exception is expensive.  In versions of Python prior to 2.0 it was +common to use this idiom:: Actually, given the prior to 2.0 caveat, mydict.has_key(key) is right: the key in mydict version was only

Re: [Python-Dev] cpython: PEP 417: Adding unittest.mock

2012-03-18 Thread Michael Foord
On 16 Mar 2012, at 11:54, Nick Coghlan wrote: On Thu, Mar 15, 2012 at 6:27 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: On the topic of docs mock documentation is about eight pages long. My intention was to strip this down to just the api documentation, along with a link to the

Re: [Python-Dev] cpython: PEP 417: Adding unittest.mock

2012-03-18 Thread Martin v. Löwis
The commingling of extensive examples with regular docs has made it difficult to lookup functionality in argparse for example. I have now come to think that this should be considered a subordinate use case. The primary use case of the documentation should be copy-paste style examples. At least,

[Python-Dev] [RELEASED] Second release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3

2012-03-18 Thread Benjamin Peterson
We're chuffed to announce the immediate availability of the second release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3. The only change from the first release candidates is the patching of an additional security hole. The security issue fixed in the second release candidates is in the

Re: [Python-Dev] PEP czar for PEP 3144?

2012-03-18 Thread Peter Moody
On Mon, Mar 12, 2012 at 9:15 AM, Peter Moody pmo...@google.com wrote: - iterable APIs should consistently produce iterators (leaving users free to wrap list() around the calls if they want the concrete realisation) I might've missed earlier discussion somewhere, but can someone point me at an

Re: [Python-Dev] PEP czar for PEP 3144?

2012-03-18 Thread Nick Coghlan
On Mon, Mar 19, 2012 at 12:44 PM, Peter Moody pmo...@google.com wrote: On Mon, Mar 12, 2012 at 9:15 AM, Peter Moody pmo...@google.com wrote: - iterable APIs should consistently produce iterators (leaving users free to wrap list() around the calls if they want the concrete realisation) I

Re: [Python-Dev] cpython: PEP 417: Adding unittest.mock

2012-03-18 Thread Nick Coghlan
On Mon, Mar 19, 2012 at 11:19 AM, Martin v. Löwis mar...@v.loewis.de wrote: The commingling of extensive examples with regular docs has made it difficult to lookup functionality in argparse for example. I have now come to think that this should be considered a subordinate use case. The

[Python-Dev] inspect.py change for pygame

2012-03-18 Thread ncdave4life
I noticed that pydoc doesn't work for pygame under python 3.2.1 for Win32: NotImplementedError: scrap module not available (ImportError: No module named scrap) I made a small patch to inspect.py to solve the problem (I just added a try/expect around the failing statement in ismethoddescriptor).

Re: [Python-Dev] inspect.py change for pygame

2012-03-18 Thread Brian Curtin
On Sun, Mar 18, 2012 at 23:13, ncdave4life ncdave4l...@gmail.com wrote: I noticed that pydoc doesn't work for pygame under python 3.2.1 for Win32: NotImplementedError: scrap module not available (ImportError: No module named scrap) I made a small patch to inspect.py to solve the problem (I

Re: [Python-Dev] inspect.py change for pygame

2012-03-18 Thread ncdave4life
Thank you, Brian! On Mon, Mar 19, 2012 at 12:20 AM, Brian Curtin [via Python] ml-node+s6n4632000...@n6.nabble.com wrote: On Sun, Mar 18, 2012 at 23:13, ncdave4life [hidden email]http://user/SendEmail.jtp?type=nodenode=4632000i=0 wrote: ...Sorry, I'm a newbie to python-dev, so please