[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the 'import io' at os.popen() runtime.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.urlretrieve("http://www.python.org";)'
/home/jeff/cpython/Lib/socket.py:340: ResourceWarning: unclosed 
  self._sock = None
[64388 refs]
[jeff@martian cpython]$ 

The close method of Socket.SocketIO simply sets the underlying socket object to 
None, which causes that warning.  Explicitly calling the close method on the 
underlying socket clears that up (and it's protected by that reference counter).

The _decref_socketios just drops the internal ref count and never actually 
closes -- it won't unless self.__closed is True. 

So, when self._sock is set to None, that error bubbles up. As SocketIO is the 
foundation used in socket.makefile, I think just adding that close call ought 
to be correct.

I can do the simple patch if you agree.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 done if you think it's a good idea.

Since this fix didn't affect regrtest, another issue for it might be necessary 
too.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

Add width formatter for %u, %i, %x, %d
Add width and precision formatter for %s
Add %lld and %llu support.

It copies the same idea from #10829: add the parse_format_flags() function.

--
components: Interpreter Core
files: pybytes_fromformatv.diff
keywords: patch
messages: 131218
nosy: ysj.ray
priority: normal
severity: normal
status: open
title: Add width and precision formatters to PyBytes_FromFormatV()
versions: Python 3.3
Added file: http://bugs.python.org/file21261/pybytes_fromformatv.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 normal 
startTest / stopTest cycle. 

I think the answer is to have the stdout manipulation done in separate result 
methods (called by stopTest / startTest) that can also be called by the suite 
around the setup / teardown of class and module.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: normal
stage: needs patch
status: open
title: python 2.5 does not build from hg - looks for subversion keywords
type: compile error
versions: Python 2.5
Added file: http://bugs.python.org/file21259/make-error.log

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 space should not be used, since it should in fact be 
an encoded word.

The documentation for make_header says it takes a list produced by 
decode_header.  decode_header will never produce two ('xxx', None) tuples in a 
row.  It could produce a tuple with us-ascii preceeded or followed by one with 
None, but that would be only if the us-ascii one really was an encoded word, 
and so encoded word spacing rules should be followed.

However, the current quirks are of such long standing that I don't think it is 
a good idea to fix them.  The broken behavior won't be encountered in any 
reasonable email, and changing the behvior is much more likely to break 
existing oddball uses of the interface than it is to fix bugs in such uses.

We'll fix this to work right in email6.

--
resolution:  -> rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 yesterday, patches on Rietveld are vs. ab45c4d0b6ef

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 fix from 3.2.
http://hg.python.org/cpython/rev/82ecfcd31250

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 binhex(inp,out) as a result of 
BinHex.__init__() and so need remain open until binhex(inp,out) close it 
explicitly.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/file21255/SimpleHTTPServer-fix-2.7.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 in to the constructor of Header, and then it 
encodes it as an encoded word in whatever character set you tell it to use.

The make_header(decode_header(stuff)) would theoretically return stuff, except 
that as you can see if stuff is non-ascii (or a Header), it won't work.  If you 
are handling 'dirty' data, you have to stick to the binary interfaces, as 
discussed.  Header needs a binary interface, but it doesn't have one (yet?).

Yes, this interface is not an optimal interface.  That's what email6 is about :)

So, absent a minimal failing test case, I'm going to commit the patch.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://bugs.python.org/file21254/test_vformat_assert.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 amounts of memory.
This issue affects cPickle as well, I believe, as well cStringIO that uses 
pickle too, I believe.

So, what are your plans/thoughts - would there be any action on fixing this 
problem in the near future? I think I grasp the extent of changes that need to 
be made to Python code, but I think this issue will have to bee addressed 
soonoer or later anyhow.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 practice used for the present kind of error. Examples:
- "signed short integer is less than minimum"
- "%c arg not in range(0x11)"
- "size does not fit in an int"
- "module name is too long"
- "modification time overflows a 4 byte field"
- "range too large to represent as a range_iterator"
- "Python int too large to convert to C size_t"
(at this point I am bored of pasting examples but you get the point)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

I suggest that struct should be fixed so that 
struct.unpack(fmt,struct.pack(fmt,v)) == v and format is something like '!f'.

This can be done in C code (I do it) for IEEE 754 floats.

At the very list this unexpected behavior should be documented in struct.

--
nosy: +Robert.Withrow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.  OverflowError is a subclass of ArithmeticError and
is raised when result of an arithmetic operation cannot be represented
by the python type.   For example,

Traceback (most recent call last):
  File "", line 1, in 
OverflowError: (34, 'Result too large')

I don't think failing pickle dump should raise an ArithmeticError.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 gets raised when some
user-supplied value exceeds some internal limit.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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_tmp2'>
  callableObj(*args, **kwargs)
1 test OK.
-
The resource leakage occurs in module binhex.py in binhex(inp,out) > 
BinHex.__init__() > _writeinfo() when the exception binhex.Error is raised in 
_writeinfo() at the code line:
raise Error('Filename too long')
The issue is that when the exception is thrown the file is left unclosed.

One of possible fixes is to catch the thrown exception and close the unclosed 
file in the BinHex.__init__().

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/cpython/rev/2de45ced8291

New changeset e318d84efe6e by R David Murray in branch 'default':
Merge #11401 fix from 3.2.
http://hg.python.org/cpython/rev/e318d84efe6e

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 what timing-related issues influence the
strategy for fixing this bug.

--
keywords: +patch
nosy: +michael.henry, r.david.murray
versions: +Python 3.2, Python 3.3
Added file: http://bugs.python.org/file21253/timeit_issue_5633.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:  -> committed/rejected
status: open -> closed
versions: +Python 3.2, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/cpython/rev/2f443a200b8c

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 "stable" builder set.

Indeed, because they are not stable enough :)
But they can all be viewed here:
http://www.python.org/dev/buildbot/all/waterfall?category=3.x.stable&category=3.x.unstable
Also, you can use bbreport to get a convenient view from the command
line: http://code.google.com/p/bbreport/

Thank you!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the issue is that the builders are slow and also heavily 
loaded, so processes just don't get to start up as quick as we'd like them too.

It might be worth adding some plumbing to have the child process signal the 
parent when it's initialized, but that seems like it's going to add a whole 
bunch more complexity to the test.

Will close in a few days if there are no more broken buildbots.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 issues, and also possibly undesired behaviour.

Endly, I don't think this is a critical issue at all.

--
priority: critical -> normal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 archive of mail digests which contain many 
bad mails (this is why you need the postman in the end, it'll 
split the archives up for you). 
This is something you could stick around with for a while :) 
If you want all or parts of that, post and you have it tomorrow.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
keywords: patch
messages: 131171
nosy: michael.henry, r.david.murray
priority: normal
severity: normal
status: open
title: Increase test coverage for timeit.py
Added file: http://bugs.python.org/file21251/timeit_unit_test.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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* decoding it).  So I've committed Yves' fix.  Thanks, Yves.

