[issue10768] Bug in scrolledtext

2010-12-24 Thread Pierre Quentel
New submission from Pierre Quentel pierre.quen...@gmail.com: The scrolledtext example crashes with this message : TypeError: unsupported operand type(s) for +: 'dict_keys' and 'dict_keys' It works if keys() are converted to lists in line 33 : methods = list(vars(Pack).keys()) +

[issue10763] subprocess.communicate() doesn't close pipes on Windows

2010-12-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gps ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10763 ___ ___ Python-bugs-list mailing list

[issue10768] Bug in scrolledtext

2010-12-24 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: It probably also works if | is used instead of +, because in 3.2 dict_proxy.keys() are a dict_keys, not a list. See issue10630 . -- nosy: +durban ___ Python tracker rep...@bugs.python.org

[issue10762] strftime('%f') segfault

2010-12-24 Thread David Leonard
David Leonard d+pyt...@adaptive-enterprises.com added the comment: Agree that the patches from issue 4804 and wrapping strftime() to catch the invalid_parameter call would fix this: windbg trace: 0:000 k Child-SP RetAddr Call Site `0021f328 07fe`fdbb27cf

[issue10769] ast: provide more useful range information

2010-12-24 Thread Sven Brauch
New submission from Sven Brauch svenbra...@googlemail.com: Hi, I'm writing a python language support plugin for an IDE. I'm using the AST module to get information about the loaded source code, which works pretty well. However, in some cases, the information provided by the AST is simply not

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-12-24 Thread Baptiste Carvello
Baptiste Carvello baptiste...@free.fr added the comment: Hello, the patch solves the bug for me as well (using locale C, the filesystem encoding is utf-8). However, I do not understand why the patch checks that the shebang line decodes with both utf-8 and the file's encoding. The shebang

[issue10769] ast: provide more useful range information

2010-12-24 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +benjamin.peterson stage: - needs patch versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10769 ___

[issue7198] Extraneous newlines with csv.writer on Windows

2010-12-24 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: John, The API for the open() builtin function has changed. You should open the output file with newline= instead of using the default. Take a look at the documentation for open() and csv.reader:

[issue10767] Lib/test/crashers/README is out of date

2010-12-24 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: That's a fair assessment. A lot of the bugs that are easy to fix got closed out a couple of years back. The rest are (I think) considered too difficult and too marginal to worry about. -- nosy: +brett.cannon

[issue10770] zipinfo - fix of a typo in the doc

2010-12-24 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: Hello, as reported[1] on python-doc, there's a typo in zipinfo doc. [1] http://mail.python.org/pipermail/docs/2010-December/002526.html The attached (trivial) patch fixes it; the file would also need a rewrap to 80th column. Cheers,

[issue10769] ast: provide more useful range information

2010-12-24 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: ISTM the whole point of an Abstract Syntax Tree is to express semantics while throwing away the syntax details. The only reason any position information is kept is to support tracebacks and debugging. Perhaps the OP's

[issue10769] ast: provide more useful range information

2010-12-24 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2010/12/24 Raymond Hettinger rep...@bugs.python.org: Raymond Hettinger rhettin...@users.sourceforge.net added the comment: ISTM the whole point of an Abstract Syntax Tree is to express semantics while throwing away the syntax

[issue10769] ast: provide more useful range information

2010-12-24 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: If info fields are added, they need to be optional so that someone manipulating the tree (adding, rearranging, or removing nodes) doesn't have an additional burden of supplying this info before compiling into an executable

[issue10768] Bug in scrolledtext

2010-12-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Where is this example? -- assignee: - d...@python components: +Documentation nosy: +d...@python, r.david.murray type: crash - behavior ___ Python tracker rep...@bugs.python.org

[issue10768] Bug in scrolledtext

2010-12-24 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: I don't think, that this is in an example (but probably there is an example somewhere, that crashes because of this). I found the code in Lib/tkinter/scrolledtext.py -- ___ Python tracker

