Re: [Python-Dev] Python db2 installation error

2012-05-23 Thread Georg Brandl
Am 24.05.2012 01:45, schrieb Terry Reedy: > On 5/23/2012 7:00 PM, PremAnand Lakshmanan wrote: >> I want to install python db2 package for Python but Im unable to install it. > > pydev list is for development of future python releases. Ask questions > about using existing python releases on python

Re: [Python-Dev] PEP 420 - dynamic path computation is missing rationale

2012-05-23 Thread Nick Coghlan
On Thu, May 24, 2012 at 11:02 AM, Eric V. Smith wrote: > On 5/23/2012 8:58 PM, PJ Eby wrote: >> OTOH, that's finders, and I think we're dealing with loaders here. >> Splitting hairs, perhaps, but at least it's in a good cause.  ;-) > > I guess I could store the passed-in parent path, and use that

Re: [Python-Dev] PEP 420 - dynamic path computation is missing rationale

2012-05-23 Thread PJ Eby
On Wed, May 23, 2012 at 9:02 PM, Eric V. Smith wrote: > On 5/23/2012 8:58 PM, PJ Eby wrote: > > On Wed, May 23, 2012 at 8:24 PM, Eric V. Smith > > wrote: > > > > I tried this approach and it works fine. The only caveat is that it > > assumes that the parent pat

Re: [Python-Dev] PEP 420 - dynamic path computation is missing rationale

2012-05-23 Thread Eric V. Smith
On 5/23/2012 8:58 PM, PJ Eby wrote: > On Wed, May 23, 2012 at 8:24 PM, Eric V. Smith > wrote: > > I tried this approach and it works fine. The only caveat is that it > assumes that the parent path can always be computed as described above, > independent of w

Re: [Python-Dev] PEP 420 - dynamic path computation is missing rationale

2012-05-23 Thread PJ Eby
On Wed, May 23, 2012 at 8:24 PM, Eric V. Smith wrote: > I tried this approach and it works fine. The only caveat is that it > assumes that the parent path can always be computed as described above, > independent of what's passed in to PathFinder.load_module(). I think > that's reasonable, since l

Re: [Python-Dev] PEP 420 - dynamic path computation is missing rationale

2012-05-23 Thread Eric V. Smith
> Here's another suggestion: instead of modifying the finder/loader code > to pass these names through, assume that we can always find > (module_name, attribute_name) with this code: > > def find_parent_path_names(module): > parent, dot, me = module.__name__.rpartition('.') > if dot == '':

Re: [Python-Dev] Python db2 installation error

2012-05-23 Thread Terry Reedy
On 5/23/2012 7:00 PM, PremAnand Lakshmanan wrote: I want to install python db2 package for Python but Im unable to install it. pydev list is for development of future python releases. Ask questions about using existing python releases on python-list or the gmane mirror. -- Terry Jan Reedy _

[Python-Dev] Python db2 installation error

2012-05-23 Thread PremAnand Lakshmanan
I want to install python db2 package for Python but Im unable to install it. I have installed the easy_install and Im able to successfully import the easy_install. My easy_install location :c:/python27/lib/site-packages/ My db2 egg location c:/python27/ibm_db-1.0.5-py2.7-win32.egg How would my

Re: [Python-Dev] PEP 420 - dynamic path computation is missing rationale

2012-05-23 Thread Eric V. Smith
On 05/23/2012 03:56 PM, Brett Cannon wrote: > > > On Wed, May 23, 2012 at 3:35 PM, PJ Eby > wrote: > > On Wed, May 23, 2012 at 3:02 PM, Brett Cannon > wrote: > > If I understand the proposal correctly, this would be a cha

Re: [Python-Dev] [Python-checkins] cpython: Issue #14814: addition of the ipaddress module (stage 1 - code and tests)

