Message332012
| Author |
vstinner |
| Recipients |
pablogsal, vajrasky, vstinner |
| Date |
2018-12-17.15:40:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1545061212.9.0.788709270274.issue35519@psf.upfronthosting.co.za> |
| In-reply-to |
|
| Content |
> Ah, I think because I use cpython2 directory name, you thought I used Python 2. cpython2 is just a directory name. It has nothing to do with Python 2. I used master when finding this bug.
Ah right, I can reproduce the issue in master:
vstinner@apu$ ./python Lib/test/test_xmlrpc.py
Traceback (most recent call last):
File "Lib/test/test_xmlrpc.py", line 8, in <module>
import xmlrpc.client as xmlrpclib
File "/home/vstinner/prog/python/master/Lib/xmlrpc/client.py", line 136, in <module>
import http.client
File "/home/vstinner/prog/python/master/Lib/http/client.py", line 71, in <module>
import email.parser
File "/home/vstinner/prog/python/master/Lib/email/parser.py", line 12, in <module>
from email.feedparser import FeedParser, BytesFeedParser
File "/home/vstinner/prog/python/master/Lib/email/feedparser.py", line 27, in <module>
from email._policybase import compat32
File "/home/vstinner/prog/python/master/Lib/email/_policybase.py", line 9, in <module>
from email.utils import _has_surrogates
File "/home/vstinner/prog/python/master/Lib/email/utils.py", line 28, in <module>
import random
File "/home/vstinner/prog/python/master/Lib/random.py", line 47, in <module>
import bisect as _bisect
File "/home/vstinner/prog/python/master/Lib/test/bisect.py", line 27, in <module>
import tempfile
File "/home/vstinner/prog/python/master/Lib/tempfile.py", line 45, in <module>
from random import Random as _Random
ImportError: cannot import name 'Random' from 'random' (/home/vstinner/prog/python/master/Lib/random.py)
Hum. We should either rename Lib/test/bisect.py to Lib/test/bisect_cmd.py or move the feature into libregrtest. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2018-12-17 15:40:12 | vstinner | set | recipients:
+ vstinner, vajrasky, pablogsal |
| 2018-12-17 15:40:12 | vstinner | set | messageid: <1545061212.9.0.788709270274.issue35519@psf.upfronthosting.co.za> |
| 2018-12-17 15:40:12 | vstinner | link | issue35519 messages |
| 2018-12-17 15:40:12 | vstinner | create | |
|