[issue10576] Add a progress callback to gcmodule

2010-12-24 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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 cancels GC, then what abo

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

2010-12-24 Thread Devin Jeanpierre
New submission from Devin Jeanpierre : 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 the class dictionary of

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

2010-12-24 Thread R. David Murray
Changes by R. David Murray : -- nosy: +Arfrever, dwr2, eric.araujo, haypo, tarek ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2010-12-24 Thread R. David Murray
R. David Murray 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 that issue a supers

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

2010-12-24 Thread R. David Murray
R. David Murray 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 not going to provide

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

2010-12-24 Thread Matthew Barnett
Matthew Barnett 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. :-) --

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

2010-12-24 Thread R. David Murray
R. David Murray 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 :) -- ___

[issue10733] plistlib rejects strings containing control characters

2010-12-24 Thread Mitchell Model
Mitchell Model 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 months, I ha

[issue10769] ast: provide more useful range information

2010-12-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/12/24 Sven Brauch : > > Sven Brauch 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->c

[issue10769] ast: provide more useful range information

2010-12-24 Thread Sven Brauch
Sven Brauch 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 individual attributes (which is

[issue10737] test_concurrent_futures failure on Windows

2010-12-24 Thread Brian Quinlan
Brian Quinlan added the comment: I'm good, thanks Brian C. 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 CRITICAL:root:SetEvent(2220) failed with 0, Get

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

2010-12-24 Thread Philip Jenvey
Philip Jenvey 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 _

[issue10769] ast: provide more useful range information

2010-12-24 Thread Sven Brauch
Sven Brauch 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 useless... I'll try t

[issue10769] ast: provide more useful range information

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy 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? -- nosy: +terry.reedy

[issue10768] Bug in scrolledtext

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy 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) becomes method

[issue1693546] email.Message set_param rfc2231 encoding incorrect

2010-12-24 Thread R. David Murray
R. David Murray 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 patch in r87479. ---

[issue10733] plistlib rejects strings containing control characters

2010-12-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-12-24 Thread Thorsten Behrens
Thorsten Behrens 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 manually patch P

[issue10737] test_concurrent_futures failure on Windows

2010-12-24 Thread Brian Curtin
Brian Curtin 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 take a few day

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

2010-12-24 Thread Matthew Barnett
Matthew Barnett 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 Quinlan
Brian Quinlan 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 then rollback my ch

[issue10762] strftime('%f') segfault

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified problem with 3.2b1 on 32-bit winxp machine. IDLE restarts after pythonw crashes. -- nosy: +terry.reedy ___ Python tracker ___ __

[issue10757] zipfile.write, arcname should be bytestring

2010-12-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +aimacintyre stage: -> unit test needed type: compile error -> behavior versions: +Python 3.2 ___ Python tracker ___ ___

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

2010-12-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10742] memoryview.readonly attribute is not documented

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy 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 3.2 ___

[issue10738] webbrowser.py bug with Opera on Linux

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy 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 the '-remote

[issue10769] ast: provide more useful range information

2010-12-24 Thread Sven Brauch
Sven Brauch 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 like it was just done the eas

[issue10768] Bug in scrolledtext

2010-12-24 Thread R. David Murray
Changes by R. David Murray : -- assignee: d...@python -> components: -Documentation keywords: +easy nosy: -d...@python stage: -> unit test needed ___ Python tracker ___ _

[issue10733] plistlib rejects strings containing control characters

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy 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

[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 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: +terry.reedy stage: c

[issue10626] Bad interaction between test_logging and test_concurrent_futures

2010-12-24 Thread Brian Quinlan
Brian Quinlan 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 test_concurrent_futures test_concu

[issue10768] Bug in scrolledtext

2010-12-24 Thread Daniel Urban
Daniel Urban 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

[issue10768] Bug in scrolledtext

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

[issue10769] ast: provide more useful range information

2010-12-24 Thread Raymond Hettinger
Raymond Hettinger 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 code object. --

[issue10769] ast: provide more useful range information

2010-12-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/12/24 Raymond Hettinger : > > Raymond Hettinger 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

[issue10769] ast: provide more useful range information

2010-12-24 Thread Raymond Hettinger
Raymond Hettinger 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 request should changed to "add func

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

2010-12-24 Thread Sandro Tosi
New submission from Sandro Tosi : 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, Sandro -- assigne

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

2010-12-24 Thread Brett Cannon
Brett Cannon 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 ___ Pyth

[issue7198] Extraneous newlines with csv.writer on Windows

2010-12-24 Thread Skip Montanaro
Skip Montanaro 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: http://docs.python.org/py3k/library/functions.html?highli

[issue10769] ast: provide more useful range information

2010-12-24 Thread R. David Murray
Changes by R. David Murray : -- nosy: +benjamin.peterson stage: -> needs patch versions: +Python 3.3 ___ Python tracker ___ ___ Pytho

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

2010-12-24 Thread Baptiste Carvello
Baptiste Carvello 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 line is only used by

[issue10769] ast: provide more useful range information

2010-12-24 Thread Sven Brauch
New submission from Sven Brauch : 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 sufficient to do proper h

[issue10762] strftime('%f') segfault

2010-12-24 Thread David Leonard
David Leonard 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 ntdll!ZwTerminateProcess+0xa `002

[issue10768] Bug in scrolledtext

2010-12-24 Thread Daniel Urban
Daniel Urban 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 ___

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

2010-12-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gps ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue10768] Bug in scrolledtext

2010-12-24 Thread Pierre Quentel
New submission from Pierre Quentel : 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()) + list(vars(Grid).keys()) + \list(vars(P