[issue11133] inspect.getattr_static code execution

2011-03-16 Thread Daniel Urban
Daniel Urban added the comment: The new entry in Misc/NEWS says: "Patch by Daniel Urban." But it wasn't me, who made the patch, I just opened the issue. -- ___ Python tracker _

[issue11504] test_subprocess failure

2011-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Other failures on the Sparc debian buildbot (which is quite slow): == ERROR: test_wait_timeout (test.test_subprocess.ProcessTestCase) ---

[issue11562] += on list inside a tuple raises TypeError but succeds anyway

2011-03-16 Thread slav0nic
Changes by slav0nic : -- nosy: +slav0nic ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue11565] Another (the last) group of misspellings

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf94b6a73fc8 by Ezio Melotti in branch '3.1': #11565: Fix several typos. Patch by Piotr Kasprzyk. http://hg.python.org/cpython/rev/bf94b6a73fc8 -- nosy: +python-dev ___ Python tracker

[issue11565] Another (the last) group of misspellings

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc245d681901 by Ezio Melotti in branch '3.2': #11565: Merge with 3.1. http://hg.python.org/cpython/rev/dc245d681901 -- ___ Python tracker

[issue11565] Another (the last) group of misspellings

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset db73857669fb by Ezio Melotti in branch 'default': #11565: Merge with 3.2. http://hg.python.org/cpython/rev/db73857669fb -- ___ Python tracker

[issue11439] subversion keyword breakage

2011-03-16 Thread Neil Muller
Neil Muller added the comment: This also affects a number of files under Lib, including some that set their version using "$Revision$". Since I stumbled on this issue by encountering some code that checks the version string in tkinker breaking, this is an issue that can break existing code.

[issue11565] Another (the last) group of misspellings

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd8d3c2d3bce by Ezio Melotti in branch '2.7': #11565: Fix several typos. Patch by Piotr Kasprzyk. http://hg.python.org/cpython/rev/cd8d3c2d3bce -- ___ Python tracker

[issue11565] Another (the last) group of misspellings

2011-03-16 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in all the four branches, thanks for the patch! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue11568] docstring of select.epoll.register() is wrong

2011-03-16 Thread Markus Korn
New submission from Markus Korn : select.epoll.register raises an IOError for already registered fds, however the docstring says the fd gets modified: Python 2.7.1+ (r271:86832, Feb 24 2011, 15:00:15) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information.

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2011-03-16 Thread Palm Kevin
Palm Kevin added the comment: @Sridhar: Could you please provide input for the question asked by Antoine? I'd love to have this issue fixed for next Python release. -- ___ Python tracker __

[issue11243] email/message.py str conversion

2011-03-16 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Tue, Mar 15, 2011 at 04:21:24AM +, R. David Murray wrote: > Please test and let me know if it works Spending some more time on that, continuing yesterdays session where i got stuck. When i instead do (still in header.py:Header.append()):

[issue11401] email.header error during .flatten()

2011-03-16 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Tue, Mar 15, 2011 at 10:44:43PM +, R. David Murray wrote: > header with no body. (Those are the *real* dangerous ones!) -- ___ Python tracker _

[issue11569] multiprocessing/darwin: sysctl(8) mislocation

2011-03-16 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso : Hello Mac OS X gurus, multiprocessing/__init__py. searches for sysctl(8) via os.popen(), which will fail since the moist fruits provide sysctl(8) in /usr/sbin! The applied patch multiproc_sysctl.patch uses an absolute path. (This may be better anyway,

[issue11562] += on list inside a tuple raises TypeError but succeds anyway

2011-03-16 Thread Daniel Urban
Daniel Urban added the comment: The reason of this behaviour is that x += 1 basically is the same as x = x.__iadd__(1). In the tuple case: t[1] = t[1].__iadd__([6]). The __iadd__ call mutates the list, then the tuple item assignment raises the TypeError. See these examples: >>> import dis

[issue11570] Lib/test/test_distutils.py tries to mix 32 and 64 bits object files, doesn't obey LDFLAGS

2011-03-16 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : Example of faulting build: http://www.python.org/dev/buildbot/all/builders/AMD64%20OpenIndiana%203.1/builds/297 Problem: "test_distutils.py" tests the generation of shared libraries. It correctly compile the ".c" to ".o" as 64 bits, but when linking the re

[issue11562] += on list inside a tuple raises TypeError but succeeds anyway

2011-03-16 Thread SilentGhost
Changes by SilentGhost : -- title: += on list inside a tuple raises TypeError but succeds anyway -> += on list inside a tuple raises TypeError but succeeds anyway ___ Python tracker ___

[issue11569] multiprocessing/darwin: sysctl(8) mislocation

2011-03-16 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Maybe i should have used 'hg anno' first ... next time i will. This new patch always uses an absolute path. I have not looked into os.popen() yet, but i do put trust in that it makes a difference :) The reason was nonetheless: 13:29 ~/usr/opt $ python3

