[issue11442] list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset e9724d7abbc2 by Senthil Kumaran in branch '2.5': Fix issue11442 - Add a charset parameter to the Content-type to avoid XSS attacks. http://hg.python.org/cpython/rev/e9724d7abbc2 -- nosy: +python-dev ___

[issue11567] http.server error message format

2011-03-16 Thread Gennadiy Zlobin
Gennadiy Zlobin added the comment: Hi guys, this is my first patch for the Python interpreter. Hope it is ok, but if it is not, be sure to comment and I'll fix it ASAP -- keywords: +patch Added file: http://bugs.python.org/file21262/11567.patch ___ P

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

2011-03-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: yeah i figured importing io from os at the top level might be a problem. it is not important for the default to be that exact value, even something safely on the small side like 512 will work. but we could just have the default be set in the code by doing

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, go ahead with the patch. -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mail

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-16 Thread Jeff McNeil
Jeff McNeil added the comment: So, I've been meaning to get more into contributing back to Python and I found this one somewhat interesting. As it turns out, even the following simple script raises the same warning: [jeff@martian cpython]$ ./python -c 'import urllib.request; urllib.request.

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2011-03-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1681333] email.header unicode fix

2011-03-16 Thread Tokio Kikuchi
Tokio Kikuchi added the comment: OK. I understand but slightly disappointed because four years have passed since this issue was raised and these years are included in the 'such long standing' period. -- ___ Python tracker

[issue10535] Enable warnings by default in unittest

2011-03-16 Thread Ezio Melotti
Ezio Melotti added the comment: Brian's patch is not yet applied afaik, but I couldn't see the warnings here, so it might be something specific to Windows. Brian, can you confirm if you still see the problem? Changing the warning type (to UnittestWarning) and the error message can still be d

[issue10535] Enable warnings by default in unittest

2011-03-16 Thread Michael Foord
Michael Foord added the comment: Does Brian's patch still need applying? (Can this be closed?) -- ___ Python tracker ___ ___ Python-b

[issue11567] http.server error message format

2011-03-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: go ahead. please submit a patch. -- assignee: -> orsenthil nosy: +orsenthil type: performance -> behavior versions: +Python 3.3 ___ Python tracker __

[issue11567] http.server error message format

2011-03-16 Thread gennad
gennad added the comment: I take this issue -- nosy: +gennad ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11580] Add width and precision formatters to PyBytes_FromFormatV()

2011-03-16 Thread Ray.Allen
New submission from Ray.Allen : By working on some PyUnicode_FromFormatV() related issue(#7330, #10829), I found some same problems with PyBytes_FromFormatV(): It doesn't support width formatter for %u, %i, %x, %d, %s, also it doesn't support %lld and %llu. Attached patch fix the problem: Ad

[issue10979] setUpClass exception causes explosion with "-b"

2011-03-16 Thread Michael Foord
Michael Foord added the comment: Thanks for finding this Brandon. The same problem probably exists for setupmodule and the teardown variants too. The issue is that the sys.stdout manipulation is done by result.startTest but setUpClass and setUpModule are executed by the suite outside the norm

[issue11579] python 2.5 does not build from hg - looks for subversion keywords

2011-03-16 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- keywords: +patch Added file: http://bugs.python.org/file21260/ignore_subversion_keywords.diff ___ Python tracker ___ _

[issue11579] python 2.5 does not build from hg - looks for subversion keywords

2011-03-16 Thread Senthil Kumaran
New submission from Senthil Kumaran : Here is the make log and a patch to ignore looking for subversion keyword and assume some defaults (same is done in 2.6 + higher). -- components: Installation files: make-error.log messages: 131216 nosy: loewis, orsenthil priority: normal severity:

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-16 Thread Jeff McNeil
Changes by Jeff McNeil : -- nosy: +mcjeff ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue3851] IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered.

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 664a129c01f7 by Kurt B. Kaiser in branch '2.7': toggle non-functional when NumLock set. http://hg.python.org/cpython/rev/664a129c01f7 -- nosy: +python-dev ___ Python tracker

[issue11549] Rewrite peephole to work on AST

2011-03-16 Thread Eugene Toder
Eugene Toder added the comment: Just for fun I've run pystones. W/o my changes it averages to about 70k, with my changes to about 72.5k. -- ___ Python tracker ___ _

[issue1681333] email.header unicode fix

