[issue12679] ThreadError is not in threading.__all__

2011-08-02 Thread Matt Joiner

New submission from Matt Joiner anacro...@gmail.com:

 from threading import *
 ThreadError
Traceback (most recent call last):
  File stdin, line 1, in module
NameError: name 'ThreadError' is not defined

--
components: Library (Lib)
files: export-thread-error.patch
keywords: patch
messages: 141546
nosy: anacrolix
priority: normal
severity: normal
status: open
title: ThreadError is not in threading.__all__
versions: Python 3.2
Added file: http://bugs.python.org/file22827/export-thread-error.patch

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



[issue10639] reindent.py should not convert newlines

2011-08-02 Thread Scott Dial

Scott Dial sc...@scottdial.com added the comment:

I haven't seen anyone use a side-effect-less statement (a string) as a comment 
before, but I doubt that is an approved style for the CPython codebase. Please 
change the string preceeding the spec_line definition into a proper comment.

--
nosy: +scott.dial

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



[issue12680] cPickle.loads is not thread safe due to non-thread-safe imports

2011-08-02 Thread Sagiv Malihi

New submission from Sagiv Malihi sagivmal...@gmail.com:

When trying to cPickle.loads() from several threads at once, there is a race 
condition when threads try to import modules.

An example will explain it best:
suppose I have module foo.py which takes some time to load:

import time
class A(object):
def __setstate__(self, state):
self.x = x
time.sleep(1)
x = 5

and a pickled version of an A() object stored in 'A.pkl'.
the following code, when run for the first time, will raise a NameError about 
'x':

 p = open('A.pkl','rb').read()
 [thread.start_new(cPickle.loads, (p,)) for x in xrange(2)]

Unhandled exception in thread started by built-in function loads
Traceback (most recent call last):
  File foo.py, line 7, in __setstate__
self.x = x
NameError: global name 'x' is not defined


since the module is now loaded, subsequent calls to cPickle.loads will work as 
expected.

This was tested on 2.5.2, 2.7.1, and 3.2 on Ubuntu and on Windows 7.

please note that this bug was discovered when unpickling the standard 
'decimal.Decimal' class (decimal.py is quite long and takes some time to 
import), and this is not some corner case.

--
components: Extension Modules
messages: 141548
nosy: Sagiv.Malihi
priority: normal
severity: normal
status: open
title: cPickle.loads is not thread safe due to non-thread-safe imports
type: crash
versions: Python 2.7

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



[issue12680] cPickle.loads is not thread safe due to non-thread-safe imports

2011-08-02 Thread Sagiv Malihi

Sagiv Malihi sagivmal...@gmail.com added the comment:

OK, digging deeper reveals that there are actually two bugs here, one is 
conceptual in the python importing mechanism, and the other is technical in 
cPickle.

The first bug: 
PyImport_ExecCodeModuleEx adds the module to sys.modules *before* actually 
executing the code. This is a design flaw (can it really be changed? )
Demonstrating this bug is easy using the foo.py module from the previous 
comment:

def f():
if 'bla' in sys.modules:
bla = sys.modules['bla']
else:
import bla
return bla.A()
running two instances of f in two threads results in the same error.