[issue11569] multiprocessing/darwin: sysctl(8) mislocation

2011-03-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: The patch looks fine. I'd prefer the second patch as this always uses an absolute path (I've ran into numerous problems in the past with scripts that assumed that the commands they looked for where on $PATH and were the system version instead of some local

[issue11371] Localization of error messages in getopt

2011-03-16 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: Bump! Hi Eric, there was no negative feedback for two weeks. How about commiting the patch? -- ___ Python tracker ___

[issue11569] multiprocessing/darwin: sysctl(8) mislocation

2011-03-16 Thread Jesse Noller
Jesse Noller added the comment: Ronald - if you're OK w/ patch 2, please commit! -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue10812] Add some posix functions

2011-03-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: v6 was created against an unknown mercurial repository (most likely code.python.org). It actually doesn't apply cleanly anymore so it would be best to regenerate it it (or go on with any v7 that may result out of the review). --

[issue11452] test_trace not symlink install clean

2011-03-16 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Signore Melotti, i'm making you nosy because you're the one which committed to this file last (db7385). I've tried a bit to write a patch, but my simple os.path.realpath() solution didn't work. I've got no idea of the test framework, nor of the tracer,

[issue11452] test_trace not symlink install clean

2011-03-16 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : -- nosy: -sdaoden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11569] multiprocessing/darwin: sysctl(8) mislocation

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset c394f2d42ff8 by Ronald Oussoren in branch '3.1': Issue #11569: use absolute path to the sysctl command in multiprocessing to http://hg.python.org/cpython/rev/c394f2d42ff8 New changeset b8f280d0cdbf by Ronald Oussoren in branch '2.7': Issue #11569:

[issue11569] multiprocessing/darwin: sysctl(8) mislocation

2011-03-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: Thanks for the patch. I've committed it to 2.7 as well. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior versions: +Python 2.7 ___ Python tracker

[issue858809] Use directories from configure rather than hardcoded

2011-03-16 Thread Andy Buckley
Changes by Andy Buckley : -- nosy: +andybuckley ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1294959] Problems with /usr/lib64 builds.

2011-03-16 Thread Andy Buckley
Changes by Andy Buckley : -- nosy: +andybuckley ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11243] email/message.py str conversion

2011-03-16 Thread R. David Murray
R. David Murray added the comment: Steffen, these look like different kinds of errors than the one you reported in this ticket. If they are, could you open a new issue? Either way, simple reproducers would be the most helpful. -- ___ Python track

[issue5154] OSX broken poll testing doesn't work

2011-03-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: I propose to close this as won't fix. The reason: poll on OSX does work, but fairly limited in the kinds of file descriptors it works with. The HAVE_BROKEN_POLL test is meant to detect poll implementation that don't even manage to implement the API correctly

[issue11570] Lib/test/test_distutils.py tries to mix 32 and 64 bits object files, doesn't obey LDFLAGS

2011-03-16 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: This patch is hacky, but 3.1 is in maintenance mode. This patch should be safe. It only touch SunOS compilation. It passes the testsuite, and it should allow 64 bit compilation of extension packages. This patch is not needed in 3.2 and 3.x. It only affects 3

[issue11564] pickle not 64-bit ready

2011-03-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Mar 15, 2011 at 7:05 PM, Antoine Pitrou wrote: .. > - (bugfix) raise a proper exception when an object too large for handling by > pickle is given What would be the "proper exception" here? With _pickle acceleration disabled, I get a struct.err

[issue9384] Tkinter windows pop under the terminal in OSX

2011-03-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is not a bug in python, but is generic platform behavior (as Ned noted). I'll therefore close this issue as won't fix. -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue9384] Tkinter windows pop under the terminal in OSX

2011-03-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Mar 16, 2011 at 10:18 AM, Ronald Oussoren wrote: .. > This is not a bug in python, but is generic platform behavior (as Ned noted). Maybe not a bug in tkinter proper, but certainly an unexpected behavior when running tkinter demo scripts or say t

