socket.gethostbyaddr() wrongly returning a DNS CNAME as the 'primary' hostname

2011-04-28 Thread cjblaine
Python 2.7.1 (perhaps others) I believe this is a bug. Comments? Docs state: Return a triple (hostname, aliaslist, ipaddrlist) where hostname is the primary host name responding to the given ip_address, aliaslist is a (possibly empty) list of alternative host names for the same address, and

Re: socket.gethostbyaddr() wrongly returning a DNS CNAME as the 'primary' hostname

2011-04-28 Thread cjblaine
Thanks for the reply, Ned. Bummer for me. Check this out: C code on Solaris 10 SPARC returns the following with nscd running (the Solaris Naming Services Caching Daemon, on by default): PRIMARY according to gethostbyaddr(): my-dns-cname.our.org ALIAS according to gethostbyaddr():

What breaks if I remove lib/python2.7/test/* ?

2011-04-19 Thread cjblaine
What breaks if I remove lib/python2.7/test/* ? What purpose does it serve? It is 26MB for me. I am trying to trim my Python install for good reason. Thanks for any info! -- http://mail.python.org/mailman/listinfo/python-list

Re: Modules failing to add runtime library path info at link time

2010-02-05 Thread cjblaine
On Feb 1, 11:35 pm, cjblaine cjbla...@gmail.com wrote: On Feb 1, 11:04 pm, cjblaine cjbla...@gmail.com wrote: On Feb 1, 8:00 pm, Christian Heimes li...@cheimes.de wrote: cjblaine wrote: Where/how can I configure the appropriate portion of our Python install to do 100% the right

Modules failing to add runtime library path info at link time

2010-02-01 Thread cjblaine
Hey everyone, this has been driving me crazy for long enough now that I'm motivated to post and find an answer. Before I pose my question, let me state that using LD_LIBRARY_PATH is not the answer :) We have things installed in odd places, such as very specific versions of libraries to link

Re: Modules failing to add runtime library path info at link time

2010-02-01 Thread cjblaine
On Feb 1, 8:00 pm, Christian Heimes li...@cheimes.de wrote: cjblaine wrote: Where/how can I configure the appropriate portion of our Python install to do 100% the right thing instead of just 50% (-L)? Python's distutils doesn't alter the library search path unless you tell it explicitly

Re: Modules failing to add runtime library path info at link time

2010-02-01 Thread cjblaine
On Feb 1, 11:04 pm, cjblaine cjbla...@gmail.com wrote: On Feb 1, 8:00 pm, Christian Heimes li...@cheimes.de wrote: cjblaine wrote: Where/how can I configure the appropriate portion of our Python install to do 100% the right thing instead of just 50% (-L)? Python's distutils doesn't