The second bug: in cPickle.c: func_class() 
cPickle 'manually' checks if a module is in sys.modules instead of letting the 
import mechanism do it for him (hence breaking the import lock's defense here).

--

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



[issue1813] Codec lookup failing under turkish locale

2011-08-02 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

Unrelated to the Fedora issue: The test is currently skipped on the
FreeBSD bot, but completes successfully with:

diff -r 0b52b6f1bfab Lib/test/test_locale.py
--- a/Lib/test/test_locale.py   Tue Aug 02 10:16:45 2011 +0200
+++ b/Lib/test/test_locale.py   Tue Aug 02 11:37:39 2011 +0200
@@ -399,7 +399,7 @@
 oldlocale = locale.setlocale(locale.LC_CTYPE)
 self.addCleanup(locale.setlocale, locale.LC_CTYPE, oldlocale)
 try:
-locale.setlocale(locale.LC_CTYPE, 'tr_TR')
+locale.setlocale(locale.LC_CTYPE, 'tr_TR.UTF-8')
 except locale.Error:
 # Unsupported locale on this system
 self.skipTest('test needs Turkish locale')

--

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



[issue1813] Codec lookup failing under turkish locale

2011-08-02 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

As I wrote on python-dev, this test also fails on Debian lenny, which has
the same setlocale() bug as Fedora.

So, indeed the test should be skipped on a multitude of platforms.

--

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



[issue12676] Bug in http.client

2011-08-02 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 1013c9fbd83c by Senthil Kumaran in branch '3.2':
Fix closes Issue12676 - Invalid identifier used in TypeError message in 
http.client.
http://hg.python.org/cpython/rev/1013c9fbd83c

--
nosy: +python-dev
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue12676] Bug in http.client

2011-08-02 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset c099ba0a278e by Senthil Kumaran in branch 'default':
Fix closes Issue12676 - Invalid identifier used in TypeError message in 
http.client.
http://hg.python.org/cpython/rev/c099ba0a278e

--

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



[issue12676] Bug in http.client

2011-08-02 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

Thanks for the bug report, Popa Claudiu and Patch Santoso Wijaya. 
Ouch, pretty ugly bug - shows the code lacked test coverage.

--

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



[issue12680] cPickle.loads is not thread safe due to non-thread-safe imports

2011-08-02 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +brett.cannon, ncoghlan

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



[issue12183] Document behaviour of shutil.copy2 and copystat with symlinks

2011-08-02 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 209ad8920b03 by Senthil Kumaran in branch '2.7':
Fix closes Issue12183 - Explain the Symlink copy behavior in shutil.copytree. 
Patch by Petri Lehtinen.
http://hg.python.org/cpython/rev/209ad8920b03

--
nosy: +python-dev
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue12183] Document behaviour of shutil.copy2 and copystat with symlinks

2011-08-02 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 22730c87 by Senthil Kumaran in branch '3.2':
Fix closes Issue12183 - Explain the Symlink copy behavior in shutil.copytree. 
Patch by Petri Lehtinen.
http://hg.python.org/cpython/rev/22730c87

--

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



[issue12183] Document behaviour of shutil.copy2 and copystat with symlinks

2011-08-02 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

Petri, Thanks for the patch. It would also be helpful to track -  
shutil.copytree() use lutimes in Python 3.3 to copy symlink metadata if 
symlinks=True. You can raise a feature request if it is not already raised. 
Thanks!.

--

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



[issue10639] reindent.py should not convert newlines

2011-08-02 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Well, this is actually blessed by http://www.python.org/dev/peps/pep-0257/, but 
if that convention were actually followed the docstring would go *after* the 
assignment.  But I agree that it is rarely used, and as far as I know is not 
used in the stdlib at all.

--
nosy: +r.david.murray

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



[issue1813] Codec lookup failing under turkish locale

2011-08-02 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

On Tue, 02 Aug 2011 12:12:37 +0200, Stefan Krah ste...@bytereef.org wrote:
 I suspect many buildbots are green because they don't have tr_TR and
 tr_TR.iso8859-9 installed.

This is true for my Gentoo buildbots.  Once we've figured out the
best way to handle this, I'll fix that (install the other locales) for
my two.

When I run the C test program I get null as the final output of that
regardless of whether I use 'tr_TR' or 'tr_TR.utf8'.