[issue11459] Python select.select does not correctly report read readyness

2011-03-16 Thread Ross Lagerwall
Ross Lagerwall added the comment: > to get that behavior, change the =1 default to =io.DEFAULT_BUFFER_SIZE in > ross's patch. The problem is, it doesn't seem like you can import and use io.DEFAULT_BUFFER_SIZE from inside os.py. Python fails to start. You can import _io.DEFAULT_BUFFER_SIZE th

[issue9384] Tkinter windows pop under the terminal in OSX

2011-03-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: Maybe. It is definitely something that will have to be determined for every case separately and is not something that should be worked around in Tkinter itself. -- ___ Python tracker

[issue9047] Python 2.7rc2 includes -isysroot twice on each gcc command line

2011-03-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is no longer a problem on any machine I have access to, I'm therefore closing this issue. Please reopen if you still have problems on your machine, if you do so include detailed information about: OSX release, system architecture (ppc, i386), Xcode rel

[issue11571] Turtle window pops under the terminal on OSX

2011-03-16 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : If you have a large enough terminal window and run $ python -m turtle on OSX, you will see nothing because turtle screen pops under the terminal. Ned Deily suggested in msg130421 that this can be fixed by setting "-topmost" WM attribute on the root w

[issue11571] Turtle window pops under the terminal on OSX

2011-03-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Tkinter windows pop under the terminal in OSX ___ Python tracker ___ ___ Python-bu

[issue9384] Tkinter windows pop under the terminal in OSX

2011-03-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- superseder: -> Turtle window pops under the terminal on OSX ___ Python tracker ___ ___ Python-bug

[issue9384] Tkinter windows pop under the terminal in OSX

2011-03-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Mar 16, 2011 at 10:42 AM, Ronald Oussoren wrote: > It is definitely something that will have to be determined for every case >separately > and is not something that should be worked around in Tkinter itself. I agree, but I don't know how to achi

[issue11243] email/message.py str conversion

2011-03-16 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Wed, Mar 16, 2011 at 01:58:40PM +, R. David Murray wrote: > Steffen, these look like different kinds of errors than the one you reported > in this ticket. > If they are, could you open a new issue? Either way, simple reproducers > would be the

[issue11243] email/message.py str conversion

2011-03-16 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Sorry, i've forgot the test ;) -- Added file: http://bugs.python.org/file21241/11243-test.1.py ___ Python tracker ___import sys,email

[issue11571] Turtle window pops under the terminal on OSX

2011-03-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch forces the window to the front by first making the window a topmost window and then resetting that flag. Could you test if this does want you'd like it to? (The patch is for 3.3, will backport upto 2.7 when the behavior is correct) --

