[issue14197] OS X framework builds do not create ABI-suffixed libpython3.x
Ned Deily n...@acm.org added the comment: Thank you for the additional information. It appears the problem is that, for OS X framework builds, the ABI suffix (added in PEP 3149) is not used to create the shared library dylib name in the framework lib directory. For example, $ cd Library/Frameworks/Python.framework/Versions/3.2 $ ./bin/python3.2-config --libs -ldl -framework CoreFoundation -lpython3.2m $ ls -l ./lib total 8 lrwxr-xr-x 1 root wheel 9 Feb 24 09:44 libpython3.2.dylib@ - ../Python drwxrwxr-x 2 root admin 170 Feb 24 08:49 pkgconfig/ drwxrwxr-x 32 root admin 6290 Feb 24 08:49 python3.2/ But in an --enable-shared --with-pydebug build: $ ./bin/python3.2-config --libs -ldl -framework CoreFoundation -lpython3.2dm $ ls -l ./lib total 6920 -r-xr-xr-x 1 nad pyd 3541320 Mar 4 23:40 libpython3.2dm.dylib* drwxr-xr-x 2 nad pyd 170 Mar 4 23:40 pkgconfig/ drwxr-xr-x 32 nad pyd 6290 Mar 4 23:40 python3.2/ Looks like target frameworkinstallmaclib in Makefile.pre.in needs to be changed to include SOABI in the name for the lib symlink. -- assignee: - ned.deily components: +Macintosh stage: - needs patch title: MacOS10.7 compiled uWSGI the issue. - OS X framework builds do not create ABI-suffixed libpython3.x versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14197 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14181] Support getbuffer redirection scheme in memoryview
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f1441971b621 by Stefan Krah in branch 'default': Issue #14181: Allow memoryview construction from an object that uses the http://hg.python.org/cpython/rev/f1441971b621 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14160] TarFile.extractfile fails to extract targets of top-level relative symlinks
Changes by Lars Gustäbel l...@gustaebel.de: -- assignee: - lars.gustaebel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14160 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14181] Support getbuffer redirection scheme in memoryview
Stefan Krah stefan-use...@bytereef.org added the comment: I didn't ask for review since in the production code only the assert() line is removed. There are a couple of new tests and I have a private version of test_buffer that runs most tests with an ndarray chain using either redirection or re-exporting. As expected, there are no problems in allowing getbuffer redirection. Leaving this open as a documentation issue. -- components: +Documentation stage: test needed - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13183] pdb skips frames after hitting a breakpoint and running step
Senthil Kumaran sent...@uthcode.com added the comment: It's an interesting issue. Thanks for the report and patch, Xavier. I am setting patch to needing review. -- keywords: +needs review -patch nosy: +orsenthil versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14198] Backport parts of the new memoryview documentation
New submission from Stefan Krah stefan-use...@bytereef.org: Nick's comment from #10181: It occurs to me that one thing that *could* be backported to early versions are some of the documentation improvements on how to correctly handle the lifecycle of fields in Py_buffer. That gets messy though because memoryview doesn't behave nicely in those versions, so we'd be violating our own guidelines. Perhaps the relevant sections should be updated with a reference saying that the semantics have been cleaned up in 3.3, and if in doubt, try to follow the 3.3 documentation? -- assignee: skrah components: Documentation messages: 154934 nosy: ncoghlan, pitrou, skrah priority: normal severity: normal status: open title: Backport parts of the new memoryview documentation type: enhancement versions: Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14198 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 39cc025968f1 by Florent Xicluna in branch 'default': Issue #14007: drop unused TreeBuilder().xml. http://hg.python.org/cpython/rev/39cc025968f1 New changeset 47016103185f by Florent Xicluna in branch 'default': Issue #14007: accept incomplete TreeBuilder objects (missing start/end/data/close) for the Python implementation as well. Add disabled tests for the doctype() method. http://hg.python.org/cpython/rev/47016103185f -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14007 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12151] test_logging fails sometimes
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0457fb8bf39c by Vinay Sajip in branch 'default': Added more diagnostics for diagnosing #12151. http://hg.python.org/cpython/rev/0457fb8bf39c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12151 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 373f6cdc6d08 by Stefan Krah in branch 'default': Issue #10181: The decision was to raise a buffer error in memory_exit() http://hg.python.org/cpython/rev/373f6cdc6d08 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14098] provide public C-API for reading/setting sys.exc_info()
Changes by Stefan Behnel sco...@users.sourceforge.net: Added file: http://bugs.python.org/file24734/pyerr_getexcinfo.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14160] TarFile.extractfile fails to extract targets of top-level relative symlinks
Lars Gustäbel l...@gustaebel.de added the comment: Thanks for the report. Attached is a patch (against 3.2) that is supposed to fix the problem. -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file24735/issue14160.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14160 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1531415] parsetok.c emits warnings by writing to stderr
Michele Orrù maker...@gmail.com added the comment: For what I saw these days, Parser/tokenizer.c should import warnings.h (in order to use PyErr_WarnEx()), but Python/_warnings.c imports Python.h, that requires pgen ready. This leads to a circular dependency. Am I wrong / missing something? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1531415 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect
Senthil Kumaran sent...@uthcode.com added the comment: Hi Jay Éric, I understand your points and providing an extra argument seems like an idea that could be useful to circumvent , what you see as a problem. The RFC section states that - The action required MAY be carried out by the user agent without interaction with the user if and only if the method used in the second request is GET or HEAD. By this, I understand, RFC means, for the POST data, the user is made aware and is conscious of the redirect which is happening and is permitting to POST the data to new location. The interaction happens like this: User: Post to /a Browser: Posts to /a and Server says oh /a is /b Browser: Hello user! Server says /a is now /b. Shall I post to /b? User: Yes, you may. This is different from what you are saying, which is like with having an option in the browser settings which will enable following redirect on POST. User: Post to /a (and if there is redirect follow that post to the corresponding site). Browser: Posts to /a and Server says /a is /b. Browser: Posts to /b But do you know if any such browser setting exist? No. Browsers for good reasons do not provide such a setting and they prompt user if they want to follow the redirect with POST. In a similar way, developers using urllib as library in their applications can obtain the redirected URL and then POST to the redirected URL. That would be equivalent behavior. Providing an automatic follow redirect on POST could serious security issue, both for clients/libraries and browser. Even with a word of caution, it has a high chance of being misused. So, I am -1 on this proposal. I hope you understand my argument. I had thought about this earlier a for a similar issue and I remember we made the decision to drop the data following the redirected POST. If my argument is not convincing enough, then I think, it would be good idea to bring this bug to discussion on python-dev or web-sig and provide some concrete real world examples. That could bring some use cases for/against this issue and might be helpful. Thanks, Senthil -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14144 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2403] Add figleaf coverage metrics
Éric Araujo mer...@netwok.org added the comment: Adding people interested in code coverage to nosy. -- nosy: +giampaolo.rodola, ncoghlan versions: +Python 3.3 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2403 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect
Éric Araujo mer...@netwok.org added the comment: The action required MAY be carried out by the user agent without interaction with the user if and only if the method used in the second request is GET or HEAD. By this, I understand, RFC means, for the POST data, the user is made aware and is conscious of the redirect which is happening and is permitting to POST the data to new location. My reading too. The interaction happens like this: User: Post to /a Browser: Posts to /a and Server says oh /a is /b Browser: Hello user! Server says /a is now /b. Shall I post to /b? User: Yes, you may. This is different from what you are saying, which is like with having an option in the browser settings which will enable following redirect on POST. The big difference that I see is that urllib is a library, not a browser. A browser could be implemented on top of urllib, and it is the browser’s responsibility to ask the user if they want POST data to be sent again. The browser then needs to tell urllib to forward POST data: this is the piece that’s missing. In a similar way, developers using urllib as library in their applications can obtain the redirected URL and then POST to the redirected URL. That would be equivalent behavior. Ah, so there is a way to achieve it! If Jay is satisfied by this, we could add an example of using that in the urllib howto, with the appropriate warnings. That would have much less risk than a new parameter. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14144 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14199] Keep a refence to mro in _PyType_Lookup() and super_getattro()
New submission from STINNER Victor victor.stin...@gmail.com: Lib/test/crashers/losing_mro_ref.py does crash Python: _PyType_Lookup() borrows a reference to the type MRO, but the type MRO is replaced during the lookup. Python crashs because it reads an item from a tuple that was destroyed (in the specific test, it reads an item from a newly created tuple which is not the type MRO). Attached patch keeps a strong reference to the type MRO during the lookup to workaround this crasher. It fixes Lib/test/crashers/losing_mro_ref.py. If changing temporary has an impact on performances, a guard can be used to check that the type MRO has not been changed during the lookup. -- components: Interpreter Core files: type_lookup_mro.patch keywords: patch messages: 154943 nosy: haypo priority: normal severity: normal status: open title: Keep a refence to mro in _PyType_Lookup() and super_getattro() type: crash versions: Python 3.3 Added file: http://bugs.python.org/file24736/type_lookup_mro.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14199 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14200] Idle shell crash on printing non-BMP unicode character
New submission from Vlastimil Brom vlastimil.b...@gmail.com: Hi, while testing python 3.3a1 a bit, especially the new string handling of non-BMP characters, I noticed a problem in Idle in this regard: Python 3.3.0a1 (default, Mar 4 2012, 17:27:59) [MSC v.1500 32 bit (Intel)] on win32 ... [using win XPp SP3 Czech] got_ahsa = \N{GOTHIC LETTER AHSA} len(got_ahsa) 1 got_ahsa.encode(unicode-escape) b'\\U00010330' got_ahsa [crash - idle shell window closes immediately without any visible error message or traceback] I realised later, that tkinter probably won't be able to print wide-unicode characters anyway (according to http://bugs.python.org/issue12342 ), but Idle should probably just print the exception introduced there, e.g. ValueError: character U+10330 is above the range (U+-U+) allowed by Tcl Regards vbr -- components: IDLE, Tkinter, Unicode messages: 154944 nosy: ezio.melotti, vbr priority: normal severity: normal status: open title: Idle shell crash on printing non-BMP unicode character versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14200 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12151] test_logging fails sometimes
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a495c41c1e13 by Vinay Sajip in branch 'default': Issue #12151: Added more info to diagnostics. http://hg.python.org/cpython/rev/a495c41c1e13 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12151 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14200] Idle shell crash on printing non-BMP unicode character
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +haypo, loewis, ned.deily, terry.reedy type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14200 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14181] Support getbuffer redirection scheme in memoryview
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3a1f7c9f0b25 by Stefan Krah in branch 'default': Issue #14181: Test creating memoryviews from a static exporter with both http://hg.python.org/cpython/rev/3a1f7c9f0b25 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14181] Support getbuffer redirection scheme in memoryview
Stefan Krah stefan-use...@bytereef.org added the comment: I'm abusing the issue to settle all concerns that came up on python-dev: The tests added in the latest commit show that it's indeed no problem if an atypical static exporter sets view.obj to NULL. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14181] Support getbuffer redirection scheme in memoryview
Stefan Behnel sco...@users.sourceforge.net added the comment: Then I'm abusing this ticket to say: thanks for verifying this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14201] libc.time != libc['time']
New submission from Erik Johansson e...@ejohansson.se: I would expect that the following code would give True as result: from ctypes import * libc = CDLL(libc.so.6) libc.time == libc['time'] False Is it by design that libc['time'] always returns a different _FuncPtr object? It is a bit confusing when doing things like: libc['time'].restype = ... libc['time'].argtypes = [...] # python --version Python 2.7.2+ Ubunutu version 2.7.2-5ubuntu1. -- components: ctypes messages: 154949 nosy: erijo priority: normal severity: normal status: open title: libc.time != libc['time'] type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14201 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12328] multiprocessing's overlapped PipeConnection on Windows
sbt shibt...@gmail.com added the comment: Updated patch addressing Antoine's comments. -- Added file: http://bugs.python.org/file24737/pipe_poll_fix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12328 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13970] frameobject should not have f_yieldfrom attribute
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 84620bca0e35 by Benjamin Peterson in branch 'default': remove f_yieldfrom access from Python (closes #13970) http://hg.python.org/cpython/rev/84620bca0e35 -- nosy: +python-dev resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13970 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14201] libc.time != libc['time']
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14201 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14200] Idle shell crash on printing non-BMP unicode character
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14200 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13719] bdist_msi upload fails
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3d1362fa07c3 by Éric Araujo in branch '3.2': Make distutils’ upload command work with bdist_msi products (#13719). http://hg.python.org/cpython/rev/3d1362fa07c3 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13719 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11379] Remove lightweight from minidom description
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d99c0a4b66f3 by Éric Araujo in branch '3.2': Move xml.etree higher and xml.parsers.expat lower in the markup ToC. http://hg.python.org/cpython/rev/d99c0a4b66f3 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11379 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13719] bdist_msi upload fails
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7671932c98d3 by Éric Araujo in branch '2.7': Make distutils’ upload command work with bdist_msi products (#13719). http://hg.python.org/cpython/rev/7671932c98d3 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13719 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11379] Remove lightweight from minidom description
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fc32753feb0a by Éric Araujo in branch '2.7': Move xml.etree higher and xml.parsers.expat lower in the markup ToC. http://hg.python.org/cpython/rev/fc32753feb0a -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11379 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13719] bdist_msi upload fails
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4cfcda9e80cb by Éric Araujo in branch '3.2': Fix NameError from #13719 fix http://hg.python.org/cpython/rev/4cfcda9e80cb New changeset 449c9fc2fc2d by Éric Araujo in branch 'default': Make packaging’ upload command work with bdist_msi products (#13719) http://hg.python.org/cpython/rev/449c9fc2fc2d -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13719 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14201] libc.time != libc['time']
Martin v. Löwis mar...@v.loewis.de added the comment: This is intentional; the caching was removed in 214b28d7a999. Thomas, can you remember the rationale for this change? -- nosy: +loewis, theller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14201 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14170] print unicode string error in win8 cmd console
Martin v. Löwis mar...@v.loewis.de added the comment: Victor: why do you think this is a duplicate of #11395? That issue deals with long output strings, which doesn't seem to be the case here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14202] The docs of xml.dom.pulldom are almost nonexistent
New submission from Eli Bendersky eli...@gmail.com: http://docs.python.org/dev/library/xml.dom.pulldom.html embarrassing is the word I wanted to use, but it's too strong for the title ;-) Seriously, this module is part of the stdlib, it should at least have *some* documentation. -- assignee: docs@python components: Documentation keywords: easy messages: 154959 nosy: docs@python, eli.bendersky, eric.araujo, flox priority: normal severity: normal stage: needs patch status: open title: The docs of xml.dom.pulldom are almost nonexistent type: behavior versions: Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14202 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13719] bdist_msi upload fails
Éric Araujo mer...@netwok.org added the comment: Will watch buildbots tomorrow and close if they are OK. Will backport to distutils2 later. -- resolution: - fixed stage: test needed - committed/rejected status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13719 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14200] Idle shell crash on printing non-BMP unicode character
Roger Serwy roger.se...@gmail.com added the comment: Hi Vlastimil, Can you repeat your test case while running IDLE from the command prompt and report the error you see? python -m idlelib.idle IDLE closes suddenly on Windows because IDLE uses pythonw.exe which has no stdout or stderr. When Tkinter encounters an error and tries to write to stderr, an error is raised in the Tkinter eventloop and the eventloop terminates. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14200 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14170] print unicode string error in win8 cmd console
STINNER Victor victor.stin...@gmail.com added the comment: Victor: why do you think this is a duplicate of #11395? That issue deals with long output strings, which doesn't seem to be the case here. IOError('[Errno 28] No space left on device') was exactly the #11395 error message. Without the full test script, i cannot be sure that it's a duplicate. C:\Users\__test.py, line 96: it looks like the program has ~100 lines and so may write something else to the console. There are buffers in TextIOWrapper, BufferedWriter and the Windows console itself. By the way, Python maps the Windows error ERROR_DISK_FULL (112) to ENOSPC (28). It's maybe something completly different. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14181] Support getbuffer redirection scheme in memoryview
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9f7d06a9eabe by Stefan Krah in branch 'default': Issue #14181: Preserve backwards compatibility for getbufferprocs that a) do http://hg.python.org/cpython/rev/9f7d06a9eabe -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14170] print unicode string error in win8 cmd console
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brian.curtin, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13637] binascii.a2b_* functions could accept unicode strings
Luke-Jr luke...@users.sourceforge.net added the comment: Has this been fixed in 3.2 yet? Somehow it seems to have been reclassified as an enhancement when it's really a regression. str worked fine in these functions in 3.1. -- nosy: +luke-jr ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13637 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14200] Idle shell crash on printing non-BMP unicode character
Vlastimil Brom vlastimil.b...@gmail.com added the comment: Hi, thanks for the pointer, after invoking idle using python.exe, I don't see the crash mentioned in the report: Python 3.3.0a1 (default, Mar 4 2012, 17:27:59) [MSC v.1500 32 bit (Intel)] on win32 Type copyright, credits or license() for more information. got_ahsa = \N{GOTHIC LETTER AHSA} len(got_ahsa) 1 got_ahsa.encode(unicode-escape) b'\\U00010330' got_ahsa print(got_ahsa) I just get empty line as answer but no crash. The console indeed contains the traceback with the error I expected vbr Microsoft Windows XP [Verze 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Python33python.exe -m idlelib.idle *** Internal Error: rpc.py:SocketIO.localcall() Object: stdout Method: bound method PseudoFile.write of idlelib.PyShell.PseudoFile object at 0x01CDDB50 Args: ('\U00010330',) Traceback (most recent call last): File C:\Python33\lib\idlelib\rpc.py, line 188, in localcall ret = method(*args, **kwargs) File C:\Python33\lib\idlelib\PyShell.py, line 1244, in write self.shell.write(s, self.tags) File C:\Python33\lib\idlelib\PyShell.py, line 1226, in write OutputWindow.write(self, s, tags, iomark) File C:\Python33\lib\idlelib\OutputWindow.py, line 40, in write self.text.insert(mark, s, tags) File C:\Python33\lib\idlelib\Percolator.py, line 25, in insert self.top.insert(index, chars, tags) File C:\Python33\lib\idlelib\ColorDelegator.py, line 80, in insert self.delegate.insert(index, chars, tags) File C:\Python33\lib\idlelib\PyShell.py, line 322, in insert UndoDelegator.insert(self, index, chars, tags) File C:\Python33\lib\idlelib\UndoDelegator.py, line 81, in insert self.addcmd(InsertCommand(index, chars, tags)) File C:\Python33\lib\idlelib\UndoDelegator.py, line 116, in addcmd cmd.do(self.delegate) File C:\Python33\lib\idlelib\UndoDelegator.py, line 219, in do text.insert(self.index1, self.chars, self.tags) File C:\Python33\lib\idlelib\ColorDelegator.py, line 80, in insert self.delegate.insert(index, chars, tags) File C:\Python33\lib\idlelib\WidgetRedirector.py, line 104, in __call__ return self.tk_call(self.orig_and_operation + args) ValueError: character U+10330 is above the range (U+-U+) allowed by Tcl -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14200 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12342] characters with ord above 65535 fail to display in IDLE
Terry J. Reedy tjre...@udel.edu added the comment: In responding to #14200, it occurred to me that better than an exception would be doing what the interpreter does in Command Prompt window, which is expand high chars to '\U0001' escaped form. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14200] Idle shell crash on printing non-BMP unicode character
Terry J. Reedy tjre...@udel.edu added the comment: On 3.2.2, Win7, the length is 2 and printing in Idle prints a square, as it usually does for chars it cannot print. I presume Tk recognizes surrogate pairs. Printing to the screen should not raise an exception, so the square would be better. Even better would be to do what the 3.2 and 3.3 Command Prompt Interpreters do, which is to print an evaluable representation: c '\U00010330' I assume that this string is produced by python.exe rather than Windows. If so, neither of the two pythonw processes is currently doing the same conversion. My understanding is that the user pythonw process uses idlelib.rpc.RPCproxy objects to ship i/o calls to the idle pythonw process. I presume we could find the idle process window .write methods and change lines like self.text.insert(mark, s, tags) to try: self.text.insert(mark, s, tags) except SomeTkError: self.text.insert(mark, expand(s), tags) But it seems to me that the expansion should really be done in C in _tkinter, where the internal .kind attribute of strings is available. --- There is also an input crash. On 3.2, I tried to cut the square char and paste it into ord('') (both shell and edit window) to see what unicode char it is and IDLE fades away as you describe. That puzzles me, as I am normally able to paste BMP chars into idle without problem. In any case, I presume the problem is not idle-specific and would best be handled in _tkinter. Or does the crash happen in Windows or tcl/tk code before _tkinter ever sees the input? When I paste the same into the 3.2 or 3.2 interpreter, it is converted to ascii '?'. I presume this is done by Windows Command Prompt before sending anything to python. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14200 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14203] bytearray_getbuffer: unnecessary code
New submission from Stefan Krah stefan-use...@bytereef.org: bytearray_getbuffer() checks for view==NULL. But this has never been allowed: PEP: The second argument is the address to a bufferinfo structure. Both arguments must never be NULL. DOCS (3.2): view must point to an existing Py_buffer structure allocated by the caller. A quick grep through the source tree shows no instances where the middle argument of either PyObject_GetBuffer of bf_getbuffer is NULL or 0. Patch attached, all tests pass. I wouldn't be comfortable to commit it without review though (it's just too strange). BTW, the next conditional in bytearray_getbuffer ... if (ret = 0) { obj-ob_exports++; } is also superfluous, since PyBuffer_FillInfo() cannot fail if readonly==0. -- components: Interpreter Core files: bytearray_getbuffer.diff keywords: needs review, patch messages: 154969 nosy: ncoghlan, pitrou, skrah priority: normal severity: normal stage: patch review status: open title: bytearray_getbuffer: unnecessary code type: resource usage versions: Python 3.3 Added file: http://bugs.python.org/file24738/bytearray_getbuffer.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14203 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12328] multiprocessing's overlapped PipeConnection on Windows
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 75c27daa592e by Antoine Pitrou in branch 'default': Issue #12328: Fix multiprocessing's use of overlapped I/O on Windows. http://hg.python.org/cpython/rev/75c27daa592e -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12328 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12328] multiprocessing's overlapped PipeConnection on Windows
Antoine Pitrou pit...@free.fr added the comment: Committed, thanks! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12328 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14203] bytearray_getbuffer: unnecessary code
Stefan Krah stefan-use...@bytereef.org added the comment: array_buffer_getbuf does a similar thing: if (view==NULL) goto finish; finish: self-ob_exports++; // ??? return 0 Where does this view==NULL thing come from? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14203 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13860] PyBuffer_FillInfo() return value
Changes by Stefan Krah stefan-use...@bytereef.org: -- dependencies: +bytearray_getbuffer: unnecessary code ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13860 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14203] bytearray_getbuffer: unnecessary code
Stefan Krah stefan-use...@bytereef.org added the comment: I seems to be a feature to get a lock on an exporter without the exporter filling in a buffer. It was there from the beginning: http://svn.python.org/view/python/branches/release30-maint/Objects/bytearrayobject.c?r1=56849r2=57181 Last use that I can see is here: http://hg.python.org/cpython/file/df3b2b5db900/Modules/posixmodule.c#l561 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14203 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14204] Support for the NPN extension to TLS/SSL
New submission from Colin Marc colinm...@gmail.com: Recent versions of OpenSSL (1.0.1 and greater) support a new extension to SSL/TLS called Next Protocol Negotiation, defined here: http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-02. The extension allows servers and clients to advertise which protocols they support (for example, both HTTP and SPDY) and then agree on one during the handshake according to a simple algorithm. This patch to 2.7 adds support for the NPN extension via another parameter to ssl.wrap_socket, called 'npn_protocols', and by using the OpenSSL API. It should fail gracefully if the linked version of OpenSSL has no support for NPN, using a macro guard. Once the handshake is completed, SSLSocket.selected_protocol() returns whatever was agreed upon. Although I included client/server tests with the patch, testing this functionality in real-life situations proved difficult. Google chrome has SPDY and NPN functionality baked in, so I wrote a simple socket server that advertises SPDY/2 in addition to HTTP/1.1. Chrome, pointed at this server, correctly completed the handshake and started merrily sending SPDY control frames. -- files: npn_patch.diff keywords: patch messages: 154973 nosy: colinmarc priority: normal severity: normal status: open title: Support for the NPN extension to TLS/SSL type: enhancement versions: Python 2.7 Added file: http://bugs.python.org/file24739/npn_patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14204 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13719] bdist_msi upload fails
Éric Araujo mer...@netwok.org added the comment: Buildbots fail when calling listdir; will try to fix this or revert tomorrow. Help would be appreciated. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13719 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14170] print unicode string error in win8 cmd console
Martin v. Löwis mar...@v.loewis.de added the comment: IOError('[Errno 28] No space left on device') was exactly the #11395 error message. I read that report differently: IOError: [Errno 12] Not enough space ENOMEM != ENOSPC -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14205] Raise an error if a dict is modified during a lookup
New submission from STINNER Victor victor.stin...@gmail.com: Lib/test/crashers/nasty_eq_vs_dict.py does crash Python because of an infinite loop in the dictionary lookup. The script modifies the dictionary at each lookup, whereas Python tries a new lookup each time that the dictionary is modified. I proposed to make the lookup fail with a RuntimeError if the dictionary has been modified during a lookup. It should not occur if you are not doing something evil. -- components: Interpreter Core files: dict_lookup.patch keywords: patch messages: 154976 nosy: haypo priority: normal severity: normal status: open title: Raise an error if a dict is modified during a lookup versions: Python 3.3 Added file: http://bugs.python.org/file24740/dict_lookup.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14205 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14205] Raise an error if a dict is modified during a lookup
STINNER Victor victor.stin...@gmail.com added the comment: Another possibility is to avoid the modification of a dictionary during a lookup: nomodify.patch. -- Added file: http://bugs.python.org/file24741/nomodify.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14205 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14204] Support for the NPN extension to TLS/SSL
Martin v. Löwis mar...@v.loewis.de added the comment: There is zero chance that this can go into 2.7. So if you want to see it included, please port it to Python 3, and it may become part of Python 3.3 or 3.4. -- nosy: +loewis versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14204 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14204] Support for the NPN extension to TLS/SSL
Colin Marc colinm...@gmail.com added the comment: If I ported it to 3.3 or 3.4, would it then be backported to 2.7? Or is there zero chance of that either? If so, why? I apologize, I'm new to the process. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14204 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14204] Support for the NPN extension to TLS/SSL
Martin v. Löwis mar...@v.loewis.de added the comment: If I ported it to 3.3 or 3.4, would it then be backported to 2.7? Or is there zero chance of that either? If so, why? I apologize, I'm new to the process. It won't be backported. Python 2.7 is in bug-fix mode; no new features are allowed it it. In addition, there won't be another 2.x release (see PEP 404), so new features can only be added to Python 3. If this means that you'll lose interest in this issue - that's fine. Let us know whether you then would rather withdraw the patch, or leave it open in case someone is motivated to port it. In the latter case, please submit a contributor's form to the PSF. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14204 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14133] improved PEP 409 implementation
Benjamin Peterson benja...@python.org added the comment: Now with implicit setting of __suppress_context__! -- Added file: http://bugs.python.org/file24742/pep415.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14204] Support for the NPN extension to TLS/SSL
Antoine Pitrou pit...@free.fr added the comment: Hello Marc, Recent versions of OpenSSL (1.0.1 and greater) support a new extension to SSL/TLS called Next Protocol Negotiation, defined here: http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-02. Apparently this is an IETF draft. Do you know if it is stabilized enough that it won't change significantly? Also, please notice that the ssl module (starting from Python 3.2) now exposes the notion of an SSL context. The setting of NPN parameters should probably be exposed as a context method and/or a parameter to SSLContext.wrap_socket(). (see http://docs.python.org/dev/library/ssl.html#ssl-contexts for docs) -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14204 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14204] Support for the NPN extension to TLS/SSL
Colin Marc colinm...@gmail.com added the comment: Re the IETF draft: I'm not sure. However, I didn't actually have to implement the specification at all - that was all handled by OpenSSL. My patch just calls the appropriate SSL_CTX_* methods. Thanks for the tip. I'm still interested in this getting included, so I'll work on porting it over. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14204 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14205] Raise an error if a dict is modified during a lookup
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14205 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14180] Factorize code to convert int/float to time_t, timeval or timespec
STINNER Victor victor.stin...@gmail.com added the comment: Alexander: No complain if I remove _time.c? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14180 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6715] xz compressor support
STINNER Victor victor.stin...@gmail.com added the comment: Why is this issue still open? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14071] allow more than one hash seed per process (move _Py_HashSecret into PyInterpreterState)
STINNER Victor victor.stin...@gmail.com added the comment: I close the issue as wontfix because of technical issues. Reopen it if you have an idea to solve them. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2403] Add figleaf coverage metrics
Sandro Tosi sandro.t...@gmail.com added the comment: The devguide reports a long section about code convering cpython: http://docs.python.org/devguide/coverage.html . It uses Ned's coverege.py and has a lot of details about how to use it and how to generate nice reports out of it. do we need an internal tool for cpython coverage? -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2403 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7652] Merge C version of decimal into py3k.
STINNER Victor victor.stin...@gmail.com added the comment: How can I help to integrate this module into CPython? The test suite pass in debug and release mode without any failure on my Linux box (64 bits, running Ubuntu 11.10). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14205] Raise an error if a dict is modified during a lookup
Mark Shannon m...@hotpy.org added the comment: I much prefer dict_lookup.patch to nomodify.patch. It doesn't increase the memory use of dict. One extra word per dict could be a lot of memory for a large application. There is a very subtle semantic change, but I think it is a positive one. Raising a runtimne seesm sensible as the dict iterators already raise a RuntimeError if the size of the dict changes. -- nosy: +Mark.Shannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14205 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14199] Keep a refence to mro in _PyType_Lookup() and super_getattro()
Mark Shannon m...@hotpy.org added the comment: Looks good to me. The INCREF/DECREFs are outside of the loops so will have negligible performance impact. -- nosy: +Mark.Shannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14199 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14205] Raise an error if a dict is modified during a lookup
STINNER Victor victor.stin...@gmail.com added the comment: I much prefer dict_lookup.patch to nomodify.patch. It doesn't increase the memory use of dict. One extra word per dict could be a lot of memory for a large application. nomodify.patch is the correct fix, but I agree that dict_lookup.patch is better (and sufficient) in practive. Raising a runtimne seesm sensible as the dict iterators already raise a RuntimeError if the size of the dict changes. Yes, that's how I chose the exception. d={k: str(k) for k in range(10)} for k in d: ... del d[k] ... RuntimeError: dictionary changed size during iteration d={k for k in range(10)} for k in d: ... d.remove(k) ... RuntimeError: Set changed size during iteration d=list(range(10)) def keyfunc(x): ... d.append(1) ... return x ... d.sort(key=keyfunc) ValueError: list modified during sort -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14205 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7652] Merge C version of decimal into py3k.
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Victor, yes, the decimal module needs a C implementation. Without it, the pure Python code is abysmally slow. Other MP implementations don't fill the need or come close to implementing the decimal arithmetic spec. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14205] Raise an error if a dict is modified during a lookup
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14205 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14205] Raise an error if a dict is modified during a lookup
Guido van Rossum gu...@python.org added the comment: Yeah, dict_lookup.patch seems fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14205 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14205] Raise an error if a dict is modified during a lookup
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 934aaf2191d0 by Victor Stinner in branch 'default': Close #14205: dict lookup raises a RuntimeError if the dict is modified during http://hg.python.org/cpython/rev/934aaf2191d0 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14205 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14206] multiprocessing.Queue documentation is lacking important details
New submission from Garrett Moore garrettmo...@gmail.com: 1) If cancel_join_thread() is called, data may be lost. This is not explicitly stated. I had multiple writers put() data in a Queue, and wanted to have the workers finish before I began consuming the data. This caused a deadlock because my Queue was not empty, and it seemed like the a way to force my workers finish was to use cancel_join_thread(). This caused data loss. 2) multiprocessing.Queue states The Queue class is a near clone of Queue.Queue. Queue.Queue states If maxsize is less than or equal to zero, the queue size is infinite. mp.Queue provides no information on queue size. It is reasonable to assume then that it inherits the property of Queue.Queue. After discussion on IRC, it seems that mp.Queue maximum size is implementation-dependent and likely relies on how much data Pipes can hold on your platform. If this is the case there should be some mention of the fact that mp.Queue does NOT function like Queue.Queue does for maximum size. -- assignee: docs@python components: Documentation messages: 154995 nosy: Garrett.Moore, docs@python priority: normal severity: normal status: open title: multiprocessing.Queue documentation is lacking important details versions: Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14206 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14200] Idle shell crash on printing non-BMP unicode character
Vlastimil Brom vlastimil.b...@gmail.com added the comment: I'd like to add some further observations to the mentioned issue; it seems, that the crash is indeed not specific to idle. In a sample tkinter app, where I just display e.g. chr(66352) in an Entry widget, I also get the same immediate crash via pythonw.exe and the previously mentioned proper ValueError without a crash with python.exe. I also tried to explicitly display surrogate pair, which were used automatically until python 3.2; these can be used in tkinter in 3.3, but there are limitations and discrepancies: got_ahsa = \N{GOTHIC LETTER AHSA} def wide_char_to_surrog_pair(char): code_point = ord(char) if code_point = 0x: return char else: high_surr = (code_point - 0x1) // 0x400 + 0xD800 low_surr = (code_point - 0x1) % 0x400 + 0xDC00 return chr(high_surr)+chr(low_surr) ahsa_surrog = wide_char_to_surrog_pair(got_ahsa) print(ahsa_surrog) ̰ repr(ahsa_surrog) '_ud800\x00udf30' ahsa_surrog 'Pud800 udf30' [the space in the middle of the last item might be \x00, as it terminates the clipboard content, the rest is copied separately] the printed square corresponds with the given character and can be used in other programs etc. (whereas in py 3.2, the same value was used for repr and a direct display of the string in the interpreter, there are three different formats in py 3.3. I also noticed that surogate pair is not supported as input for unicodedata.name(...) anymore: import unicodedata unicodedata.name(ahsa_surrog) Traceback (most recent call last): File pyshell#60, line 1, in module unicodedata.name(ahsa_surrog) TypeError: need a single Unicode character as parameter (in 3.2 and probably others it returns the expected 'GOTHIC LETTER AHSA') (I for my part would think, that e.g. keeping a bit liberal (but still non-ambiguous) input possibilities for unicodedata wouldn't hurt. Also, if tkinter is not going to support wide unicode natively any time soon, the output conversion using surrogates, which are also understandable for other programs, seems the most usable option in this regard. Hopefully, this is somehow relevant for the original issue - I am somehow not sure, whether some parts would be better posted as separate issues, or whether this is the planned and expected behaviour anyway. regards, vbr -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14200 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect
Senthil Kumaran sent...@uthcode.com added the comment: On Mon, Mar 05, 2012 at 11:15:38AM +, Éric Araujo wrote: Ah, so there is a way to achieve it! If Jay is satisfied by this, we could add an example of using that in the urllib howto, with the appropriate warnings. That would have much less risk than a new parameter. Yeah. This could be cookbook recipe style example, if it's utility value is high. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14144 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14178] Failing tests for ElementTree
Eli Bendersky eli...@gmail.com added the comment: Attaching a patch that fixes the slice deletion problems. The approach I've taken is follow a similar implementation in Objects/listobject.c; when a slice is deleted, it can be done efficiently by using memmove to shift whole blocks of leftover children. Also added a new test class to test_xml_etree specifically to test slicing with Element objects and deleting slices with strange steps. I'll leave it up for review for a couple of days before committing. -- keywords: +patch nosy: +effbot Added file: http://bugs.python.org/file24743/issue14178.1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14178 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14178] Failing tests for ElementTree
Changes by Eli Bendersky eli...@gmail.com: -- assignee: - eli.bendersky stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14178 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14207] ElementTree.ParseError - needs documentation and consistent CPy implementations
New submission from Eli Bendersky eli...@gmail.com: Following issue #14178: The ElementTree.ParseError is not documented and its behavior seems to differ between the C and Python implementations. In particular, the C module doesn't assign the 'code' attribute when raising a ParseError. -- components: Extension Modules, Library (Lib) messages: 154999 nosy: effbot, eli.bendersky, flox, scoder priority: normal severity: normal stage: needs patch status: open title: ElementTree.ParseError - needs documentation and consistent CPy implementations versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14207 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14178] _elementtree problem deleting slices with steps != +1
Eli Bendersky eli...@gmail.com added the comment: WRT the ParseError problem, I've opened issue #14207 for it since the problems are quite unrelated. -- title: Failing tests for ElementTree - _elementtree problem deleting slices with steps != +1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14178 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13637] binascii.a2b_* functions could accept unicode strings
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I confirm that it works in Python 3.1 and doesn't work in Python 3.2. -- nosy: +Arfrever resolution: fixed - stage: committed/rejected - status: closed - open type: enhancement - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13637 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14208] No way to recover original argv with python -m
New submission from Ben Darnell ben.darn...@gmail.com: I have a script which attempts to re-invoke itself using sys.argv, but it fails when run with python -m package.module. The problem is that the handling of -m (via the runpy module) rewrites sys.argv as if it were run as python package/module.py, but the two command lines are not equivalent: With -m the current directory is inserted at the head of sys.path, but without -m it's the directory containing module.py. The net effect is that the initial run of python -m package.module works as expected, but when it re-runs itself as python package/module.py the imports from module.py are effectively relative instead of absolute. One possible solution would be to provide an immutable sys.__argv__ (by analogy with sys.__stdout__ and friends). -- messages: 155002 nosy: Ben.Darnell priority: normal severity: normal status: open title: No way to recover original argv with python -m type: enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14208 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14208] No way to recover original argv with python -m
Georg Brandl ge...@python.org added the comment: I agree this would be useful. It would be even more useful to have an __argv__ that includes all command-line flags given to Python, such as -Wi. -- nosy: +georg.brandl, pitrou versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14208 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14200] Idle shell crash on printing non-BMP unicode character
Martin v. Löwis mar...@v.loewis.de added the comment: Vlastimil: you are mixing issues. Some of your observations are actually correct behaviour; please don't clutter the report with that, but report each separate behavior in a separate report. In Python 3.3, surrogate pairs do *not* substitute for the the actual character, since the internal representation is not UTF-16 anymore. Also, when you run a Tkinter app in IDLE: while you get a proper traceback output, your conclusion that python.exe does not crash is incorrect: it crashes just in the very same way that IDLE crashes. Except when run inside IDLE, it is a subprocess that crashes (i.e. terminates with a traceback output), not IDLE itself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14200 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14200] Idle shell crash on printing non-BMP unicode character
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14200 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14200] Idle shell crash on printing non-BMP unicode character
Martin v. Löwis mar...@v.loewis.de added the comment: Oops, wrong issue. -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14200 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14100] Add a missing info to PEP 393 + link from whatsnew 3.3
Martin v. Löwis mar...@v.loewis.de added the comment: This is now fixed with d916145b20c3. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14100 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14200] Idle shell crash on printing non-BMP unicode character
Changes by Martin v. Löwis mar...@v.loewis.de: -- Removed message: http://bugs.python.org/msg155005 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14200 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14200] Idle shell crash on printing non-BMP unicode character
Changes by Martin v. Löwis mar...@v.loewis.de: -- Removed message: http://bugs.python.org/msg155006 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14200 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com