This is with glibc-2.13-r2 (the r2 is Gentoo's mod number).

As someone pointed out on python-dev, if this isn't fixable then it should be 
an expected failure, not a skip.

One question is, is there any platform on which the turkish locale is installed 
where this test actually works?

--

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2011-08-02 Thread R. David Murray

New submission from R. David Murray rdmur...@bitdance.com:

I think that it would be good for expectedFailure to take a message argument 
like skip does.  My thought is that it would be printed both when it is 
triggered (the test fails as expected) so that one case from the verbose output 
why the test is expected to fail, and when the test passes unexpectedly.  My 
specific use case is OS bugs, where we could mark a test as an expected failure 
instead of a skip, and then we would see the unexpected pass when the OS fixes 
the bug, but in the meantime the verbose output would show the 'skip' reason.

Hmm.  I suppose this means I want expectedFailureIf, too...

--
components: Library (Lib)
keywords: easy
messages: 141560
nosy: michael.foord, r.david.murray
priority: low
severity: normal
status: open
title: unittest expectedFailure could take a message argument like skip does
type: feature request
versions: Python 3.3

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



[issue1813] Codec lookup failing under turkish locale

2011-08-02 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

[Re-opening to fix the skips]

Yes, the test works on:

  Ubuntu Lucid (libc-2.11.1), OpenSUSE (libc-2.11.1), FreeBSD-8.2


Failure:

  Fedora 14 (libc-2.13), Debian lenny (libc-2.7), Gentoo (libc-2.13-r2)


So perhaps this test should be marked as expected failure on Linux
altogether (unless we test for the libc version).

--
status: closed - open

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



[issue1813] Codec lookup failing under turkish locale

2011-08-02 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 As someone pointed out on python-dev, if this isn't fixable then it
 should be an expected failure, not a skip.

The Python bug is fixed, the problem is apparently some libcs have the
same bug as we did...

 One question is, is there any platform on which the turkish locale is
 installed where this test actually works?

Well, it works here (Mageia).

--

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



[issue10639] reindent.py should not convert newlines

2011-08-02 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset dc96af0e7f60 by Jason R. Coombs in branch 'default':
Corrected attribute docstring per pep-257 (reference #10639)
http://hg.python.org/cpython/rev/dc96af0e7f60

--

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



[issue8639] Allow callable objects in inspect.getfullargspec

2011-08-02 Thread Maxim Bublis

Changes by Maxim Bublis b...@codemonkey.ru:


Removed file: http://bugs.python.org/file22825/inspect.patch

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



[issue12183] Document behaviour of shutil.copy2 and copystat with symlinks

2011-08-02 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 746dc0a2398e by Ezio Melotti in branch 'default':
#12183: merge with 3.2.
http://hg.python.org/cpython/rev/746dc0a2398e

--

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



[issue12670] Fix struct code after forward declaration on ctypes doc

2011-08-02 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 2aa8dd4df650 by Sandro Tosi in branch '2.7':
#12670: Fix struct code after forward declaration on ctypes doc
http://hg.python.org/cpython/rev/2aa8dd4df650

New changeset 25dd1d3f4b88 by Sandro Tosi in branch '3.2':
#12670: Fix struct code after forward declaration on ctypes doc
http://hg.python.org/cpython/rev/25dd1d3f4b88

New changeset 01192d30365a by Sandro Tosi in branch 'default':
#12670: merge with 3.2
http://hg.python.org/cpython/rev/01192d30365a

--
nosy: +python-dev

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



[issue12183] Document behaviour of shutil.copy2 and copystat with symlinks

2011-08-02 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

Hi Ezio,

It was intentional that I did not merge it to default. We want
shutil.copystat to use lutimes which is available in 3.3 and in which
case, we will have to remove this once that change is done.

--

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



[issue12183] Document behaviour of shutil.copy2 and copystat with symlinks

2011-08-02 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

I applied it because the patch is valid on 3.3 too until we actually change 
copystat to use lutimes.  If/when shutil is changed the doc can be updated 
accordingly.

--
nosy: +ezio.melotti

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



[issue12670] Fix struct code after forward declaration on ctypes doc

2011-08-02 Thread Sandro Tosi

Changes by Sandro Tosi sandro.t...@gmail.com:


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-02 Thread R. David Murray

New submission from R. David Murray rdmur...@bitdance.com:

The devguide documents the 'accepted' resolution as follows:

 Submitted patch was applied, still needs verifying (for example by
 watching the buildbots) that everything went fine. At that point the
 resolution should be set to fixed and the status changed to closed.

I've never run into this usage while working with the tracker.  I *have* seen 
people set 'accepted' when they want to indicate that the issue is considered 
valid to be fixed, or that a feature request has been accepted but there's no 
patch ready for commit yet.

Formally I believe that the 'accepted' resolution is for committed feature 
requests (since fixed doesn't make English sense in that context).  Any other 
use is creative license :)

--
assignee: docs@python
components: Documentation
messages: 141568
nosy: docs@python, r.david.murray
priority: normal
severity: normal
status: open
title: Meaning of 'accepted' resolution as documented in devguide

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-02 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
components: +Devguide -Documentation
nosy: +ezio.melotti
resolution:  - accepted
stage:  - needs patch

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



[issue9561] distutils: set encoding to utf-8 for input and output files

2011-08-02 Thread Michał Górny

Michał Górny mgo...@gentoo.org added the comment:

Ping. What's the progress on this? Will this ever be fixed?

--

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



[issue12646] zlib.Decompress.decompress/flush do not raise any exceptions when given truncated input streams

2011-08-02 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

I'm not a zlib specialist, but I think what this means is that the stream is 
not finished, but it's valid anyway.

For example, you get the same behaviour by doing:

c = zlib.compressobj()
s = c.compress(b'This is just a test string.')
s += c.flush(zlib.Z_FULL_FLUSH)

The resulting bytestring is a non-terminated zlib stream. It still decompresses 
to the original data fine.

I think the appropriate fix is to add an argument to flush(). Here is a patch, 
I named the argument strict by lack of imagination :)

--
Added file: http://bugs.python.org/file22828/zlibflushstrict.patch

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-02 Thread Daniel Stutzbach

Changes by Daniel Stutzbach stutzb...@google.com:


--
nosy: +stutzbach

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



[issue12646] zlib.Decompress.decompress/flush do not raise any exceptions when given truncated input streams

2011-08-02 Thread Oleg Oshmyan

Oleg Oshmyan chor...@inbox.lv added the comment:

I like the new patch, but shouldn’t the default be to behave the same way 
zlib.decompress() behaves, i. e. raise? (Or perhaps zlib.decompress() should be 
modified not to raise instead. I’m just aiming at consistency.) Of course this 
will break code that relies on the old behaviour but the fix (adding 
strict=False) is trivial.

--

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-02 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

 Formally I believe that the 'accepted' resolution is for committed feature 
 requests

That's what I also thought originally.

Perhaps this should be discussed on Python-Dev to see what people think it 
should mean?

--
nosy: +rosslagerwall

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



[issue12665] Dictionary view example has error in set ops

2011-08-02 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset a70cdec027e7 by Sandro Tosi in branch '3.2':
#12665: Dictionary view example has error in set operation
http://hg.python.org/cpython/rev/a70cdec027e7

New changeset b2dc821058fe by Sandro Tosi in branch 'default':
#12665: merge with 3.2
http://hg.python.org/cpython/rev/b2dc821058fe

--
nosy: +python-dev

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



[issue12665] Dictionary view example has error in set ops

2011-08-02 Thread Sandro Tosi

Changes by Sandro Tosi sandro.t...@gmail.com:


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2011-08-02 Thread Santoso Wijaya

Changes by Santoso Wijaya santoso.wij...@gmail.com:


--
nosy: +santa4nt

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



[issue11933] newer() function in dep_util.py mixes up new vs. old files due stat.st_mtime vs stat

2011-08-02 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset aebe3243bb2c by Éric Araujo in branch '2.7':
Fix incorrect mtime comparison in distutils (#11933).
http://hg.python.org/cpython/rev/aebe3243bb2c

--
nosy: +python-dev

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



[issue12679] ThreadError is not in threading.__all__

2011-08-02 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset bbeda42ea6a8 by Benjamin Peterson in branch 'default':
add ThreadError to threading.__all__ (closes #12679)
http://hg.python.org/cpython/rev/bbeda42ea6a8

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue12678] test_packaging and test_distutils failures under Windows

2011-08-02 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Here’s the distutils error:

ERROR: test_manual_manifest (distutils.tests.test_sdist.SDistTestCase)
--
Traceback (most recent call last):
  File D:\Buildslave\3.x.moore-windows\build\lib\tarfile.py, line 1802, in 
gzopen
fileobj = gzip.GzipFile(name, mode + b, compresslevel, fileobj)
  File D:\Buildslave\3.x.moore-windows\build\lib\gzip.py, line 145, in 
__init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: 
'c:\\docume~1\\pydev\\locals~1\\temp\\tmptlkdmc\\dist\\fake-1.0.tar.gz'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
D:\Buildslave\3.x.moore-windows\build\lib\distutils\tests\test_sdist.py, line 
385, in test_manual_manifest
archive = tarfile.open(archive_name)
  File D:\Buildslave\3.x.moore-windows\build\lib\tarfile.py, line 1736, in 
open
return func(name, r, fileobj, **kwargs)
  File D:\Buildslave\3.x.moore-windows\build\lib\tarfile.py, line 1806, in 
gzopen
fileobj.close()
AttributeError: 'NoneType' object has no attribute 'close'

It looks like an issue with a temporary file removed too soon.  I’ll look into 
it shortly.


For packaging, the bug is related to os.path.relpath.  I actually want to 
remove the use of relpath because of another bug (not reported yet, will do 
soon), so we’ll have to live with this failure for a while until the code is 
changed.

--

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



[issue11561] coverage of Python regrtest cannot see initial import of libs

2011-08-02 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


Removed file: http://bugs.python.org/file22622/unnamed

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



[issue11561] coverage of Python regrtest cannot see initial import of libs

2011-08-02 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 I think your suggestions are all good ones, and I have incorporated
 them into the file.
Great :)  You left some commented-out debugging prints.

 (But do note that the departures we are now making from Ned's own
 copy of the tracer code ­— removing the commented-out debugging
 statement, and the long comment, and the inheritance from object —
 might make it harder to bring in changes from his own copy if he
 should ever further improve it.)
I’m not concerned by this.  I’ve been doing merges all the time for more that a 
year, and having a few diverging lines is not a big deal.

 I have tried to write the comments to be more informative, while also
 addressing your own ideas; let me know if you like the result!
I do!

 Oh: and, I am continuing to use this new file in my own work on the
 Python core, and it has been working fine — so no problems with the
 actual code have developed over these first 3+ months of use.
This is a good thing to know.

I’ll let Brett take over now.

--

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2011-08-02 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Too late I'm afraid as expectedFailure not expectedFailure() is the decorator.

--
nosy: +benjamin.peterson

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



[issue11933] newer() function in dep_util.py mixes up new vs. old files due stat.st_mtime vs stat

2011-08-02 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thanks again!

--
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-02 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

I say just  go ahead and change  it. I was probably just thinking how I wish we 
would use it when I wrote that.

--
nosy: +brett.cannon

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



[issue12683] urlparse.urljoin different behavior for different scheme

2011-08-02 Thread Jasper van den Bosch

New submission from Jasper van den Bosch jap...@gmail.com:

urlparse.urljoin successfully joins 'http://localhost/repo1' with a filename, 
but not 'svn://localhost/repo1' (only scheme different). But the documentation 
states that the svn: scheme is supported:
http://docs.python.org/library/urlparse.html

Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) 
[GCC 4.5.2] on linux2
Type help, copyright, credits or license for more information.
 from urlparse import urljoin
 urljoin('svn://localhost/repo1', 'xxx.xyz')