[issue11133] inspect.getattr_static code execution

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 382cb3386d57 by Benjamin Peterson in branch '3.2': correct patch ack (#11133) http://hg.python.org/cpython/rev/382cb3386d57 -- ___ Python tracker

[issue11562] += on list inside a tuple raises TypeError but succeeds anyway

2011-03-16 Thread Nick Coghlan
Nick Coghlan added the comment: As Daniel noted, this behaviour is in accordance with the language definition. It's obscure and surprising behaviour, but it isn't wrong. -- nosy: +ncoghlan resolution: -> invalid stage: test needed -> committed/rejected status: open -> closed

[issue7013] Httplib read routine is not tolerant to not well-formed chunked http responses.

2011-03-16 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2011-03-16 Thread Nick Coghlan
Nick Coghlan added the comment: Note that this will be fixed for 3.3, as siteconfig will be updated to use static data (generated during the build process) rather than relying on build artifacts being available at runtime. However, virtualenv (et al) will still need to provide the relevant st

[issue11133] inspect.getattr_static code execution

2011-03-16 Thread Michael Foord
Michael Foord added the comment: Thanks Daniel (and sorry Andreas). Benjamin Peterson has fixed this. -- ___ Python tracker ___ ___ P

[issue8916] Move PEP 362 (function signature objects) into inspect

2011-03-16 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon stage: -> needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___

[issue11571] Turtle window pops under the terminal on OSX

2011-03-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Mar 16, 2011 at 11:26 AM, Ronald Oussoren wrote: .. > The attached patch forces the window to the front by first making the window > a topmost window and then resetting that flag. > > Could you test if this does want you'd like it to? Yes, this w

[issue11445] python.exe on OS X shared-llbrary build erroneously linked to MacPorts python library

2011-03-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch fixes the issue by moveing LDFLAGS after BLDLIBRARY in the linking step. I'm not committing this yet though as this will affect all platforms that use Makefiles to build, and I'm not sure if this change save for all compilers we effective

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

2011-03-16 Thread Brandon Craig Rhodes
New submission from Brandon Craig Rhodes : The attached patch will bring Lib/copy.py to 100% test coverage. A bug in "coverage" results in its only reporting 99% at the moment; see coverage issue #122 on bitbucket: https://bitbucket.org/ned/coveragepy/issue/122/for-else-always-reports-missing-

[issue11513] Infinite recursion around raising an exception in tarfile

2011-03-16 Thread R. David Murray
R. David Murray added the comment: This fix reveals a second bug. Without this fix, a non-existent file raises an IOError with an appropriate error message, but with the chained exception. After this fix, it raises an error that says 'not a gzip file', which while technically true is not ve

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2011-03-16 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: [pitrou] > Can you explain why this is a problem in Python? > Can't lib/python3.2/config-3.2m/Makefile simply be > provided by virtualenv (by copying it, I guess)? Yes, I believe virtualenv already does that (or symlinks to it). Python 3.2 changed the pa

[issue11513] chained exception/incorrect exception from tarfile.open on a non-existent file

2011-03-16 Thread R. David Murray
R. David Murray added the comment: Note that the code in question was changed to the form with the bugs in 3.2, so this fix does not need to be backported to 3.1. The test could be, though. -- components: +Library (Lib) -Interpreter Core title: Infinite recursion around raising an exc

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

2011-03-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: 1. I prefer that we don't have pragma statements sprinkled over the stdlib. 2. You can use assertIs() instead of assertTrue(x is y) (Feel free to change the lot) 3. Along the way you could also change those "raise support.TestFailed" over to calling the Tes

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

2011-03-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > A bug in "coverage" results in its only reporting 99% at the moment It was concluded during discussion of issue2506 that this is not a bug. At least not a bug in "coverage" or the trace module. At most this is a peephole optimization issue or rather

[issue11560] Expand test coverage in shutil

2011-03-16 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2011-03-16 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2011-03-16 Thread Nick Coghlan
Nick Coghlan added the comment: Alexander: the coverage problem in this case has to do with it incorrectly handling an "else:" clause on a loop (it doesn't adjust the expected target for an empty sequence to be the body of the else clause) Benjamin: the pragma question is probably worth bring

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

2011-03-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/3/16 Nick Coghlan : > > Nick Coghlan added the comment: > > Alexander: the coverage problem in this case has to do with it incorrectly > handling an "else:" clause on a loop (it doesn't adjust the expected target > for an empty sequence to be the body

[issue11573] Improve Unicode Documentation with Known Caveats

2011-03-16 Thread Armin Ronacher
New submission from Armin Ronacher : The documentation should explain some of the common problems with Unicode on Python 3. * locale's affect the text default encoding * SSH clients can set the locale on a remote server * filesystem encoding is set by the SSH client as well -- co

[issue11548] Passing format= to unpack_archive fails

2011-03-16 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11574] Unicode Fallback Encoding on Python 3.3

2011-03-16 Thread Armin Ronacher
New submission from Armin Ronacher : Right now Python happily falls back to ASCII if it can not parse your LC_CTYPE or something similar happens. Instead of falling back to ASCII it would be better if it falls back to UTF-8. Alternatively it should at least give a warning that it's falling ba

[issue11574] Unicode Fallback Encoding on Python 3.3

2011-03-16 Thread Armin Ronacher
Changes by Armin Ronacher : -- assignee: -> loewis nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue11575] addresses.txt file leaks into search engines

2011-03-16 Thread Skip Montanaro
New submission from Skip Montanaro : The python.org postmaster received this email today: From: Tom Pinckney To: postmas...@python.org Subject: public email addresses Date: Wed, 16 Mar 2011 13:03:21 -0400 X-Spambayes-Classification: ham; 0.13 Kind of sucks that this file 1

[issue5870] subprocess.DEVNULL

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset eaf93e156dff by Ross Lagerwall in branch 'default': Issue #5870: Add subprocess.DEVNULL constant. http://hg.python.org/cpython/rev/eaf93e156dff -- nosy: +python-dev ___ Python tracker

[issue5870] subprocess.DEVNULL

2011-03-16 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- assignee: gregory.p.smith -> rosslagerwall resolution: -> accepted stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue1559549] ImportError needs attributes for module and file name