2012-05-23 Thread Sandro Tosi
On Tue, May 22, 2012 at 10:43 PM, Terry Reedy wrote: > On 5/22/2012 3:59 PM, Sandro Tosi wrote: >> On Sun, May 20, 2012 at 7:18 PM, Terry Reedy  wrote +    Args: +        first: the first IPv4Address or IPv6Address in the range. +        last: the last IPv4Address or IPv6Address in

Re: [Python-Dev] PEP 420 - dynamic path computation is missing rationale

2012-05-23 Thread Brett Cannon
On Wed, May 23, 2012 at 3:35 PM, PJ Eby wrote: > On Wed, May 23, 2012 at 3:02 PM, Brett Cannon wrote: > >> If I understand the proposal correctly, this would be a change in >> NamespaceLoader in how it sets __path__ and in no way affect any other code >> since __import__() just grabs the object

Re: [Python-Dev] PEP 420 - dynamic path computation is missing rationale

2012-05-23 Thread PJ Eby
On Wed, May 23, 2012 at 3:02 PM, Brett Cannon wrote: > If I understand the proposal correctly, this would be a change in > NamespaceLoader in how it sets __path__ and in no way affect any other code > since __import__() just grabs the object on __path__ and passes as an > argument to the meta pat

Re: [Python-Dev] PEP 420 - dynamic path computation is missing rationale

2012-05-23 Thread Brett Cannon
On Wed, May 23, 2012 at 9:10 AM, Eric V. Smith wrote: > On 05/23/2012 09:02 AM, Nick Coghlan wrote: > > On Wed, May 23, 2012 at 10:31 PM, Eric V. Smith > wrote: > >> On 05/22/2012 09:49 PM, PJ Eby wrote: > >>> It shouldn't - all you should need is to use > >>> getattr(sys.modules[self.modname],

[Python-Dev] Benchmark performance...

2012-05-23 Thread stefan brunthaler
Hi, as Antoine pointed out in the corresponding issue (http://bugs.python.org/issue14757#msg160870), measuring/assessing real-world performance of my patch would be interesting. I mentioned that I am not aware of any relevant Python 3 program/application to report numbers for (but guess that the s

Re: [Python-Dev] PEP 420 - dynamic path computation is missing rationale

2012-05-23 Thread PJ Eby
On May 23, 2012 9:02 AM, "Nick Coghlan" wrote: > > On Wed, May 23, 2012 at 10:31 PM, Eric V. Smith wrote: > > On 05/22/2012 09:49 PM, PJ Eby wrote: > >> It shouldn't - all you should need is to use > >> getattr(sys.modules[self.modname], self.attr) instead of referencing a > >> parent path object

Re: [Python-Dev] PEP 420 - dynamic path computation is missing rationale

2012-05-23 Thread Eric V. Smith
On 05/23/2012 09:02 AM, Nick Coghlan wrote: > On Wed, May 23, 2012 at 10:31 PM, Eric V. Smith wrote: >> On 05/22/2012 09:49 PM, PJ Eby wrote: >>> It shouldn't - all you should need is to use >>> getattr(sys.modules[self.modname], self.attr) instead of referencing a >>> parent path object directly.

Re: [Python-Dev] PEP 420 - dynamic path computation is missing rationale

2012-05-23 Thread Nick Coghlan
On Wed, May 23, 2012 at 10:31 PM, Eric V. Smith wrote: > On 05/22/2012 09:49 PM, PJ Eby wrote: >> It shouldn't - all you should need is to use >> getattr(sys.modules[self.modname], self.attr) instead of referencing a >> parent path object directly. > > The problem isn't the lookup, it's coming up

Re: [Python-Dev] PEP 420 - dynamic path computation is missing rationale

2012-05-23 Thread Eric V. Smith
On 05/22/2012 09:49 PM, PJ Eby wrote: > On Tue, May 22, 2012 at 8:40 PM, Eric V. Smith > wrote: > > On 5/22/2012 2:37 PM, Guido van Rossum wrote: > > Okay, I've been convinced that keeping the dynamic path feature is a > > good idea. I am really looking forw