'xxx.xyz'
 urljoin('http://localhost/repo1', 'xxx.xyz')
'http://localhost/xxx.xyz'

--
components: None
messages: 141581
nosy: Jasper.van.den.Bosch
priority: normal
severity: normal
status: open
title: urlparse.urljoin different behavior for different scheme
type: behavior
versions: Python 2.7

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



[issue12683] urlparse.urljoin different behavior for different scheme

2011-08-02 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
components: +Library (Lib) -None
nosy: +ezio.melotti, orsenthil
versions: +Python 3.2, Python 3.3

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



[issue12611] 2to3 crashes when converting doctest using reduce()

2011-08-02 Thread Vlada Peric

Vlada Peric vlada.pe...@gmail.com added the comment:

Confirmed with the file Aaron linked to. I'm using 2to3-3.2 -w -n -d 
sympy/ntheory/factor_.py. This is what Python says about itself:

Python 3.2 (r32:88445, Jun  8 2011, 16:34:06) 
[GCC 4.5.1 20101208 [gcc-4_5-branch revision 167585]] on linux2

--
status: pending - open

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



[issue12655] Expose sched.h functions

2011-08-02 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 89e92e684b37 by Benjamin Peterson in branch 'default':
expose sched.h functions (closes #12655)
http://hg.python.org/cpython/rev/89e92e684b37

--
nosy: +python-dev
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue11049] add tests for test.support