--
resolution:  -> fixed
stage: test needed -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
python function, os.utime().

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/cpython/rev/c34320d9095e

New changeset de2cd04e5101 by R David Murray in branch 'default':
Merge #9298 fix.
http://hg.python.org/cpython/rev/de2cd04e5101

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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. The second one seems to be the real 
event with type 2, keysym 'S' and keycode 65651.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 that it's saying "forget about the original exception (if 
any), raise _as though_ this is the original exception".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: testcase for exception binhex.Error
versions: Python 2.7
Added file: http://bugs.python.org/file21248/testcase_for_binhex_module.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 last):
  File "", line 1, in 
timedelta(9, 1, 1) - timedelta(9, 1, 0)
OverflowError: days=-10; must have magnitude <= 9

--
nosy: +SilentGhost
versions: +Python 3.2, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 call last):
File "", line 1, in ?
  OverflowError: days=-10; must have magnitude <= 9
  >>>

The expected result is of course timedelta(0, 0, 1):

  >>> timedelta(9, 86399, 98) + timedelta(0, 0, 1)
  datetime.timedelta(9, 86399, 99)

Both time deltas are within the range documented in
/usr/share/doc/python-doc/html/lib/datetime-timedelta.html

I could reproduce it on 2.6.6 and 3.1.3. I don't have access to other python 
versions.


Ciao,

Enrico


Note: I reported it 4 years ago in the Debian BTS 
(http://bugs.debian.org/408872) but I noticed now that the Debian maintainer 
doesn't seem to have bothered forwarding it here :(

--
messages: 131155
nosy: enrico
priority: normal
severity: normal
status: open
title: timedelta subtraction glitch on big timedelta values
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 trivial and safe.
>
> If you approve, I will commit the patch myself.
>
> Thanks.
>
> --
> assignee:  -> jcea
> nosy: +benjamin.peterson
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >