[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io
Changes by Arif Widi Nugroho a...@sainsmograf.com: -- nosy: +arifwn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9665 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3177] Add shutil.open
Hobs hobsonl...@gmail.com added the comment: shutil.whatever with os.startfile(..., 'edit'). That's why I thought an 'auto' option might be useful--to allow the caller to indicate that they want to respect the OS settings for open/run, if possible. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3177 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14835] plistlib: output empty elements correctly
Hynek Schlawack h...@ox.cx added the comment: The patch LGTM, but Pam seemed to have problems to find your account (http://mail.python.org/pipermail/python-committers/2012-May/002037.html) – did you get the reply and followed up on that? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14835 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14930] Make memoryview weakrefable
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8323] buffer objects are picklable but result is not unpicklable
Richard Oudkerk shibt...@gmail.com added the comment: It seems the real issue here is that buffer objects are picklable (depending on protocol) but the resulting string is not unpicklable. There are probably lots of other examples where this happens: for instance Exception subclasses which do not set self.args correctly (see Issue #1692335). buffer is only used in Python 2.x. Python 2.7 is in bugfix mode, so this issue will not change now. I will close this issue as won't fix. -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8323 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1079] decode_header does not follow RFC 2047
Ralf Schlatterbeck r...@runtux.com added the comment: On Mon, May 28, 2012 at 08:15:05PM +, R. David Murray wrote: R. David Murray rdmur...@bitdance.com added the comment: Ralf, thanks very much for this patch. I'm considering applying it. Given that the current code breaks on parsing various legitimate constructs, it seems like the behavior change (preserving whitespace in the non-EW parts...which IMO is correct) should be an acceptable tradeoff. Could you please submit a contributor agreement? (http://www.python.org/psf/contrib/) Thanks for considering my patch. I've just sent the agreement. Ralf -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1079 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14939] Usage documentation for pyvenv
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: The Using section has 4 sub-sections: one on the Python command line, + 3 on Python usage on Windows, Linux and OS X. I propose to add a fourth sub-section Additional Tools and Scripts (feel free to suggest an alternative title) and under that, add a section for pyvenv. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14939 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14835] plistlib: output empty elements correctly
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9e64084f9980 by Hynek Schlawack in branch 'default': #14835: Make plistlib output empty arrays dicts like OS X http://hg.python.org/cpython/rev/9e64084f9980 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14835 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14835] plistlib: output empty elements correctly
Hynek Schlawack h...@ox.cx added the comment: Thank you for your contribution! But please help Pam to work out your contribution form. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14835 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14946] packaging’s pysetup script should be named differently than distutils2’s pysetup
Alexis Metaireau ale...@notmyidea.org added the comment: Good catch, One solution would be to have the pysetup script name suffixed by the version of python is comes with. For instance, for python 3.3 it would be pysetup3.3 (that's how it is atm). This means that pysetup would point to pysetup3.3 after a fresh python install, but distutils2 could change this and propose a different version of pysetup. The 3.3 version would still be available but under pysetup3.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14946 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14948] setup.cfg - rename home_page to homepage
Alexis Metaireau ale...@notmyidea.org added the comment: While I kind of agree with you, this field is proposed by the PEP 345 and had been approved as it is. It seems probably better to stick with what's defined there mainly because any change to the PEP is a heavy process and we won't have time to go trough it before the 3.3 release. (See http://www.python.org/dev/peps/pep-0345/#home-page-optional) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14948 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14949] Documentation should state clearly the differences between pysetup run install_dist and pysetup install
New submission from Alexis Metaireau ale...@notmyidea.org: The packaging tutorial currently talks about pysetup run install_dist and pysetup install which aren't doing the same thing: one fetches the dependencies while the other doesn't. This should be stated clearly. -- assignee: eric.araujo components: Distutils2 keywords: easy messages: 161867 nosy: alexis, eric.araujo, tarek priority: normal severity: normal status: open title: Documentation should state clearly the differences between pysetup run install_dist and pysetup install versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14949 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14950] packaging.install does not have a clear API.
New submission from Alexis Metaireau ale...@notmyidea.org: The packaging.install module doesn't have a clear API defined and it's doing a lot of indirections between all the functions to get metadata, fetch the dependencies and install what's need to be installed. We might be able to come with a better solution for the API we expose there, and to allow easier maintenance. I'll go ahead this week and propose a change to this module which hopefully will make things clearer. -- assignee: alexis components: Distutils2 messages: 161868 nosy: alexis, tarek priority: normal severity: normal status: open title: packaging.install does not have a clear API. type: enhancement versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14950 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12355] Crawler doesn't follow redirection
Alexis Metaireau ale...@notmyidea.org added the comment: Did someone changed anything in the codebase regarding this (or did it solved itself magically?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14744] Use _PyUnicodeWriter API in str.format() internals
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 22b56b0b8619 by Victor Stinner in branch 'default': Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args and str.format(args) http://hg.python.org/cpython/rev/22b56b0b8619 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14744 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14939] Usage documentation for pyvenv
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Done in ace7c340d95d. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14939 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14951] Daikon/KVasir report: Invalid read of size 4
New submission from Damien Cassou damien.cas...@gmail.com: Hi, I've just executed a dynamic program analyzer (kvasir frontend for daikon) on the python runtime with an hello world python input. I got a lot of errors (796 errors from 61 contexts), potentially showing bugs in cpython. The following presents one such errors. I can report more if the following is useful to anyone. Invalid read of size 4 at 0x459897: PyObject_Free (obmalloc.c:969) by 0x5133E5: PyGrammar_RemoveAccelerators (acceler.c:47) by 0x4DCD92: Py_Finalize (pythonrun.c:539) by 0x417946: Py_Main (main.c:664) by 0x416703: main (python.c:23) Address 0x6108020 is 256 bytes inside a block of size 676 free'd at 0x4C24242: free (vg_replace_malloc.c:366) by 0x459F3F: PyObject_Free (obmalloc.c:1166) by 0x51379F: fixstate (acceler.c:124) by 0x51344F: fixdfa (acceler.c:60) by 0x513369: PyGrammar_AddAccelerators (acceler.c:30) by 0x513C84: PyParser_New (parser.c:77) by 0x417D73: parsetok (parsetok.c:136) by 0x417D1B: PyParser_ParseFileFlagsEx (parsetok.c:106) by 0x4DF284: PyParser_ASTFromFile (pythonrun.c:1476) by 0x4CD570: parse_source_module (import.c:829) by 0x4CDB2A: load_source_module (import.c:1006) by 0x4CF05B: load_module (import.c:1822) -- components: Interpreter Core messages: 161872 nosy: cassou, haypo, lemburg, tim_one priority: normal severity: normal status: open title: Daikon/KVasir report: Invalid read of size 4 versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14951 ___ ___ 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 717632ae7b3f by Eli Bendersky in branch 'default': Issue #14007: make TreeBuilder an actual type exposed from _elementtree, and subclassable. http://hg.python.org/cpython/rev/717632ae7b3f -- ___ 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
[issue14951] Daikon/KVasir report: Invalid read of size 4
STINNER Victor victor.stin...@gmail.com added the comment: Did you read Misc/README.valgrind? Did you compile Python using ./configure --with-valgrind? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14951 ___ ___ 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
Eli Bendersky eli...@gmail.com added the comment: I'm working on completing this issue. It will be done in stages, with each stage committed as a separate chunk of functionality. * Make TreeBuilder an actual exported type (subclassable) from _elementtree * TreeBuilder constructor should accept arguments as documented * Make XMLParser an actual exported type (subclassable) from _elementtree * Make XMLParser call doctype on a given target builder, and on itself, as is done in the Python version The first bullet was implemented and committed --^ -- ___ 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
[issue14951] Daikon/KVasir report: Invalid read of size 4
Damien Cassou damien.cas...@gmail.com added the comment: I didn't read the document before. Sorry about that. The document makes it clear that what I report is not an error. This report should be closed. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14951 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10839] email module should not allow some header field repetitions
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d7881a371c41 by R David Murray in branch 'default': #10839: raise an error on add of duplicate unique headers in new email policies http://hg.python.org/cpython/rev/d7881a371c41 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10839 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10839] email module should not allow some header field repetitions
R. David Murray rdmur...@bitdance.com added the comment: Committed. It is almost never the right thing to do to allow duplicates of unique headers, but an application that does need it can create a policy subclass and override the header_max_count method. -- resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10839 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8537] Add ConfigureAction to argparse
Changes by devurandom devuran...@gmx.net: -- nosy: +devurandom ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()
Nick Coghlan ncogh...@gmail.com added the comment: Added some review comments. I'm thinking the docs for str.splitlines() could really do with an update to say explicitly that a trailing newline *doesn't* append an empty string to the result. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13857 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10053] Don’t close fd when FileIO.__init__ fails
Hynek Schlawack h...@ox.cx added the comment: I think this issue is still valid. However, I’d favor the attached (simpler) patch that keeps track whether self-fd is our own (i.e. a result of an open() operation) or from outside. A couple of notes: - I'm not sure why your test skipped if the Exception wasn't raised, I'd say that's a valid test fail. - The fd has been closed explicitly when seeking for append mode failed, so I removed it. - I'm not convinced it's worth/sensible to be back ported as it's a change in behavior. Tests succeed on OS X Linux. Opinions? Win32 tests results? -- type: - behavior Added file: http://bugs.python.org/file25753/fileio-do-not-close-on-fail.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10053 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14946] packaging’s pysetup script should be named differently than distutils2’s pysetup
Éric Araujo mer...@netwok.org added the comment: I’m afraid that won’t work: depending on how python3 is installed, it may install both pysetup3.3 and pysetup3, so distutils2-python3 can’t use any of these names. Note that on Debian and probably other systems, two packages really cannot use the same file path without using some machinery; just overwriting something is not permitted. (On a related topic, I’m not sure distutils2 should ever install pysetup or pysetup3 without version number: contrary to e.g. a mail client where I don’t care about the version used, this is a version-specific program that should have a version number in its name.) The problem really is that when we talk about “the 3.3 version of pysetup” we may talk about the one that comes with packaging or with d2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14946 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14948] setup.cfg - rename home_page to homepage
Éric Araujo mer...@netwok.org added the comment: Sorry, Alexis is right. The fields in setup.cfg directly come from the PEP. Tarek insisted on that. We’ve only added some fields, like description-file, but never changed the names. -- resolution: - works for me stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14948 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12779] Update packaging documentation
Changes by Éric Araujo mer...@netwok.org: -- dependencies: +Usage documentation for pysetup ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12779 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14949] Documentation should state clearly the differences between pysetup run install_dist and pysetup install
Éric Araujo mer...@netwok.org added the comment: That’s the difference between actions and commands, which people always understand very well when I explain it. I don’t remember if I already have written something in my big doc patch (#12779); if you want I can check tonight and tell you if I did it or if you can do it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14949 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14949] Documentation should state clearly the differences between pysetup run install_dist and pysetup install
Éric Araujo mer...@netwok.org added the comment: See also #13160. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14949 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()
R. David Murray rdmur...@bitdance.com added the comment: Why would you expect it to? 'a\nb'.splitlines() ['a', 'b'] 'a\nb\n'.splitlines() ['a', 'b'] 'a\nb\n\n'.splitlines() ['a', 'b', ''] That's exactly what I would intuitively expect, and I don't see how it could possibly do anything else. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13857 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14949] Documentation should state clearly the differences between pysetup run install_dist and pysetup install
Alexis Metaireau ale...@notmyidea.org added the comment: That would be helpful yep. I can add this in the docs if you've not done it already. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14949 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13160] Rename install_dist to install
Alexis Metaireau ale...@notmyidea.org added the comment: I'm +1 on this. Having an install command, on a distribution, makes more sense than having an install_dist one, because of course the object is a distribution! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13160 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13160] Rename install_dist to install
Changes by Alexis Metaireau ale...@notmyidea.org: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13160 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12779] Update packaging documentation
Alexis Metaireau ale...@notmyidea.org added the comment: I think it could be helpful to have this work at least somewhere so we can work on top of it. For instance if someone wants to do changes in the documentation, then only thing it would do now would be to cause potential merge conflicts. I'm okay to have several commits for this, as it would allow us to work on the documentation with more than one person (theoretically at least). Plus I really want to see those changes! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12779 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14938] 'import my_pkg.__init__' creates duplicate modules
Brett Cannon br...@python.org added the comment: If you can come up with a patch to fix this in a way that is not messy then I will be happy to look at it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14938 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Perhaps because that's what str.split() does: a\nb.split(\n) ['a', 'b'] a\nb\n.split(\n) ['a', 'b', ''] a\nb\n\n.split(\n) ['a', 'b', '', ''] -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13857 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14952] Cannot run regrtest with amd64/debug on windows
New submission from Kristján Valur Jónsson krist...@ccpgames.com: Running the regression tests from the build directory no longer works for Amd64/debug, windows build. D:\pydev\hg\cpython2PCbuild\amd64\python_d.exe -m test.regrtest Traceback (most recent call last): File D:\pydev\hg\cpython2\lib\runpy.py, line 162, in _run_module_as_main __main__, fname, loader, pkg_name) File D:\pydev\hg\cpython2\lib\runpy.py, line 75, in _run_code exec(code, run_globals) File D:\pydev\hg\cpython2\lib\test\regrtest.py, line 243, in module from test import support ImportError: cannot import name support [96946 refs] D:\pydev\hg\cpython2PCbuild\amd64\python_d.exe lib\test\regrtest.py Traceback (most recent call last): File lib\test\regrtest.py, line 243, in module from test import support ImportError: cannot import name support [95993 refs] This works for release. -- messages: 161891 nosy: kristjan.jonsson priority: normal severity: normal status: open title: Cannot run regrtest with amd64/debug on windows type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14952 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14953] Reimplement subset of multiprocessing.sharedctypes using memoryview
New submission from Richard Oudkerk shibt...@gmail.com: The attached patch enables creation of shared objects allocated from shared memory using memoryview objects instead of ctypes. This enables the use of shared memory on systems where ctypes is unavailable. The new functions/classes RawArray, RawValue, Array and Array have been added to multiprocessing.heap. They are almost equivalent to the functions/classes of the same name in multiprocessing and multiprocessing.sharedctypes when a letter typecode is used (rather than a ctypes type). The differences in behaviour are due to the differences between memoryview objects and ctypes arrays. The most noticeable is the fact that you can't set a slice using an arbitrary sequence, so arr = multiprocessing.RawArray('i', [0]*10) arr[:3] = [1,2,3] has to be rewritten to something like arr = multiprocessing.heap.RawArray('i', [0]*10) arr[:3] = array.array('i', [1,2,3]) (No documetation yet.) -- files: memoryview-array-value.patch keywords: patch messages: 161892 nosy: sbt priority: normal severity: normal stage: patch review status: open title: Reimplement subset of multiprocessing.sharedctypes using memoryview type: enhancement versions: Python 3.3 Added file: http://bugs.python.org/file25754/memoryview-array-value.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()
R. David Murray rdmur...@bitdance.com added the comment: That's why it's a different function :) (Well, that and universal newline support). But I can see that explaining the difference between split and splitlines would be worthwhile. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13857 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14835] plistlib: output empty elements correctly
Sidney San Martín s...@sidneysm.com added the comment: Thanks Hynek, awesome! It looks like it’s in now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14835 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14954] weakref doc clarification
New submission from Ethan Furman et...@stoneleaf.us: The weak reference docs could be clearer about when weak ref'ed objects are no longer available. Attached doc patch attempts to do so. -- files: weakref_doc_updates.diff keywords: patch messages: 161895 nosy: stoneleaf priority: normal severity: normal status: open title: weakref doc clarification type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file25755/weakref_doc_updates.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14954 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12779] Update packaging documentation
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12779 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11685] possible SQL injection into db APIs via table names... sqlite3
Petri Lehtinen pe...@digip.org added the comment: No SQL library that I know of provides a way to escape table names. The quoting functions are always meant to escape string parameters. This is true for sqlite3_mprintf(), too (the %q and %Q options). If you build table names from user input, your database design is somehow flawed. -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11685 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10839] email module should not allow some header field repetitions
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 08857f4e9709 by R David Murray in branch 'default': #10839: add new test file that was omitted from checkin http://hg.python.org/cpython/rev/08857f4e9709 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10839 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14955] hmac.secure_compare() is not time-independent for unicode strings
New submission from Jon Oberheide j...@oberheide.org: Hi all, I was informed that the hmac.secure_compare() function added in 14532 is not time-independent when processing unicode values: The function as given is probably not timing independent if the attacker can provide unicode values. This is because (in CPython at least) all integer values in the range [-5, 256] inclusive are made singletons to avoid the performance hit of integer object creation, meaning that as long as (x ^ y) 257, no integer object is created and the function appears constant time. When that assumption is violated, you get a timing delta that is actually fairly large compared to the delta for a single character compare. One way to work around this issue is to perform strict 8-bit byte comparisons by converting any string type parameters to bytes via a utf-8 encode. The attached patch does this. Regards, Jon Oberheide -- components: Library (Lib) files: secure-compare-fix-v1.patch keywords: patch messages: 161898 nosy: Jon.Oberheide priority: normal severity: normal status: open title: hmac.secure_compare() is not time-independent for unicode strings type: security versions: Python 3.3 Added file: http://bugs.python.org/file25756/secure-compare-fix-v1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14955 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14744] Use _PyUnicodeWriter API in str.format() internals
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6abab1a103a6 by Victor Stinner in branch 'default': Issue #14744: Fix compilation on Windows http://hg.python.org/cpython/rev/6abab1a103a6 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14744 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14744] Use _PyUnicodeWriter API in str.format() internals
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset df0144f68d76 by Victor Stinner in branch 'default': Issue #14744: Fix compilation on Windows (part 2) http://hg.python.org/cpython/rev/df0144f68d76 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14744 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14796] Calendar module test coverage improved
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 98bc9e357f74 by R David Murray in branch 'default': #14796: improve calendar test coverage. http://hg.python.org/cpython/rev/98bc9e357f74 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14796 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14796] Calendar module test coverage improved
R. David Murray rdmur...@bitdance.com added the comment: Thanks, Oleg. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14796 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11685] possible SQL injection into db APIs via table names... sqlite3
Rene Dudfield ill...@users.sourceforge.net added the comment: Hi, Here is an article with people trying to find a solution: http://stackoverflow.com/questions/6514274/how-do-you-escape-strings-for-sqlite-table-column-names-in-python The psycopg2 documentation explicitly recommends using normal python % or {} formatting to substitute in table and column names. Sqlalchemy uses a format_table method with their sql compiler to quote table names for sqlite. It's probably just sane to either use SQLalchemy, use ctypes to get at the sqlite mprintf function, or perhaps look at the above stackoverflow article for more solutions. There is python code out there vulnerable to attack, that doesn't quote table names correctly. Including at least one major python framework. Hopefully people who care will follow some of the above links. cheers, -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11685 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10997] Duplicate entries in IDLE Recent Files menu item on OS X
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3108331c88ec by Ned Deily in branch '2.7': Issue #10997: Prevent a duplicate entry in IDLE's Recent Files menu. http://hg.python.org/cpython/rev/3108331c88ec New changeset 64a7fae544a6 by Ned Deily in branch '3.2': Issue #10997: Prevent a duplicate entry in IDLE's Recent Files menu. http://hg.python.org/cpython/rev/64a7fae544a6 New changeset cb7421cdaec4 by Ned Deily in branch 'default': Issue #10997: merge from 3.2 http://hg.python.org/cpython/rev/cb7421cdaec4 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10997] Duplicate entries in IDLE Recent Files menu item on OS X
Ned Deily n...@acm.org added the comment: Patch applied for 2.7.4, 3.2.4, and 3.3.0. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14956] custom PYTHONPATH breaks Python-embedded apps
New submission from Jan Kratochvil jan.kratoch...@redhat.com: People use custom Python builds setting PYTHONHOME and PYTHONPATH to these custom builds. This may be expected to break running system Python binary but it also unexpectedly breaks various applications which also embed Python: $ echo foo site.py; export PYTHONPATH=. $ gdb Traceback (most recent call last): File ./site.py, line 1, in module foo NameError: name 'foo' is not defined $ _ It is not obvious to the user who even already forgot about custom PYTHONPATH why GDB breaks. Standard Fedora applications may link with system libpython incompatible with the PYTHONHOME/PYTHONPATH files for the other Python version. Python does not keep the scripts too compatible across Python versions. This issues was discussed first for GDB upstream: [RFA] ignore PYTHONHOME environment variable. http://sourceware.org/ml/gdb-patches/2010-11/msg00328.html http://sourceware.org/ml/gdb-patches/2010-12/msg00214.html http://sourceware.org/ml/gdb-patches/2011-01/msg00307.html http://sourceware.org/ml/gdb-patches/2012-05/msg00710.html (first mail of the thread in each month) Then also in Fedora: https://fedorahosted.org/fesco/ticket/858 This Python issue would not be filed by the user if it gets resolved: Issue12140 Exactly the same problem exists for many other apps, yum for all $ echo foo site.py; PYTHONPATH=. yum list bash Traceback (most recent call last): File ./site.py, line 1, in module foo NameError: name 'foo' is not defined $ _ Various proposal have been, applicable possibly in some combination together: * Ignore PYTHONHOME/PYTHONPATH for embedded applications. (dot) * Ignore PYTHONHOME, use only GDB_PYTHONHOME (if set). This proposal is not applicable for all applications in general. * Print warning if PYTHONHOME/PYTHONPATH is set. * Recover from Python startup failure and suppress the environment vars. or Recover from Python startup failure and disable the Python support, if possible. * Should the special care affect PYTHONHOME? Differently for PYTHONPATH? What about PYTHONVERBOSE and other PYTHON* settings? How should get PYTHONHOME/PYTHONPATH inherited into child processes, if any (debuggees in the GDB case). Another question is whether the behavior should be the same if upstream application has been linked with non-system libpython location. -- components: Interpreter Core messages: 161906 nosy: dmalcolm, jankratochvil priority: normal severity: normal status: open title: custom PYTHONPATH breaks Python-embedded apps type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14956] custom PYTHONPATH breaks Python-embedded apps
Éric Araujo mer...@netwok.org added the comment: An alternate idea would be to recommend more strongly in the doc that people should not shadow standard library module names (in your example, site). -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14956] custom PYTHONPATH breaks Python-embedded apps
Changes by Éric Araujo mer...@netwok.org: -- nosy: +brett.cannon, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14956] custom PYTHONPATH breaks Python-embedded apps
Jan Kratochvil jan.kratoch...@redhat.com added the comment: This site.py is only an example how it can happen. In reality it is due to .py files intended for incompatible version of Python. I am not a Python programmer to have some appropriate incompatible code at hand. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14956] custom PYTHONPATH breaks Python-embedded apps
Éric Araujo mer...@netwok.org added the comment: This site.py is only an example how it can happen. site is special, as it’s one of the modules imported during Python startup. Can you reproduce the bug with the same file named os.py? (I expect you can.) Can you reproduce with spam.py? (I think you can’t.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14956] custom PYTHONPATH may break apps embedding Python
Changes by Éric Araujo mer...@netwok.org: -- title: custom PYTHONPATH breaks Python-embedded apps - custom PYTHONPATH may break apps embedding Python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8548] Building on CygWin 1.7: PATH_MAX redefined
Nicholas DiPiazza nicholas.dipia...@gmail.com added the comment: In Python3.1.2-src/Modules/main.c I actually had to use this to get it to work: #if defined(MS_WINDOWS) || defined(__CYGWIN__) #include windows.h #ifdef HAVE_FCNTL_H #include fcntl.h #endif #ifndef HAVE_FCNTL_H #define PATH_MAX MAXPATHLEN #endif #endif -- nosy: +Nicholas.DiPiazza ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8548 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14956] custom PYTHONPATH may break apps embedding Python
R. David Murray rdmur...@bitdance.com added the comment: I think it is up to each embedding application to decide if it wants to respect the environment variables or not. I don't think that's a decision that core can make. Now, if we aren't providing an easy way for an embedding application to make that decision, that might be something we could fix. But I suspect we are (I don't know the C API well enough to say for sure). -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14956] custom PYTHONPATH may break apps embedding Python
Jan Kratochvil jan.kratoch...@redhat.com added the comment: I fully agree with site.py/os.py/spam.py but I find it offtopic for this Issue. I do not find too important if some unsetenv/setenv gets called by the app or by libpython. But the rules should apply for every embedded app the same, the Fedora ticket is suggesting new PEP (Informational) for it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14956] custom PYTHONPATH may break apps embedding Python
R. David Murray rdmur...@bitdance.com added the comment: An informational PEP sounds like exactly what I said: each application needs to decide. The PEP would provide the information on which to base that decision, and suggestions for how to do it. An informational PEP on best practices for embedding sounds like a great idea to me. I hope someone will write one. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14938] 'import my_pkg.__init__' creates duplicate modules
Ronan Lamy ronan.l...@gmail.com added the comment: Well, I can try. I have trouble wrapping my head around all the finders and loaders, but I'm slowly understanding what does what. What I don't know is what the expected behaviour is. Should my_pkg.__init__ be allowed to exist as a separate module (that's backwards-compatible but seems wrong)? Can it exist as a synonym of my_pkg? Should the import attempt raise an ImportError? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14938 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14943] winreg OpenKey doesn't work as documented
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14943 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14922] mailbox.Maildir.get_message() may fail when Maildir dirname is a unicode string
Changes by R. David Murray rdmur...@bitdance.com: -- components: +email -Library (Lib) nosy: +barry, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14922 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14957] Improve docs for str.splitlines
New submission from Nick Coghlan ncogh...@gmail.com: The docs for str.splitlines() should explain: 1. That it uses the universal newlines approach to splitting lines 2. That unlike str.split() a trailing empty line is *not* included in the resulting list -- assignee: docs@python components: Documentation messages: 161915 nosy: docs@python, ncoghlan priority: normal severity: normal status: open title: Improve docs for str.splitlines versions: Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14957 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14744] Use _PyUnicodeWriter API in str.format() internals
STINNER Victor victor.stin...@gmail.com added the comment: report_windows7: Comparaison of str%args and str.format() on Windows 7. * Python 2.7 (64 bits) * Python 3.2 (64 bits), narrow (UTF-16) * Python 3.3 (*32* bits), PEP 393 The benchmark is not fair because Python 3.3 is compiled in 32 bits, but there are interesting results. Example: ({0}*1024).format(A * 4096) takes 1 or 2 seconds with Python 2.7/3.2 and 0.008 sec with Python 3.3! -- Added file: http://bugs.python.org/file25757/report_windows7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14744 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()
Nick Coghlan ncogh...@gmail.com added the comment: I created #14957 to cover improving the str.splitlines docs. For this patch, I think Chris is right that it should be using str.splitlines(True) and joining on '' instead of '\n' so that Windows line endings get preserved. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13857 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14956] custom PYTHONPATH may break apps embedding Python
Nick Coghlan ncogh...@gmail.com added the comment: It wouldn't be a PEP, it would be an addition to the embedding docs: http://docs.python.org/extending/embedding.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14956] custom PYTHONPATH may break apps embedding Python
Nick Coghlan ncogh...@gmail.com added the comment: For the more general breakage due to PYTHONHOME and PYTHONPATH, yeah, global environment variables are bad, particularly when an OS relies on tools written in (or embedding) Python. That's the reason virtualenv (and 3.3's forthcoming venv) are a preferred alternative - they give you a space to play in that shouldn't break your system Python or apps that embed it. -- assignee: - docs@python components: +Documentation -Interpreter Core nosy: +docs@python stage: - needs patch versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14956] custom PYTHONPATH may break apps embedding Python
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14744] Use _PyUnicodeWriter API in str.format() internals
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14744 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14943] winreg OpenKey doesn't work as documented
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fcb6c4a4ac0e by Brian Curtin in branch '3.2': Fix #14943. Update the proper default value and list the proper argument names in the explanation. http://hg.python.org/cpython/rev/fcb6c4a4ac0e New changeset 29e0f08ef065 by Brian Curtin in branch 'default': Fix #14943. Merge 3.2 http://hg.python.org/cpython/rev/29e0f08ef065 New changeset 8ec62c9eea34 by Brian Curtin in branch '3.2': Add news item for #14943 http://hg.python.org/cpython/rev/8ec62c9eea34 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14943 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14943] winreg OpenKey doesn't work as documented
Changes by Brian Curtin br...@python.org: -- assignee: docs@python - brian.curtin components: +Windows resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14943 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14958] IDLE 3 and PEP414 - highlighting unicode literals
New submission from Roger Serwy roger.se...@gmail.com: Issue8641 addressed the problem of not highlighting byte literals, but dropped Unicode literals, as it should have. This happened months before the acceptance of PEP414. IDLE 3 should now highlight u as well as b, as well as valid combinations with r. -- components: IDLE keywords: easy messages: 161921 nosy: serwy priority: low severity: normal stage: needs patch status: open title: IDLE 3 and PEP414 - highlighting unicode literals type: behavior versions: Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14958 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14443] Distutils test_bdist_rpm failure
Dave Malcolm dmalc...@redhat.com added the comment: I'm able to reproduce this on a RHEL 6 box, and I did some investigating. The stray .pyc files are indeed reported by file as python 2.6 byte-compiled so yes, it's using /usr/bin/python to byte-compile them On RHEL 6, with redhat-rpm-config-9.0.3-33.el6.noarch, /usr/lib/rpm/redhat/macros defines os_install_post as: %__os_install_post\ /usr/lib/rpm/redhat/brp-compress \ %{!?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip}} \ /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \ /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \ /usr/lib/rpm/brp-python-bytecompile \ /usr/lib/rpm/redhat/brp-python-hardlink \ %{!?__jar_repack:/usr/lib/rpm/redhat/brp-java-repack-jars} \ %{nil} Note how in this definition, brp-python-bytecompile is passed in without any arguments (contrast with msg159396, which is from a later version of the macros). Hence it unconditionally (and erroneously) uses /usr/bin/python to byte-compile any .py files found in the package payload. The change to add %{__python} to the invocation of /usr/lib/rpm/brp-python-bytecompile appears to have been in redhat-rpm-config-9.1.0 for Fedora 13 (see https://bugzilla.redhat.com/show_bug.cgi?id=521141), whereas RHEL 6 has the earlier code. It may be possible to work around this by providing an overridden definition of __os_install_post in the specfile. We do this in the python26.spec for EPEL5; grep for __os_install_post within: http://pkgs.fedoraproject.org/gitweb/?p=python26.git;a=blob;f=python26.spec;h=6b490b9b71f42c26b7d4ec4031685fb3230c5602;hb=refs/heads/el5 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14443 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14959] ttk.Scrollbar in Notebook widget freezes
New submission from David Beck db...@ualberta.ca: I am working on an iMac running OS 10.7, TK 8.5.11. I built a simple app containing a Notebook widget, and with Listboxes and linked tkk.Scrollbars on each of three tabs. All of the Scrollbars work the first time I manipulate them, but once the Scrollbar on third tab (the last one created by the script) is manipulated, the others become unresponsive to mouse clicks (though the Scrollbars continue to move when the Listboxes are scrolled using the mouse/trackpad. I first found this issue working with Python 3.2.3 (using IDLE), but the same thing happens with Python 3.3. I asked someone to try this on a PC (Windows 7, Python 3.2.3, Tkinter 8.5), but the problem wasn't recreated. -- assignee: ronaldoussoren components: Macintosh, Tkinter files: Notebook.py messages: 161923 nosy: davidjamesbeck, ronaldoussoren priority: normal severity: normal status: open title: ttk.Scrollbar in Notebook widget freezes type: behavior versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file25758/Notebook.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14959] ttk.Scrollbar in Notebook widget freezes
Ned Deily n...@acm.org added the comment: For what it's worth, I was able to reproduce the behavior you describe (also on OS X 10.7 using Python 3.3 and the latest ActiveState Tcl/Tk 8.5.11). Scrolling is a lower level GUI operation that, AFAIK, managed by Tk and OS X frameworks, and not by Python or Tkinter, so my guess is that the problem you're seeing would need to be addressed there. Unless someone else has a better suggestion, I would advise asking about this on the Tkinter-discuss mailing list (http://mail.python.org/mailman/listinfo/tkinter-discuss) and/or, possibly even better, on the Tcl Mac mailing list (http://dir.gmane.org/gmane.comp.lang.tcl.mac) particularly if you can demonstrate the problem with a Tcl code segment. Please report back any updates you receive. Good luck! -- nosy: +ned.deily status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14443] Distutils test_bdist_rpm failure
Nick Coghlan ncogh...@gmail.com added the comment: Now I'm wondering if the problem will also manifest itself on EL rebuilds like CentOS or Scientific Linux, since that will affect how specific we can get when it comes to implementing a workaround. That is, overriding __os_install_post should definitely work, but the question then becomes how we decide that overriding it is *necessary*, such that: - we don't bypass vendor hooks when they aren't broken (e.g. Fedora, hopefully a future version of RHEL) - we *do* bypass them when we know they don't work properly for Python 3 projects (e.g. RHEL6, probably EL6 rebuilds) I'm currently thinking of something like this: # At the top of the bdist_rpm command file try: # Support workaround for #14443 which affects some RPM based systems # such as RHEL6 (and probably derivatives) from rpm import expandMacro as _expand_rpm_macro except ImportError: _expand_rpm_macro = None # When generating the spec file if _expand_rpm_macro is not None: # We're on a system with a vendor installed rpm library # and at least RHEL6 tries to bytecompile Python modules # with the system Python instead of the running one problem = brp-python-bytecompile \\ fixed = brp-python-bytecompile %{__python} \\ vendor_hook = _expand_rpm_macro(%{__os_install_post}) fixed_hook = vendor_hook.replace(problem, fixed) if fixed_hook != vendor_hook: # Add fixed_hook to spec file template Thoughts? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14443 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation
Eric Snow ericsnowcurren...@gmail.com added the comment: here's an updated patch with long options only. I'm only 95% confident about my changes to getopt.c...there's probably a better way to do it. However, the patch stands on its own two feet. -- Added file: http://bugs.python.org/file25759/issue13475_long_only.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13475 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14958] IDLE 3 and PEP414 - highlighting unicode literals
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 94a5bf416e50 by Ned Deily in branch 'default': Issue #14958: Change IDLE systax highlighting to recognize all string and http://hg.python.org/cpython/rev/94a5bf416e50 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14958 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com