2011-08-02 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

test_forget still doesn't work using my installed Python:

test test_support failed -- Traceback (most recent call last):
  File /usr/local/lib/python3.3/test/test_support.py, line 62, in test_forget
mod = __import__(TESTFN)
ImportError: No module named '@test_20485_tmp'

--

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



[issue12663] ArgumentParser.error writes to stderr not to stdout

2011-08-02 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 5ff56995976c by Senthil Kumaran in branch '3.2':
Fix closes issue12663 - Correcting the ArgumentParser.error description. Patch 
by Sandro Tosi.
http://hg.python.org/cpython/rev/5ff56995976c

New changeset a5b3d5051fc7 by Senthil Kumaran in branch 'default':
Fix closes issue12663 - Correcting the ArgumentParser.error description. Patch 
by Sandro Tosi.
http://hg.python.org/cpython/rev/a5b3d5051fc7

New changeset 1e8dc34ece30 by Senthil Kumaran in branch '2.7':
Fix closes issue12663 - Correcting the ArgumentParser.error description. Patch 
by Sandro Tosi.
http://hg.python.org/cpython/rev/1e8dc34ece30

--
nosy: +python-dev
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-02 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

I propose that we remove 'accepted' as the meaning seems ambiguous and
it is of little practical (/tracking) use.