2011-03-16 Thread R. David Murray
R. David Murray added the comment: I'm rejecting this. There is more than one bug here, but it starts with the fact that ('xxx', None) is treated the same as ('xxx', 'us-ascii'). In the first case it would be nice if a space was used to separate two of them in a row. In the second case a s

[issue11477] Bug in code dispatching based on internal slots

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

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Nick Coghlan
Nick Coghlan added the comment: Well, there and in the named diff file on here, of course. -- ___ Python tracker ___ ___ Python-bugs-

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Nick Coghlan
Nick Coghlan added the comment: The draft code is now only on the "respect_LHS_precedence" branch of my sandbox repository. -- ___ Python tracker ___ __

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Martin v . Löwis
Changes by Martin v. Löwis : Added file: http://bugs.python.org/file21258/f1bd5468dae6.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Martin v . Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file21257/f1bd5468dae6.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Martin v . Löwis
Changes by Martin v. Löwis : Added file: http://bugs.python.org/file21257/f1bd5468dae6.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Martin v . Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file21256/f1bd5468dae6.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Martin v . Löwis
Changes by Martin v. Löwis : Added file: http://bugs.python.org/file21256/f1bd5468dae6.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Martin v . Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file21217/b9b7d4c10bc4.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue11549] Rewrite peephole to work on AST

2011-03-16 Thread Eugene Toder
Eugene Toder added the comment: I've updated patches on Rietveld with some small changes. This includes better code generation for boolops used outside of conditions and cleaned up optimize_jumps(). This is probably the last change before I get some feedback. Also, I forgot to mention yesterda

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

2011-03-16 Thread Novimir Pablant
Novimir Pablant added the comment: I agree with Gregory that fixing this in 3.1 and 3.2 is the way to go. Otherwise I would suggest changing the documentation to match the behavior. -- ___ Python tracker ___

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c2d15c6007e by Nick Coghlan in branch '3.2': Close #11577: Improve binhex test coverage and fix ResourceWarning http://hg.python.org/cpython/rev/5c2d15c6007e -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status:

[issue11243] email/message.py str conversion

2011-03-16 Thread R. David Murray
R. David Murray added the comment: I'm closing this issue. If you have a specific test case that is still failing, please open a new issue. And thanks for testing this fix. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed

[issue11243] email/message.py str conversion

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 74a8c46fb272 by R David Murray in branch '3.2': #11243: tests and fixes for handling of 'dirty data' in additional methods http://hg.python.org/cpython/rev/74a8c46fb272 New changeset 82ecfcd31250 by R David Murray in branch 'default': Merge #11243

[issue11442] list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header

2011-03-16 Thread Guido van Rossum
Guido van Rossum added the comment: Looks good, this should be committed to the 2.5 branch first, then merged to 2.6, then to 2.7. -- ___ Python tracker ___

[issue10979] setUpClass exception causes explosion with "-b"

2011-03-16 Thread Michael Foord
Changes by Michael Foord : -- versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2011-03-16 Thread Michael Foord
Michael Foord added the comment: Fixes backported to assertItemsEqual in 2.7. -- resolution: -> fixed stage: -> committed/rejected ___ Python tracker ___ _

[issue11574] Unicode Fallback Encoding on Python 3.3

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

[issue4114] struct returns incorrect 4 byte float

2011-03-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: Robert: Can you please suggest an algorithm that would have given the result you expect (preferably as a C program, using a string literal as its input, for some platform)? Ideally, we would stick to the example given by the OP. -- _

[issue11573] Improve Unicode Documentation with Known Caveats

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

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset d8eaeee1c063 by Michael Foord in branch '2.7': Issue #10242: backport of more fixes to unittest.TestCase.assertItemsEqual http://hg.python.org/cpython/rev/d8eaeee1c063 -- nosy: +python-dev ___ Python tra

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Arkady Koplyarov
Arkady Koplyarov added the comment: Well, I believe that in BinHex.__init__() I cannot just wrap the _writeinfo call into a try-finally block, and close ofp in the finally. I see that in the case of normal operation when the exception is not thrown, the output file descriptor ofp is used in b

[issue11442] list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header

2011-03-16 Thread Tom N
Tom N added the comment: I have backported the code from python 3, to apply to the current 2.7 branch. All tests pass, and my machine reports "Content-type: text/html; charset=UTF-8", which appears to be correct. -- keywords: +patch nosy: +Tom.N Added file: http://bugs.python.org/file

