This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2010年08月13日 17:31 by flox, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| addbuilddir.patch | pitrou, 2010年08月13日 18:34 | |||
| c-addbuildir.patch | pitrou, 2010年08月13日 19:29 | |||
| Messages (7) | |||
|---|---|---|---|
| msg113798 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年08月13日 17:31 | |
Various buildbots show a failure on test_heapq. * "x86 FreeBSD 3.x" failed on revision r83882 (r83869 was OK) http://www.python.org/dev/buildbot/all/builders/x86%20FreeBSD%203.x/builds/492 and next runs were OK, too * "PPC (Leopard|Tiger) 3.x" and "x86 Tiger 3.x" fail consistently from r83889 onwards. * all "gentoo 3.x" and "Ubuntu 3.x" fail on r83981 http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%203.x/builds/2816 http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%203.x/builds/1707 |
|||
| msg113800 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2010年08月13日 17:45 | |
This is a variant of the kind of annoyance pointed out in #9548. Here, it seems addbuilddir() in Lib/site.py shouldn't import sysconfig, because it imports the re module. |
|||
| msg113801 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年08月13日 17:49 | |
For some reason, sys.modules['heapq'] contains the Python implementation instead of the C implementation. Tested with r83981 on python 3: Python 3.2a1+ (py3k:83981M, Aug 13 2010, 19:02:31) [GCC 4.3.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import heapq >>> heapq.heappop(10) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/florent/dev/python/py3trunk/Lib/heapq.py", line 140, in heappop lastelt = heap.pop() # raises appropriate IndexError if heap is empty AttributeError: 'int' object has no attribute 'pop' >>> import _heapq >>> _heapq.heappop(10) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: heap argument must be a list These tests (TestErrorHandling) are supposed to run with the C module only. |
|||
| msg113806 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2010年08月13日 18:34 | |
Here is a patch which works if the patch in #9548 is also applied. It won't work alone because opening a file in text mode currently imports locale which imports re, etc. ... all before adding the build dir to sys.path. Of course, since the logic in addbuilddir() is now much simpler, it could also be rewritten in C somewhere (where?), and the launched much earlier during the startup phase. |
|||
| msg113819 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2010年08月13日 19:29 | |
Here is a C version of addbuilddir. It solves the present issue. |
|||
| msg113844 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2010年08月13日 22:26 | |
I've committed an updated version of the C patch in r83988, after Victor's comments on IRC. |
|||
| msg113882 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2010年08月14日 09:47 | |
r83988 is also the correct fix for #586680: I updated this issue. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:05 | admin | set | github: 53798 |
| 2010年08月14日 09:47:21 | vstinner | set | messages: + msg113882 |
| 2010年08月13日 22:40:21 | pitrou | set | status: open -> closed |
| 2010年08月13日 22:34:33 | pitrou | set | status: pending -> open assignee: pitrou |
| 2010年08月13日 22:26:04 | pitrou | set | status: open -> pending resolution: fixed messages: + msg113844 stage: needs patch -> resolved |
| 2010年08月13日 22:20:54 | pitrou | link | issue586680 superseder |
| 2010年08月13日 19:29:26 | pitrou | set | files:
+ c-addbuildir.patch messages: + msg113819 |
| 2010年08月13日 18:34:05 | pitrou | set | files:
+ addbuilddir.patch keywords: + patch messages: + msg113806 |
| 2010年08月13日 17:49:10 | flox | set | messages: + msg113801 |
| 2010年08月13日 17:45:06 | pitrou | set | nosy:
+ pitrou messages: + msg113800 |
| 2010年08月13日 17:31:13 | flox | create | |