Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #56733
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'broken': 0.04; 'subject:Python': 0.06; 'binary': 0.07; 'matches': 0.07; 'executable': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:using': 0.09; 'subject:version': 0.09; 'used.': 0.09; 'python': 0.11; 'bug': 0.12; 'jan': 0.12; 'itself,': 0.16; 'outdated': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'symbols': 0.16; 'url:file': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'saying': 0.22; 'shell': 0.22; 'header:User-Agent:1': 0.23; 'script.': 0.24; 'versions': 0.24; 'compiled': 0.26; 'this:': 0.26; 'skip:" 20': 0.27; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'patch': 0.29; 'thus': 0.29; 'code': 0.31; 'table,': 0.31; 'probably': 0.32; 'another': 0.32; 'open': 0.33; 'url:python': 0.33; 'could': 0.34; 'knowledge': 0.35; 'info': 0.35; 'add': 0.35; 'really': 0.36; 'done': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'should': 0.36; 'christian': 0.38; 'expected': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'even': 0.60; 'john': 0.61; 'received:173': 0.61; 'here:': 0.62; 'such': 0.63; 'become': 0.64; 'different': 0.65; 'article': 0.77; 'received:fios.verizon.net': 0.84; 'url:cpython': 0.84; 'opens': 0.91 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Terry Reedy <tjreedy@udel.edu> |
| Subject | Re: What version of glibc is Python using? |
| Date | Sat, 12 Oct 2013 04:46:34 -0400 |
| References | <l3aqiu$ump$1@dont-email.me> <l3arfn$2bf$1@dont-email.me> <l3as90$5bk$1@dont-email.me> <mailman.1030.1381562417.18130.python-list@python.org> <l3av5f$gi2$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | pool-173-59-117-133.phlapa.fios.verizon.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0 |
| In-Reply-To | <l3av5f$gi2$1@dont-email.me> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1031.1381567808.18130.python-list@python.org> (permalink) |
| Lines | 32 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1381567808 news.xs4all.nl 15979 [2001:888:2000:d::a6]:33248 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:56733 |
Show key headers only | View raw
On 10/12/2013 3:53 AM, Christian Gollwitzer wrote: > Am 12.10.13 09:20, schrieb Ned Deily: >> In article <l3as90$5bk$1@dont-email.me>, John Nagle <nagle@animats.com> >> wrote: >> [...] >>> Why is the info from "plaform.libc_ver()" so bogus? >> >> The code is here: >> >> http://hg.python.org/cpython/file/2.7/Lib/platform.py#l141 >> >> Perhaps you could open an issue on the Python bug tracker. > > That function is really bogus. It states itself, that it has "intimate > knowledge of how different libc versions add symbols to the executable > and thus is probably only useable for executables compiled using gcc" > which is just another way of saying "it'll become outdated and broken > soon". It's not even done by reading the symbol table, it opens the > binary and matches a RE *shocked* I would have expected such hacks in a > shell script. > > glibc has a function for this: > > gnu_get_libc_version () > > which should be used. So *please* submit a patch with explanation. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What version of glibc is Python using? John Nagle <nagle@animats.com> - 2013-10-11 23:34 -0700
Re: What version of glibc is Python using? Christian Gollwitzer <auriocus@gmx.de> - 2013-10-12 08:50 +0200
Re: What version of glibc is Python using? John Nagle <nagle@animats.com> - 2013-10-12 00:03 -0700
Re: What version of glibc is Python using? Ned Deily <nad@acm.org> - 2013-10-12 00:20 -0700
Re: What version of glibc is Python using? Christian Gollwitzer <auriocus@gmx.de> - 2013-10-12 09:53 +0200
Re: What version of glibc is Python using? Christian Gollwitzer <auriocus@gmx.de> - 2013-10-12 10:34 +0200
Re: What version of glibc is Python using? Terry Reedy <tjreedy@udel.edu> - 2013-10-12 04:46 -0400
Re: What version of glibc is Python using? Ian Kelly <ian.g.kelly@gmail.com> - 2013-10-12 05:43 -0600
Re: What version of glibc is Python using? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-10-12 13:08 +0000
Re: What version of glibc is Python using? Nobody <nobody@nowhere.com> - 2013-10-12 20:02 +0100
Re: What version of glibc is Python using? John Nagle <nagle@animats.com> - 2013-10-13 00:45 -0700
Re: What version of glibc is Python using? Terry Reedy <tjreedy@udel.edu> - 2013-10-12 11:59 -0400
Re: What version of glibc is Python using? Ian Kelly <ian.g.kelly@gmail.com> - 2013-10-12 14:28 -0600
Re: What version of glibc is Python using? John Nagle <nagle@animats.com> - 2013-10-13 10:43 -0700
Re: What version of glibc is Python using? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-13 19:06 +0100
Re: What version of glibc is Python using? Ian Kelly <ian.g.kelly@gmail.com> - 2013-10-13 12:06 -0600
csiph-web