--
nosy: +orsenthil

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



Re: [issue12677] Turtle, fix right/left rotation orientation

2011-08-02 Thread Senthil Kumaran
The orientation depends upon the mode, which is explained further
down.
http://docs.python.org/py3k/library/turtle.html#turtle.left

So, the correct fix would be: 
would turn clockwise/counterclockwise depending upon the mode.
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11598] missing afxres.h error when building bdist_wininst in Visual Studio 2008 Express

2011-08-02 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +brian.curtin, loewis

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2011-08-02 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Well, expectedFailure could dispatch on the type of the argument, with 
different behaviour for strings and anything else (presumed to be a function / 
method). That would be inconsistent with the api for skipping though. (I'm not 
wild on the message argument to the skip decorators - I keep forgetting it.)

--

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-02 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

It is not ambigous.  As I said, bugs are fixed, feature requests are accepted.

--

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-02 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

I thought fixed was enough. A kind of binary state where we say, okay we have 
it and otherwise no, we don't. I know for feature requests the terminology does 
not make sense, but I believe I have worked with bug trackers where fixed was 
the ultimate state where a particular change (be a bug-fix or a feature 
request) was in the code.

Well, as long as it is helpful, I am fine with it, but too many options can 
confuse (just as 'accepted' did) and it will be helpful to prune down some.

--
resolution: accepted - 

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