[issue11243] email/message.py str conversion

2011-03-16 Thread R. David Murray
R. David Murray added the comment: Steffen, what you are doing in 11243-test is not something that the current email package supports. String input to message_as_string must be ASCII only in email 5.1/python3.2. Likewise for decode_header. To get unicode in to a header, you have to pass it

[issue11505] string.py increased test coverage

2011-03-16 Thread Jérôme Radix
Jérôme Radix added the comment: There seems to be a small problem with parameters when calling _vformat. Your test is OK because _vformat raises an exception before using those parameters. See test_vformat_assert.patch for a correction proposal. -- nosy: +jerome.radix Added file: http

[issue6863] Wrong linker command if CXX set to "ccache g++"

2011-03-16 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11564] pickle not 64-bit ready

2011-03-16 Thread Nik Galitsky
Nik Galitsky added the comment: Thank you all for your responses. While getting the meaningful error message in this case is very important, the main thing for us is to somehow fix this problem to allow larger objects serialization which is not at all uncommon on a 64-bit machines with large

[issue11549] Rewrite peephole to work on AST

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

[issue4114] struct returns incorrect 4 byte float

2011-03-16 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue11564] pickle not 64-bit ready

2011-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't think so. OverflowError is a subclass of ArithmeticError and > is raised when result of an arithmetic operation cannot be represented > by the python type. For example, If you grep for OverflowError in the C code base, you'll see that it is in prac

[issue4114] struct returns incorrect 4 byte float

2011-03-16 Thread Robert Withrow
Robert Withrow added the comment: I have to disagree. It seems entirely reasonable to expect that unpack should return the same value passed to pack. That it doesn't (as of 2.6.5 at least) is completely unexpected and undocumented. And yes I understand the limitations of floating point num

[issue11557] Increase coverage in logging module

2011-03-16 Thread Vinay Sajip
Changes by Vinay Sajip : -- nosy: +drakeol ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11557] Increase coverage in logging module

2011-03-16 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: -> vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue11575] addresses.txt file leaks into search engines

2011-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I've asked the website team to see if they can adjust the robots.txt > file Is there a problem with the robots.txt? It already disallows all robots. If Google ignores the robots.txt, then someone should complain to Google. -- nosy: +georg.brandl, pit

[issue11564] pickle not 64-bit ready

2011-03-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Mar 16, 2011 at 6:59 PM, Antoine Pitrou wrote: .. >> >> What would be the "proper exception" here? > > OverflowError. This is the exception that gets raised when some > user-supplied value exceeds some internal limit. I don't think so. OverflowE

[issue11564] pickle not 64-bit ready

2011-03-16 Thread Antoine Pitrou
Antoine Pitrou 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? OverflowError. This is the exception that get

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread SilentGhost
SilentGhost added the comment: Arkady, I don't see why you need to catch exception. Just wrap the _writeinfo call into a try-finally block, and close ofp in the finally. -- nosy: +SilentGhost ___ Python tracker _

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2011-03-16 Thread Michael Foord
Michael Foord added the comment: I need to check that the implementation has been backported to 2.7 completely / correctly. Raymond made some changes (output format and a bugfix) that may not have been backported yet. -- ___ Python tracker

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Arkady Koplyarov
Arkady Koplyarov added the comment: The testcase provided shows up a resource leakage: - C:\_cpython\cpython>PCbuild\python_d.exe -m test.regrtest test_binhex [1/1] test_binhex C:\_cpython\cpython\lib\unittest\case.py:574: ResourceWarning: unclosed file <_io.BufferedWriter name='@test_5592

[issue11578] Increase test coverage for timeit.py

2011-03-16 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

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

2011-03-16 Thread R. David Murray
R. David Murray added the comment: OK, now this bit works like it did in Python2. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

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

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9c3cfd36b58 by R David Murray in branch '3.1': #11401: handle headers with no value. http://hg.python.org/cpython/rev/d9c3cfd36b58 New changeset 2de45ced8291 by R David Murray in branch '3.2': Merge #11401 fix from 3.1. http://hg.python.org/cpytho

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

2011-03-16 Thread Florent Xicluna
Florent Xicluna added the comment: Duplicate of #900744 -- resolution: -> duplicate status: open -> closed superseder: -> catch invalid chunk length in httplib read routine ___ Python tracker

[issue11578] Increase test coverage for timeit.py

