[issue9160] Documentation link of 3.2 not working at docs.python.org

2010-07-05 Thread Georg Brandl

Georg Brandl  added the comment:

3.1.1 docs are fixed.  Development docs will be rebuilt soon automatically; 
after that everything should work again.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue9136] RuntimeError when profiling Decimal

2010-07-05 Thread Mark Dickinson

Mark Dickinson  added the comment:

> I don't quite understand the point of catching NameError here

So that the initialization of DefaultContext itself doesn't fail.

--

___
Python tracker 

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



[issue9161] add_option in optparse no longer accepts unicode string

2010-07-05 Thread Craig McQueen

Craig McQueen  added the comment:

To further explain, I had code e.g.:

parser.add_option(u'-s', u'--seqfile', dest='seq_file_name', help=u'Write 
sequence file output to FILE', metavar=u'FILE')

I had to remove the unicode designator for the first parameter:
parser.add_option('-s', u'--seqfile', dest='seq_file_name', help=u'Write 
sequence file output to FILE', metavar=u'FILE')

On further investigation, it looks as though the optparse module has other 
problems with Unicode: e.g. if I try to set a non-ASCII parameter on the 
command line e.g.:
myprog.py -本
Then optparse can't handle that--it gets an encoding error on line 1396.

What _does_ work is that an option's parameters can be Unicode:
myprog.py -s 本.txt

So I guess there are broader problems than the specific 2.6 to 2.7 change that 
I originally reported.

--

___
Python tracker 

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



[issue9163] test_gdb fails

2010-07-05 Thread Michael Blume

New submission from Michael Blume :

After building Python 2.7 on two separate X68 Ubuntu boxes, test_gdb failed 
both times.

./configure
make
make test

output follows:


test_gdb
test test_gdb failed -- Traceback (most recent call last):
  File "/home/mike/workspace/Python-2.7/Lib/test/test_gdb.py", line 637, in 
test_basic_command
''')
  File "/home/mike/workspace/Python-2.7/Lib/test/test_gdb.py", line 163, in 
assertMultilineMatches
msg='%r did not match %r' % (actual, pattern))
AssertionError: 'Breakpoint 1 at 0x80957d6: file Objects/object.c, line 
329.\n[Thread debugging using libthread_db enabled]\n\nBreakpoint 1, 
PyObject_Print (op=42, fp=0x401cf4e0, flags=1) at 
Objects/object.c:329\n329\t{\n#3 Frame 0x81e322c, for file 
/home/mike/workspace/Python-2.7/Lib/test/gdb_sample.py, line 10, in baz 
(args=(1, 2, 3))\nprint(42)\n#7 (unable to read python frame 
information)\n#10 Frame 0x81d5544, for file 
/home/mike/workspace/Python-2.7/Lib/test/gdb_sample.py, line 7, in bar (a=1, 
b=2, c=3)\nbaz(a, b, c)\n#13 Frame 0x81d53dc, for file 
/home/mike/workspace/Python-2.7/Lib/test/gdb_sample.py, line 4, in foo (a=1, 
b=2, c=3)\nbar(a, b, c)\n' did not match '^.*\n#[0-9]+ Frame 0x[0-9a-f]+, 
for file .*gdb_sample.py, line 7, in bar \\(a=1, b=2, c=3\\)\nbaz\\(a, b, 
c\\)\n#[0-9]+ Frame 0x[0-9a-f]+, for file .*gdb_sample.py, line 4, in foo 
\\(a=1, b=2, c=3\\)\nbar\\(a, b, c\\)\n#[0-9]+ Frame 0x[0-9a-f]+, for file 
.*gdb_sample.py, line 12, in 
  \\(\\)\nfoo\\(1, 2, 3\\)\n'

machines have the following packages installed, with the following versions:
gdb 7.1-1ubuntu2
libgdb-dev 7.1-1ubuntu2

--
components: Tests
messages: 109311
nosy: Michael.Blume
priority: normal
severity: normal
status: open
title: test_gdb fails
versions: Python 2.7

___
Python tracker 

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



[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-07-05 Thread Brett Cannon

Brett Cannon  added the comment:

On Sun, Jul 4, 2010 at 22:40, Éric Araujo  wrote:
>
> Éric Araujo  added the comment:
>
> Sorry if I was unclear. Out of the four points I listed, this patch only did 
> the refactoring (4). I have another patch to add and use a check_pep7 
> function, I’ll refresh it and post it.

You were clear, I just prematurely closed it by accident.

--

___
Python tracker 

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



[issue9163] test_gdb fails

2010-07-05 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

Dave, can you please take a look?

--
assignee:  -> dmalcolm
nosy: +dmalcolm, loewis

___
Python tracker 

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



[issue9164] 2.7 sysconfig should handle arch duplicates

2010-07-05 Thread Jyrki Wahlstedt

New submission from Jyrki Wahlstedt :

Hi,
in building Python 2.7 (using MacPorts)I end up in a situation that the build 
stops in sysconfig.py due to duplicate arch args on compile line. Compiling 
stops, because there is no way to find machine value from ('i386', 'i386', 
'x86_64', 'x86_64'). The duplicates should be removed so that 
findall-sort-tuple would give only the unique values.

--
components: Build
messages: 109314
nosy: jyrkiwahlstedt
priority: normal
severity: normal
status: open
title: 2.7 sysconfig should handle arch duplicates
type: compile error
versions: Python 2.7

___
Python tracker 

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



[issue9091] str.capitalize() should not lower the rest of the string

2010-07-05 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Fixed it in r82570.

Hyper linking lowered was leading to something like str.lower ed.  So, I simply 
left it.

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



[issue9162] License for multiprocessing files

2010-07-05 Thread Éric Araujo

Éric Araujo  added the comment:

Third-party code contributed to the stdlib is covered by an agreement that 
allows PSF to use it under PSF license. Comments in multiprocessing files can 
just be removed (this happened for argparse some time ago). Thanks for noticing 
this!

--
keywords: +easy
nosy: +merwok
resolution:  -> accepted
stage:  -> needs patch

___
Python tracker 

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



[issue9161] add_option in optparse no longer accepts unicode string

2010-07-05 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +merwok
stage: unit test needed -> 
type: behavior -> 

___
Python tracker 

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



[issue9161] add_option in optparse no longer accepts unicode string

2010-07-05 Thread Éric Araujo

Changes by Éric Araujo :


--
stage:  -> unit test needed
type:  -> behavior

___
Python tracker 

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



[issue834840] Unhelpful error message from cgi module

2010-07-05 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +orsenthil

___
Python tracker 

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



[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-05 Thread Éric Araujo

Changes by Éric Araujo :


--

___
Python tracker 

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



[issue9091] str.capitalize() should not lower the rest of the string

2010-07-05 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Updated the docstrings in r82573.

--

___
Python tracker 

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



[issue9162] License for multiprocessing files

2010-07-05 Thread Stefan Krah

Stefan Krah  added the comment:

Éric, I don't think it's that simple. The author still has the copyright,
even if he licensed the files under the contributor agreement.

At the very least you have to leave his name and copyright notice.

--
nosy: +skrah

___
Python tracker 

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



[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2010-07-05 Thread Geoffrey Bache

Changes by Geoffrey Bache :


--
nosy: +gjb1002

___
Python tracker 

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



[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-05 Thread Demur Rumed

Demur Rumed  added the comment:

I've fixed the segfaulting in IN and NOT_IN, though the code requires cleaning 
due to the obtusely cargo culted nature of those opcodes

I'm also including an incrementation which completely removes COMPARE_OP, using 
the opcode to determine the comparison type. As a result, I found it safe to 
remove the PyCmp_ enum, though cpickle seems to disagree. It's also lacking 
performance wise

--
Added file: http://bugs.python.org/file17866/cmpoprotdupalluny.diff

___
Python tracker 

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



[issue9153] Run tests and demos as part of the test suite

2010-07-05 Thread Nick Coghlan

Nick Coghlan  added the comment:

Yep, a sanity check for these is a good idea, and doing it soon gives us plenty 
of time to work out the kinks with it before 3.2a1.

It will also let us identify which ones are completely busted by the switch to 
Python 3 (syntax errors) and which have other issues (self-test failures).

--
nosy: +ncoghlan
resolution:  -> accepted

___
Python tracker 

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



[issue7962] Demo and Tools need to be tested and pruned

2010-07-05 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



[issue4679] Fork + shelve causes shelve corruption and backtrace

2010-07-05 Thread R. David Murray

R. David Murray  added the comment:

Also note that bsddb's version was bumped in 2.7, so this bug may indeed be out 
of date.  Alex, if you can't reproduce it (or don't have any desire to try to 
do so), we will close this as out of date.

--
nosy: +jcea, r.david.murray
status: open -> pending

___
Python tracker 

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



[issue3461] smtplib does not fully support IPv6 in EHLO

2010-07-05 Thread R. David Murray

Changes by R. David Murray :


--
stage:  -> unit test needed

___
Python tracker 

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



[issue3461] smtplib does not fully support IPv6 in EHLO

2010-07-05 Thread R. David Murray

Changes by R. David Murray :


--
versions: +Python 3.2

___
Python tracker 

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



[issue3461] smtplib does not fully support IPv6 in EHLO

2010-07-05 Thread R. David Murray

Changes by R. David Murray :


--
versions: +Python 2.7

___
Python tracker 

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



[issue3268] Cleanup of tp_basicsize inheritance

2010-07-05 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Thanks. r82577.

--
nosy: +benjamin.peterson
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue8470] Let cmd.cmd.intro be unicode friendly

2010-07-05 Thread R. David Murray

R. David Murray  added the comment:

If someone wants to try arguing that this is a bug fix (and can provide a patch 
that does not change existing behavior), then we could reopen it, but as a 
feature request it is closed for 2.7.

--
components: +Library (Lib)
nosy: +r.david.murray
resolution:  -> out of date
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



[issue9165] Add math.isfinite()

2010-07-05 Thread Benjamin Peterson

New submission from Benjamin Peterson :

It would be equivalent to "not isinf(x) and not isnan(x)".

--
components: Extension Modules
messages: 109324
nosy: benjamin.peterson
priority: low
severity: normal
status: open
title: Add math.isfinite()
versions: Python 3.2

___
Python tracker 

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



[issue2675] Curses terminal resize problems when Python is in interactive mode

2010-07-05 Thread R. David Murray

R. David Murray  added the comment:

Well, I can run it, but I have no idea what it is telling me or how it 
demonstrates a bug.  Pavel, is this still a problem in 2.6/2.7?

--
components: +Extension Modules -None
nosy: +akuchling, r.david.murray
stage:  -> unit test needed

___
Python tracker 

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



[issue9165] Add math.isfinite()

2010-07-05 Thread Mark Dickinson

Mark Dickinson  added the comment:

+1.  This is natural counterpart to math.isinf and math.isnan.  In fact, it's 
quite surprising to have those two functions available and not math.isfinite.

Here's a patch.

--
assignee:  -> mark.dickinson
keywords: +patch
nosy: +mark.dickinson
stage:  -> patch review
type:  -> feature request
Added file: http://bugs.python.org/file17867/isfinite.patch

___
Python tracker 

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



[issue9166] minor misstatement in What's New in 2.7

2010-07-05 Thread Daniel Stutzbach

New submission from Daniel Stutzbach :

"Finally, the Mapping abstract base class now raises a NotImplemented 
exception..."

should read "returns" instead of "raises"

Here's the relevant code patch:
http://svn.python.org/view/python/trunk/Lib/_abcoll.py?r1=78800&r2=81414&pathrev=81414

--
assignee: d...@python
components: Documentation
keywords: patch
messages: 109327
nosy: d...@python, stutzbach
priority: normal
severity: normal
stage: patch review
status: open
title: minor misstatement in What's New in 2.7
versions: Python 2.7

___
Python tracker 

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



[issue9165] Add math.isfinite()

2010-07-05 Thread Mark Dickinson

Mark Dickinson  added the comment:

Version 2 of patch adds cmath.isfinite, and changes doc markup to use ``True`` 
instead of :const:`True`  (thanks Benjamin!).

--
Added file: http://bugs.python.org/file17868/isfinite_v2.patch

___
Python tracker 

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



[issue9005] Year range in timetuple

2010-07-05 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Reopening to consider removing a special case in days_before_year(..).  After 
r82128, year cannot be <= 0.

--
stage: committed/rejected -> commit review
status: closed -> open
Added file: http://bugs.python.org/file17869/issue9005c.diff

___
Python tracker 

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



[issue9165] Add math.isfinite()

2010-07-05 Thread Mark Dickinson

Changes by Mark Dickinson :


Added file: http://bugs.python.org/file17870/isfinite_v2.patch

___
Python tracker 

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



[issue9165] Add math.isfinite()

2010-07-05 Thread Mark Dickinson

Changes by Mark Dickinson :


Removed file: http://bugs.python.org/file17868/isfinite_v2.patch

___
Python tracker 

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



[issue9165] Add math.isfinite()

2010-07-05 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Looks good to me.

--

___
Python tracker 

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



[issue9161] add_option in optparse no longer accepts unicode string

2010-07-05 Thread R. David Murray

R. David Murray  added the comment:

Too bad you didn't find this on one of the RCs.  The fix will have to wait for 
2.7.1 now.

The line you originally quote as changing was, as far as I can tell, the 
original code (it enters our repository on 2006-04-22 in r45654 when optparse 
was upgraded to version 1.5.1 of optik).  The change to the plural form in that 
line was made for 2.6rc1 in r71345, possibly inadvertently since that changeset 
was the bump to rc1.

It would seem reasonable to change this to match 2.6 for 2.7.1, since as far as 
I know no bugs have been reported against it in 2.6, and it is unlikely to 
break working code in 2.7.

As for the more extensive problems, now that argparse is part of the standard 
library it would seem better to devote any development resources to it.  Can 
you test your issues against argparse, and open a new issue if it also has 
problems?

--
nosy: +r.david.murray

___
Python tracker 

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



[issue9136] RuntimeError when profiling Decimal

2010-07-05 Thread Stefan Krah

Stefan Krah  added the comment:

Alexander, for me the ternary expressions have the advantage that they
take up less vertical space and you have to keep less state in mind.


Mark, I'm sidestepping the dict syntax question and reassign to you :)

--
assignee: skrah -> mark.dickinson

___
Python tracker 

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



[issue9161] add_option in optparse no longer accepts unicode string

2010-07-05 Thread R. David Murray

R. David Murray  added the comment:

Regression fixed in r82581.  It would be nice to have a unit test, so I'm 
leaving this open to see if anyone wants to contribute one (it could probably 
be reused for argparse if argparse doesn't already have such a test).

--

___
Python tracker 

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



[issue9167] argv double encoding on OSX

2010-07-05 Thread Daniele Varrazzo

New submission from Daniele Varrazzo :

Looks like the wchar_t* array returned by Py_GetArgcArgv() on OSX suffers by 
double encoding. This can affect sys.argv, sys.executable and C code relying on 
the above function of course.

On Linux:

$ python3
Python 3.0rc1+ (py3k, Oct 28 2008, 09:22:29) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os, sys
>>> snowman = '\u2603'
>>> os.system(sys.executable + " -c 'import sys; [print(a.encode(\"utf8\")) for 
>>> a in sys.argv]' foo bar " + snowman)
b'-c'
b'foo'
b'bar'
b'\xe2\x98\x83'
0

On OSX (uname -a is Darwin comicbookguy.local 10.4.0 Darwin Kernel Version 
10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386)

$ python3
Python 3.1.2 (r312:79147, Jul  5 2010, 11:57:14) 
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os, sys
>>> snowman = '\u2603'
>>> os.system(sys.executable + " -c 'import sys; [print(a.encode(\"utf8\")) for 
>>> a in sys.argv]' foo bar " + snowman)
b'-c'
b'foo'
b'bar'
b'\xc3\xa2\xc2\x98\xc2\x83'
0

Is this a known limitation of the platform? I don't know much about OSX, just 
found it testing for regressions in setproctitle 


Reported correctly working on Windows.

--
components: Interpreter Core
messages: 109333
nosy: piro
priority: normal
severity: normal
status: open
title: argv double encoding on OSX
type: behavior
versions: Python 3.1

___
Python tracker 

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



[issue3964] quiet the freeze makefile

2010-07-05 Thread R. David Murray

R. David Murray  added the comment:

In my experience makes are generally pretty noisy, so I doubt it. But I don't 
use freeze, so we'd really need a review from someone who does.

--
nosy: +r.david.murray
stage:  -> patch review
versions: +Python 3.2

___
Python tracker 

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



[issue9168] setuid in smtp.py sheds privileges before binding port

2010-07-05 Thread Alberto Trevino

New submission from Alberto Trevino :

The SMTP proxy server in Python (smtpd.py) allows you to shed privileges and 
run as user nobody. However, if you are trying to use port 25, the server will 
shed privileges before binding the port, causing a bind failure. By moving the 
setuid code between the creation of the proxy server and the aysncore loop, we 
can bind a port below 1024 and run as nobody.

--
components: Library (Lib)
files: smtpd.py-0.2-setuid-fix.diff
keywords: patch
messages: 109336
nosy: alfmel, barry
priority: normal
severity: normal
status: open
title: setuid in smtp.py sheds privileges before binding port
versions: Python 3.2
Added file: http://bugs.python.org/file17871/smtpd.py-0.2-setuid-fix.diff

___
Python tracker 

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



[issue8739] Update to smtpd.py to RFC 5321

2010-07-05 Thread Alberto Trevino

Alberto Trevino  added the comment:

What is the status of this patch? Is there anything else I need to do? Any 
remaining concerns that would stop this patch from being merged?

--

___
Python tracker 

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



[issue9167] argv double encoding on OSX

2010-07-05 Thread R. David Murray

Changes by R. David Murray :


--
nosy: +haypo

___
Python tracker 

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



[issue8739] Update to smtpd.py to RFC 5321

2010-07-05 Thread R. David Murray

R. David Murray  added the comment:

Yes, the fact that there are no unit tests for the new functionality.  As far 
as I can see the existing smtpd tests (which don't appear to be too 
extensive...but this module probably dates from before we had a firm unit test 
policy), are in test_smtplib.

--

___
Python tracker 

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



[issue9167] argv double encoding on OSX

2010-07-05 Thread Ezio Melotti

Changes by Ezio Melotti :


--
assignee:  -> ronaldoussoren
components: +Macintosh, Unicode
nosy: +ezio.melotti, ronaldoussoren
stage:  -> unit test needed

___
Python tracker 

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



[issue9169] Deprecate use of more than 3 positional arguments in timedelta constructor

2010-07-05 Thread Alexander Belopolsky

New submission from Alexander Belopolsky :

Prior to r82454, python implementation of timedelta had the following comment:

class timedelta:
 def __new__(cls, days=0, seconds=0, microseconds=0,
 # XXX The following should only be used as keyword args:   
 
 milliseconds=0, minutes=0, hours=0, weeks=0):


This suggests that these arguments were intended to be keyword only, but at the 
time there was no language support for that.

In 3.x, the above can be rewritten as

class timedelta:
 def __new__(cls, days=0, seconds=0, microseconds=0, *,
 milliseconds=0, minutes=0, hours=0, weeks=0):

to require that milliseconds, minutes, etc, be used only positionally.

This would be a backward incompatible change, so it would need to go through a 
deprecation process, but I think someone writing

HOUR = timedelta(0, 0, 0, 0, 0, 1)

or

WEEK = timedelta(0, 0, 0, 0, 0, 0, 1)

deserves a deprecation warning.

--
assignee: belopolsky
messages: 109339
nosy: belopolsky, mark.dickinson, pitrou, tim_one
priority: normal
severity: normal
stage: unit test needed
status: open
title: Deprecate use of more than 3 positional arguments in timedelta 
constructor
type: feature request
versions: Python 3.2

___
Python tracker 

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



[issue9162] License for multiprocessing files

2010-07-05 Thread Stefan Krah

Changes by Stefan Krah :


--
nosy: +roudkerk
resolution: accepted -> 

___
Python tracker 

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



[issue9005] Year range in timetuple

2010-07-05 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Similarly, it appears that


if (*m < 1 || *m > 12) {
--*m;
normalize_pair(y, m, 12);
++*m;
/* |y| can't be bigger than about   

 
 * |original y| + |original m|/12 now.  

 
 */
}

in normalize_y_m_d(int *y, int *m, int *d) is a dead branch.

--

___
Python tracker 

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



[issue9168] setuid in smtp.py sheds privileges before binding port

2010-07-05 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue9169] Deprecate use of more than 3 positional arguments in timedelta constructor

2010-07-05 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> This would be a backward incompatible change, so it would need to go
> through a deprecation process, but I think someone writing
> 
> HOUR = timedelta(0, 0, 0, 0, 0, 1)
> 
> or
> 
> WEEK = timedelta(0, 0, 0, 0, 0, 0, 1)
> 
> deserves a deprecation warning.

-1 from me. Deprecating correct code should be done for serious reasons,
not aesthetical (i.e. gratuitous) ones.

--

___
Python tracker 

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



[issue9170] zipfile.extractall raises runtime error on correct password

2010-07-05 Thread Andrew Miller

New submission from Andrew Miller :

On a WinZip AES-256 encrypted zip, zipfile.extractall raises a RuntimeError for 
"Bad password for file" when given the correct password. Command line example 
below:

Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from zipfile import ZipFile
>>> zip = ZipFile("example.zip", "r")
>>> zip.extractall(".", pwd="cat")
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python2.6/zipfile.py", line 935, in extractall
self.extract(zipinfo, path, pwd)
  File "/usr/lib/python2.6/zipfile.py", line 923, in extract
return self._extract_member(member, path, pwd)
  File "/usr/lib/python2.6/zipfile.py", line 963, in _extract_member
source = self.open(member, pwd=pwd)
  File "/usr/lib/python2.6/zipfile.py", line 898, in open
raise RuntimeError("Bad password for file", name)
RuntimeError: ('Bad password for file', )
>>>

--
components: Library (Lib)
files: example.zip
messages: 109342
nosy: aymill
priority: normal
severity: normal
status: open
title: zipfile.extractall raises runtime error on correct password
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file17872/example.zip

___
Python tracker 

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



[issue9171] sysconfig module does not support -m option

2010-07-05 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola' :

http://docs.python.org/dev/library/sysconfig.html#using-sysconfig-as-a-script

The doc states that sysconfig module con be used with python's -m option but 
this doesn't work:

giampa...@ubuntu:~/svn/python-2.7$ python -m sysconfig
giampa...@ubuntu:~/svn/python-2.7$ 

By taking a look at the code it seems that the module doesn't contain any 
main() or similar function.

--
messages: 109343
nosy: giampaolo.rodola, tarek, tarek-ziade
priority: normal
severity: normal
status: open
title: sysconfig module does not support -m option
versions: Python 2.7, Python 3.2

___
Python tracker 

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



[issue9166] minor misstatement in What's New in 2.7

2010-07-05 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, fixed in r82587.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue9169] Deprecate use of more than 3 positional arguments in timedelta constructor

2010-07-05 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

On Mon, Jul 5, 2010 at 1:39 PM, Antoine Pitrou  wrote:
..
> -1 from me. Deprecating correct code should be done for serious
> reasons, not aesthetical (i.e. gratuitous) ones.

I would think that deprecating error-prone constructs is well within normal 
library evolution.  For example, several interfaces that accepted floats by 
truncating them to ints were deprecated in the past.

PS: "aesthetical" != "gratuitous"

Someone using more than 3 positional arguments to timedelta most likely  expects

timedelta(days, hours, minutes, seconds, microseconds)

rather than

timedelta(days, seconds, microseconds, milliseconds, minutes, ...)

Has anyone seen (non-buggy) code in the wild that used > 3 positional arguments 
to timedelta?  (Mark just asked me not to use 2!)

--

___
Python tracker 

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



[issue9153] Run tests and demos as part of the test suite

2010-07-05 Thread Shashwat Anand

Changes by Shashwat Anand :


--
nosy: +l0nwlf

___
Python tracker 

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



[issue9161] add_option in optparse no longer accepts unicode string

2010-07-05 Thread Shashwat Anand

Changes by Shashwat Anand :


--
nosy: +l0nwlf

___
Python tracker 

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



[issue9172] zipfile.extractall always raises an OSError after successfully unzipping all files

2010-07-05 Thread Andrew Miller

New submission from Andrew Miller :

Tried it with a variety of unencrypted zips. Zipped with WinZip 11.1. Looks 
like it tries to unzip a second time after it completes the first unzip.

Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from zipfile import ZipFile
>>> zip = ZipFile("example_1.zip")
>>> zip.extractall()
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python2.6/zipfile.py", line 935, in extractall
self.extract(zipinfo, path, pwd)
  File "/usr/lib/python2.6/zipfile.py", line 923, in extract
return self._extract_member(member, path, pwd)
  File "/usr/lib/python2.6/zipfile.py", line 960, in _extract_member
os.mkdir(targetpath)
OSError: [Errno 17] File exists: 
'/home/andy/projects/codedropvalidator/testdata/example'
>>>

--
files: example_1.zip
messages: 109346
nosy: aymill
priority: normal
severity: normal
status: open
title: zipfile.extractall always raises an OSError after successfully unzipping 
all files
type: behavior
Added file: http://bugs.python.org/file17873/example_1.zip

___
Python tracker 

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



[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2010-07-05 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

I am attaching a test coverage file for the patched datetimemodule.c.

--
Added file: http://bugs.python.org/file17874/datetimemodule.c.gcov

___
Python tracker 

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



[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2010-07-05 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

It looks like I attached coverage for the original file.  See 
new-datetimemodule.c.gcov for coverage after the change.

--
Added file: http://bugs.python.org/file17875/new-datetimemodule.c.gcov

___
Python tracker 

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



[issue9158] PyArg_ParseTuple y* documentation is incorrect

2010-07-05 Thread Terrence Cole

Terrence Cole  added the comment:

@Victor: "y* and z* result is a Py_buffer"

Correct, so why is z* documented as [Py_buffer] and y* documented as 
[Py_buffer*]?  If I make 'buffer' from your example a Py_buffer*, as 
documented, then python puts writes sizeof(Py_buffer) bytes into a random spot 
in memory.  Thus the attached patch.

Thanks for giving this a look, but I don't think this issue is closed -- the 
documentation for y* is still wrong.

--

___
Python tracker 

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



[issue9004] datetime.utctimetuple() should not set tm_isdst flag to 0

2010-07-05 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
nosy: +pitrou

___
Python tracker 

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



[issue8930] messed up formatting after reindenting

2010-07-05 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

There is also some unpretty formatting in _math.c.

--

___
Python tracker 

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



[issue4679] Fork + shelve causes shelve corruption and backtrace

2010-07-05 Thread Alex Roper

Alex Roper  added the comment:

Go ahead

"R. David Murray"  wrote:

>
>R. David Murray  added the comment:
>
>Also note that bsddb's version was bumped in 2.7, so this bug may indeed be 
>out of date.  Alex, if you can't reproduce it (or don't have any desire to try 
>to do so), we will close this as out of date.
>
>--
>nosy: +jcea, r.david.murray
>status: open -> pending
>
>___
>Python tracker 
>
>___

--
status: pending -> open

___
Python tracker 

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



[issue4679] Fork + shelve causes shelve corruption and backtrace

2010-07-05 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
status: open -> closed

___
Python tracker 

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



[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2010-07-05 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

This is a bit strange.  timedelta is accepting int subclass instances:


>>> class I(int):
...pass
... 
>>> timedelta(days = I(36))
datetime.timedelta(36)


but not numpy.unt_:


>>> timedelta(days = int_(36))
Traceback (most recent call last):
  File "", line 1, in 
TypeError: unsupported type for timedelta days component: numpy.int64

which is also a subclass of int:

>>> isinstance(int_(36), int)
True

This is probably a numpy quirk rather than python issue, but is probably worth 
another look.

--

___
Python tracker 

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



[issue8930] messed up formatting after reindenting

2010-07-05 Thread Mark Dickinson

Mark Dickinson  added the comment:

I've fixed the _math.c formatting (r82595, r82596).

--
nosy: +mark.dickinson

___
Python tracker 

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



[issue1571170] Some numeric characters are still not recognized

2010-07-05 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue9171] sysconfig module does not support -m option

2010-07-05 Thread Éric Araujo

Éric Araujo  added the comment:

Nice catch. I found nothing in the VCS log, nor in 
distutils2._backport.sysconfig, so it doesn’t seem to have been removed but 
just overlooked.

--
assignee:  -> tarek
components: +Library (Lib)
keywords: +easy
nosy: +merwok -tarek-ziade
resolution:  -> accepted
stage:  -> needs patch
type:  -> behavior

___
Python tracker 

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



[issue9171] sysconfig module does not support -m option

2010-07-05 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

Remove the statement from the doc for now and get it back along a module fix in 
2.7.1: can it be a reasonable solution?

--

___
Python tracker 

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



[issue8905] difflib should accept arbitrary line iterators

2010-07-05 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



[issue7582] Use ISO timestamp in diff.py

2010-07-05 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



[issue9165] Add math.isfinite()

2010-07-05 Thread Eric Smith

Eric Smith  added the comment:

+1 from me, too.

You might want to reference this issue in the Misc/NEWS entry.

--
nosy: +eric.smith

___
Python tracker 

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



[issue9158] PyArg_ParseTuple y* documentation is incorrect

2010-07-05 Thread STINNER Victor

STINNER Victor  added the comment:

Oh ok, sorry. Fixed in r82597 (3.x) and r82598 (3.1).

--
resolution: invalid -> fixed

___
Python tracker 

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



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

2010-07-05 Thread Vlastimil Brom

Vlastimil Brom  added the comment:

I just noticed a somehow strange behaviour in matching character sets or 
alternate matches which contain some more "advanced" unicode characters, if 
they are in the search pattern with some "simpler" ones. The former seem to be 
ignored and not matched (the original re engine matches all of them); (win XPh 
SP3 Czech, Python 2.7; regex issue2636-20100414)

>>> print u"".join(regex.findall(u".", u"eèéêëēěė"))
eèéêëēěė
>>> print u"".join(regex.findall(u"[eèéêëēěė]", u"eèéêëēěė"))
eèéêëē
>>> print u"".join(regex.findall(u"e|è|é|ê|ë|ē|ě|ė", u"eèéêëēěė"))
eèéêëē
>>> print u"".join(re.findall(u"[eèéêëēěė]", u"eèéêëēěė"))
eèéêëēěė
>>> print u"".join(re.findall(u"e|è|é|ê|ë|ē|ě|ė", u"eèéêëēěė"))
eèéêëēěė

even stranger, if the pattern contains only these "higher" unicode characters, 
everything works ok: 
>>> print u"".join(regex.findall(u"ē|ě|ė", u"eèéêëēěė"))
ēěė
>>> print u"".join(regex.findall(u"[ēěė]", u"eèéêëēěė"))
ēěė


The characters in question are some accented latin letters (here in ascending 
codepoints), but it can be other scripts as well.
>>> print regex.findall(u".", u"eèéêëēěė")
[u'e', u'\xe8', u'\xe9', u'\xea', u'\xeb', u'\u0113', u'\u011b', u'\u0117']

The threshold isn't obvious to me, at first I thought, the characters 
represented as unicode escapes are problematic, whereas those with hexadecimal 
escapes are ok; however ē - u'\u0113' seems ok too.
(python 3.1 behaves identically:
>>> regex.findall("[eèéêëēěė]", "eèéêëēěė")
['e', 'è', 'é', 'ê', 'ë', 'ē']
>>> regex.findall("[ēěė]", "eèéêëēěė")
['ē', 'ě', 'ė']
)

vbr

--

___
Python tracker 

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



[issue9171] sysconfig module does not support -m option

2010-07-05 Thread Éric Araujo

Éric Araujo  added the comment:

Found: r81513 Made sysconfig a script that displays useful information - #8770

--

___
Python tracker 

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



[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-05 Thread Demur Rumed

Demur Rumed  added the comment:

It seems the lack of benefits from replacing COMPARE_OP with a set of aliased 
bytecodes was repairable through TARGET_WITH_IMPL. Also fixed was the lack of 
amendments to dis

--
versions:  -Python 3.3
Added file: http://bugs.python.org/file17876/cmpoprotdupalluny2.diff

___
Python tracker 

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



[issue9158] PyArg_ParseTuple y* documentation is incorrect

2010-07-05 Thread Terrence Cole

Terrence Cole  added the comment:

Awesome!  Thanks, and sorry for communicating the problem so poorly initially.

--

___
Python tracker 

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



[issue9169] Deprecate use of more than 3 positional arguments in timedelta constructor

2010-07-05 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> I would think that deprecating error-prone constructs is well within
> normal library evolution.  For example, several interfaces that
> accepted floats by truncating them to ints were deprecated in the
> past.

That's because silent truncation to int will lead to possible loss of
precision, or (worse) to poorly defined behaviour.
For example, if you call file.read(3.5), should it try to read 3 bytes
or 4 bytes? Deprecating such use is perfectly reasonable, because it
disambiguizes the API and avoids the use of a wrong type.

On the other hand, using positional arguments presents none of these
problems. There is no reason to deprecate it except your own aesthetical
preferences. Therefore I'm still -1.

> Has anyone seen (non-buggy) code in the wild that used > 3 positional
> arguments to timedelta?

Why do you think such code doesn't exist? It's not like timedelta() is
an extremely difficult API to use, even without keyword arguments.
Using Google Code Search, you will find snippets such as:

FIVE_MINUTES =  datetime.timedelta(0, 0, 0, 0, 5)

--

___
Python tracker 

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



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

2010-07-05 Thread Matthew Barnett

Matthew Barnett  added the comment:

issue2636-20100706.zip is a new version of the regex module.

I've added your examples to the unit tests. The module now passes.

Keep up the good work! :-)

--
Added file: http://bugs.python.org/file17877/issue2636-20100706.zip

___
Python tracker 

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



[issue9173] logger statement not guarded in shutil._make_tarball

2010-07-05 Thread Paul Smith

New submission from Paul Smith :

A called to logger.info() in shutil._make_tarball is not guarded against the 
logger being None, and therefore raises an AttributeError if that is the case.

--
components: Library (Lib)
files: shutil_logger_py27.patch
keywords: patch
messages: 109364
nosy: paulsmith
priority: normal
severity: normal
status: open
title: logger statement not guarded in shutil._make_tarball
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file17878/shutil_logger_py27.patch

___
Python tracker 

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



[issue9174] unittest assertEqual error output sub-optimal for single strings

2010-07-05 Thread R. David Murray

New submission from R. David Murray :

When assertEqual is called on a pair of strings, then in Python3 
assertMultiLineEqual is called.  This function calls ndiff to display a nicely 
formatted multiline comparison of the strings, which would make it very easy to 
spot the differences...if it worked.  However, ndiff does not add newlines 
where they do not exist, so the output is not correctly formatted when strings 
without newlines are compared.

Attached is a unit test and patch.

This fix should be backported to 2.7, since assertMultiLineEqual is used there 
for unicode strings.

Assigning to Michael Foord for review.  Michael, you can assign it back to me 
if you'd like me to commit it.

--
assignee: michael.foord
components: Library (Lib)
files: unittest_assertEquals.patch
keywords: patch
messages: 109365
nosy: michael.foord, r.david.murray
priority: normal
severity: normal
stage: patch review
status: open
title: unittest assertEqual error output sub-optimal for single strings
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file17879/unittest_assertEquals.patch

___
Python tracker 

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



[issue7899] MemoryError While Executing Python Code

2010-07-05 Thread Peter Wolf

Peter Wolf  added the comment:

I am new to this so apologies if I posting this in the wrong spot.

I am also getting a memory error on an 86MB python data file.It is one long 
list.As far as I can tell the data file is valid python code.My computer has 
3.4 GB of ram.

When I type the following in a terminal 
> python mydatafile.py

On the following line I get 

MemoryError

That is all.

--
components:  -Windows
nosy: +freakcycle

___
Python tracker 

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