[issue12684] profile does not dump stats on exception like cProfile does

2011-08-02 Thread Matt Joiner

New submission from Matt Joiner anacro...@gmail.com:

Here's a patch that fixes it.

--
components: Library (Lib)
files: exception-in-profile.patch
keywords: patch
messages: 141591
nosy: anacrolix
priority: normal
severity: normal
status: open
title: profile does not dump stats on exception like cProfile does
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file22829/exception-in-profile.patch

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



[issue12437] _ctypes.dlopen does not include errno in OSError

2011-08-02 Thread Matt Joiner

Matt Joiner anacro...@gmail.com added the comment:

Should I just submit a patch for this myself? Can someone confirm the behaviour 
is incorrect so I don't waste time fixing it?

--

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



[issue11049] add tests for test.support

2011-08-02 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 07d94cf3521e by Eli Bendersky in branch 'default':
Issue #11049: fix test_forget on installed Python - add os.curdir to sys.path
http://hg.python.org/cpython/rev/07d94cf3521e

--

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



[issue11049] add tests for test.support

2011-08-02 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

Vinay, I can't reproduce your problem here (tried installing Python and running 
from there), but I suspect it's a sys.path issue (you don't have os.curdir on 
it, I do). Please let me know if it works now.

--

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



[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-08-02 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

I've added a couple of review comments to the one Peter already made in 
Rietveld.  Here is an updated patch that addresses all of the comments.  I've 
tested in briefly on Windows and on OS X and it seems to work OK.  Eli, if 
you're OK with it, feel free to commit or I will do it.

--
keywords: +3.2regression, patch -buildbot
stage: needs patch - commit review
versions: +Python 3.3
Added file: http://bugs.python.org/file22830/issue12540_rev2.patch

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



[issue12685] The backslash escape doesn't concatenate two strings in one in the with statement

2011-08-02 Thread py.user

New submission from py.user port...@yandex.ru:

 with open('/etc/passwd') as f1, \
...  open('/etc/profile) as f2:
  File stdin, line 2
open('/etc/profile) as f2:
 ^
SyntaxError: EOL while scanning string literal


 with open('/etc/passwd') as f1,  open('/etc/profile') as f2:
...

working example for a loop:

 for i, j in zip(range(10), \
... range(5, 15)):
...   print(i, j)
... 
0 5
1 6
2 7
3 8
4 9
5 10
6 11
7 12
8 13
9 14


 for i, j in \
... zip(range(10), range(5, 15)):
...   print(i, j)
... 
0 5
1 6
2 7
3 8
4 9
5 10
6 11
7 12
8 13
9 14


--
components: Interpreter Core
messages: 141596
nosy: py.user
priority: normal
severity: normal
status: open
title: The backslash escape doesn't concatenate two strings in one in the with 
statement
type: behavior
versions: Python 3.1

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



[issue12685] The backslash escape doesn't concatenate two strings in one in the with statement

2011-08-02 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Why would you expect that to concatenate strings? You have an unterminated 
quote?

--
nosy: +benjamin.peterson
resolution:  - invalid
status: open - closed

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



[issue12685] The backslash escape doesn't concatenate two strings in one in the with statement

2011-08-02 Thread py.user

py.user port...@yandex.ru added the comment:

yes, you're right, this is my mistake

--

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



[issue7424] segmentation fault in listextend during install

2011-08-02 Thread rpointel

rpointel pyt...@xiri.fr added the comment:

Hi,
we have the same problem on OpenBSD (sparc).
You could find more information:
http://marc.info/?l=openbsd-portsm=131219537505698
Thanks,
Remi.

--

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-02 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

The Accepted Resolution was copied from SF. I recall seeing documentation on 
SF for the resolutions, but can't find that anymore.

I also recall that on SF, the accepted resolution was used to indicate that a 
patch was accepted (be it a bug fix or a feature request), and also in 
combination with the open status (in the sense of an approved resolution, 
also).

--
nosy: +loewis

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