[issue12673] SEGFAULT error on OpenBSD (sparc)
New submission from rpointel pyt...@xiri.fr: Hello, on OpenBSD (arch: sparc), I got a SIGBUS error during the compilation. gdb info: #0 0x089f136c in listextend (self=0xb6232d8, b=0xb611060) at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Objects/listobject.c:838 838 Py_INCREF(o); (gdb) list 833 /* populate the end of self with b's items */ 834 src = PySequence_Fast_ITEMS(b); 835 dest = self-ob_item + m; 836 for (i = 0; i n; i++) { 837 PyObject *o = src[i]; 838 Py_INCREF(o); 839 dest[i] = o; 840 } 841 Py_DECREF(b); 842 Py_RETURN_NONE; (gdb) print src $1 = (PyObject **) 0xb61106c (gdb) print i $2 = 1 (gdb) print *src $3 = (PyObject *) 0x8d8afdc (gdb) print src[i] $4 = (PyObject *) 0x0 Attached file is the complete log file. Thanks, Remi. -- components: Installation files: python_segfault_sparc.log messages: 141488 nosy: rpointel priority: normal severity: normal status: open title: SEGFAULT error on OpenBSD (sparc) versions: Python 2.7 Added file: http://bugs.python.org/file22816/python_segfault_sparc.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12648] Wrong import module search order on Windows
kota nospam.kotarou.d...@gmail.com added the comment: Ok. Time to get those people over at glib to fix up their python script then :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12648 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12631] Mutable Sequence Type in .remove() is consistent only with lists, but not with bytearrays
Changes by Petri Lehtinen pe...@digip.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12631 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12170] index() and count() methods of bytes and bytearray should accept byte ints
Raymond Hettinger raymond.hettin...@gmail.com added the comment: See also #12631 regarding the remove() method for bytearray. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12170] index() and count() methods of bytes and bytearray should accept byte ints
Petri Lehtinen pe...@digip.org added the comment: See also #12631 regarding the remove() method for bytearray. AFAICS, it's about bytearray.remove() working but bytearray.index() not working as documented, and that's why I marked is as a duplicate of this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12667] Better logging.handler.SMTPHandler doc for 'secure' argument
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 42f40f53fd73 by Vinay Sajip in branch '2.7': Closes #12667: Corrected documentation for SMTPHandler secure argument. http://hg.python.org/cpython/rev/42f40f53fd73 New changeset ba5bd8c1ae27 by Vinay Sajip in branch '3.2': Closes #12667: Added documentation for SMTPHandler secure argument. http://hg.python.org/cpython/rev/ba5bd8c1ae27 New changeset 2d69900c0820 by Vinay Sajip in branch 'default': Closes #12667: Merged fix from 3.2. http://hg.python.org/cpython/rev/2d69900c0820 -- nosy: +python-dev resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12667 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12673] SEGFAULT error on OpenBSD (sparc)
rpointel pyt...@xiri.fr added the comment: This bug seems to be the same than 7424: http://bugs.python.org/issue7424 Sorry I didn't seen it before. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12674] pydoc str.split does not find the method
New submission from thp t...@thpinfo.com: If I want to get help on a method on a built-in class (e.g. list or str) I can use the help function in the interactive shell: help(str.split) help(list.append) However, when I try to do the same with the command-line utility pydoc it does not work: $ pydoc str.split What does work with the pydoc command is that I use the following command and then search for the function in the resulting output: $ pydoc str # after that, manually search for split I've created a patch against Python 2.6's pydoc.py that tries to iteratively look up methods in builtins. This keeps the previous behavior as-is, but will give positive results in the cases listed above. -- components: Library (Lib) files: pydoc_builtin-classmethods.patch keywords: patch messages: 141494 nosy: thp priority: normal severity: normal status: open title: pydoc str.split does not find the method versions: Python 2.7 Added file: http://bugs.python.org/file22817/pydoc_builtin-classmethods.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12674 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12674] pydoc str.split does not find the method
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - pydoc str works but not pydoc str.translate type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12674 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12673] SEGFAULT error on OpenBSD (sparc)
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - segmentation fault in listextend during install ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11104] distutils sdist ignores MANIFEST
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5d3e22d69d4f by Éric Araujo in branch '3.2': Fix regression with distutils MANIFEST handing (#11104, #8688). http://hg.python.org/cpython/rev/5d3e22d69d4f -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9860] Building python outside of source directory fails
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 313a71664781 by Éric Araujo in branch '3.2': Let “make patchcheck” work for out-of-dir builds (#9860) http://hg.python.org/cpython/rev/313a71664781 New changeset 5993f91598ce by Éric Araujo in branch 'default': Merge fixes for #9860, #11104/#8688 and #12331 from 3.2 http://hg.python.org/cpython/rev/5993f91598ce -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9860 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12331] lib2to3 and packaging tests fail because they write into protected directory
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2b5a0c4e052b by Éric Araujo in branch '3.2': Stop trying to write into the stdlib during lib2to3 tests (#12331). http://hg.python.org/cpython/rev/2b5a0c4e052b New changeset 7ee8f413188e by Éric Araujo in branch 'default': Stop trying to write into the stdlib during packaging tests (#12331). http://hg.python.org/cpython/rev/7ee8f413188e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7424] segmentation fault in listextend during install
Changes by rpointel pyt...@xiri.fr: -- nosy: +rpointel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7424 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12331] lib2to3 and packaging tests fail because they write into protected directory
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a425408f1e52 by Éric Araujo in branch '2.7': Stop trying to write into the stdlib during lib2to3 tests (#12331). http://hg.python.org/cpython/rev/a425408f1e52 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11104] distutils sdist ignores MANIFEST
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 21feea7f35e5 by Éric Araujo in branch '2.7': Fix regression with distutils MANIFEST handing (#11104, #8688). http://hg.python.org/cpython/rev/21feea7f35e5 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9860] Building python outside of source directory fails
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bea11ce24bb0 by Éric Araujo in branch '2.7': Let “make patchcheck” work for out-of-dir builds (#9860) http://hg.python.org/cpython/rev/bea11ce24bb0 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9860 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12331] lib2to3 and packaging tests fail because they write into protected directory
Éric Araujo mer...@netwok.org added the comment: This is now fixed. Let me just eat these words: “This should not be too hard to fix”. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11104] distutils sdist ignores MANIFEST
Éric Araujo mer...@netwok.org added the comment: I did some more work on the patch and committed. Thanks again to both of you. I also thought again about this remark: Changeset r83996 was introduced to prevent sdist from overwriting a project maintained manifest by testing for a comment at the head of the manifest file. It's not clear to me this was necessary because the write_manifest() should never have been called if the template was absent but a manifest existed. I also wonder if that was necessary; I did not fully understand the bug at the time. Unfortunately, now that we have a handful of releases out there with this change, we have to support the magic comment. For distutils2 however (a.k.a. “packaging” module in 3.3), I’ll open another bug report and if the same bugs apply (MANIFEST handling is a bit different there), I’ll try to fix the bug without using a magic comment. -- components: -Distutils2 resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12675] tokenize module happily tokenizes code with syntax errors
New submission from Gareth Rees g...@garethrees.org: The tokenize module is happy to tokenize Python source code that the real tokenizer would reject. Pretty much any instance where tokenizer.c returns ERRORTOKEN will illustrate this feature. Here are some examples: Python 3.3.0a0 (default:2d69900c0820, Aug 1 2011, 13:46:51) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin Type help, copyright, credits or license for more information. from tokenize import generate_tokens from io import StringIO def tokens(s): ...Return a string showing the tokens in the string s. ...return '|'.join(t[1] for t in generate_tokens(StringIO(s).readline)) ... # Bad exponent print(tokens('1if 2else 3')) 1|if|2|else|3| 1if 2else 3 File stdin, line 1 1if 2else 3 ^ SyntaxError: invalid token # Bad hexadecimal constant. print(tokens('0xfg')) 0xf|g| 0xfg File stdin, line 1 0xfg ^ SyntaxError: invalid syntax # Missing newline after continuation character. print(tokens('\\pass')) \|pass| \pass File stdin, line 1 \pass ^ SyntaxError: unexpected character after line continuation character It is surprising that the tokenize module does not yield the same tokens as Python itself, but as this limitation only affects incorrect Python code, perhaps it just needs a mention in the tokenize documentation. Something along the lines of, The tokenize module generates the same tokens as Python's own tokenizer if it is given correct Python code. However, it may incorrectly tokenize Python code containing syntax errors that the real tokenizer would reject. -- components: Library (Lib) messages: 141503 nosy: Gareth.Rees priority: normal severity: normal status: open title: tokenize module happily tokenizes code with syntax errors type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12676] Bug in http.client
New submission from Popa Claudiu pcmantic...@gmail.com: There appears to be used a variable that is not defined in HTTPConnection.send method. The approximate line is 781. How to reproduce: import http.client import urllib.parse c = urllib.parse.urlencode({user:claudiu, password:1}) c = http.client.HTTPConnection(192.168.71.38) c.request(POST, test, c) # silly, I now. There should be raised a TypeError here, but instead the error is: File C:\Python32\lib\http\client.py, line 781, in send or an iterable, got %r % type(it)) NameError: global name 'it' is not defined -- components: Library (Lib) messages: 141504 nosy: Popa.Claudiu priority: normal severity: normal status: open title: Bug in http.client versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Antoine Pitrou pit...@free.fr added the comment: Some notes: - By doing things this way, we lose the ability to specify custom arguments to the interpreter with $(TESTPYTHONOPTS). Might this be a problem? Yes, some buildbots use it. Can't you add support for it in the test runner? - The test and quicktest targets now use -u all,-largefile,-audio,-gui, which permits more tests to be run. On my current system, this adds about 20s to the running time for make test (~3m45s instead of ~3m25s). Good idea. - I've changed the meaning of -j 1 -- instead of using a single subprocess, it runs the tests directly in the current process. This allows us to use the run_tests.py script for make buildbottest and still have the exact same semantics (using even one subprocess can cause problems for e.g. test_curses). Ah, nice. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12676] Bug in http.client
Éric Araujo mer...@netwok.org added the comment: It looks like “it” should be “data”. -- assignee: - orsenthil keywords: +easy nosy: +eric.araujo, orsenthil stage: - needs patch versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12675] tokenize module happily tokenizes code with syntax errors
R. David Murray rdmur...@bitdance.com added the comment: I'm not familiar with the parser internals (I'm nosying someone who is), but I suspect what you are seeing at the command line is the errors being caught at a stage later than the tokenizer. -- nosy: +benjamin.peterson, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12562] calling mmap twice fails on Windows
Antoine Pitrou pit...@free.fr added the comment: Vlad, thank you for the diagnosis. Indeed by passing a different tagname (or no tagname at all), the problem doesn't occur. Since mmap.mmap() matches the semantics chosen by Microsoft here, I tend to think this is not a bug; besides, fixing it would probably be intricate. -- resolution: - rejected status: open - pending versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12436] Missing items in installation/setup instructions
Éric Araujo mer...@netwok.org added the comment: I propose that we just narrow the scope of this report. If you agree with my earlier message, the current docs just need a few patches: - How to prepare a text editor - How to run Python code from a file (if the tutorial or using docs don’t already have it). It would also be nice to have feedback from beginners about our tutorial and using docs: Are they comprehensive and easy to find? -- keywords: +easy status: pending - open title: Provide reference to detailed installation instructions - Missing items in installation/setup instructions versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12436 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Antoine Pitrou pit...@free.fr added the comment: As an aside, the quicktest would probably deserve an update. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12677] Turtle, fix right/left rotation orientation
New submission from Sandro Tosi sandro.t...@gmail.com: Hello, following up http://mail.python.org/pipermail/docs/2011-July/005235.html here's 2 patch (for 3.3 + 3.2 and 2.7) to correct the orientation in the documentation, using turtle.right instead of turtle.left, since the work 'counterclockwise' (even if correct and already used) might be too heavy. I don't think the sense of the introductory part is voided with the change in the method name instead of fixing what it does. -- assignee: docs@python components: Documentation files: turtle_right-default.patch keywords: patch messages: 141511 nosy: docs@python, sandro.tosi priority: normal severity: normal stage: patch review status: open title: Turtle, fix right/left rotation orientation versions: Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file22818/turtle_right-default.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12677 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12677] Turtle, fix right/left rotation orientation
Changes by Sandro Tosi sandro.t...@gmail.com: Added file: http://bugs.python.org/file22819/turtle_right-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12677 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Nadeem Vawda nadeem.va...@gmail.com added the comment: Some notes: - By doing things this way, we lose the ability to specify custom arguments to the interpreter with $(TESTPYTHONOPTS). Might this be a problem? Yes, some buildbots use it. Can't you add support for it in the test runner? Working on it now; I'll upload a revised patch shortly. As an aside, the quicktest would probably deserve an update. How so? Should it perhaps use -u none? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12675] tokenize module happily tokenizes code with syntax errors
Gareth Rees g...@garethrees.org added the comment: These errors are generated directly by the tokenizer. In tokenizer.c, the tokenizer generates ERRORTOKEN when it encounters something it can't tokenize. This causes parsetok() in parsetok.c to stop tokenizing and return an error. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Antoine Pitrou pit...@free.fr added the comment: As an aside, the quicktest would probably deserve an update. How so? Should it perhaps use -u none? No, I meant the list of tests that it disables. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Nadeem Vawda nadeem.va...@gmail.com added the comment: What changes do you suggest? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Antoine Pitrou pit...@free.fr added the comment: What changes do you suggest? Not sure, I never use it. But test_concurrent_futures is not in the list for example. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12562] calling mmap twice fails on Windows
Piotr Zolnierczuk piotr.zolnierc...@gmail.com added the comment: OK. I will work around it. I was using 'mapping object of a specified size that is backed by the system paging file instead of by a file in the file system' - map-handle == INVALID_HANDLE_VALUE (-1), i.e. shared memory for inter-process communication (not my choice) A use case was when all process were stopped and one wanted to start fresh using the same tag but with a bigger size. BTW, here's the result of the following script in Python 2.5 import mmap map1 = mmap.mmap(fileno=-1, tagname='MyData', length=4096) map1[0] = 'a' map1[4095]='b' print len(map1), map1[0], map1[4095] 4096 a b map2 = mmap.mmap(fileno=-1, tagname='MyData', length=8192) print len(map2), map2[0], map2[4095] 8192 a b which would indicate that it does 'resize' and preserves the data. which means t -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10087] HTML calendar is broken
Éric Araujo mer...@netwok.org added the comment: Patch looks good. I made a few very minor style comments on Rietveld (follow the “review” link). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10087 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12562] calling mmap twice fails on Windows
Piotr Zolnierczuk piotr.zolnierc...@gmail.com added the comment: Just looked into my partner C++ code and he's using it very much like in Python 2.5: m_obj-map_handle = CreateFileMapping (INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, pageSize, tagName); m_obj-data = (char *) MapViewOfFile (m_obj-map_handle, FILE_MAP_ALL_ACCESS, 0, 0, 0); -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12562] calling mmap twice fails on Windows
Antoine Pitrou pit...@free.fr added the comment: Note that multiprocessing can abstract this kind of things for you: http://docs.python.org/library/multiprocessing#sharing-state-between-processes http://docs.python.org/library/multiprocessing#module-multiprocessing.sharedctypes -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12562] calling mmap twice fails on Windows
Changes by Antoine Pitrou pit...@free.fr: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12675] tokenize module happily tokenizes code with syntax errors
Benjamin Peterson benja...@python.org added the comment: This should probably be fixed (patches welcome). However, note even with valid Python code, the tokens are not the same. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12675] tokenize module happily tokenizes code with syntax errors
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12675] tokenize module happily tokenizes code with syntax errors
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12295] Fix ResourceWarning in turtledemo help window
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 63bd8f42b511 by Éric Araujo in branch '3.2': Fix resource warning when looking at turtledemo’s help (#12295) http://hg.python.org/cpython/rev/63bd8f42b511 New changeset 7af576e3cb0c by Éric Araujo in branch 'default': Merge #12295 fix from 3.2 http://hg.python.org/cpython/rev/7af576e3cb0c -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12295] Fix ResourceWarning in turtledemo help window
Changes by Éric Araujo mer...@netwok.org: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Nadeem Vawda nadeem.va...@gmail.com added the comment: Updated patch attached. Some notes: - By doing things this way, we lose the ability to specify custom arguments to the interpreter with $(TESTPYTHONOPTS). Might this be a problem? Yes, some buildbots use it. Can't you add support for it in the test runner? Done. But test_concurrent_futures is not in the list for example. Done. Out of interest, I measured the running times of the different test targets: quicktest 2m25s test 3m55s testall8m30s buildbottest 14m50s (these are on a 3-year-old Core 2 Duo laptop) -- Added file: http://bugs.python.org/file22820/test-runner-v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11640] Shelve references globals in its __del__ method
Daniel Stutzbach stutzb...@google.com added the comment: Could you add a comment above the lines defining self._BytesIO, describing why they're being set? Someone else might see them as unnecessary and rip them out if there's no explanation. Can a test launch Python in a subprocess, set up the appropriate data structure, let the subprocess Python shutdown, then check the subprocess's stderr for the error? It's a little convoluted, but perhaps it could be built into a general utility function that could be used to test __del__ methods in other modules, too. Not sure that it's worth the effort though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11640 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12675] tokenize module happily tokenizes code with syntax errors
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +ericsnow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12676] Bug in http.client
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12676] Bug in http.client
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12676] Bug in http.client
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file22821/issue12676_py33.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10395] new os.path function to extract common prefix based on path components
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10395 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11657] multiprocessing_{send,recv}fd fail with fds 256
Petri Lehtinen pe...@digip.org added the comment: I looked at multiprocessing code, but didn't understand how to trigger a call to these functions. Makes it hard to come up with a unit test... Ben: Do you still remember how you stumbled upon this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11657 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11049] add tests for test.support
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: test_support fails in my environment, only when run from an installed Python, due to permissions issues: == ERROR: test_forget (test.test_support.TestSupport) -- Traceback (most recent call last): File /usr/local/lib/python3.3/test/test_support.py, line 59, in test_forget support.forget(smtplib) File /usr/local/lib/python3.3/test/support.py, line 248, in forget unlink(imp.cache_from_source(source, debug_override=True)) File /usr/local/lib/python3.3/test/support.py, line 205, in unlink os.unlink(filename) OSError: [Errno 13] Permission denied: '/usr/local/lib/python3.3/__pycache__/smtplib.cpython-33.pyc' The issue is similar to #12331, which was recently fixed. -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11572] bring Lib/copy.py to 100% coverage
Brandon Craig Rhodes bran...@rhodesmill.org added the comment: Éric, I think your points are good ones. (And, as I return to this patch after three months, I should thank the PSF for sponsoring the CPython sprint here at PyOhio, and creating this opportunity for me to continue trying to land this patch!) I am attaching a fourth version of the patch. It incorporates your two suggestions, Éric. It also applies cleanly once against today's trunk; besides the usual line number changes as code has come and gone, I am happy to see that my change of an assertTrue for an assertIs in the test suite has already taken place thanks to another patch in the meantime. -- Added file: http://bugs.python.org/file22822/test_copy4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Antoine Pitrou pit...@free.fr added the comment: The latest patch looks ok to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11561] coverage of Python regrtest cannot see initial import of libs
Brandon Craig Rhodes bran...@rhodesmill.org added the comment: Éric, I think your suggestions are all good ones, and I have incorporated them into the file. (But do note that the departures we are now making from Ned's own copy of the tracer code — removing the commented-out debugging statement, and the long comment, and the inheritance from object — might make it harder to bring in changes from his own copy if he should ever further improve it.) I have tried to write the comments to be more informative, while also addressing your own ideas; let me know if you like the result! Oh: and, I am continuing to use this new file in my own work on the Python core, and it has been working fine — so no problems with the actual code have developed over these first 3+ months of use. -- Added file: http://bugs.python.org/file22823/fullcoverage2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11561 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11657] multiprocessing_{send,recv}fd fail with fds 256
Ben Darnell ben.darn...@gmail.com added the comment: These functions are used when passing a socket object across a multiprocessing.Queue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11657 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue670664] HTMLParser.py - more robust SCRIPT tag parsing
Alexander b3n...@yandex.ru added the comment: It sounds like the early consensus on python-dev is that html5 support is a good thing. Yeah... But wait another 8 years untill these guys decides that there is enough tests and other cool stuff. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue670664 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue670664] HTMLParser.py - more robust SCRIPT tag parsing
Antoine Pitrou pit...@free.fr added the comment: Yeah... But wait another 8 years untill these guys decides that there is enough tests and other cool stuff. Which guys are you talking about? Granted, this issue has been around for a lng time... but now that we have a patch that seems ok (and has tests), we should be able to finally push this and include it in the next feature release, hopefully. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue670664 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue670664] HTMLParser.py - more robust SCRIPT tag parsing
Matt Basta bastaw...@gmail.com added the comment: Seeing as everyone seems pretty satisfied with the 2.7 version, I'd be happy to put together a patch for 3 as well. To confirm, though, this fix is NOT going behind the strict parameter, correct? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue670664 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10141] SocketCan support
Tiago Gonçalves tiagogoncal...@ua.pt added the comment: I think that this time i have included almost every proposed changes. For the unitTest I did not included the condition os.getuid() == 0 because of this information in the Linux documentation 3.3 network security issues (capabilities) http://www.mjmwired.net/kernel/Documentation/networking/can.txt#212. For example, the Ubuntu 10.10 does not require to be root to access socketCAN network interfaces. For the return Py_BuildValue(Oh, PyUnicode_DecodeFSDefault, ifname, a-can_family); i have kept the h because in the header file the a-can_family is defined as an short int. -- Added file: http://bugs.python.org/file22824/socketcan.v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10141 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10395] new os.path function to extract common prefix based on path components
Eric Snow ericsnowcurren...@gmail.com added the comment: You can already get the better prefix using os.path, albeit less efficiently. Here's an example: def commondirname(paths): subpath = os.path.commonprefix(paths) for path in paths: if path == subpath: return subpath else: return os.path.join(os.path.split(subpath)[0], ) However, would it be better to implicitly normalize paths first rather than doing a character-by-character comparison? Here is an unoptimized demonstration of what I mean: def commondirname(paths): result = for path in paths: path = os.path.normcase(os.path.abspath(path)) if not result: result = path else: while not path.startswith(result + os.path.sep): result, _ = os.path.split(result) if os.path.splitdrive(result)[1] == os.path.sep: return result return result -- nosy: +ericsnow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10395 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8639] Allow callable objects in inspect.getfullargspec
Maxim Bublis b...@codemonkey.ru added the comment: I've ran into the same problem with getfullargspec not supporting callables, so I've written patch with docs and tests, that adds support for any Python callable. As a result of getfullargspec's implementation change, getargspec function also supports callables. -- keywords: +patch nosy: +maxbublis Added file: http://bugs.python.org/file22825/inspect.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8639 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12666] map semantic change not documented in What's New
Jason R. Coombs jar...@jaraco.com added the comment: I've created a patch to address (1) and (2). Is there any value in also including this in the 2to3 fixer? I can see that it's a simple translation, but adds complexity to the converted code. I'd be content to go with just a documentation patch. I'll defer to Benjamin or his delegate on whether or not to update 2to3. -- hgrepos: +50 nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12666 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c68a80779434 by Nadeem Vawda in branch 'default': Issue #11651: Move options for running tests into a Python script. http://hg.python.org/cpython/rev/c68a80779434 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8639] Allow callable objects in inspect.getfullargspec
Benjamin Peterson benja...@python.org added the comment: I'm -0.5. I think the current patch makes too many assumptions for the caller. For example, someone calling a class may really desire __new__'s signature, not that of __init__. Moreover, conceptually, getargspec() returns the argspec of a directly callable *function* or *method*. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8639 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8639] Allow callable objects in inspect.getfullargspec
Michael Foord mich...@voidspace.org.uk added the comment: Right. For a callable object (instance with __call__ method), it's unambiguous which signature you want. For a class it's ambiguous. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8639 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12612] Valgrind suppressions
Changes by Daniel Stutzbach stutzb...@google.com: -- nosy: +stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12612 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8639] Allow callable objects in inspect.getfullargspec
Maxim Bublis b...@codemonkey.ru added the comment: Agree, support for __new__ or __init__ methods would add some ambiquity, so i've decided to drop __init__ support from patch. Patch has been reuploaded. -- Added file: http://bugs.python.org/file22826/inspect2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8639 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12678] test_packaging and test_distutils failures under Windows
New submission from Antoine Pitrou pit...@free.fr: Seen on the buildbots, seems very recent: http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%202.7/builds/968 http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.2/builds/440 http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/3232 -- assignee: eric.araujo components: Distutils, Distutils2, Tests messages: 141542 nosy: alexis, eric.araujo, pitrou priority: high severity: normal stage: needs patch status: open title: test_packaging and test_distutils failures under Windows type: behavior versions: Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12678 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12675] tokenize module happily tokenizes code with syntax errors
Vlad Riscutia riscutiav...@gmail.com added the comment: How come tokenizer module is not based on actual C tokenizer? Wouldn't that make more sense (and prevent this kind of issues)? -- nosy: +vladris ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11049] add tests for test.support
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1a978892a105 by Eli Bendersky in branch 'default': Issue #11049: fix test_forget to work on installed Python, by using a temporary module for import/forget http://hg.python.org/cpython/rev/1a978892a105 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12675] tokenize module happily tokenizes code with syntax errors
Benjamin Peterson benja...@python.org added the comment: tokenize has useful features that the builtin tokenizer does not possess such as the NL token. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com