[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-08-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: See also #12631 regarding the remove() method for bytearray. -- ___ Python tracker ___ ___ Pytho

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-08-01 Thread Petri Lehtinen
Petri Lehtinen 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. --

[issue12667] Better logging.handler.SMTPHandler doc for 'secure' argument

2011-08-01 Thread Roundup Robot
Roundup Robot 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 docum

[issue12673] SEGFAULT error on OpenBSD (sparc)

2011-08-01 Thread rpointel
rpointel 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 ___ __

[issue12674] pydoc str.split does not find the method

2011-08-01 Thread thp
New submission from thp : 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: $ pydo

[issue12674] pydoc str.split does not find the method

2011-08-01 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> "pydoc str" works but not "pydoc str.translate" type: -> behavior ___ Python tracker _

[issue12673] SEGFAULT error on OpenBSD (sparc)

2011-08-01 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> segmentation fault in listextend during install ___ Python tracker

[issue11104] distutils sdist ignores MANIFEST

2011-08-01 Thread Roundup Robot
Roundup Robot 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

[issue9860] Building python outside of source directory fails

2011-08-01 Thread Roundup Robot
Roundup Robot 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 a

[issue12331] lib2to3 and packaging tests fail because they write into protected directory

2011-08-01 Thread Roundup Robot
Roundup Robot 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

[issue7424] segmentation fault in listextend during install

2011-08-01 Thread rpointel
Changes by rpointel : -- nosy: +rpointel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue12331] lib2to3 and packaging tests fail because they write into protected directory

2011-08-01 Thread Roundup Robot
Roundup Robot 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

[issue11104] distutils sdist ignores MANIFEST

2011-08-01 Thread Roundup Robot
Roundup Robot 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

[issue9860] Building python outside of source directory fails

2011-08-01 Thread Roundup Robot
Roundup Robot 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

[issue12331] lib2to3 and packaging tests fail because they write into protected directory

2011-08-01 Thread Éric Araujo
Éric Araujo 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

[issue11104] distutils sdist ignores MANIFEST

2011-08-01 Thread Éric Araujo
Éric Araujo 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 > th

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-01 Thread Gareth Rees
New submission from Gareth Rees : 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

[issue12676] Bug in http.client

2011-08-01 Thread Popa Claudiu
New submission from Popa Claudiu : 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.HTTPConn

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Antoine Pitrou
Antoine Pitrou 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

[issue12676] Bug in http.client

2011-08-01 Thread Éric Araujo
Éric Araujo 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

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-01 Thread R. David Murray
R. David Murray 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 __

[issue12562] calling mmap twice fails on Windows

2011-08-01 Thread Antoine Pitrou
Antoine Pitrou 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

[issue12436] Missing items in installation/setup instructions

2011-08-01 Thread Éric Araujo
Éric Araujo 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). I

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: As an aside, the "quicktest" would probably deserve an update. -- ___ Python tracker ___ ___ Python

[issue12677] Turtle, fix right/left rotation orientation

2011-08-01 Thread Sandro Tosi
New submission from Sandro Tosi : 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 correc

[issue12677] Turtle, fix right/left rotation orientation

2011-08-01 Thread Sandro Tosi
Changes by Sandro Tosi : Added file: http://bugs.python.org/file22819/turtle_right-2.7.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Nadeem Vawda
Nadeem Vawda 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 o

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-01 Thread Gareth Rees
Gareth Rees 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. --

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Antoine Pitrou
Antoine Pitrou 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

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Nadeem Vawda
Nadeem Vawda added the comment: What changes do you suggest? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Antoine Pitrou
Antoine Pitrou 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 ___

[issue12562] calling mmap twice fails on Windows

2011-08-01 Thread Piotr Zolnierczuk
Piotr Zolnierczuk 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 (n

[issue10087] HTML calendar is broken

2011-08-01 Thread Éric Araujo
Éric Araujo added the comment: Patch looks good. I made a few very minor style comments on Rietveld (follow the “review” link). -- ___ Python tracker ___ _

[issue12562] calling mmap twice fails on Windows

2011-08-01 Thread Piotr Zolnierczuk
Piotr Zolnierczuk 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,

[issue12562] calling mmap twice fails on Windows

2011-08-01 Thread Antoine Pitrou
Antoine Pitrou 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 -- ___

[issue12562] calling mmap twice fails on Windows

2011-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-01 Thread Benjamin Peterson
Benjamin Peterson 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

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12295] Fix ResourceWarning in turtledemo help window

