Re: [Python-Dev] functools.compose to chain functions together

2009-08-28 Thread Peter Harris
I am personally indifferent to this, even though I had in mind in PEP309, that compose would probably end up in there too. On the one hand, some people will keep on expecting it to be there. The ones that care about it will not be confused: they'll expect compose(f,g)(x) to be f(g(x)) as is pr

Re: [Python-Dev] timed_command.py: consider for inclusion in std. library?

2009-08-28 Thread Brett Cannon
To get a module included in the standard library you need to have it out for about a year, have the community consider it best-of-breed, and write a PEP passed through python-ideas. On Fri, Aug 28, 2009 at 10:40, Charles Waldman wrote: > > Here's a module "timed_command" I wrote a while ago and is

Re: [Python-Dev] deprecated methods on array objects

2009-08-28 Thread Brett Cannon
On Thu, Aug 27, 2009 at 14:15, Jake McGuire wrote: > The python documentation says that the read() and write() methods on array > objects have been deprecated since 1.5.1.  I assume this is because their > semantics are almost the exact opposite of read() and write() on a file-like > object; array.

[Python-Dev] timed_command.py: consider for inclusion in std. library?

2009-08-28 Thread Charles Waldman
Here's a module "timed_command" I wrote a while ago and is generally useful and might be a good addition to the standard library. It is like commands.getstatusoutput but lets you run a command with an optional timeout. Useful for systems programming where a sub-process might hang. Only works

[Python-Dev] Summary of Python tracker Issues

2009-08-28 Thread Python tracker
ACTIVITY SUMMARY (08/21/09 - 08/28/09) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue number. Do NOT respond to this message. 2370 open (+23) / 16247 closed (+15) / 18617 total (+38) Open issues with patches: 935 Average

Re: [Python-Dev] Adding a C Module to python source distribution

2009-08-28 Thread Christian Heimes
Shashank Singh wrote: > Do I need to register this module some place else too (setup.py?) ? > > Any hints and pointers will be appreciated :) You have to add the module and its initializer to PC/config.c, too. Christian ___ Python-Dev mailing list Pyth

Re: [Python-Dev] PEP 3144: IP Address Manipulation Library for the Python Standard Library

2009-08-28 Thread Nick Coghlan
Peter Moody wrote: > If there are any more suggestions on the PEP or the code, please let me know. I noticed the new paragraphs on the IPv4 vs IPv6 types not being comparable - is there a canonical ordering for mixed address lists defined anywhere (e.g. an RFC)? If there is, then it should be pos

[Python-Dev] Adding a C Module to python source distribution

2009-08-28 Thread Shashank Singh
Hi All, I am trying to add a module written in c to python source on Win32 using VC++ 9 Pro. I went through the available documentation but there doesn't seem to be any clear instruction on how to do that. Basically I opened pcbuild.sln in vc++, added the c file (xxx.c) to Modules/ directory. Bui