[issue10626] Bad interaction between test_logging and test_concurrent_futures

2010-12-24 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: Sorry for being AWOL for so long. Attached is a patch that doesn't install a handler and checks stderr for the exception output. Unfortunately, it looks like the logging tests are still messing things up: ./python.exe -m test

[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 2.6 is closed except for security fixes, which this does not seem to be. If the problem is in 2.7, then it potentially could be fixed there, but with the same caveats. I will let Antoine reclose if he thinks appropriate. -- nosy:

[issue10733] plistlib rejects strings containing control characters

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Mitchell: 2.6 is closed to revision except for security issues -- nosy: +terry.reedy resolution: wont fix - versions: +Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue10768] Bug in scrolledtext

2010-12-24 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: d...@python - components: -Documentation keywords: +easy nosy: -d...@python stage: - unit test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10768

[issue10769] ast: provide more useful range information

2010-12-24 Thread Sven Brauch
Sven Brauch svenbra...@googlemail.com added the comment: Hi, well, but you have to agree that there is no point in setting a correct column offset for bar in foo[bar] (it's correctly set to 4 here!) and foo(bar) but not for foo.bar (there's no information provided here) For me, this looks

[issue10738] webbrowser.py bug with Opera on Linux

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: According to the linked doc, Opera has '-noraise' but not '-raise' as a command line option (to not raise window when receiving remote commands). It does have 'raise()' (with quotes and parens, but not noraise()) as a remote command following

[issue10742] memoryview.readonly attribute is not documented

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I agree with addition. Patch look OK to my limited .rst knowledge. To be more parallel to the other entries, the text might say A bool indicating whether ... -- nosy: +terry.reedy stage: - patch review versions: +Python 3.1, Python

[issue10756] Error in atexit._run_exitfuncs [...] Exception expected for value, str found

2010-12-24 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10756 ___ ___ Python-bugs-list

[issue10757] zipfile.write, arcname should be bytestring

2010-12-24 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +aimacintyre stage: - unit test needed type: compile error - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10757

[issue10762] strftime('%f') segfault

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I verified problem with 3.2b1 on 32-bit winxp machine. IDLE restarts after pythonw crashes. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10762

[issue10737] test_concurrent_futures failure on Windows

2010-12-24 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: What's the best way for me to test this? The problem occurs on a Windows-only code path but there is not enough information for me to debug it. Should I check-in some additional diagnostics, wait for the buildbot to run, collect my data and

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-24 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: I've been trying to push the history to Launchpad, completely without success; it just won't authenticate (no such account, even though I can log in!). I doubt that the history would be much use to you anyway. --

[issue10737] test_concurrent_futures failure on Windows

2010-12-24 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: You can create a branch, checkin to that branch, then specify that a specific buildbot runs your branch. See the force build page of a build slave. Additionally, I can give you access to my build slave, the Windows Server 2008 one, but that may

