Re: [Python-Dev] [Distutils] request for comments - standardization of python's purelib and platlib

2009-08-20 Thread Matthias Klose
On 14.08.2009 10:02, Tarek Ziadé wrote: On Thu, Aug 13, 2009 at 9:22 PM, Brett Cannonbr...@python.org wrote: On Thu, Aug 13, 2009 at 11:23, Jan Matejekjan.mate...@novell.com wrote: Hello, I'm cross-posting this to distributi...@freedesktop and python-dev, because the topic is relevant to

Re: [Python-Dev] Two laments about CPython's AST Nodes

2009-08-20 Thread Frank Wierzbicki
On Wed, Aug 19, 2009 at 5:00 PM, Martin v. Löwismar...@v.loewis.de wrote: Now on to the complaints: Though I recently added support for this in Jython, I don't like that nodes can be defined without required attributes, for example: node = ast.Assign() I think we disagree in two points in

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

2009-08-20 Thread Nick Coghlan
Peter Moody wrote: while not the the prettiest, you can already (ignoring the set_prefix) do something like: newobject = ipaddr.IP(str(o.network) + /new prefix) Is this sufficient? At this point, that is probably fine. If it comes up often enough to be worth providing a cleaner interface

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

2009-08-20 Thread Jeroen Ruigrok van der Werven
-On [20090818 22:15], Peter Moody (pe...@hda3.com) wrote: I have a first draft of a PEP for including an IP address manipulation library in the python stdlib. It seems like there are a lot of really smart folks with some, ahem, strong ideas about what an IP address module should and shouldn't be

Re: [Python-Dev] Microsoft MSDN

2009-08-20 Thread Paul Moore
2009/8/13 Christian Heimes li...@cheimes.de: Steve Holden wrote: I sent fourteen requests for licenses in to Microsoft. I've asked them to let me know which they grant (since they may choose to limit the number) and will inform you all personally when I hear their decision. I've received my

Re: [Python-Dev] standard library mimetypes module pathologically broken?

2009-08-20 Thread Paul Moore
2009/8/14 Nick Coghlan ncogh...@gmail.com: Georg Brandl wrote: Nick Coghlan schrieb: P.S. For anyone else that is slow like me, take a close look at PEP 387... What should we see, other than that we have two PEPs on the same topic that should be merged? Benjamin wrote the second one, so he

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

2009-08-20 Thread Peter Moody
On Thu, Aug 20, 2009 at 6:46 AM, Jeroen Ruigrok van der Wervenasmo...@in-nomine.org wrote: -On [20090818 22:15], Peter Moody (pe...@hda3.com) wrote: I have a first draft of a PEP for including an IP address manipulation library in the python stdlib. It seems like there are a lot of really smart

Re: [Python-Dev] Two laments about CPython's AST Nodes

2009-08-20 Thread Brett Cannon
On Thu, Aug 20, 2009 at 06:20, Frank Wierzbickifwierzbi...@gmail.com wrote: On Wed, Aug 19, 2009 at 5:00 PM, Martin v. Löwismar...@v.loewis.de wrote: Now on to the complaints: Though I recently added support for this in Jython, I don't like that nodes can be defined without required

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

2009-08-20 Thread Peter Moody
The pep has been updated with the excellent suggestions thus far. Are there any more? Cheers, /peter On Tue, Aug 18, 2009 at 1:00 PM, Peter Moodype...@hda3.com wrote: Howdy folks, I have a first draft of a PEP for including an IP address manipulation library in the python stdlib. It seems

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

2009-08-20 Thread Joel Bender
Nick Coghlan wrote: Maybe this is something that differs by country, but I have *never* heard the first address in an IP network (i.e. every bit not covered by the netmask set to zero) referred to as anything other than the network address. Ah! A change to interject a mostly pointless

Re: [Python-Dev] Two laments about CPython's AST Nodes

2009-08-20 Thread Martin v. Löwis
x = compile(def foo():pass, foo, exec, _ast.PyCF_ONLY_AST) Does x contain real AST nodes or does it contain mirror structures (feel free to just tell me: don't be lazy, go read the code). It only contains a mirror structure. See pythonrun.c:Py_CompileStringFlags, and the (generated)

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

2009-08-20 Thread Case Vanhorsen
On Thu, Aug 20, 2009 at 2:00 PM, Peter Moodype...@hda3.com wrote: The pep has been updated with the excellent suggestions thus far. Are there any more? Thanks for writing the PEP. I tried a few of the common scenarios that I use at work. Disclaimer: my comments are based on my work