2011-03-16 Thread Brett Cannon
Brett Cannon added the comment: At the PyCon 2011 sprint we discussed this issue and Nick, myself, and some other people agreed that using a keyword-only argument for passing in the module name is probably a better solution. While it won't be backwards-compatible (BaseException does not accep

[issue502085] pickle problems (with Boost.Python)

2011-03-16 Thread Brandon Craig Rhodes
Brandon Craig Rhodes added the comment: Benjamin, I would like some way to know when our tests achieve 100% coverage because otherwise I will keep coming back to this module to add more tests and have to re-discover code that is not CPython relevant. But for now I have removed the pragmas.

[issue502085] pickle problems (with Boost.Python)

2011-03-16 Thread Brandon Craig Rhodes
Changes by Brandon Craig Rhodes : Removed file: http://bugs.python.org/file21245/test_copy2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue11570] Lib/test/test_distutils.py tries to mix 32 and 64 bits object files, doesn't obey LDFLAGS

2011-03-16 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Benjamin, could you possibly accept this for 3.1?. It solves a buildbot issue that cold mask othe problems. It seems pretty trivial and safe. If you approve, I will commit the patch myself. Thanks. -- assignee: -> jcea nosy: +benjamin.peterson ___

[issue502085] pickle problems (with Boost.Python)

2011-03-16 Thread Brett Cannon
Changes by Brett Cannon : -- Removed message: http://bugs.python.org/msg131148 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11548] Passing format= to unpack_archive fails

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset d1619747c17d by Nick Coghlan in branch '3.2': Close #11548: Correctly handle format argument in shutil.unpack_archive http://hg.python.org/cpython/rev/d1619747c17d New changeset e376d04539bb by Nick Coghlan in branch 'default': Merge fix for #11548

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

2011-03-16 Thread Brandon Craig Rhodes
Brandon Craig Rhodes added the comment: Benjamin, thanks for the pointers! The attached patch now uses assertIs() and assertIsNot(), and calls self.fail() instead of using the exception from "support". In the future I would like some way to determine when test coverage is fully achieved, so

[issue11548] Passing format= to unpack_archive fails

2011-03-16 Thread R. David Murray
Changes by R. David Murray : -- type: crash -> behavior versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue11560] Expand test coverage in shutil

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset b313b05221a9 by Nick Coghlan in branch '3.2': Close #11560: Improve test coverage of shutil http://hg.python.org/cpython/rev/b313b05221a9 New changeset 5b61334bb776 by Nick Coghlan in branch 'default': Merge fix for #11560 from 3.2 http://hg.python

[issue6210] Exception Chaining missing method for suppressing context

2011-03-16 Thread Armin Ronacher
Changes by Armin Ronacher : -- nosy: +aronacher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11557] Increase coverage in logging module

2011-03-16 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue1559549] ImportError needs attributes for module and file name

2011-03-16 Thread R. David Murray
R. David Murray added the comment: +1 for providing a way to autogenerate the message. -- ___ Python tracker ___ ___ Python-bugs-li

[issue11570] Lib/test/test_distutils.py tries to mix 32 and 64 bits object files, doesn't obey LDFLAGS

2011-03-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: That should be okay. 3.1 is still open for normal bugfixes. 2011/3/16 Jesús Cea Avión : > > Jesús Cea Avión added the comment: > > Benjamin, could you possibly accept this for 3.1?. It solves a buildbot issue > that cold mask othe problems. It seems pretty

[issue11576] timedelta subtraction glitch on big timedelta values