[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-12-24 Thread Thorsten Behrens
Thorsten Behrens sbehr...@gmx.li added the comment: Thank you for that patch, Stefan. I am currently tinkering with bringing pycrypto to 3.x and ran into this issue. initfunc2.patch resolves the issue on Win7-64, python31-64. I don't feel comfortable releasing code that requires the user to

[issue10733] plistlib rejects strings containing control characters

2010-12-24 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: -terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10733 ___ ___ Python-bugs-list

[issue1693546] email.Message set_param rfc2231 encoding incorrect

2010-12-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No, I was wrong. This would only be an issue when a parameter's value is changed, and at that point we should be producing correctly (un)quoted values no matter what the original quoting of the individual value was. So I've applied the

[issue10768] Bug in scrolledtext

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Since 'methods' is converted to a set in the next line, there is no need for lists. Instead, use | and delete the conversion. methods = vars(Pack).keys() + vars(Grid).keys() + vars(Place).keys() methods = set(methods).difference(text_meths)

[issue10769] ast: provide more useful range information

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: A request limited only to fixing the current field for attribute may get more traction than a request for a new field. Can you dig into to code to get any idea why the difference between attributes versus indexes and parameters? --

[issue10769] ast: provide more useful range information

2010-12-24 Thread Sven Brauch
Sven Brauch svenbra...@googlemail.com added the comment: Hi Terry, well, the current behaviour is... logical in some way, as it says the whole expression which accesses an attribute starts at column 0, i.e. it's easy to understand why it's done like this. It just turns out that this is pretty

[issue7334] ElementTree: file locking in Jython 2.5 (OSError on Windows)

2010-12-24 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: Florent, any chance of signing off on this for 3.2? I was waiting for the patch to go through your authorized elementtree fork -- assignee: pjenvey - flox ___ Python tracker

[issue10737] test_concurrent_futures failure on Windows

2010-12-24 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: I'm good, thanks Brian C. br/ It looks like SetEvent is failing with ERROR_INVALID_HANDLE. CRITICAL:root:SetEvent(2044) failed with 0, GetLastError() = 6 CRITICAL:root:SetEvent(2064) failed with 0, GetLastError() = 6

[issue10769] ast: provide more useful range information

2010-12-24 Thread Sven Brauch
Sven Brauch svenbra...@googlemail.com added the comment: Hi, I found the reason for this behavior in the code now, it's in Python/ast.c, lines 1745 and 1746 in ast_for_power(): tmp-lineno = e-lineno; tmp-col_offset = e-col_offset; Here, the range information for the

[issue10769] ast: provide more useful range information

2010-12-24 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2010/12/24 Sven Brauch rep...@bugs.python.org: Sven Brauch svenbra...@googlemail.com added the comment: Hi, I found the reason for this behavior in the code now, it's in Python/ast.c, lines 1745 and 1746 in ast_for_power():      

[issue10733] plistlib rejects strings containing control characters

2010-12-24 Thread Mitchell Model
Mitchell Model m...@acm.org added the comment: Thanks for letting me know (and with a personalized message, yet!). I wasn't paying attention -- i verified that the problem exists in 2.7 and 3.1 and I just dragged 3.1 down to 2.6. Although I've been working furiously in Python for the past six

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I suspect it would help if there are more changes, though. I believe that to push to launchpad you have to upload an ssh key. Not sure why you'd get no such account, though. Barry would probably know :) --

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-24 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: It does have an SSH key. It's probably something simple that I'm missing. I think that the only change I'm likely to make is to a support script I use; it currently uses hard-coded paths, etc, to do its magic. :-) --

[issue5258] addpackage in site.py fails hard on badly formed .pth files

2010-12-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, I think it is a good idea for site.py to issue error messages and continue on when it is processing files that don't come from the python distribution itself (such as pth files). However, I think just printing the error message is

[issue10642] Improve the error message of addpackage() (site.py) for defective .pth file

2010-12-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Georg posted a patch to issue 5258 that would fix this. I've posted a counter proposal that would give more info. We're proposing to simply write to stderr and then continue. With either patch this issue would be fixed, so I'm making

[issue5258] addpackage in site.py fails hard on badly formed .pth files

2010-12-24 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +Arfrever, dwr2, eric.araujo, haypo, tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5258 ___

[issue10771] descriptor protocol documentation has two different definitions of owner class

2010-12-24 Thread Devin Jeanpierre
New submission from Devin Jeanpierre jeanpierr...@gmail.com: In trunk/Doc/reference/datamodel.rst , under _Implementing Descriptors_, the documentation states: `The following methods only apply when an instance of the class containing the method (a so-called *descriptor* class) appears in

[issue10576] Add a progress callback to gcmodule

2010-12-24 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Well, the idea is good and it did cross my mind. Particularly it could be useful for performance sensitive applications. However it complicates things. 1) If a GC is rejected, when do we make the next attempt? 2) If a callback