2011-08-01 Thread Roundup Robot
Roundup Robot 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

[issue12295] Fix ResourceWarning in turtledemo help window

2011-08-01 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.3 ___ Python tracker ___ __

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Nadeem Vawda
Nadeem Vawda 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

[issue11640] Shelve references globals in its __del__ method

2011-08-01 Thread Daniel Stutzbach
Daniel Stutzbach 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

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-01 Thread Eric Snow
Changes by Eric Snow : -- nosy: +ericsnow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue12676] Bug in http.client

2011-08-01 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12676] Bug in http.client

2011-08-01 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12676] Bug in http.client

2011-08-01 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- keywords: +patch Added file: http://bugs.python.org/file22821/issue12676_py33.patch ___ Python tracker ___

[issue10395] new os.path function to extract common prefix based on path components

2011-08-01 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11657] multiprocessing_{send,recv}fd fail with fds > 256

2011-08-01 Thread Petri Lehtinen
Petri Lehtinen 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? -- ___ Pyt

[issue11049] add tests for test.support

2011-08-01 Thread Vinay Sajip
Vinay Sajip 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)

[issue11572] bring Lib/copy.py to 100% coverage

2011-08-01 Thread Brandon Craig Rhodes
Brandon Craig Rhodes 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 attac

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: The latest patch looks ok to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-08-01 Thread Brandon Craig Rhodes
Brandon Craig Rhodes 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 comme

[issue11657] multiprocessing_{send,recv}fd fail with fds > 256

2011-08-01 Thread Ben Darnell
Ben Darnell added the comment: These functions are used when passing a socket object across a multiprocessing.Queue. -- ___ Python tracker ___ _

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-08-01 Thread Alexander
Alexander 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 tr

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-08-01 Thread Antoine Pitrou
Antoine Pitrou 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 tes

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-08-01 Thread Matt Basta
Matt Basta 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

[issue10141] SocketCan support

2011-08-01 Thread Tiago Gonçalves
Tiago Gonçalves 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.mjmwire

[issue10395] new os.path function to extract common prefix based on path components

2011-08-01 Thread Eric Snow
Eric Snow 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: ret

[issue8639] Allow callable objects in inspect.getfullargspec

2011-08-01 Thread Maxim Bublis
Maxim Bublis 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

[issue12666] map semantic change not documented in What's New

2011-08-01 Thread Jason R. Coombs
Jason R. Coombs 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

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Roundup Robot
Roundup Robot 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

[issue8639] Allow callable objects in inspect.getfullargspec

2011-08-01 Thread Benjamin Peterson
Benjamin Peterson 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

[issue8639] Allow callable objects in inspect.getfullargspec

2011-08-01 Thread Michael Foord
Michael Foord 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 _

[issue12612] Valgrind suppressions

2011-08-01 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- nosy: +stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue8639] Allow callable objects in inspect.getfullargspec

2011-08-01 Thread Maxim Bublis
Maxim Bublis 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 _

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-01 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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/

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-01 Thread Vlad Riscutia
Vlad Riscutia 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 ___

[issue11049] add tests for test.support

2011-08-01 Thread Roundup Robot
Roundup Robot 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 -- _

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: tokenize has useful features that the builtin tokenizer does not possess such as the NL token. -- ___ Python tracker ___ __

[issue11651] Improve test targets in Makefile

2011-08-01 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue12679] ThreadError is not in threading.__all__

2011-08-01 Thread Matt Joiner
New submission from Matt Joiner : >>> from threading import * >>> ThreadError Traceback (most recent call last): File "", line 1, in NameError: name 'ThreadError' is not defined -- components: Library (Lib) files: export-thread-error.patch keywords: patch messages: 141546 nosy: anacro