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]> > wrote: > > ...Sorry, I'm a newbie to python-dev, so

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

2012-03-18 Thread Brian Curtin
On Sun, Mar 18, 2012 at 23:13, ncdave4life 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 just added a > tr

[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] 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" 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 primary use case

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 wrote: > On Mon, Mar 12, 2012 at 9:15 AM, Peter Moody 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 earlie

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 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 example

[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 exp

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

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 > 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 docs on my site fo

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 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 added in 2.2. Th