[issue14826] urllib2.urlopen fails to load URL
Ross Lagerwall rosslagerw...@gmail.com added the comment: It looks like this broke the build bots: http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%202.7/builds/66/steps/test/logs/stdio -- assignee: - orsenthil nosy: +rosslagerwall status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7897] Support parametrized tests in unittest
Nick Coghlan ncogh...@gmail.com added the comment: As another in-the-standard-library uses case: my additions to the ipaddress test suite are really crying out for parameterised test support. My current solution is adequate for coverage and debugging purposes (a custom assert applied to multiple values in a test case), but has the known limitations of that approach (specifically, only the first failing case gets reported rather than all failing cases, which can sometimes slow down the debugging process). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7897 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15125] argparse: positional arguments containing - in name not handled well
Nicu Stiurca supernic2...@gmail.com added the comment: Florent, there are several reasons I think this is a valid use case. First, for optional arguments, '-' gets automatically replaced with '_' as the destination. I don't see any reason why optional and positional arguments should be treated differently when deciding the destination. This inconveniences the programmer who could naturally be inclined to follow some hyphenated optional arguments a.add_argument(--option-one) a.add_argument(--option-two) a.add_argument(--option-three) with hyphenated positional argument a.add_argument(positional-args) The programmer shouldn't have to pause and think about different naming requirements for optional and positional arguments. Second, persuading programmers to use underscores for positional args (eg, via proposed documentation patch) would have user-visible changes. Specifically, the automatically generated help/usage message would contain underscores instead of hyphens. Admittedly, this is fairly minor and inconsequential, but most programs use hyphens (not underscores) as delimiters in long options. I think it would be poor form to break user expectations in this regard. Last, I was apparently wrong (as Florent points out) that positional arguments whose names are invalid identifiers are impossible to retrieve. That's good to know, but that solution strikes me as just an ugly workaround. :/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15125 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10042] functools.total_ordering fails to handle NotImplemented correctly
Changes by Nick Coghlan ncogh...@gmail.com: -- title: total_ordering - functools.total_ordering fails to handle NotImplemented correctly ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10042 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14826] urllib2.urlopen fails to load URL
Stephen Thorne step...@thorne.id.au added the comment: Here's a followup patch that fixes the trunk build for me. This will unbreak the builds as well as fixing this bug, but it should be investigated why URLopener calls to_bytes() and Request does not. Ideally this interface should be consistent. -- Added file: http://bugs.python.org/file26314/urllib-request.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 18c1d4d60bdf by Nick Coghlan in branch 'default': Issue 14814: Further error case testing coverage and cleanups http://hg.python.org/cpython/rev/18c1d4d60bdf -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15284] Handle ipv6 not being enabled in test_socket
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b71dc2e9e00d by Ross Lagerwall in branch 'default': #15284: Skip {send,recv}msg tests with disabled IPv6 http://hg.python.org/cpython/rev/b71dc2e9e00d -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15284 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5931] Python runtime name hardcoded in wsgiref.simple_server
Éric Araujo mer...@netwok.org added the comment: You need to indent the block after the versionchanged directive. Also, I believe only bug fixes should go into 3.3 now that we are in beta. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5931 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15285] test_timeout failure when system on IPv4 10.0.x.x subnet
Florent Xicluna florent.xicl...@gmail.com added the comment: actually, this is the mapping table I have, when it fails with [Errno 13] Permission denied: $ ifconfig |grep inet inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 inet 127.0.0.1 netmask 0xff00 inet 10.20.24.208 netmask 0xf000 broadcast 10.20.31.255 $ netstat -r Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default10.20.16.1 UGSc 440 en1 10.20.16/20link#6 UCS110 en1 10.20.16.1 0:c:42:7:1d:80 UHLWI 50 198 en1 1200 10.20.20.293c:d0:f8:79:2c:78 UHLWI 00 en1903 10.20.20.77e4:ce:8f:3c:8f:c8 UHLWI 00 en1816 10.20.20.170 4:54:53:6d:cc:54 UHLWI 00 en1946 10.20.24.3 0:26:bb:6:58:31UHLWI 00 en1 1015 10.20.24.191 3c:d0:f8:a5:76:dc UHLWI 00 en1 1021 10.20.24.208 localhost UHS 00 lo0 10.20.25.890:26:8:73:e7:abUHLWI 00 en1 1190 10.20.25.159 18:3d:a2:10:5e:24 UHLWI 00 en1 1146 10.20.25.219 ac:72:89:2e:c9:17 UHLWI 0 78 en1 1142 10.20.29.780:1f:3b:3a:6c:8f UHLWI 00 en1 1025 10.20.31.1768:a8:6d:80:70:de UHLWI 00 en1 1080 127localhost UCS 00 lo0 localhost localhost UH 3 106290 lo0 169.254link#6 UCS 00 en1 Internet6: DestinationGatewayFlags Netif Expire localhost localhost UH lo0 fe80::%lo0 localhost Uc lo0 localhost link#1 UHL lo0 fe80::%en0 link#4 UC en0 ff01:: localhost Um lo0 ff02:: localhost UmC lo0 ff02:: link#4 UmC en0 ff02::fb link#4 UHmLW en0 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15285 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14826] urllib2.urlopen fails to load URL
Éric Araujo mer...@netwok.org added the comment: I’m not sure urllib should accept invalid (non-escaped) URLs; a higher-level application can do so, but for the low-level stdlib module it is more debatable. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14826] urllib2.urlopen fails to load URL
Senthil Kumaran sent...@uthcode.com added the comment: It seems to me that toBytes in urllib was introduce to restrict the allowance of urls which were sent as unicode strings. We wanted urls to be ascii strings in Python2. http://mail.python.org/pipermail/python-bugs-list/2000-November/002779.html And quoting to toBytes / to_bytes is actually the problem here, as cookielib test cases is sending a unicode character which ascii encoding fails to operate on. I am thinking that we should arrive at a solution which brings consistency and fixes any previous mistakes. In 3.3, I think, rework of to_bytes may also be a good solution, in 2.7 and 3.2, I think stephen's attached patch is in good lines. Practically, the quote is more important than the failure at toBytes by sending an unicode url. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14826] urllib2.urlopen fails to load URL
Senthil Kumaran sent...@uthcode.com added the comment: Yeah, I am thinking so as well in that case, the test_cookielib.py test case may need a change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15285] test_timeout failure when system on IPv4 10.x.x.x subnet
Florent Xicluna florent.xicl...@gmail.com added the comment: Something like 127.42.42.42 might be more reliable, because it does not depend on the LAN configuration, only on the local loopback settings. It is in 127.0.0.0/8 but not in 127.0.0.0/32. Tested OK here. 127.0.0.0/8 - This block is assigned for use as the Internet host loopback address. A datagram sent by a higher-level protocol to an address anywhere within this block loops back inside the host. This is ordinarily implemented using only 127.0.0.1/32 for loopback. As described in [RFC1122], Section 3.2.1.3, addresses within the entire 127.0.0.0/8 block do not legitimately appear on any network anywhere. http://tools.ietf.org/html/rfc5735#section-3 -- title: test_timeout failure when system on IPv4 10.0.x.x subnet - test_timeout failure when system on IPv4 10.x.x.x subnet ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15285 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
Serhiy Storchaka storch...@gmail.com added the comment: _get_prefix_length now used only in test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13248] deprecated in 3.2, should be removed in 3.3
Changes by Florent Xicluna florent.xicl...@gmail.com: Removed file: http://bugs.python.org/file26297/issue13248_io_max_buffer_size.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13248 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13248] deprecated in 3.2, should be removed in 3.3
Florent Xicluna florent.xicl...@gmail.com added the comment: The other changes are in the patch issue13248_obsolescence_v3.diff. AFAIU, they will not be removed in 3.3, in order to facilitate transition from Python 2. *asyncore* shortcut dispatcher.* for dispatcher.socket.* attributes *base64* functions encodestring and decodestring *cgi* functions parse_qs and parse_qsl *gzip* GzipFile.filename *http.client* argument strict of HTTPResponse and HTTPConnection *mailbox* argument of type StringIO or text mode files *ntpath* function splitunc *tarfile* argument exclude of TarFile.add *trace* old API -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13248 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14826] urllib2.urlopen fails to load URL
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ee1828dc3bf6 by Senthil Kumaran in branch '3.2': issue 14826 - Address the buildbot failure ( explanation msg164973) http://hg.python.org/cpython/rev/ee1828dc3bf6 New changeset dc30111a5d7e by Senthil Kumaran in branch 'default': issue 14826 - Address the buildbot failure quote of url is the required change ( explanation msg164973) http://hg.python.org/cpython/rev/dc30111a5d7e New changeset 224b27a8d9be by Senthil Kumaran in branch '2.7': revert the changes done in d931a3b64fd6 - buildbot failure. http://hg.python.org/cpython/rev/224b27a8d9be -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14826] urllib2.urlopen fails to load URL
Senthil Kumaran sent...@uthcode.com added the comment: The last change should settle the buildbots, But I would like to come back to this issue again tomorrow with focus - 3.3to see if we can deal with removing to_bytes and then in 2.7 to see if something can done to test_cookielib.py test case. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14826] urllib2.urlopen fails to load URL
Antoine Pitrou pit...@free.fr added the comment: Senthil, do you read python-dev? I think this change was prematurate from the start (nevermind the fact that you didn't run the test suite before committing). For example, if you have an URL with a non-ASCII domain name such as http://وزارة-الأتصالات.مصر/;, the domain name should IDNA-encoded, not %-encoded like the rest. Furthermore, some people are certainly already quoting their URLs to workaround this issue, so fixing it will break their code by double-escaping the URLs. You've got to be more careful. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15285] test_timeout failure when system on IPv4 10.x.x.x subnet
Brian Brazil brian.bra...@gmail.com added the comment: I don't think anything in 127/8 is going to work, all Debian/Ubuntu systems I'm aware of have all of 127/8 equivalent to 127.0.0.1. Maybe 192.0.2.0/24 per RFC 5737? A better solution might be to chose some host/port on a python.org server and set it to DROP tcp syn packets. -- nosy: +bbrazil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15285 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13378] Change the variable nsmap from global to instance (xml.etree.ElementTree)
Florent Xicluna florent.xicl...@gmail.com added the comment: Do we merge the patch for 3.3? I'm +1 on this (patch submitted 8 months ago, backward compatible and reviewed). -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15286] normpath does not work with local literal paths
Manuel de la Pena man...@canonical.com added the comment: Antoine, What the MSDN is stating is that the Windows functions from COM will not normalize the path if it is prefixed by \\?\. That is, if a user wanted to do: path = r'\\?\C:\Users\mandel\..\Desktop\test' with open(path, 'w') as fd: fd.write('hello!') he will get the following: [Errorno 22] Invalid argument. r'\\?\C:\Users\mandel\..\Desktop\test' The same think would happen if a C function is used, that is, open is doing the right thing. On the other hand, the same code without the \\?\ works. This makes it even more important to allow the normpath users to normalize such paths, that is, a developer knows that the path has more than 260 chars and wants to make sure that the path can be written in the system: May I ask you why you mention the symbolic links? I know that if one of the segments of the path is a symbolic link there are problems but this is not related to \\?\ or am I confused? Just curious :) Brian, The ntpath module is a little mess (look at my other patch http://bugs.python.org/issue15275) and I think there are more performance problems hidden there somewhere... I imported string within the function because the same is done in expandvars (around line 430) and wanted to follow the style that was already in use in the file. I do agree that imports at the top are the way to go :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15286 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15275] isinstance is called a more times that needed in ntpath
Changes by Manuel de la Pena man...@canonical.com: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15275 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15276] unicode format does not really work in Python 2.x
Berker Peksag berker.pek...@gmail.com added the comment: I can't reproduce this with Python 2.7.3. berker@wakefield ~[master*]$ python Python 2.7.3 (default, Apr 20 2012, 22:39:59) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more information. import locale locale.setlocale(locale.LC_NUMERIC, 'fr_FR') 'fr_FR' u'{:n}'.format(1) u'10 000' -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15276 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15110] strange Tracebacks with importlib
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8c877ad00bc4 by Antoine Pitrou in branch 'default': Issue #15110: Fix the tracebacks generated by import xxx to not show the importlib stack frames. http://hg.python.org/cpython/rev/8c877ad00bc4 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15110 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15287] support.TESTFN was modified by test_builtin
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6651c932d014 by Florent Xicluna in branch 'default': Issue #11022 and #15287: correctly remove the TESTFN file in test_builtin. http://hg.python.org/cpython/rev/6651c932d014 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15287 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11022] locale.getpreferredencoding() must not set temporary LC_CTYPE
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6651c932d014 by Florent Xicluna in branch 'default': Issue #11022 and #15287: correctly remove the TESTFN file in test_builtin. http://hg.python.org/cpython/rev/6651c932d014 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11022 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15287] support.TESTFN was modified by test_builtin
Changes by Florent Xicluna florent.xicl...@gmail.com: -- assignee: ronaldoussoren - components: -Macintosh nosy: -ronaldoussoren resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15287 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15286] normpath does not work with local literal paths
Antoine Pitrou pit...@free.fr added the comment: May I ask you why you mention the symbolic links? I know that if one of the segments of the path is a symbolic link there are problems but this is not related to \\?\ or am I confused? Just curious :) No, it is not related with \\?\ but I'm pointing out that normpath() isn't very useful because of that. And Windows has symlink support nowadays :-) For the record, I'm trying to build a saner path-handling library at http://pypi.python.org/pypi/pathlib/ . I hope to propose it for inclusion in 3.4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15286 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13378] Change the variable nsmap from global to instance (xml.etree.ElementTree)
Eli Bendersky eli...@gmail.com added the comment: Can this be honestly classified as a bugfix though? If it's a feature it will have to be postponed to 3.4 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15291] test_ast leaks memory a lot
New submission from Antoine Pitrou pit...@free.fr: On the default branch, if you run test_ast in a loop: ./python -E -m test -F test_ast you will see that the process memory use grows very quickly. This doesn't happen on 3.2. I'm not a Valgrind expert so perhaps someone else can take a look. Otherwise I'll try to bisect. -- components: Interpreter Core messages: 164992 nosy: neologix, pitrou, skrah priority: critical severity: normal status: open title: test_ast leaks memory a lot type: resource usage versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13378] Change the variable nsmap from global to instance (xml.etree.ElementTree)
Stefan Behnel sco...@users.sourceforge.net added the comment: Looks like a new feature to me. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15291] test_ast leaks memory a lot
Antoine Pitrou pit...@free.fr added the comment: So, the culprit is: changeset: 75542:3877bf2e3235 user:Benjamin Peterson benja...@python.org date:Mon Mar 12 09:46:44 2012 -0700 summary: give the AST class a __dict__ -- nosy: +benjamin.peterson, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15110] strange Tracebacks with importlib
Antoine Pitrou pit...@free.fr added the comment: Thanks, Brett! -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15110 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13378] Change the variable nsmap from global to instance (xml.etree.ElementTree)
Florent Xicluna florent.xicl...@gmail.com added the comment: Well, it fixes the behavior of ElementTree in some multi-threaded cases, provided you pass the namespace map as an argument of the serializer call. The fix implements an optional argument for this use case. As a side effect, it makes it easier to work with custom namespaces. If the consensus is to wait for next version, I'm fine with that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15291] test_ast leaks memory a lot
Antoine Pitrou pit...@free.fr added the comment: Strangely, the reference leak was fixed in: changeset: 75686:9e7f6ddc0d76 user:Benjamin Peterson benja...@python.org date:Wed Mar 14 21:50:29 2012 -0500 summary: free AST's dict But it didn't fix the memory leak. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15292] import hook behavior documentation improvement
New submission from Anders Hammarquist i...@iko.pp.se: When testing Eutaxia on PyPy (1.9) I discovered a discrepancy in the path_hooks import hook implementation. In CPython (2.7), if the find_module() method raises ImportError (as imp.find_module() does when it does not find a module in the given path), will cause the search to continue, whereas PyPy would propagate the ImportError. PyPy has now been changed to behave like CPython. The documentation is not entirely clear, but it does not explicitly document the import hook mechanism as eating an ImportError in find_module(). It should probably be made explicit, which ever way it should be. It is not obvious what is the correct behaviour, given the implicit relative imports, where the ImportError simply means that the import hook cannot find the module. Quick testing on CPython 3.3 indicates that it behaves like PyPy did, but as it doesn't do implicit relative imports my test case didn't work as it was. For 3.3, without implicit relative imports, propagating the ImportError feels like the correct behaviour. The attached demonstration needs a file /tmp/test/foo.py that does a top-level import, e.g. import errno to demonstrate the discrepancy. -- assignee: docs@python components: Documentation files: testimport.py messages: 164998 nosy: docs@python, iko priority: normal severity: normal status: open title: import hook behavior documentation improvement type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file26315/testimport.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15292 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15292] import hook behavior documentation improvement
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brett.cannon, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15292 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15291] test_ast leaks memory a lot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 048d8d9aecf1 by Antoine Pitrou in branch 'default': Issue #15291: Fix a memory leak where AST nodes where not properly deallocated. http://hg.python.org/cpython/rev/048d8d9aecf1 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15291] test_ast leaks memory a lot
Antoine Pitrou pit...@free.fr added the comment: Well, that was easy :) -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15293] AST nodes do not support garbage collection
New submission from Antoine Pitrou pit...@free.fr: Add the following to test_ast: diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py @@ -199,6 +199,7 @@ class AST_Tests(unittest.TestCase): x.foobar = 42 self.assertEqual(x.foobar, 42) self.assertEqual(x.__dict__[foobar], 42) +x.x = x with self.assertRaises(AttributeError): x.vararg and you'll get a reference leak. -- assignee: benjamin.peterson components: Interpreter Core messages: 165001 nosy: benjamin.peterson, pitrou priority: normal severity: normal status: open title: AST nodes do not support garbage collection type: resource usage versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15293 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13378] Change the variable nsmap from global to instance (xml.etree.ElementTree)
Stefan Behnel sco...@users.sourceforge.net added the comment: Florent, what you describe is exactly the definition of a new feature. Users even have to change their code in order to make use of it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15284] Handle ipv6 not being enabled in test_socket
Changes by Brian Brazil brian.bra...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15284 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1767933] Badly formed XML using etree and utf-16
Serhiy Storchaka storch...@gmail.com added the comment: Here is a patch with using context management (as Eli advised). This makes error handling much safer and probably makes the code a little easier. Several new tests are added. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1767933 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15292] import hook behavior documentation improvement
Nick Coghlan ncogh...@gmail.com added the comment: The PyPy and 3.3 behaviour are actually correct according to the spec, but it's *really* unclear in PEP 302. sys.meta_path accepts finder objects. These are explicitly documented as returning None from find_module() to indicate try the next one and raising exceptions solely to report problems. However, for reasons that are unknown to me, sys.path_hooks entries (which occupy most of the section on registering hooks) use a different protocol to indicate try the next one: raising ImportError. Since meta_path and path_hooks are described in the same section, and the meta_path description just says add finder objects, it's understandable that implementors take the path_hooks protocol description as applying to finders in general :( I would chalk the 2.x (and likely 3.x for x 3) behaviour up to the only partial implementation of PEP 302 in CPython (until Brett's success in bootstrapping importlib for 3.3). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15292 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 45265ecaa3e4 by Nick Coghlan in branch 'default': Issue 14814: Remove dead function (noticed by Serhiy Storchaka) http://hg.python.org/cpython/rev/45265ecaa3e4 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15276] unicode format does not really work in Python 2.x
Serhiy Storchaka storch...@gmail.com added the comment: I confirm the bug on 2.7. $ ./python Python 2.7.3+ (2.7:ab9d6c4907e7+, Apr 25 2012, 20:02:36) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for more information. import locale locale.setlocale(locale.LC_NUMERIC, 'uk_UA.UTF-8') 'uk_UA.UTF-8' u'{:n}'.format(1) Traceback (most recent call last): File stdin, line 1, in module UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2: ordinal not in range(128) '{:n}'.format(1) '10\xc2\xa' -- components: +Interpreter Core, Unicode nosy: +ezio.melotti, storchaka type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15276 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1767933] Badly formed XML using etree and utf-16
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file26316/etree_write_utf16_4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1767933 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15290] setAttribute() can fail
Antoine Pitrou pit...@free.fr added the comment: Trivial reproducer: e = minidom.Element(span) e.setAttribute(class, version) Traceback (most recent call last): File stdin, line 1, in module File /home/antoine/cpython/default/Lib/xml/dom/minidom.py, line 743, in setAttribute attr.ownerDocument = self.ownerDocument AttributeError: ownerDocument -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15290] setAttribute() can fail
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file26317/minidom_setattribute.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15290] setAttribute() can fail
Martin v. Löwis mar...@v.loewis.de added the comment: That's invalid usage. You are supposed to create new element nodes through the document's createElement method. unattached nodes are not supported. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15290] setAttribute() can fail
Antoine Pitrou pit...@free.fr added the comment: That's invalid usage. You are supposed to create new element nodes through the document's createElement method. unattached nodes are not supported. Well, I don't know how many third-party application rely on this, but Twisted does it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15290] setAttribute() can fail
Martin v. Löwis mar...@v.loewis.de added the comment: Then Twisted will have to change. From http://docs.python.org/library/xml.dom.minidom.html Applications should not instantiate the classes themselves; they should use the creator functions available on the Document object. If they insist on not using createElement, they use internal API, and need to adjust that to new Python versions. Closing as invalid. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15110] strange Tracebacks with importlib
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I really like the _exec_module trick, but it should be applied to builtin modules as well. I hacked _sre.c and got: ~/python/cpython3.x$ ./python Traceback (most recent call last): File /home/amauryfa/python/cpython3.x/Lib/site.py, line 70, in module import re File /home/amauryfa/python/cpython3.x/Lib/re.py, line 122, in module import sre_compile File /home/amauryfa/python/cpython3.x/Lib/sre_compile.py, line 13, in module import _sre, sys File frozen importlib._bootstrap, line 1318, in _find_and_load File frozen importlib._bootstrap, line 1285, in _find_and_load_unlocked File frozen importlib._bootstrap, line 347, in set_package_wrapper File frozen importlib._bootstrap, line 360, in set_loader_wrapper File frozen importlib._bootstrap, line 443, in _requires_builtin_wrapper File frozen importlib._bootstrap, line 493, in load_module ValueError: Just a test This change correctly hides importlib frames: diff -r 9afdd8c25bf2 Lib/importlib/_bootstrap.py --- a/Lib/importlib/_bootstrap.py Sun Jul 08 14:00:06 2012 +0200 +++ b/Lib/importlib/_bootstrap.py Sun Jul 08 15:03:27 2012 +0200 @@ -490,12 +490,15 @@ Load a built-in module. is_reload = fullname in sys.modules try: -return _imp.init_builtin(fullname) +return self._exec_module(fullname) except: if not is_reload and fullname in sys.modules: del sys.modules[fullname] raise +def _exec_module(self, fullname): +return _imp.init_builtin(fullname) + @classmethod @_requires_builtin def get_code(cls, fullname): -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15110 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7aa75ea4116d by Nick Coghlan in branch 'default': Issue 14814: The new systematic tests aren't just about error reporting any more - change names accordingly. Added and tweaked some example to ensure they were covering the intended code paths http://hg.python.org/cpython/rev/7aa75ea4116d -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15294] regression with nested namespace packages
New submission from Antoine Pitrou pit...@free.fr: Legacy namespace packages (handled with pkgutil) do not work anymore when they are nested. The attached test file passes under 3.2 but fails under 3.3. -- components: Interpreter Core files: test_nested_nspackage.py messages: 165014 nosy: brett.cannon, eric.snow, ncoghlan, pitrou priority: high severity: normal status: open title: regression with nested namespace packages type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file26318/test_nested_nspackage.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15292] import hook behavior documentation improvement
Brett Cannon br...@python.org added the comment: Everything Nick said is right: PyPy did it properly according to the spec and CPython 2.7 got it wrong. Unfortunately fixing this now would break code and so it will simply have to stay a Python 2.7 quirk with Python 3.3 and later doing it correctly. So documenting the screw-up would be good so that people know that the solution they use in Python 2.7 won't work in Python 3.3 and later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15292 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15110] strange Tracebacks with importlib
Brett Cannon br...@python.org added the comment: Re-opening so Antoine can look at Amaury's proposed fix for builtin modules. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15110 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15295] Document PEP 420 namespace packages
New submission from Brett Cannon br...@python.org: I believe Barry said he was going to handle the documentation for PEP 420. -- assignee: barry components: Documentation messages: 165017 nosy: barry, brett.cannon priority: release blocker severity: normal stage: needs patch status: open title: Document PEP 420 namespace packages versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15295] Document PEP 420 namespace packages
Brett Cannon br...@python.org added the comment: One request I would like to make is that while the docs are being written, to please look at importlib.find_loader() and let me know if the name no longer applies (it's new in Python 3.3 so it can easily be renamed). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15292] import hook behavior documentation improvement
Nick Coghlan ncogh...@gmail.com added the comment: Perhaps the porting section in the 3.3 What's New? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15292 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15296] Minidom can't create ASCII representation
New submission from Serhiy Storchaka storch...@gmail.com: Minidom can parse ASCII-encoded XML data, but can't create it. from xml.dom.minidom import parseString doc = parseString(b'?xml version=1.0 encoding=us-ascii?foo#x20ac;/foo') doc.toxml('us-ascii') Traceback (most recent call last): File stdin, line 1, in module File /home/serhiy/py/cpython/Lib/xml/dom/minidom.py, line 47, in toxml return self.toprettyxml(, , encoding) File /home/serhiy/py/cpython/Lib/xml/dom/minidom.py, line 56, in toprettyxml self.writexml(writer, , indent, newl, encoding) File /home/serhiy/py/cpython/Lib/xml/dom/minidom.py, line 1798, in writexml node.writexml(writer, indent, addindent, newl) File /home/serhiy/py/cpython/Lib/xml/dom/minidom.py, line 868, in writexml self.childNodes[0].writexml(writer, '', '', '') File /home/serhiy/py/cpython/Lib/xml/dom/minidom.py, line 1090, in writexml _write_data(writer, %s%s%s % (indent, self.data, newl)) File /home/serhiy/py/cpython/Lib/xml/dom/minidom.py, line 304, in _write_data writer.write(data) File /home/serhiy/py/cpython/Lib/codecs.py, line 355, in write data, consumed = self.encode(object, self.errors) UnicodeEncodeError: 'ascii' codec can't encode character '\u20ac' in position 0: ordinal not in range(128) Same for other non-unicode encodings. Suggested simple patch solves this issue. -- components: Library (Lib), Unicode, XML files: minidom_toxml_encoding.patch keywords: patch messages: 165020 nosy: ezio.melotti, storchaka priority: normal severity: normal status: open title: Minidom can't create ASCII representation type: behavior versions: Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file26319/minidom_toxml_encoding.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15296 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15110] strange Tracebacks with importlib
Antoine Pitrou pit...@free.fr added the comment: I really like the _exec_module trick, but it should be applied to builtin modules as well. I hacked _sre.c and got: I hadn't thought about this one. Can you apply your patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15110 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Jesús Cea Avión j...@jcea.es added the comment: Justin, I can compile and run the tests fine in my Solaris 11 virtual machine, both in 32 and 64 bits and both static and dynamic. I am using GCC, and you are using Sun Studio. http://buildbot.python.org/all/builders/x86%20Solaris%2011%20custom/builds/17/steps/compile/logs/stdio I was wondering if you have Jabber/XMPP (mine: j...@jabber.org) so we can talk about this in realtime, and do some remote keyboard test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14826] urllib2.urlopen fails to load URL
Christian Heimes li...@cheimes.de added the comment: The docs [1] state that `url should be a string containing a valid URL.` An URL with a space ' ' is not a valid URL as the space must be quoted as %20. The brackets may also cause problems as they are not valid xs:anyURI chars. I vote for reverting the chances as they break the API. You could improve the docs and emphasize that URLs must be quoted correctly as the module doesn't implement browser magic. [1] http://docs.python.org/py3k/library/urllib.request.html#urllib.request.Request -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15281] pyvenv --symlinks option is a no-op?
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9c345b4bd97e by Vinay Sajip in branch 'default': Closes #15281, #15283: Don't make venv scripts executable, but copy source mode instead, and provide better help for pyvenv. http://hg.python.org/cpython/rev/9c345b4bd97e -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15281 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15283] pyvenv says nothing on success
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9c345b4bd97e by Vinay Sajip in branch 'default': Closes #15281, #15283: Don't make venv scripts executable, but copy source mode instead, and provide better help for pyvenv. http://hg.python.org/cpython/rev/9c345b4bd97e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15283 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15283] pyvenv says nothing on success
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15283 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15273] Remove unnecessarily random behavior from test_unparse.py
R. David Murray rdmur...@bitdance.com added the comment: I thought we had other tests that did this as well (pickle?). If you need reproducibility you check the random seed and reuse it. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15273 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15294] regression with nested namespace packages
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12081] Remove distributed copy of libffi
Meador Inge mead...@gmail.com added the comment: Matthias recently updated libffi to 3.0.11 (issue15194). It would seem that we intend to keep a local copy of the libffi sources for now and that this issue can be closed. Does anyone see a reason to keep this open? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12081 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15262] Idle does not show traceback in other threads
Terry J. Reedy tjre...@udel.edu added the comment: Unless this could have been just as easily fixed in IDLE as in the core (Roger?), no, don't hold your breath ;-). -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15262 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12081] Remove distributed copy of libffi
Martin v. Löwis mar...@v.loewis.de added the comment: Closing as a duplicate. The original issue is resolved: we are not distributing an old copy of libffi anymore. -- resolution: - duplicate status: open - closed superseder: - libffi-3.0.11 update ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12081 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15293] AST nodes do not support garbage collection
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8538d01c by Benjamin Peterson in branch 'default': add gc support to the AST base type (closes #15293) http://hg.python.org/cpython/rev/8538d01c -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15293 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15283] pyvenv says nothing on success
Éric Araujo mer...@netwok.org added the comment: Creating a venv is useless if you don't ever activate it, right. This is a common misconception. Shell activation is only about putting the venv’s bin directory on the beginning of the PATH. It’s a purely optional convenience. Using a virtualenv can be done fully with explicit paths like Martin mentioned. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15283 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15110] strange Tracebacks with importlib
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 37e68da59047 by Amaury Forgeot d'Arc in branch 'default': Issue #15110: Also hide importlib frames when importing a builtin module fails. http://hg.python.org/cpython/rev/37e68da59047 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15110 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15110] strange Tracebacks with importlib
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5d43154d68a8 by Amaury Forgeot d'Arc in branch 'default': Issue #15110: Copy same docstring as other '_exec_module' methods. http://hg.python.org/cpython/rev/5d43154d68a8 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15110 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15296] Minidom can't create ASCII representation
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +eli.bendersky stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15296 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15283] pyvenv says nothing on success
Senthil Kumaran sent...@uthcode.com added the comment: I think, the ``source bin/activate`` should be mentioned in the Docs at least. It should not require that a person carries this knowledge from somewhere else. At the moment, I do not see mention of it in the docs either - http://docs.python.org/dev/library/venv.html -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15283 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15297] pkgutil.iter_importers() includes an ImpImporter
New submission from Chris Jerdonek chris.jerdo...@gmail.com: I'm not sure if this should be fixed in the code or in the documentation, but the pkgutil.iter_importers() documentation says that pkgutil.iter_importers(name) should yield the importers for sys.meta_path, sys.path, and Python’s “classic” import machinery, in that order when name does not include a .: http://docs.python.org/dev/library/pkgutil.html#pkgutil.iter_importers However, the function appends a non-classic pkgutil.ImpImporter at the end of all that: Python 3.3.0b1 (default:5d43154d68a8, Jul 8 2012, 13:54:45) [GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.58)] on darwin from pkgutil import iter_importers list(iter_importers())[-1] pkgutil.ImpImporter object at 0x1035fa840 -- components: Library (Lib) messages: 165035 nosy: cjerdonek priority: normal severity: normal status: open title: pkgutil.iter_importers() includes an ImpImporter versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15297 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15298] _sysconfigdata is generated in srcdir, not builddir
New submission from Matthias Klose d...@debian.org: _sysconfigdata is generated in srcdir, not builddir, so if you do two consecutive differently builds in different builddirs and using the same srcdir, then the _sysconfigdata of the second build wins. _sysconfigdata.py has to be built in the builddir, not the srcdir. -- components: Build messages: 165036 nosy: doko priority: release blocker severity: normal status: open title: _sysconfigdata is generated in srcdir, not builddir type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15294] regression with nested namespace packages
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file26320/nestednspkg.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15294] regression with nested namespace packages
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file26321/nestednspkg.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15294] regression with nested namespace packages
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file26320/nestednspkg.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15299] ImpImporter(None).iter_modules() does not search sys.path
New submission from Chris Jerdonek chris.jerdo...@gmail.com: The pkgutil.ImpImporter documentation says that if dirname is None, ImpImporter(dirname) should create a PEP 302 importer that searches the current sys.path, plus any modules that are frozen or built-in: http://docs.python.org/dev/library/pkgutil.html#pkgutil.ImpImporter However, the iter_modules() method of an ImpImporter instance doesn't search sys.path if dirname is None. It returns a generator that always yields nothing. For example-- Python 3.3.0b1 (default:5d43154d68a8, Jul 8 2012, 13:54:45) [GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.58)] on darwin from pkgutil import ImpImporter importer = ImpImporter() list(importer.iter_modules()) [] Strictly speaking, one could say the documentation only applies to the find_module() method since that's the only method covered by the PEP 302 API However, iter_modules() is a public method. So I think that either iter_modules() should be fixed, made private, or else the documentation clarified by saying that searching sys.path does not apply to iter_modules(). I'm pretty sure though that iter_modules() should be fixed. This is because there are other functions in pkgutil that seem not to work because ImpImporter.iter_modules() behaves the way it does (specifically calling pkgutil.iter_modules() with path=None). -- components: Library (Lib) messages: 165038 nosy: cjerdonek priority: normal severity: normal status: open title: ImpImporter(None).iter_modules() does not search sys.path versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15294] regression with nested namespace packages
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15299] pkgutil.ImpImporter(None).iter_modules() does not search sys.path
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- title: ImpImporter(None).iter_modules() does not search sys.path - pkgutil.ImpImporter(None).iter_modules() does not search sys.path ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13557] exec of list comprehension fails on NameError
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ab22ffa6fb2e by Terry Jan Reedy in branch '2.7': Issue #13557: Clarify effect of giving two different namespaces to exec or http://hg.python.org/cpython/rev/ab22ffa6fb2e New changeset ea670d71a36d by Terry Jan Reedy in branch '3.2': Issue #13557: Clarify effect of giving two different namespaces to exec or http://hg.python.org/cpython/rev/ea670d71a36d New changeset b47ae7a9e685 by Terry Jan Reedy in branch 'default': Merge 3.2 closes issue 13557 http://hg.python.org/cpython/rev/b47ae7a9e685 -- nosy: +python-dev resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13557 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Martin, FYI, Pat processed my contrib form. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15231 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14982] pkgutil.walk_packages seems to not work properly on Python 3.3a
Chris Jerdonek chris.jerdo...@gmail.com added the comment: FYI, I created issue 15299 and issue 15297 which also relate to pkgutil.walk_packages() not working correctly in Python 3.3 -- even with the caveat added by Brett. These two issues are in pkgutil.walk_packages()'s code path when passed path=None. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14982 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15294] regression with nested namespace packages
Eric V. Smith e...@trueblade.com added the comment: The patch looks good to me. I haven't run the tests, though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15265] random.sample() docs unclear on k len(population)
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 72174d8af3ba by Raymond Hettinger in branch 'default': Issue 15265: document the exception raised for invalid sample sizes. http://hg.python.org/cpython/rev/72174d8af3ba -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15265 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15265] random.sample() docs unclear on k len(population)
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Thanks, I've added a note. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15265 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes
Meador Inge mead...@gmail.com added the comment: This is still broken after the libffi update (issue15194). The errors are the same as Alex mentioned when he tested libffi-3.0.11. The right way to go is to get this fixed in upstream libffi and backport the patch. -- assignee: theller - stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4130 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14826] urllib2.urlopen fails to load URL
Senthil Kumaran sent...@uthcode.com added the comment: On Sun, Jul 8, 2012 at 2:30 AM, Antoine Pitrou rep...@bugs.python.org wrote: Senthil, do you read python-dev? I think this change was prematurate from the start (nevermind the fact that you didn't run the test suite before committing). I thought that the other legacy URLOpen was quoting it correct and then I wanted to see it can be made consistent. It did get me thinking that why it was different for so long. I realize that committing soon was a mistake. For example, if you have an URL with a non-ASCII domain name such as http://وزارة-الأتصالات.مصر/;, the domain name should IDNA-encoded, not %-encoded like the rest. Agreed and understood. Furthermore, some people are certainly already quoting their URLs to workaround this issue, so fixing it will break their code by double-escaping the URLs. You've got to be more careful. Oh. yes, the change may break an already quoted URL. I think, I shall revert this back. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14826] urllib2.urlopen fails to load URL
Senthil Kumaran sent...@uthcode.com added the comment: On Sun, Jul 8, 2012 at 9:42 AM, Christian Heimes rep...@bugs.python.org wrote: I vote for reverting the chances as they break the API. You could improve the docs and emphasize that URLs must be quoted correctly as the module doesn't implement browser magic. Okay. But I do realize that in 3.3, we may have a FancyURLOpener / URLOpener 's open method, which is not directly called by the apis, but they seem to have quote behavior. I guess, I approached this change as to making them consistent, but realize it is mistake, for the reasons that you state and Antoine state. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12988] Tkinter File Dialog crashes on Win7 when saving to Documents Library
Ali Rahmjoo ali_rahm...@yahoo.com added the comment: I have exactly the same problem mentioned by Brian Gernhardt for 32-bit Python 3.2.3 on Win7. -- nosy: +alirahmjoo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14715] test.support.DirsOnSysPath should be replaced by importlib.test.util.import_state
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +cjerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14826] urllib2.urlopen fails to load URL
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ebd37273e0fe by Senthil Kumaran in branch '3.2': revert the changes done for issue14826 - quoting witin Request is not desirable. http://hg.python.org/cpython/rev/ebd37273e0fe -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14826] urllib2.urlopen fails to load URL
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a4bdb637d818 by Senthil Kumaran in branch 'default': revert the changes done for issue14826 - quoting witin Request is not desirable. http://hg.python.org/cpython/rev/a4bdb637d818 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com