2011-03-16 Thread Michael Henry
Michael Henry added the comment: Issue #5633 contains two additional unit tests that can't be added until that ticket's bug is fixed. -- nosy: +rhettinger resolution: accepted -> status: closed -> open ___ Python tracker

[issue900744] catch invalid chunk length in httplib read routine

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

[issue5633] fix for timeit when the statment is a string and the setup is not (and tests)

2011-03-16 Thread Michael Henry
Michael Henry added the comment: Issue #11578 added unit tests for timeit.py. Because of this bug, two tests were omitted. In the attached patch are the previously withheld unit tests and an alternate method of fixing the bug (developed before Tim's fix was noticed). It's not clear to me wha

[issue4492] httplib code thinks it closes connection, but does not

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

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Arkady Koplyarov
Arkady Koplyarov added the comment: The testcase updated accordingly to Nick Coghlan's suggestion to use assertRaises() since the testcase deals with an exception. -- Added file: http://bugs.python.org/file21252/testcase_for_binhex_module_2.patch __

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-03-16 Thread Tim Golden
Tim Golden added the comment: Patch fixes the issue and tests run ok on 3.3 Win7; just building a 2.7 branch to test -- ___ Python tracker ___ _

[issue11578] Increase test coverage for timeit.py

2011-03-16 Thread R. David Murray
R. David Murray added the comment: We commented out a few of the tests because they took too long to run due to the large default loop count. timeit would have to be further modified to support testing the default, which probably isn't worth it. -- resolution: -> accepted stage: ->

[issue11578] Increase test coverage for timeit.py

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 628a3679dc14 by R David Murray in branch '3.2': #11578: add unit tests for timeit module. http://hg.python.org/cpython/rev/628a3679dc14 New changeset 2f443a200b8c by R David Murray in branch 'default': Merge #11578 test from 3.2. http://hg.python.o

[issue11504] test_subprocess failure

2011-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Thanks for spotting these. Is there an easier way for me to be > notified if these particular tests fail? Not really. There is no infrastructure to notify test failures to specific e-mails depending on which test failed. > Some of these are not in the "st

[issue11503] Expand test coverage in posixpath

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset f11da6cecffd by Michael Foord in branch '3.2': Closes issue 11503. Improves test coverage of posixpath. http://hg.python.org/cpython/rev/f11da6cecffd -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejected statu

[issue11504] test_subprocess failure

2011-03-16 Thread Reid Kleckner
Reid Kleckner added the comment: :( Thanks for spotting these. Is there an easier way for me to be notified if these particular tests fail? Some of these are not in the "stable" builder set. Sorry to leave the builders broken for so long. I just upped the timeouts to 3 seconds. I guess t

[issue11439] subversion keyword breakage

2011-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: "version numbers", not "verbose numbers", sorry. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue11439] subversion keyword breakage

2011-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: These "verbose numbers" don't seem to serve a purpose, they should simply be removed (or replaced by a static, non-moving number higher than the highest svn rev). The keyword extension is generally frown upon, because it introduces complexity, performance is

[issue11243] email/message.py str conversion

2011-03-16 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: David, it's so hard to tell! If you want a big fat thing that misuses your code, try out my S-Postman (it's on Bitbucket and no URL from me and you need tip). And i could post you a small config and the EMAIL breaking patch for it and a 430KB TBZ arch

[issue11439] subversion keyword breakage

2011-03-16 Thread Stefan Krah
Stefan Krah added the comment: I've also looked at the keyword extension, but for example HeadURL does not seem to be supported by default: http://comments.gmane.org/gmane.comp.version-control.mercurial.devel/31214 -- ___ Python tracker

[issue11549] Rewrite peephole to work on AST

2011-03-16 Thread Nick Coghlan
Nick Coghlan added the comment: I've been focusing on softer targets during the sprints - I'll dig into this once I'm back home and using my desktop machine again. -- ___ Python tracker __

[issue11578] Increase test coverage for timeit.py

2011-03-16 Thread Michael Henry
New submission from Michael Henry : The timeit.py module has no specific tests. The attached patch adds Lib/test/test_timeit.py for unit testing, along with slight modifications to timeit.py to support predictable unit testing. -- components: Library (Lib) files: timeit_unit_test.patch

[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

[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 ___ __

[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

[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

[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 ___ _

[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) --

[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

[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

[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

[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

[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 _

[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

[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 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:

[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 __

[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

[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 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

[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

[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

[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.

  1   2   >