2011-03-16 Thread Enrico Zini
New submission from Enrico Zini : Hello, I was testing edge case behaviour of some code of mine and stumbled into this unexpected domain error from timedelta: >>> from datetime import * >>> timedelta(9, 86399, 99) - timedelta(9, 86399, 98) Traceback (most recent c

[issue11576] timedelta subtraction glitch on big timedelta values

2011-03-16 Thread SilentGhost
SilentGhost added the comment: To emphasize that it's only days parameter that is overflowing here is another case: >>> timedelta(9, 1, 1) - timedelta(9, 0, 0) datetime.timedelta(0, 1, 1) >>> timedelta(9, 1, 1) - timedelta(9, 1, 0) Traceback (most recent call la

[issue11576] timedelta subtraction glitch on big timedelta values

2011-03-16 Thread SilentGhost
SilentGhost added the comment: What happens is the second value is negated (__neg__) which causes it to become less than timedelta.min and that is causing OverflowError. -- components: +Library (Lib) nosy: +belopolsky ___ Python tracker

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: The same fix also works with 2.7. The attached patch is basically the same patch, but the special casing for OSX is impacts other platforms even less than before. -- Added file: http://bugs.python.org/file21247/issue11088-py27.txt __

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Arkady Koplyarov
New submission from Arkady Koplyarov : Testcase for exception binhex.Error to increase test coverage. -- components: Library (Lib), Tests files: testcase_for_binhex_module.patch keywords: patch messages: 131159 nosy: arkady.koplyarov priority: normal severity: normal status: open title:

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11557] Increase coverage in logging module

2011-03-16 Thread Natalia B. Bidart
Natalia B. Bidart added the comment: Attaching a patch that increases test coverage for logging/__init__.py by 12%. There are still a lot more to do, but this pacth is big enough. -- keywords: +patch Added file: http://bugs.python.org/file21249/pycon-issue11557.patch _

[issue11570] Lib/test/test_distutils.py tries to mix 32 and 64 bits object files, doesn't obey LDFLAGS

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset d108a7dff2a0 by Jesus Cea in branch '3.1': Close Issue 11570: Lib/test/test_distutils.py tries to mix 32 and 64 bits object files, doesn't obey LDFLAGS http://hg.python.org/cpython/rev/d108a7dff2a0 -- nosy: +python-dev resolution: -> fixe

[issue6210] Exception Chaining missing method for suppressing context

2011-03-16 Thread Matthew Barnett
Matthew Barnett added the comment: I've been looking through the list of current keywords and the best syntax I could come up with for suppressing the context is: try: x / y except ZeroDivisionError as e: raise as Exception( 'Invalid value for y' ) The rationale is tha

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Nick Coghlan
Nick Coghlan added the comment: unittest provides a utility to help with testing that correct exceptions are raised: http://docs.python.org/dev/library/unittest#unittest.TestCase.assertRaises -- ___ Python tracker

[issue11055] OS X IDLE 3.2 Save As menu accelerator opens two Save windows

2011-03-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: The double execution is definitely caused by having multiple event, one of which is a real keyboard event and the other one is a ghost one. I'm seeing calls to save_as with 2 events: the first is a ghost event, with type 35 and '??' as the keycode and keysym

[issue11055] OS X IDLE 3.2 Save As menu accelerator opens two Save windows

2011-03-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: It's getting weirder by the minute. Not only do we get multiple events, we also get additional keybindings we never asked for. *Cmd+Ctrl+S also works as save as *Cmd+Shift+S gives two save as events (as was already known) --

[issue11549] Rewrite peephole to work on AST

2011-03-16 Thread Eugene Toder
Eugene Toder added the comment: Any comments on the code so far or suggestions on how we should move forward? -- ___ Python tracker ___ _

[issue9298] binary email attachment issue with base64 encoding

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 062d09d7bf94 by R David Murray in branch '3.1': #9298: restore proper folding of base64 encoded bodies. http://hg.python.org/cpython/rev/062d09d7bf94 New changeset c34320d9095e by R David Murray in branch '3.2': Merge #9298 fix. http://hg.python.or

[issue10812] Add some posix functions

2011-03-16 Thread Ross Lagerwall
Ross Lagerwall added the comment: This new patch, updated against the tip for 3.3: Shares the iov_setup and iov_cleanup code, py_parse_off_t with sendfile(). Removes gethostid and sethostid since they're deprecated. I think I was correct with referring to utime() since I was referring to the

[issue10812] Add some posix functions

2011-03-16 Thread Ross Lagerwall
Ross Lagerwall added the comment: Forgot to attach the patch -- Added file: http://bugs.python.org/file21250/10812_v7.patch ___ Python tracker ___ __

[issue9298] binary email attachment issue with base64 encoding

2011-03-16 Thread R. David Murray
R. David Murray added the comment: I talked with Barry, who could find no relevant discussions in his email logs. We decided that _bencode was misguided in the first place (this is reinforced by the bug I fixed a year ago where email was stripping the final newline off a body *after* decodin

  1   2   >